From 558278b78f2f53f91cdb796c9949b5f13825a1e5 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Mon, 24 Aug 2026 20:08:16 +0000 Subject: [PATCH 1/2] chore: remove java-datacatalog library (#14110) Fixes #14110 --- README.md | 1 - gapic-libraries-bom/pom.xml | 7 - java-bigquery/google-cloud-bigquery/pom.xml | 18 - .../cloud/bigquery/it/ITBigQueryTest.java | 100 - java-cloud-bom/README.md | 1 - .../javaModulesMetadata.yaml | 1 - .../tests/dependency-convergence/pom.xml | 4 - java-datacatalog/.cloud/main.tf | 13 - java-datacatalog/.cloud/variables.tf | 7 - java-datacatalog/.repo-metadata.json | 15 - java-datacatalog/CHANGELOG.md | 1126 -- java-datacatalog/README.md | 204 - .../google-cloud-datacatalog-bom/pom.xml | 52 - .../google-cloud-datacatalog/pom.xml | 128 - .../datacatalog/v1/DataCatalogClient.java | 6733 ----------- .../datacatalog/v1/DataCatalogSettings.java | 1068 -- .../v1/PolicyTagManagerClient.java | 2022 ---- .../PolicyTagManagerSerializationClient.java | 479 - ...PolicyTagManagerSerializationSettings.java | 248 - .../v1/PolicyTagManagerSettings.java | 358 - .../cloud/datacatalog/v1/gapic_metadata.json | 195 - .../cloud/datacatalog/v1/package-info.java | 96 - .../datacatalog/v1/stub/DataCatalogStub.java | 342 - .../v1/stub/DataCatalogStubSettings.java | 2006 ---- .../stub/GrpcDataCatalogCallableFactory.java | 118 - .../v1/stub/GrpcDataCatalogStub.java | 1427 --- .../GrpcPolicyTagManagerCallableFactory.java | 115 - ...agManagerSerializationCallableFactory.java | 115 - ...GrpcPolicyTagManagerSerializationStub.java | 246 - .../v1/stub/GrpcPolicyTagManagerStub.java | 582 - .../HttpJsonDataCatalogCallableFactory.java | 106 - .../v1/stub/HttpJsonDataCatalogStub.java | 2500 ----- ...tpJsonPolicyTagManagerCallableFactory.java | 103 - ...agManagerSerializationCallableFactory.java | 103 - ...JsonPolicyTagManagerSerializationStub.java | 335 - .../v1/stub/HttpJsonPolicyTagManagerStub.java | 943 -- .../PolicyTagManagerSerializationStub.java | 56 - ...cyTagManagerSerializationStubSettings.java | 412 - .../v1/stub/PolicyTagManagerStub.java | 122 - .../v1/stub/PolicyTagManagerStubSettings.java | 772 -- .../cloud/datacatalog/v1/stub/Version.java | 27 - .../v1beta1/DataCatalogClient.java | 5471 --------- .../v1beta1/DataCatalogSettings.java | 809 -- .../v1beta1/PolicyTagManagerClient.java | 1988 ---- .../PolicyTagManagerSerializationClient.java | 371 - ...PolicyTagManagerSerializationSettings.java | 238 - .../v1beta1/PolicyTagManagerSettings.java | 359 - .../datacatalog/v1beta1/gapic_metadata.json | 165 - .../datacatalog/v1beta1/package-info.java | 91 - .../v1beta1/stub/DataCatalogStub.java | 254 - .../v1beta1/stub/DataCatalogStubSettings.java | 1563 --- .../stub/GrpcDataCatalogCallableFactory.java | 120 - .../v1beta1/stub/GrpcDataCatalogStub.java | 1097 -- .../GrpcPolicyTagManagerCallableFactory.java | 117 - ...agManagerSerializationCallableFactory.java | 117 - ...GrpcPolicyTagManagerSerializationStub.java | 214 - .../stub/GrpcPolicyTagManagerStub.java | 588 - .../HttpJsonDataCatalogCallableFactory.java | 108 - .../v1beta1/stub/HttpJsonDataCatalogStub.java | 1876 ---- ...tpJsonPolicyTagManagerCallableFactory.java | 105 - ...agManagerSerializationCallableFactory.java | 105 - ...JsonPolicyTagManagerSerializationStub.java | 276 - .../stub/HttpJsonPolicyTagManagerStub.java | 949 -- .../PolicyTagManagerSerializationStub.java | 52 - ...cyTagManagerSerializationStubSettings.java | 390 - .../v1beta1/stub/PolicyTagManagerStub.java | 124 - .../stub/PolicyTagManagerStubSettings.java | 773 -- .../datacatalog/v1beta1/stub/Version.java | 27 - .../reflect-config.json | 4466 -------- .../reflect-config.json | 3008 ----- .../v1/DataCatalogClientHttpJsonTest.java | 3669 ------ .../datacatalog/v1/DataCatalogClientTest.java | 3164 ------ .../cloud/datacatalog/v1/MockDataCatalog.java | 59 - .../datacatalog/v1/MockDataCatalogImpl.java | 841 -- .../cloud/datacatalog/v1/MockIAMPolicy.java | 59 - .../datacatalog/v1/MockIAMPolicyImpl.java | 59 - .../datacatalog/v1/MockPolicyTagManager.java | 59 - .../v1/MockPolicyTagManagerImpl.java | 337 - .../v1/MockPolicyTagManagerSerialization.java | 59 - ...MockPolicyTagManagerSerializationImpl.java | 123 - .../PolicyTagManagerClientHttpJsonTest.java | 1174 -- .../v1/PolicyTagManagerClientTest.java | 1022 -- ...anagerSerializationClientHttpJsonTest.java | 232 - ...licyTagManagerSerializationClientTest.java | 226 - .../DataCatalogClientHttpJsonTest.java | 3031 ----- .../v1beta1/DataCatalogClientTest.java | 2618 ----- .../datacatalog/v1beta1/MockDataCatalog.java | 59 - .../v1beta1/MockDataCatalogImpl.java | 650 -- .../datacatalog/v1beta1/MockIAMPolicy.java | 59 - .../v1beta1/MockIAMPolicyImpl.java | 59 - .../v1beta1/MockPolicyTagManager.java | 59 - .../v1beta1/MockPolicyTagManagerImpl.java | 337 - .../MockPolicyTagManagerSerialization.java | 59 - ...MockPolicyTagManagerSerializationImpl.java | 102 - .../PolicyTagManagerClientHttpJsonTest.java | 1174 -- .../v1beta1/PolicyTagManagerClientTest.java | 1022 -- ...anagerSerializationClientHttpJsonTest.java | 174 - ...licyTagManagerSerializationClientTest.java | 172 - .../datacatalog/v1beta1/it/ITSystemTest.java | 143 - .../grpc-google-cloud-datacatalog-v1/pom.xml | 45 - .../cloud/datacatalog/v1/DataCatalogGrpc.java | 6153 ---------- .../datacatalog/v1/PolicyTagManagerGrpc.java | 2050 ---- .../v1/PolicyTagManagerSerializationGrpc.java | 815 -- .../pom.xml | 45 - .../datacatalog/v1beta1/DataCatalogGrpc.java | 4712 -------- .../v1beta1/PolicyTagManagerGrpc.java | 2007 ---- .../PolicyTagManagerSerializationGrpc.java | 610 - java-datacatalog/pom.xml | 70 - .../clirr-ignored-differences.xml | 80 - .../proto-google-cloud-datacatalog-v1/pom.xml | 37 - .../v1/BigQueryConnectionSpec.java | 1232 -- .../v1/BigQueryConnectionSpecOrBuilder.java | 109 - .../v1/BigQueryDateShardedSpec.java | 1143 -- .../v1/BigQueryDateShardedSpecOrBuilder.java | 137 - .../cloud/datacatalog/v1/BigQueryProto.java | 124 - .../datacatalog/v1/BigQueryRoutineSpec.java | 697 -- .../v1/BigQueryRoutineSpecOrBuilder.java | 82 - .../datacatalog/v1/BigQueryTableSpec.java | 1299 --- .../v1/BigQueryTableSpecOrBuilder.java | 140 - .../cloud/datacatalog/v1/BusinessContext.java | 982 -- .../v1/BusinessContextOrBuilder.java | 102 - .../datacatalog/v1/CatalogUIExperience.java | 194 - .../v1/CloudBigtableInstanceSpec.java | 2328 ---- .../CloudBigtableInstanceSpecOrBuilder.java | 100 - .../v1/CloudBigtableSystemSpec.java | 608 - .../v1/CloudBigtableSystemSpecOrBuilder.java | 56 - .../v1/CloudSqlBigQueryConnectionSpec.java | 1136 -- ...oudSqlBigQueryConnectionSpecOrBuilder.java | 106 - .../cloud/datacatalog/v1/ColumnSchema.java | 4979 --------- .../datacatalog/v1/ColumnSchemaOrBuilder.java | 426 - .../google/cloud/datacatalog/v1/Common.java | 102 - .../datacatalog/v1/CommonUsageStats.java | 548 - .../v1/CommonUsageStatsOrBuilder.java | 54 - .../google/cloud/datacatalog/v1/Contacts.java | 1752 --- .../datacatalog/v1/ContactsOrBuilder.java | 84 - .../v1/CreateEntryGroupRequest.java | 1151 -- .../v1/CreateEntryGroupRequestOrBuilder.java | 137 - .../datacatalog/v1/CreateEntryRequest.java | 1145 -- .../v1/CreateEntryRequestOrBuilder.java | 138 - .../v1/CreatePolicyTagRequest.java | 905 -- .../v1/CreatePolicyTagRequestOrBuilder.java | 95 - .../datacatalog/v1/CreateTagRequest.java | 949 -- .../v1/CreateTagRequestOrBuilder.java | 110 - .../v1/CreateTagTemplateFieldRequest.java | 1182 -- ...reateTagTemplateFieldRequestOrBuilder.java | 143 - .../v1/CreateTagTemplateRequest.java | 1155 -- .../v1/CreateTagTemplateRequestOrBuilder.java | 137 - .../datacatalog/v1/CreateTaxonomyRequest.java | 905 -- .../v1/CreateTaxonomyRequestOrBuilder.java | 95 - .../datacatalog/v1/CrossRegionalSource.java | 612 - .../v1/CrossRegionalSourceOrBuilder.java | 58 - .../cloud/datacatalog/v1/DataSource.java | 1520 --- .../v1/DataSourceConnectionSpec.java | 726 -- .../v1/DataSourceConnectionSpecOrBuilder.java | 66 - .../datacatalog/v1/DataSourceOrBuilder.java | 149 - .../cloud/datacatalog/v1/DataSourceProto.java | 111 - .../datacatalog/v1/DatabaseTableSpec.java | 2825 ----- .../v1/DatabaseTableSpecOrBuilder.java | 144 - .../cloud/datacatalog/v1/Datacatalog.java | 1727 --- .../datacatalog/v1/DataplexExternalTable.java | 1148 -- .../v1/DataplexExternalTableOrBuilder.java | 132 - .../datacatalog/v1/DataplexFilesetSpec.java | 700 -- .../v1/DataplexFilesetSpecOrBuilder.java | 65 - .../cloud/datacatalog/v1/DataplexSpec.java | 1294 --- .../datacatalog/v1/DataplexSpecOrBuilder.java | 151 - .../datacatalog/v1/DataplexSpecProto.java | 139 - .../datacatalog/v1/DataplexTableSpec.java | 1401 --- .../v1/DataplexTableSpecOrBuilder.java | 150 - .../cloud/datacatalog/v1/DatasetSpec.java | 799 -- .../datacatalog/v1/DatasetSpecOrBuilder.java | 67 - .../v1/DeleteEntryGroupRequest.java | 710 -- .../v1/DeleteEntryGroupRequestOrBuilder.java | 71 - .../datacatalog/v1/DeleteEntryRequest.java | 612 - .../v1/DeleteEntryRequestOrBuilder.java | 58 - .../v1/DeletePolicyTagRequest.java | 627 -- .../v1/DeletePolicyTagRequestOrBuilder.java | 62 - .../datacatalog/v1/DeleteTagRequest.java | 612 - .../v1/DeleteTagRequestOrBuilder.java | 58 - .../v1/DeleteTagTemplateFieldRequest.java | 722 -- ...eleteTagTemplateFieldRequestOrBuilder.java | 73 - .../v1/DeleteTagTemplateRequest.java | 718 -- .../v1/DeleteTagTemplateRequestOrBuilder.java | 73 - .../datacatalog/v1/DeleteTaxonomyRequest.java | 627 -- .../v1/DeleteTaxonomyRequestOrBuilder.java | 62 - .../datacatalog/v1/DumpContentProto.java | 115 - .../google/cloud/datacatalog/v1/DumpItem.java | 793 -- .../datacatalog/v1/DumpItemOrBuilder.java | 67 - .../google/cloud/datacatalog/v1/Entry.java | 9954 ----------------- .../cloud/datacatalog/v1/EntryGroup.java | 1461 --- .../cloud/datacatalog/v1/EntryGroupName.java | 226 - .../datacatalog/v1/EntryGroupOrBuilder.java | 178 - .../cloud/datacatalog/v1/EntryName.java | 262 - .../cloud/datacatalog/v1/EntryOrBuilder.java | 1389 --- .../cloud/datacatalog/v1/EntryOverview.java | 637 -- .../v1/EntryOverviewOrBuilder.java | 66 - .../cloud/datacatalog/v1/EntryType.java | 594 - .../v1/ExportTaxonomiesRequest.java | 1163 -- .../v1/ExportTaxonomiesRequestOrBuilder.java | 152 - .../v1/ExportTaxonomiesResponse.java | 936 -- .../v1/ExportTaxonomiesResponseOrBuilder.java | 84 - .../v1/FeatureOnlineStoreSpec.java | 762 -- .../v1/FeatureOnlineStoreSpecOrBuilder.java | 58 - .../cloud/datacatalog/v1/FieldType.java | 3109 ----- .../datacatalog/v1/FieldTypeOrBuilder.java | 106 - .../cloud/datacatalog/v1/FilesetSpec.java | 716 -- .../datacatalog/v1/FilesetSpecOrBuilder.java | 68 - .../cloud/datacatalog/v1/GcsFileSpec.java | 1023 -- .../datacatalog/v1/GcsFileSpecOrBuilder.java | 113 - .../cloud/datacatalog/v1/GcsFilesetSpec.java | 1656 --- .../v1/GcsFilesetSpecOrBuilder.java | 265 - .../v1/GcsFilesetSpecOuterClass.java | 111 - .../datacatalog/v1/GetEntryGroupRequest.java | 896 -- .../v1/GetEntryGroupRequestOrBuilder.java | 95 - .../cloud/datacatalog/v1/GetEntryRequest.java | 612 - .../v1/GetEntryRequestOrBuilder.java | 58 - .../datacatalog/v1/GetPolicyTagRequest.java | 612 - .../v1/GetPolicyTagRequestOrBuilder.java | 58 - .../datacatalog/v1/GetTagTemplateRequest.java | 613 - .../v1/GetTagTemplateRequestOrBuilder.java | 58 - .../datacatalog/v1/GetTaxonomyRequest.java | 612 - .../v1/GetTaxonomyRequestOrBuilder.java | 58 - .../datacatalog/v1/ImportEntriesMetadata.java | 1366 --- .../v1/ImportEntriesMetadataOrBuilder.java | 124 - .../datacatalog/v1/ImportEntriesRequest.java | 1133 -- .../v1/ImportEntriesRequestOrBuilder.java | 127 - .../datacatalog/v1/ImportEntriesResponse.java | 690 -- .../v1/ImportEntriesResponseOrBuilder.java | 82 - .../v1/ImportTaxonomiesRequest.java | 1324 --- .../v1/ImportTaxonomiesRequestOrBuilder.java | 136 - .../v1/ImportTaxonomiesResponse.java | 926 -- .../v1/ImportTaxonomiesResponseOrBuilder.java | 84 - .../cloud/datacatalog/v1/InlineSource.java | 977 -- .../datacatalog/v1/InlineSourceOrBuilder.java | 94 - .../datacatalog/v1/IntegratedSystem.java | 352 - .../datacatalog/v1/ListEntriesRequest.java | 1255 --- .../v1/ListEntriesRequestOrBuilder.java | 153 - .../datacatalog/v1/ListEntriesResponse.java | 1119 -- .../v1/ListEntriesResponseOrBuilder.java | 112 - .../v1/ListEntryGroupsRequest.java | 932 -- .../v1/ListEntryGroupsRequestOrBuilder.java | 106 - .../v1/ListEntryGroupsResponse.java | 1123 -- .../v1/ListEntryGroupsResponseOrBuilder.java | 112 - .../datacatalog/v1/ListPolicyTagsRequest.java | 928 -- .../v1/ListPolicyTagsRequestOrBuilder.java | 105 - .../v1/ListPolicyTagsResponse.java | 1123 -- .../v1/ListPolicyTagsResponseOrBuilder.java | 112 - .../cloud/datacatalog/v1/ListTagsRequest.java | 933 -- .../v1/ListTagsRequestOrBuilder.java | 107 - .../datacatalog/v1/ListTagsResponse.java | 1117 -- .../v1/ListTagsResponseOrBuilder.java | 111 - .../datacatalog/v1/ListTaxonomiesRequest.java | 1120 -- .../v1/ListTaxonomiesRequestOrBuilder.java | 132 - .../v1/ListTaxonomiesResponse.java | 1122 -- .../v1/ListTaxonomiesResponseOrBuilder.java | 112 - .../cloud/datacatalog/v1/LocationName.java | 195 - .../datacatalog/v1/LookerSystemSpec.java | 1552 --- .../v1/LookerSystemSpecOrBuilder.java | 186 - .../datacatalog/v1/LookupEntryRequest.java | 1937 ---- .../v1/LookupEntryRequestOrBuilder.java | 312 - .../cloud/datacatalog/v1/ManagingSystem.java | 192 - .../cloud/datacatalog/v1/MigrationConfig.java | 1056 -- .../v1/MigrationConfigOrBuilder.java | 120 - .../cloud/datacatalog/v1/ModelSpec.java | 797 -- .../datacatalog/v1/ModelSpecOrBuilder.java | 67 - .../v1/ModifyEntryContactsRequest.java | 929 -- .../ModifyEntryContactsRequestOrBuilder.java | 101 - .../v1/ModifyEntryOverviewRequest.java | 932 -- .../ModifyEntryOverviewRequestOrBuilder.java | 101 - .../datacatalog/v1/OrganizationConfig.java | 874 -- .../v1/OrganizationConfigOrBuilder.java | 101 - .../cloud/datacatalog/v1/PersonalDetails.java | 787 -- .../v1/PersonalDetailsOrBuilder.java | 78 - .../cloud/datacatalog/v1/PhysicalSchema.java | 5338 --------- .../v1/PhysicalSchemaOrBuilder.java | 252 - .../datacatalog/v1/PhysicalSchemaProto.java | 161 - .../cloud/datacatalog/v1/PolicyTag.java | 1592 --- .../datacatalog/v1/PolicyTagManagerProto.java | 420 - .../PolicyTagManagerSerializationProto.java | 259 - .../cloud/datacatalog/v1/PolicyTagName.java | 264 - .../datacatalog/v1/PolicyTagOrBuilder.java | 220 - .../datacatalog/v1/ReconcileTagsMetadata.java | 1206 -- .../v1/ReconcileTagsMetadataOrBuilder.java | 122 - .../datacatalog/v1/ReconcileTagsRequest.java | 1501 --- .../v1/ReconcileTagsRequestOrBuilder.java | 173 - .../datacatalog/v1/ReconcileTagsResponse.java | 702 -- .../v1/ReconcileTagsResponseOrBuilder.java | 67 - ...enameTagTemplateFieldEnumValueRequest.java | 828 -- ...emplateFieldEnumValueRequestOrBuilder.java | 86 - .../v1/RenameTagTemplateFieldRequest.java | 813 -- ...enameTagTemplateFieldRequestOrBuilder.java | 86 - .../v1/ReplaceTaxonomyRequest.java | 938 -- .../v1/ReplaceTaxonomyRequestOrBuilder.java | 101 - .../datacatalog/v1/RetrieveConfigRequest.java | 599 - .../v1/RetrieveConfigRequestOrBuilder.java | 54 - .../v1/RetrieveEffectiveConfigRequest.java | 605 - ...trieveEffectiveConfigRequestOrBuilder.java | 54 - .../cloud/datacatalog/v1/RoutineSpec.java | 3510 ------ .../datacatalog/v1/RoutineSpecOrBuilder.java | 238 - .../google/cloud/datacatalog/v1/Schema.java | 989 -- .../cloud/datacatalog/v1/SchemaOrBuilder.java | 99 - .../datacatalog/v1/SchemaOuterClass.java | 172 - .../google/cloud/datacatalog/v1/Search.java | 118 - .../datacatalog/v1/SearchCatalogRequest.java | 3914 ------- .../v1/SearchCatalogRequestOrBuilder.java | 261 - .../datacatalog/v1/SearchCatalogResponse.java | 1583 --- .../v1/SearchCatalogResponseOrBuilder.java | 199 - .../datacatalog/v1/SearchCatalogResult.java | 2794 ----- .../v1/SearchCatalogResultOrBuilder.java | 406 - .../datacatalog/v1/SearchResultType.java | 214 - .../datacatalog/v1/SerializedPolicyTag.java | 1542 --- .../v1/SerializedPolicyTagOrBuilder.java | 173 - .../datacatalog/v1/SerializedTaxonomy.java | 1751 --- .../v1/SerializedTaxonomyOrBuilder.java | 212 - .../cloud/datacatalog/v1/ServiceSpec.java | 840 -- .../datacatalog/v1/ServiceSpecOrBuilder.java | 74 - .../datacatalog/v1/SetConfigRequest.java | 1098 -- .../v1/SetConfigRequestOrBuilder.java | 134 - .../datacatalog/v1/SqlDatabaseSystemSpec.java | 1084 -- .../v1/SqlDatabaseSystemSpecOrBuilder.java | 136 - .../datacatalog/v1/StarEntryRequest.java | 612 - .../v1/StarEntryRequestOrBuilder.java | 58 - .../datacatalog/v1/StarEntryResponse.java | 400 - .../v1/StarEntryResponseOrBuilder.java | 27 - .../datacatalog/v1/StorageProperties.java | 1133 -- .../v1/StoragePropertiesOrBuilder.java | 184 - .../datacatalog/v1/SystemTimestamps.java | 1365 --- .../v1/SystemTimestampsOrBuilder.java | 166 - .../cloud/datacatalog/v1/TableSourceType.java | 216 - .../cloud/datacatalog/v1/TableSpec.java | 651 -- .../datacatalog/v1/TableSpecOrBuilder.java | 70 - .../datacatalog/v1/TableSpecOuterClass.java | 145 - .../com/google/cloud/datacatalog/v1/Tag.java | 2081 ---- .../google/cloud/datacatalog/v1/TagField.java | 2860 ----- .../datacatalog/v1/TagFieldOrBuilder.java | 303 - .../google/cloud/datacatalog/v1/TagName.java | 301 - .../cloud/datacatalog/v1/TagOrBuilder.java | 298 - .../cloud/datacatalog/v1/TagTemplate.java | 1915 ---- .../datacatalog/v1/TagTemplateField.java | 1597 --- .../v1/TagTemplateFieldEnumValueName.java | 312 - .../datacatalog/v1/TagTemplateFieldName.java | 263 - .../v1/TagTemplateFieldOrBuilder.java | 208 - .../datacatalog/v1/TagTemplateMigration.java | 197 - .../cloud/datacatalog/v1/TagTemplateName.java | 230 - .../datacatalog/v1/TagTemplateOrBuilder.java | 265 - .../cloud/datacatalog/v1/TaggedEntry.java | 1953 ---- .../datacatalog/v1/TaggedEntryOrBuilder.java | 209 - .../com/google/cloud/datacatalog/v1/Tags.java | 293 - .../google/cloud/datacatalog/v1/Taxonomy.java | 3249 ------ .../cloud/datacatalog/v1/TaxonomyName.java | 226 - .../datacatalog/v1/TaxonomyOrBuilder.java | 317 - .../cloud/datacatalog/v1/Timestamps.java | 96 - .../datacatalog/v1/UnstarEntryRequest.java | 612 - .../v1/UnstarEntryRequestOrBuilder.java | 58 - .../datacatalog/v1/UnstarEntryResponse.java | 400 - .../v1/UnstarEntryResponseOrBuilder.java | 27 - .../v1/UpdateEntryGroupRequest.java | 1051 -- .../v1/UpdateEntryGroupRequestOrBuilder.java | 120 - .../datacatalog/v1/UpdateEntryRequest.java | 1316 --- .../v1/UpdateEntryRequestOrBuilder.java | 189 - .../v1/UpdatePolicyTagRequest.java | 1050 -- .../v1/UpdatePolicyTagRequestOrBuilder.java | 120 - .../datacatalog/v1/UpdateTagRequest.java | 1040 -- .../v1/UpdateTagRequestOrBuilder.java | 120 - .../v1/UpdateTagTemplateFieldRequest.java | 1406 --- ...pdateTagTemplateFieldRequestOrBuilder.java | 186 - .../v1/UpdateTagTemplateRequest.java | 1100 -- .../v1/UpdateTagTemplateRequestOrBuilder.java | 132 - .../datacatalog/v1/UpdateTaxonomyRequest.java | 1038 -- .../v1/UpdateTaxonomyRequestOrBuilder.java | 117 - .../google/cloud/datacatalog/v1/Usage.java | 162 - .../cloud/datacatalog/v1/UsageSignal.java | 1820 --- .../datacatalog/v1/UsageSignalOrBuilder.java | 267 - .../cloud/datacatalog/v1/UsageStats.java | 821 -- .../datacatalog/v1/UsageStatsOrBuilder.java | 80 - .../datacatalog/v1/VertexDatasetSpec.java | 1080 -- .../v1/VertexDatasetSpecOrBuilder.java | 68 - .../datacatalog/v1/VertexModelSourceInfo.java | 976 -- .../v1/VertexModelSourceInfoOrBuilder.java | 71 - .../cloud/datacatalog/v1/VertexModelSpec.java | 1587 --- .../v1/VertexModelSpecOrBuilder.java | 204 - .../google/cloud/datacatalog/v1/ViewSpec.java | 594 - .../datacatalog/v1/ViewSpecOrBuilder.java | 54 - .../cloud/datacatalog/v1/bigquery.proto | 81 - .../google/cloud/datacatalog/v1/common.proto | 81 - .../cloud/datacatalog/v1/data_source.proto | 86 - .../cloud/datacatalog/v1/datacatalog.proto | 2457 ---- .../cloud/datacatalog/v1/dataplex_spec.proto | 89 - .../cloud/datacatalog/v1/dump_content.proto | 55 - .../datacatalog/v1/gcs_fileset_spec.proto | 80 - .../datacatalog/v1/physical_schema.proto | 76 - .../datacatalog/v1/policytagmanager.proto | 506 - .../v1/policytagmanagerserialization.proto | 229 - .../google/cloud/datacatalog/v1/schema.proto | 148 - .../google/cloud/datacatalog/v1/search.proto | 119 - .../cloud/datacatalog/v1/table_spec.proto | 114 - .../google/cloud/datacatalog/v1/tags.proto | 307 - .../cloud/datacatalog/v1/timestamps.proto | 48 - .../google/cloud/datacatalog/v1/usage.proto | 83 - .../clirr-ignored-differences.xml | 80 - .../pom.xml | 37 - .../v1beta1/BigQueryDateShardedSpec.java | 940 -- .../BigQueryDateShardedSpecOrBuilder.java | 107 - .../v1beta1/BigQueryTableSpec.java | 1306 --- .../v1beta1/BigQueryTableSpecOrBuilder.java | 140 - .../datacatalog/v1beta1/ColumnSchema.java | 1773 --- .../v1beta1/ColumnSchemaOrBuilder.java | 207 - .../cloud/datacatalog/v1beta1/Common.java | 72 - .../v1beta1/CreateEntryGroupRequest.java | 1149 -- .../CreateEntryGroupRequestOrBuilder.java | 135 - .../v1beta1/CreateEntryRequest.java | 1152 -- .../v1beta1/CreateEntryRequestOrBuilder.java | 137 - .../v1beta1/CreatePolicyTagRequest.java | 906 -- .../CreatePolicyTagRequestOrBuilder.java | 95 - .../datacatalog/v1beta1/CreateTagRequest.java | 966 -- .../v1beta1/CreateTagRequestOrBuilder.java | 112 - .../CreateTagTemplateFieldRequest.java | 1200 -- ...reateTagTemplateFieldRequestOrBuilder.java | 145 - .../v1beta1/CreateTagTemplateRequest.java | 1160 -- .../CreateTagTemplateRequestOrBuilder.java | 137 - .../v1beta1/CreateTaxonomyRequest.java | 906 -- .../CreateTaxonomyRequestOrBuilder.java | 95 - .../datacatalog/v1beta1/Datacatalog.java | 841 -- .../v1beta1/DeleteEntryGroupRequest.java | 721 -- .../DeleteEntryGroupRequestOrBuilder.java | 73 - .../v1beta1/DeleteEntryRequest.java | 627 -- .../v1beta1/DeleteEntryRequestOrBuilder.java | 62 - .../v1beta1/DeletePolicyTagRequest.java | 620 - .../DeletePolicyTagRequestOrBuilder.java | 60 - .../datacatalog/v1beta1/DeleteTagRequest.java | 627 -- .../v1beta1/DeleteTagRequestOrBuilder.java | 62 - .../DeleteTagTemplateFieldRequest.java | 743 -- ...eleteTagTemplateFieldRequestOrBuilder.java | 77 - .../v1beta1/DeleteTagTemplateRequest.java | 736 -- .../DeleteTagTemplateRequestOrBuilder.java | 77 - .../v1beta1/DeleteTaxonomyRequest.java | 620 - .../DeleteTaxonomyRequestOrBuilder.java | 60 - .../cloud/datacatalog/v1beta1/Entry.java | 4586 -------- .../cloud/datacatalog/v1beta1/EntryGroup.java | 1373 --- .../datacatalog/v1beta1/EntryGroupName.java | 226 - .../v1beta1/EntryGroupOrBuilder.java | 169 - .../cloud/datacatalog/v1beta1/EntryName.java | 262 - .../datacatalog/v1beta1/EntryOrBuilder.java | 652 -- .../cloud/datacatalog/v1beta1/EntryType.java | 247 - .../v1beta1/ExportTaxonomiesRequest.java | 1161 -- .../ExportTaxonomiesRequestOrBuilder.java | 150 - .../v1beta1/ExportTaxonomiesResponse.java | 946 -- .../ExportTaxonomiesResponseOrBuilder.java | 85 - .../cloud/datacatalog/v1beta1/FieldName.java | 242 - .../cloud/datacatalog/v1beta1/FieldType.java | 2686 ----- .../v1beta1/FieldTypeOrBuilder.java | 106 - .../datacatalog/v1beta1/GcsFileSpec.java | 1014 -- .../v1beta1/GcsFileSpecOrBuilder.java | 110 - .../datacatalog/v1beta1/GcsFilesetSpec.java | 1648 --- .../v1beta1/GcsFilesetSpecOrBuilder.java | 262 - .../v1beta1/GcsFilesetSpecOuterClass.java | 113 - .../v1beta1/GetEntryGroupRequest.java | 904 -- .../GetEntryGroupRequestOrBuilder.java | 97 - .../datacatalog/v1beta1/GetEntryRequest.java | 626 -- .../v1beta1/GetEntryRequestOrBuilder.java | 62 - .../v1beta1/GetPolicyTagRequest.java | 613 - .../v1beta1/GetPolicyTagRequestOrBuilder.java | 58 - .../v1beta1/GetTagTemplateRequest.java | 627 -- .../GetTagTemplateRequestOrBuilder.java | 62 - .../v1beta1/GetTaxonomyRequest.java | 613 - .../v1beta1/GetTaxonomyRequestOrBuilder.java | 58 - .../v1beta1/ImportTaxonomiesRequest.java | 1014 -- .../ImportTaxonomiesRequestOrBuilder.java | 99 - .../v1beta1/ImportTaxonomiesResponse.java | 932 -- .../ImportTaxonomiesResponseOrBuilder.java | 84 - .../datacatalog/v1beta1/InlineSource.java | 985 -- .../v1beta1/InlineSourceOrBuilder.java | 95 - .../datacatalog/v1beta1/IntegratedSystem.java | 192 - .../v1beta1/ListEntriesRequest.java | 1251 --- .../v1beta1/ListEntriesRequestOrBuilder.java | 152 - .../v1beta1/ListEntriesResponse.java | 1121 -- .../v1beta1/ListEntriesResponseOrBuilder.java | 112 - .../v1beta1/ListEntryGroupsRequest.java | 931 -- .../ListEntryGroupsRequestOrBuilder.java | 106 - .../v1beta1/ListEntryGroupsResponse.java | 1134 -- .../ListEntryGroupsResponseOrBuilder.java | 112 - .../v1beta1/ListPolicyTagsRequest.java | 910 -- .../ListPolicyTagsRequestOrBuilder.java | 100 - .../v1beta1/ListPolicyTagsResponse.java | 1124 -- .../ListPolicyTagsResponseOrBuilder.java | 112 - .../datacatalog/v1beta1/ListTagsRequest.java | 954 -- .../v1beta1/ListTagsRequestOrBuilder.java | 113 - .../datacatalog/v1beta1/ListTagsResponse.java | 1120 -- .../v1beta1/ListTagsResponseOrBuilder.java | 112 - .../v1beta1/ListTaxonomiesRequest.java | 1106 -- .../ListTaxonomiesRequestOrBuilder.java | 128 - .../v1beta1/ListTaxonomiesResponse.java | 1124 -- .../ListTaxonomiesResponseOrBuilder.java | 112 - .../datacatalog/v1beta1/LocationName.java | 195 - .../v1beta1/LookupEntryRequest.java | 1146 -- .../v1beta1/LookupEntryRequestOrBuilder.java | 165 - .../datacatalog/v1beta1/ManagingSystem.java | 192 - .../cloud/datacatalog/v1beta1/PolicyTag.java | 1555 --- .../v1beta1/PolicyTagManagerProto.java | 422 - .../PolicyTagManagerSerializationProto.java | 219 - .../datacatalog/v1beta1/PolicyTagName.java | 264 - .../v1beta1/PolicyTagOrBuilder.java | 214 - ...enameTagTemplateFieldEnumValueRequest.java | 853 -- ...emplateFieldEnumValueRequestOrBuilder.java | 90 - .../RenameTagTemplateFieldRequest.java | 834 -- ...enameTagTemplateFieldRequestOrBuilder.java | 90 - .../cloud/datacatalog/v1beta1/Schema.java | 994 -- .../datacatalog/v1beta1/SchemaOrBuilder.java | 99 - .../datacatalog/v1beta1/SchemaOuterClass.java | 111 - .../cloud/datacatalog/v1beta1/Search.java | 101 - .../v1beta1/SearchCatalogRequest.java | 3827 ------- .../SearchCatalogRequestOrBuilder.java | 220 - .../v1beta1/SearchCatalogResponse.java | 1557 --- .../SearchCatalogResponseOrBuilder.java | 189 - .../v1beta1/SearchCatalogResult.java | 1513 --- .../v1beta1/SearchCatalogResultOrBuilder.java | 193 - .../datacatalog/v1beta1/SearchResultType.java | 214 - .../v1beta1/SerializedPolicyTag.java | 1571 --- .../v1beta1/SerializedPolicyTagOrBuilder.java | 178 - .../v1beta1/SerializedTaxonomy.java | 1784 --- .../v1beta1/SerializedTaxonomyOrBuilder.java | 221 - .../datacatalog/v1beta1/SystemTimestamps.java | 1282 --- .../v1beta1/SystemTimestampsOrBuilder.java | 145 - .../datacatalog/v1beta1/TableSourceType.java | 216 - .../cloud/datacatalog/v1beta1/TableSpec.java | 637 -- .../v1beta1/TableSpecOrBuilder.java | 66 - .../v1beta1/TableSpecOuterClass.java | 146 - .../google/cloud/datacatalog/v1beta1/Tag.java | 1914 ---- .../cloud/datacatalog/v1beta1/TagField.java | 2552 ----- .../v1beta1/TagFieldOrBuilder.java | 242 - .../cloud/datacatalog/v1beta1/TagName.java | 301 - .../datacatalog/v1beta1/TagOrBuilder.java | 268 - .../datacatalog/v1beta1/TagTemplate.java | 1730 --- .../datacatalog/v1beta1/TagTemplateField.java | 1552 --- .../TagTemplateFieldEnumValueName.java | 312 - .../v1beta1/TagTemplateFieldName.java | 263 - .../v1beta1/TagTemplateFieldOrBuilder.java | 194 - .../datacatalog/v1beta1/TagTemplateName.java | 230 - .../v1beta1/TagTemplateOrBuilder.java | 231 - .../cloud/datacatalog/v1beta1/Tags.java | 279 - .../cloud/datacatalog/v1beta1/Taxonomy.java | 3206 ------ .../datacatalog/v1beta1/TaxonomyName.java | 226 - .../v1beta1/TaxonomyOrBuilder.java | 313 - .../cloud/datacatalog/v1beta1/Timestamps.java | 97 - .../v1beta1/UpdateEntryGroupRequest.java | 1056 -- .../UpdateEntryGroupRequestOrBuilder.java | 120 - .../v1beta1/UpdateEntryRequest.java | 1277 --- .../v1beta1/UpdateEntryRequestOrBuilder.java | 177 - .../v1beta1/UpdatePolicyTagRequest.java | 1063 -- .../UpdatePolicyTagRequestOrBuilder.java | 123 - .../datacatalog/v1beta1/UpdateTagRequest.java | 1074 -- .../v1beta1/UpdateTagRequestOrBuilder.java | 126 - .../UpdateTagTemplateFieldRequest.java | 1431 --- ...pdateTagTemplateFieldRequestOrBuilder.java | 190 - .../v1beta1/UpdateTagTemplateRequest.java | 1069 -- .../UpdateTagTemplateRequestOrBuilder.java | 123 - .../v1beta1/UpdateTaxonomyRequest.java | 1027 -- .../UpdateTaxonomyRequestOrBuilder.java | 114 - .../cloud/datacatalog/v1beta1/Usage.java | 123 - .../datacatalog/v1beta1/UsageSignal.java | 1183 -- .../v1beta1/UsageSignalOrBuilder.java | 146 - .../cloud/datacatalog/v1beta1/UsageStats.java | 824 -- .../v1beta1/UsageStatsOrBuilder.java | 82 - .../cloud/datacatalog/v1beta1/ViewSpec.java | 595 - .../v1beta1/ViewSpecOrBuilder.java | 54 - .../cloud/datacatalog/v1beta1/common.proto | 50 - .../datacatalog/v1beta1/datacatalog.proto | 1346 --- .../v1beta1/gcs_fileset_spec.proto | 78 - .../v1beta1/policytagmanager.proto | 452 - .../policytagmanagerserialization.proto | 169 - .../cloud/datacatalog/v1beta1/schema.proto | 55 - .../cloud/datacatalog/v1beta1/search.proto | 73 - .../datacatalog/v1beta1/table_spec.proto | 105 - .../cloud/datacatalog/v1beta1/tags.proto | 250 - .../datacatalog/v1beta1/timestamps.proto | 41 - .../cloud/datacatalog/v1beta1/usage.proto | 59 - .../SyncCreateSetCredentialsProvider.java | 44 - .../create/SyncCreateSetEndpoint.java | 41 - .../SyncCreateUseHttpJsonTransport.java | 39 - .../createentry/AsyncCreateEntry.java | 51 - .../createentry/SyncCreateEntry.java | 48 - ...cCreateEntryEntrygroupnameStringEntry.java | 44 - .../SyncCreateEntryStringStringEntry.java | 44 - .../AsyncCreateEntryGroup.java | 52 - .../SyncCreateEntryGroup.java | 48 - ...ntryGroupLocationnameStringEntrygroup.java | 44 - ...reateEntryGroupStringStringEntrygroup.java | 44 - .../datacatalog/createtag/AsyncCreateTag.java | 51 - .../datacatalog/createtag/SyncCreateTag.java | 48 - .../createtag/SyncCreateTagEntrynameTag.java | 43 - .../createtag/SyncCreateTagStringTag.java | 44 - .../AsyncCreateTagTemplate.java | 52 - .../SyncCreateTagTemplate.java | 48 - ...TemplateLocationnameStringTagtemplate.java | 45 - ...ateTagTemplateStringStringTagtemplate.java | 45 - .../AsyncCreateTagTemplateField.java | 52 - .../SyncCreateTagTemplateField.java | 48 - ...lateFieldStringStringTagtemplatefield.java | 45 - ...TagtemplatenameStringTagtemplatefield.java | 46 - .../deleteentry/AsyncDeleteEntry.java | 50 - .../deleteentry/SyncDeleteEntry.java | 47 - .../deleteentry/SyncDeleteEntryEntryname.java | 42 - .../deleteentry/SyncDeleteEntryString.java | 42 - .../AsyncDeleteEntryGroup.java | 50 - .../SyncDeleteEntryGroup.java | 47 - .../SyncDeleteEntryGroupEntrygroupname.java | 42 - .../SyncDeleteEntryGroupString.java | 42 - .../datacatalog/deletetag/AsyncDeleteTag.java | 50 - .../datacatalog/deletetag/SyncDeleteTag.java | 47 - .../deletetag/SyncDeleteTagEntryname.java | 42 - .../deletetag/SyncDeleteTagString.java | 42 - .../AsyncDeleteTagTemplate.java | 50 - .../SyncDeleteTagTemplate.java | 47 - .../SyncDeleteTagTemplateStringBoolean.java | 43 - ...leteTagTemplateTagtemplatenameBoolean.java | 43 - .../AsyncDeleteTagTemplateField.java | 53 - .../SyncDeleteTagTemplateField.java | 49 - ...ncDeleteTagTemplateFieldStringBoolean.java | 45 - ...plateFieldTagtemplatefieldnameBoolean.java | 44 - .../datacatalog/getentry/AsyncGetEntry.java | 50 - .../v1/datacatalog/getentry/SyncGetEntry.java | 47 - .../getentry/SyncGetEntryEntryname.java | 42 - .../getentry/SyncGetEntryString.java | 42 - .../getentrygroup/AsyncGetEntryGroup.java | 51 - .../getentrygroup/SyncGetEntryGroup.java | 48 - .../SyncGetEntryGroupEntrygroupname.java | 42 - ...cGetEntryGroupEntrygroupnameFieldmask.java | 44 - .../SyncGetEntryGroupString.java | 42 - .../SyncGetEntryGroupStringFieldmask.java | 44 - .../getiampolicy/AsyncGetIamPolicy.java | 52 - .../getiampolicy/SyncGetIamPolicy.java | 49 - .../SyncGetIamPolicyResourcename.java | 43 - .../getiampolicy/SyncGetIamPolicyString.java | 43 - .../gettagtemplate/AsyncGetTagTemplate.java | 50 - .../gettagtemplate/SyncGetTagTemplate.java | 46 - .../SyncGetTagTemplateString.java | 42 - .../SyncGetTagTemplateTagtemplatename.java | 42 - .../importentries/AsyncImportEntries.java | 50 - .../importentries/AsyncImportEntriesLRO.java | 52 - .../importentries/SyncImportEntries.java | 47 - .../listentries/AsyncListEntries.java | 55 - .../listentries/AsyncListEntriesPaged.java | 63 - .../listentries/SyncListEntries.java | 52 - .../SyncListEntriesEntrygroupname.java | 44 - .../listentries/SyncListEntriesString.java | 44 - .../listentrygroups/AsyncListEntryGroups.java | 54 - .../AsyncListEntryGroupsPaged.java | 62 - .../listentrygroups/SyncListEntryGroups.java | 50 - .../SyncListEntryGroupsLocationname.java | 44 - .../SyncListEntryGroupsString.java | 44 - .../datacatalog/listtags/AsyncListTags.java | 54 - .../listtags/AsyncListTagsPaged.java | 62 - .../v1/datacatalog/listtags/SyncListTags.java | 51 - .../listtags/SyncListTagsEntryname.java | 44 - .../listtags/SyncListTagsString.java | 45 - .../lookupentry/AsyncLookupEntry.java | 49 - .../lookupentry/SyncLookupEntry.java | 46 - .../AsyncModifyEntryContacts.java | 52 - .../SyncModifyEntryContacts.java | 48 - .../AsyncModifyEntryOverview.java | 52 - .../SyncModifyEntryOverview.java | 48 - .../reconciletags/AsyncReconcileTags.java | 57 - .../reconciletags/AsyncReconcileTagsLRO.java | 59 - .../reconciletags/SyncReconcileTags.java | 54 - .../AsyncRenameTagTemplateField.java | 53 - .../SyncRenameTagTemplateField.java | 49 - ...yncRenameTagTemplateFieldStringString.java | 46 - ...mplateFieldTagtemplatefieldnameString.java | 45 - .../AsyncRenameTagTemplateFieldEnumValue.java | 58 - .../SyncRenameTagTemplateFieldEnumValue.java | 54 - ...TagTemplateFieldEnumValueStringString.java | 51 - ...ueTagtemplatefieldenumvaluenameString.java | 51 - .../retrieveconfig/AsyncRetrieveConfig.java | 47 - .../retrieveconfig/SyncRetrieveConfig.java | 43 - .../AsyncRetrieveEffectiveConfig.java | 47 - .../SyncRetrieveEffectiveConfig.java | 43 - .../searchcatalog/AsyncSearchCatalog.java | 56 - .../AsyncSearchCatalogPaged.java | 63 - .../searchcatalog/SyncSearchCatalog.java | 52 - ...atalogSearchcatalogrequestscopeString.java | 46 - .../datacatalog/setconfig/AsyncSetConfig.java | 45 - .../datacatalog/setconfig/SyncSetConfig.java | 42 - .../setiampolicy/AsyncSetIamPolicy.java | 52 - .../setiampolicy/SyncSetIamPolicy.java | 49 - .../SyncSetIamPolicyResourcenamePolicy.java | 44 - .../SyncSetIamPolicyStringPolicy.java | 44 - .../datacatalog/starentry/AsyncStarEntry.java | 51 - .../datacatalog/starentry/SyncStarEntry.java | 47 - .../starentry/SyncStarEntryEntryname.java | 42 - .../starentry/SyncStarEntryString.java | 42 - .../AsyncTestIamPermissions.java | 53 - .../SyncTestIamPermissions.java | 49 - .../unstarentry/AsyncUnstarEntry.java | 51 - .../unstarentry/SyncUnstarEntry.java | 47 - .../unstarentry/SyncUnstarEntryEntryname.java | 42 - .../unstarentry/SyncUnstarEntryString.java | 42 - .../updateentry/AsyncUpdateEntry.java | 50 - .../updateentry/SyncUpdateEntry.java | 47 - .../updateentry/SyncUpdateEntryEntry.java | 41 - .../SyncUpdateEntryEntryFieldmask.java | 43 - .../AsyncUpdateEntryGroup.java | 51 - .../SyncUpdateEntryGroup.java | 47 - .../SyncUpdateEntryGroupEntrygroup.java | 41 - ...ncUpdateEntryGroupEntrygroupFieldmask.java | 43 - .../datacatalog/updatetag/AsyncUpdateTag.java | 50 - .../datacatalog/updatetag/SyncUpdateTag.java | 47 - .../updatetag/SyncUpdateTagTag.java | 41 - .../updatetag/SyncUpdateTagTagFieldmask.java | 43 - .../AsyncUpdateTagTemplate.java | 51 - .../SyncUpdateTagTemplate.java | 47 - .../SyncUpdateTagTemplateTagtemplate.java | 41 - ...UpdateTagTemplateTagtemplateFieldmask.java | 43 - .../AsyncUpdateTagTemplateField.java | 55 - .../SyncUpdateTagTemplateField.java | 51 - ...agTemplateFieldStringTagtemplatefield.java | 45 - ...eFieldStringTagtemplatefieldFieldmask.java | 48 - ...dTagtemplatefieldnameTagtemplatefield.java | 45 - ...atefieldnameTagtemplatefieldFieldmask.java | 48 - .../SyncCreateEntryGroup.java | 55 - .../reconciletags/SyncReconcileTags.java | 53 - .../SyncCreateSetCredentialsProvider.java | 45 - .../create/SyncCreateSetEndpoint.java | 42 - .../SyncCreateUseHttpJsonTransport.java | 41 - .../createpolicytag/AsyncCreatePolicyTag.java | 51 - .../createpolicytag/SyncCreatePolicyTag.java | 47 - .../SyncCreatePolicyTagStringPolicytag.java | 43 - ...cCreatePolicyTagTaxonomynamePolicytag.java | 43 - .../createtaxonomy/AsyncCreateTaxonomy.java | 51 - .../createtaxonomy/SyncCreateTaxonomy.java | 47 - ...yncCreateTaxonomyLocationnameTaxonomy.java | 43 - .../SyncCreateTaxonomyStringTaxonomy.java | 43 - .../deletepolicytag/AsyncDeletePolicyTag.java | 52 - .../deletepolicytag/SyncDeletePolicyTag.java | 48 - .../SyncDeletePolicyTagPolicytagname.java | 43 - .../SyncDeletePolicyTagString.java | 43 - .../deletetaxonomy/AsyncDeleteTaxonomy.java | 49 - .../deletetaxonomy/SyncDeleteTaxonomy.java | 46 - .../SyncDeleteTaxonomyString.java | 42 - .../SyncDeleteTaxonomyTaxonomyname.java | 42 - .../getiampolicy/AsyncGetIamPolicy.java | 53 - .../getiampolicy/SyncGetIamPolicy.java | 50 - .../getpolicytag/AsyncGetPolicyTag.java | 52 - .../getpolicytag/SyncGetPolicyTag.java | 48 - .../SyncGetPolicyTagPolicytagname.java | 43 - .../getpolicytag/SyncGetPolicyTagString.java | 43 - .../gettaxonomy/AsyncGetTaxonomy.java | 49 - .../gettaxonomy/SyncGetTaxonomy.java | 46 - .../gettaxonomy/SyncGetTaxonomyString.java | 42 - .../SyncGetTaxonomyTaxonomyname.java | 42 - .../listpolicytags/AsyncListPolicyTags.java | 54 - .../AsyncListPolicyTagsPaged.java | 62 - .../listpolicytags/SyncListPolicyTags.java | 50 - .../SyncListPolicyTagsString.java | 44 - .../SyncListPolicyTagsTaxonomyname.java | 44 - .../listtaxonomies/AsyncListTaxonomies.java | 55 - .../AsyncListTaxonomiesPaged.java | 63 - .../listtaxonomies/SyncListTaxonomies.java | 51 - .../SyncListTaxonomiesLocationname.java | 44 - .../SyncListTaxonomiesString.java | 44 - .../setiampolicy/AsyncSetIamPolicy.java | 54 - .../setiampolicy/SyncSetIamPolicy.java | 51 - .../AsyncTestIamPermissions.java | 54 - .../SyncTestIamPermissions.java | 50 - .../updatepolicytag/AsyncUpdatePolicyTag.java | 51 - .../updatepolicytag/SyncUpdatePolicyTag.java | 47 - .../SyncUpdatePolicyTagPolicytag.java | 41 - .../updatetaxonomy/AsyncUpdateTaxonomy.java | 51 - .../updatetaxonomy/SyncUpdateTaxonomy.java | 47 - .../SyncUpdateTaxonomyTaxonomy.java | 41 - .../SyncCreateSetCredentialsProvider.java | 45 - .../create/SyncCreateSetEndpoint.java | 42 - .../SyncCreateUseHttpJsonTransport.java | 41 - .../AsyncExportTaxonomies.java | 53 - .../SyncExportTaxonomies.java | 50 - .../AsyncImportTaxonomies.java | 51 - .../SyncImportTaxonomies.java | 48 - .../replacetaxonomy/AsyncReplaceTaxonomy.java | 53 - .../replacetaxonomy/SyncReplaceTaxonomy.java | 49 - .../replacetaxonomy/SyncReplaceTaxonomy.java | 57 - .../createtaxonomy/SyncCreateTaxonomy.java | 56 - .../SyncCreateEntryGroup.java | 56 - .../reconciletags/SyncReconcileTags.java | 54 - .../replacetaxonomy/SyncReplaceTaxonomy.java | 57 - .../createtaxonomy/SyncCreateTaxonomy.java | 56 - .../SyncCreateSetCredentialsProvider.java | 44 - .../create/SyncCreateSetEndpoint.java | 41 - .../SyncCreateUseHttpJsonTransport.java | 39 - .../createentry/AsyncCreateEntry.java | 51 - .../createentry/SyncCreateEntry.java | 48 - ...cCreateEntryEntrygroupnameStringEntry.java | 44 - .../SyncCreateEntryStringStringEntry.java | 44 - .../AsyncCreateEntryGroup.java | 52 - .../SyncCreateEntryGroup.java | 48 - ...ntryGroupLocationnameStringEntrygroup.java | 44 - ...reateEntryGroupStringStringEntrygroup.java | 44 - .../datacatalog/createtag/AsyncCreateTag.java | 51 - .../datacatalog/createtag/SyncCreateTag.java | 48 - .../createtag/SyncCreateTagEntrynameTag.java | 43 - .../createtag/SyncCreateTagStringTag.java | 44 - .../AsyncCreateTagTemplate.java | 52 - .../SyncCreateTagTemplate.java | 48 - ...TemplateLocationnameStringTagtemplate.java | 45 - ...ateTagTemplateStringStringTagtemplate.java | 45 - .../AsyncCreateTagTemplateField.java | 52 - .../SyncCreateTagTemplateField.java | 48 - ...lateFieldStringStringTagtemplatefield.java | 45 - ...TagtemplatenameStringTagtemplatefield.java | 46 - .../deleteentry/AsyncDeleteEntry.java | 50 - .../deleteentry/SyncDeleteEntry.java | 47 - .../deleteentry/SyncDeleteEntryEntryname.java | 42 - .../deleteentry/SyncDeleteEntryString.java | 42 - .../AsyncDeleteEntryGroup.java | 50 - .../SyncDeleteEntryGroup.java | 47 - .../SyncDeleteEntryGroupEntrygroupname.java | 42 - .../SyncDeleteEntryGroupString.java | 42 - .../datacatalog/deletetag/AsyncDeleteTag.java | 50 - .../datacatalog/deletetag/SyncDeleteTag.java | 47 - .../deletetag/SyncDeleteTagEntryname.java | 42 - .../deletetag/SyncDeleteTagString.java | 42 - .../AsyncDeleteTagTemplate.java | 50 - .../SyncDeleteTagTemplate.java | 47 - .../SyncDeleteTagTemplateStringBoolean.java | 43 - ...leteTagTemplateTagtemplatenameBoolean.java | 43 - .../AsyncDeleteTagTemplateField.java | 53 - .../SyncDeleteTagTemplateField.java | 49 - ...ncDeleteTagTemplateFieldStringBoolean.java | 45 - ...plateFieldTagtemplatefieldnameBoolean.java | 44 - .../datacatalog/getentry/AsyncGetEntry.java | 50 - .../datacatalog/getentry/SyncGetEntry.java | 47 - .../getentry/SyncGetEntryEntryname.java | 42 - .../getentry/SyncGetEntryString.java | 42 - .../getentrygroup/AsyncGetEntryGroup.java | 51 - .../getentrygroup/SyncGetEntryGroup.java | 48 - .../SyncGetEntryGroupEntrygroupname.java | 42 - ...cGetEntryGroupEntrygroupnameFieldmask.java | 44 - .../SyncGetEntryGroupString.java | 42 - .../SyncGetEntryGroupStringFieldmask.java | 44 - .../getiampolicy/AsyncGetIamPolicy.java | 52 - .../getiampolicy/SyncGetIamPolicy.java | 49 - .../SyncGetIamPolicyResourcename.java | 43 - .../getiampolicy/SyncGetIamPolicyString.java | 43 - .../gettagtemplate/AsyncGetTagTemplate.java | 50 - .../gettagtemplate/SyncGetTagTemplate.java | 46 - .../SyncGetTagTemplateString.java | 42 - .../SyncGetTagTemplateTagtemplatename.java | 42 - .../listentries/AsyncListEntries.java | 55 - .../listentries/AsyncListEntriesPaged.java | 63 - .../listentries/SyncListEntries.java | 52 - .../SyncListEntriesEntrygroupname.java | 44 - .../listentries/SyncListEntriesString.java | 44 - .../listentrygroups/AsyncListEntryGroups.java | 54 - .../AsyncListEntryGroupsPaged.java | 62 - .../listentrygroups/SyncListEntryGroups.java | 50 - .../SyncListEntryGroupsLocationname.java | 44 - .../SyncListEntryGroupsString.java | 44 - .../datacatalog/listtags/AsyncListTags.java | 54 - .../listtags/AsyncListTagsPaged.java | 62 - .../datacatalog/listtags/SyncListTags.java | 51 - .../listtags/SyncListTagsEntryname.java | 44 - .../listtags/SyncListTagsString.java | 45 - .../lookupentry/AsyncLookupEntry.java | 45 - .../lookupentry/SyncLookupEntry.java | 42 - .../AsyncRenameTagTemplateField.java | 53 - .../SyncRenameTagTemplateField.java | 49 - ...yncRenameTagTemplateFieldStringString.java | 46 - ...mplateFieldTagtemplatefieldnameString.java | 45 - .../AsyncRenameTagTemplateFieldEnumValue.java | 58 - .../SyncRenameTagTemplateFieldEnumValue.java | 54 - ...TagTemplateFieldEnumValueStringString.java | 51 - ...ueTagtemplatefieldenumvaluenameString.java | 51 - .../searchcatalog/AsyncSearchCatalog.java | 55 - .../AsyncSearchCatalogPaged.java | 62 - .../searchcatalog/SyncSearchCatalog.java | 51 - ...atalogSearchcatalogrequestscopeString.java | 46 - .../setiampolicy/AsyncSetIamPolicy.java | 52 - .../setiampolicy/SyncSetIamPolicy.java | 49 - .../SyncSetIamPolicyResourcenamePolicy.java | 44 - .../SyncSetIamPolicyStringPolicy.java | 44 - .../AsyncTestIamPermissions.java | 53 - .../SyncTestIamPermissions.java | 49 - .../updateentry/AsyncUpdateEntry.java | 50 - .../updateentry/SyncUpdateEntry.java | 47 - .../updateentry/SyncUpdateEntryEntry.java | 41 - .../SyncUpdateEntryEntryFieldmask.java | 43 - .../AsyncUpdateEntryGroup.java | 51 - .../SyncUpdateEntryGroup.java | 47 - .../SyncUpdateEntryGroupEntrygroup.java | 41 - ...ncUpdateEntryGroupEntrygroupFieldmask.java | 43 - .../datacatalog/updatetag/AsyncUpdateTag.java | 50 - .../datacatalog/updatetag/SyncUpdateTag.java | 47 - .../updatetag/SyncUpdateTagTag.java | 41 - .../updatetag/SyncUpdateTagTagFieldmask.java | 43 - .../AsyncUpdateTagTemplate.java | 51 - .../SyncUpdateTagTemplate.java | 47 - .../SyncUpdateTagTemplateTagtemplate.java | 41 - ...UpdateTagTemplateTagtemplateFieldmask.java | 43 - .../AsyncUpdateTagTemplateField.java | 55 - .../SyncUpdateTagTemplateField.java | 51 - ...agTemplateFieldStringTagtemplatefield.java | 45 - ...eFieldStringTagtemplatefieldFieldmask.java | 48 - ...dTagtemplatefieldnameTagtemplatefield.java | 45 - ...atefieldnameTagtemplatefieldFieldmask.java | 48 - .../SyncCreateEntryGroup.java | 55 - .../SyncCreateSetCredentialsProvider.java | 45 - .../create/SyncCreateSetEndpoint.java | 42 - .../SyncCreateUseHttpJsonTransport.java | 41 - .../createpolicytag/AsyncCreatePolicyTag.java | 51 - .../createpolicytag/SyncCreatePolicyTag.java | 47 - .../SyncCreatePolicyTagStringPolicytag.java | 43 - ...cCreatePolicyTagTaxonomynamePolicytag.java | 43 - .../createtaxonomy/AsyncCreateTaxonomy.java | 51 - .../createtaxonomy/SyncCreateTaxonomy.java | 47 - ...yncCreateTaxonomyLocationnameTaxonomy.java | 43 - .../SyncCreateTaxonomyStringTaxonomy.java | 43 - .../deletepolicytag/AsyncDeletePolicyTag.java | 52 - .../deletepolicytag/SyncDeletePolicyTag.java | 48 - .../SyncDeletePolicyTagPolicytagname.java | 43 - .../SyncDeletePolicyTagString.java | 43 - .../deletetaxonomy/AsyncDeleteTaxonomy.java | 49 - .../deletetaxonomy/SyncDeleteTaxonomy.java | 46 - .../SyncDeleteTaxonomyString.java | 42 - .../SyncDeleteTaxonomyTaxonomyname.java | 42 - .../getiampolicy/AsyncGetIamPolicy.java | 53 - .../getiampolicy/SyncGetIamPolicy.java | 50 - .../getpolicytag/AsyncGetPolicyTag.java | 52 - .../getpolicytag/SyncGetPolicyTag.java | 48 - .../SyncGetPolicyTagPolicytagname.java | 43 - .../getpolicytag/SyncGetPolicyTagString.java | 43 - .../gettaxonomy/AsyncGetTaxonomy.java | 49 - .../gettaxonomy/SyncGetTaxonomy.java | 46 - .../gettaxonomy/SyncGetTaxonomyString.java | 42 - .../SyncGetTaxonomyTaxonomyname.java | 42 - .../listpolicytags/AsyncListPolicyTags.java | 54 - .../AsyncListPolicyTagsPaged.java | 62 - .../listpolicytags/SyncListPolicyTags.java | 50 - .../SyncListPolicyTagsString.java | 44 - .../SyncListPolicyTagsTaxonomyname.java | 44 - .../listtaxonomies/AsyncListTaxonomies.java | 55 - .../AsyncListTaxonomiesPaged.java | 63 - .../listtaxonomies/SyncListTaxonomies.java | 51 - .../SyncListTaxonomiesLocationname.java | 44 - .../SyncListTaxonomiesString.java | 44 - .../setiampolicy/AsyncSetIamPolicy.java | 54 - .../setiampolicy/SyncSetIamPolicy.java | 51 - .../AsyncTestIamPermissions.java | 54 - .../SyncTestIamPermissions.java | 50 - .../updatepolicytag/AsyncUpdatePolicyTag.java | 51 - .../updatepolicytag/SyncUpdatePolicyTag.java | 47 - .../SyncUpdatePolicyTagPolicytag.java | 41 - .../updatetaxonomy/AsyncUpdateTaxonomy.java | 51 - .../updatetaxonomy/SyncUpdateTaxonomy.java | 47 - .../SyncUpdateTaxonomyTaxonomy.java | 41 - .../SyncCreateSetCredentialsProvider.java | 45 - .../create/SyncCreateSetEndpoint.java | 42 - .../SyncCreateUseHttpJsonTransport.java | 41 - .../AsyncExportTaxonomies.java | 53 - .../SyncExportTaxonomies.java | 50 - .../AsyncImportTaxonomies.java | 51 - .../SyncImportTaxonomies.java | 48 - .../SyncImportTaxonomies.java | 57 - .../createtaxonomy/SyncCreateTaxonomy.java | 56 - .../SyncCreateEntryGroup.java | 56 - .../SyncImportTaxonomies.java | 57 - .../createtaxonomy/SyncCreateTaxonomy.java | 56 - librarian.yaml | 19 - pom.xml | 1 - versions.txt | 5 - 966 files changed, 397078 deletions(-) delete mode 100644 java-datacatalog/.cloud/main.tf delete mode 100644 java-datacatalog/.cloud/variables.tf delete mode 100644 java-datacatalog/.repo-metadata.json delete mode 100644 java-datacatalog/CHANGELOG.md delete mode 100644 java-datacatalog/README.md delete mode 100644 java-datacatalog/google-cloud-datacatalog-bom/pom.xml delete mode 100644 java-datacatalog/google-cloud-datacatalog/pom.xml delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/gapic_metadata.json delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/package-info.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/Version.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/gapic_metadata.json delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStub.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/Version.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientHttpJsonTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalog.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalogImpl.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicy.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicyImpl.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManager.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerImpl.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerialization.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerializationImpl.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientHttpJsonTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientHttpJsonTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientHttpJsonTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalog.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalogImpl.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicy.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicyImpl.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManager.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerImpl.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerialization.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerializationImpl.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientHttpJsonTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientHttpJsonTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java delete mode 100644 java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/it/ITSystemTest.java delete mode 100644 java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml delete mode 100644 java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java delete mode 100644 java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java delete mode 100644 java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java delete mode 100644 java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml delete mode 100644 java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java delete mode 100644 java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java delete mode 100644 java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java delete mode 100644 java-datacatalog/pom.xml delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/clirr-ignored-differences.xml delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContext.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContextOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CatalogUIExperience.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchema.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchemaOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStats.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStatsOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Contacts.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ContactsOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSource.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSourceOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSource.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTable.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTableOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItem.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItemOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Entry.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverview.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverviewOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryType.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FeatureOnlineStoreSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FeatureOnlineStoreSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldType.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldTypeOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadata.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadataOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSource.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSourceOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/IntegratedSystem.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LocationName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ManagingSystem.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfig.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfigOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfig.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfigOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetails.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetailsOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchema.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadata.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadataOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Schema.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOuterClass.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchResultType.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTag.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTagOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomy.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomyOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StorageProperties.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StoragePropertiesOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestamps.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestampsOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSourceType.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagField.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagFieldOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateField.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldEnumValueName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateMigration.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntry.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntryOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Taxonomy.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Usage.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignal.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignalOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStats.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStatsOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfo.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfoOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/bigquery.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/data_source.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dataplex_spec.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dump_content.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/gcs_fileset_spec.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/physical_schema.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanagerserialization.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/schema.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/table_spec.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/tags.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/timestamps.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/usage.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/clirr-ignored-differences.xml delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchema.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchemaOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldTypeOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOuterClass.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSource.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSourceOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ManagingSystem.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerProto.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationProto.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Schema.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOuterClass.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponse.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponseOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResult.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResultOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchResultType.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTag.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTagOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomy.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomyOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestamps.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestampsOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSourceType.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOuterClass.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagFieldOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldEnumValueName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Taxonomy.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Timestamps.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequest.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequestOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Usage.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignal.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignalOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStats.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStatsOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpec.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpecOrBuilder.java delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/common.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanager.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/schema.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/search.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/table_spec.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/timestamps.proto delete mode 100644 java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/usage.proto delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetEndpoint.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateUseHttpJsonTransport.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/AsyncCreateEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/AsyncCreateTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagEntrynameTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagStringTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/AsyncDeleteEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/AsyncDeleteTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagEntryname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/AsyncGetEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryEntryname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/AsyncGetEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/AsyncGetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntries.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntriesLRO.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/SyncImportEntries.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntries.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntriesPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntries.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesEntrygroupname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroups.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroups.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTagsPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsEntryname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/AsyncLookupEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/SyncLookupEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/AsyncModifyEntryContacts.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/SyncModifyEntryContacts.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/AsyncModifyEntryOverview.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/SyncModifyEntryOverview.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTagsLRO.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/SyncReconcileTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/AsyncRetrieveConfig.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/SyncRetrieveConfig.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/AsyncRetrieveEffectiveConfig.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/SyncRetrieveEffectiveConfig.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalog.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalog.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/AsyncSetConfig.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/SyncSetConfig.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/AsyncSetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/AsyncStarEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryEntryname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/AsyncTestIamPermissions.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/SyncTestIamPermissions.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/AsyncUnstarEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryEntryname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/AsyncUpdateEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/AsyncUpdateTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalogsettings/reconciletags/SyncReconcileTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetEndpoint.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/SyncGetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/SyncSetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/SyncTestIamPermissions.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/AsyncReplaceTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/SyncReplaceTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserializationsettings/replacetaxonomy/SyncReplaceTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/datacatalogstubsettings/reconciletags/SyncReconcileTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerserializationstubsettings/replacetaxonomy/SyncReplaceTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetEndpoint.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateUseHttpJsonTransport.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/AsyncCreateEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/AsyncCreateTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagEntrynameTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagStringTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/AsyncDeleteEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/AsyncDeleteTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagEntryname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/AsyncGetEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryEntryname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/AsyncGetEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/AsyncGetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntries.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntriesPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntries.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesEntrygroupname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroups.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroups.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTagsPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsEntryname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/AsyncLookupEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/SyncLookupEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalog.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalog.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/AsyncSetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/AsyncTestIamPermissions.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/SyncTestIamPermissions.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/AsyncUpdateEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntry.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/AsyncUpdateTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetEndpoint.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/SyncGetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTags.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/SyncSetIamPolicy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/SyncTestIamPermissions.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserializationsettings/importtaxonomies/SyncImportTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerserializationstubsettings/importtaxonomies/SyncImportTaxonomies.java delete mode 100644 java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java diff --git a/README.md b/README.md index 51ae7f66a935..839ca1bd0b94 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,6 @@ Libraries are available on GitHub and Maven Central for developing Java applicat | [Container Analysis](https://github.com/googleapis/google-cloud-java/tree/main/java-containeranalysis) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-containeranalysis.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-containeranalysis&core=gav) | | [Controls Partner API](https://github.com/googleapis/google-cloud-java/tree/main/java-cloudcontrolspartner) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-cloudcontrolspartner.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-cloudcontrolspartner&core=gav) | | [DNS](https://github.com/googleapis/google-cloud-java/tree/main/java-dns) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dns.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dns&core=gav) | -| [Data Catalog](https://github.com/googleapis/google-cloud-java/tree/main/java-datacatalog) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-datacatalog&core=gav) | | [Data Fusion](https://github.com/googleapis/google-cloud-java/tree/main/java-data-fusion) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-data-fusion.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-data-fusion&core=gav) | | [Data Lineage](https://github.com/googleapis/google-cloud-java/tree/main/java-datalineage) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datalineage.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-datalineage&core=gav) | | [Data Loss Prevention](https://github.com/googleapis/google-cloud-java/tree/main/java-dlp) | [![stable][stable-stability]][stable-description] | [![Maven](https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-dlp.svg)](https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-dlp&core=gav) | diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index c325898d396f..aa07d9e90780 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -512,13 +512,6 @@ pom import - - com.google.cloud - google-cloud-datacatalog-bom - 1.102.0 - pom - import - com.google.cloud google-cloud-dataflow-bom diff --git a/java-bigquery/google-cloud-bigquery/pom.xml b/java-bigquery/google-cloud-bigquery/pom.xml index 0c01e131e44a..99a5a82c371d 100644 --- a/java-bigquery/google-cloud-bigquery/pom.xml +++ b/java-bigquery/google-cloud-bigquery/pom.xml @@ -146,12 +146,6 @@ testlib test - - com.google.cloud - google-cloud-datacatalog - test - 1.102.0 - com.google.cloud google-cloud-bigqueryconnection @@ -194,18 +188,6 @@ mockito-core test - - com.google.cloud - google-cloud-datacatalog - test - 1.102.0 - - - com.google.api.grpc - proto-google-cloud-datacatalog-v1 - test - 1.102.0 - org.jspecify jspecify diff --git a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java index 658c1265e6e3..9744eebc2d81 100644 --- a/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java +++ b/java-bigquery/google-cloud-bigquery/src/test/java/com/google/cloud/bigquery/it/ITBigQueryTest.java @@ -113,7 +113,6 @@ import com.google.cloud.bigquery.ModelInfo; import com.google.cloud.bigquery.Parameter; import com.google.cloud.bigquery.ParquetOptions; -import com.google.cloud.bigquery.PolicyTags; import com.google.cloud.bigquery.PrimaryKey; import com.google.cloud.bigquery.QueryJobConfiguration; import com.google.cloud.bigquery.QueryJobConfiguration.JobCreationMode; @@ -145,12 +144,6 @@ import com.google.cloud.bigquery.ViewDefinition; import com.google.cloud.bigquery.WriteChannelConfiguration; import com.google.cloud.bigquery.testing.RemoteBigQueryHelper; -import com.google.cloud.datacatalog.v1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.Taxonomy.PolicyType; import com.google.cloud.storage.BlobInfo; import com.google.cloud.storage.BucketInfo; import com.google.cloud.storage.Storage; @@ -2147,99 +2140,6 @@ void testCreateTableWithDefaultValueExpression() { bigquery.delete(tableId); } - @Test - void testCreateAndUpdateTableWithPolicyTags() throws IOException { - // Set up policy tags in the datacatalog service - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - CreateTaxonomyRequest createTaxonomyRequest = - CreateTaxonomyRequest.newBuilder() - .setParent(String.format("projects/%s/locations/%s", PROJECT_ID, "us")) - .setTaxonomy( - Taxonomy.newBuilder() - // DisplayName must be unique across org. Use UUID rather than time to ensure - // no collisions - // from parallel test invocations - .setDisplayName( - String.format( - "testing taxonomy %s", UUID.randomUUID().toString().substring(0, 8))) - .setDescription("taxonomy created for integration tests") - .addActivatedPolicyTypes(PolicyType.FINE_GRAINED_ACCESS_CONTROL) - .build()) - .build(); - Taxonomy taxonomyResponse = policyTagManagerClient.createTaxonomy(createTaxonomyRequest); - String taxonomyId = taxonomyResponse.getName(); - - CreatePolicyTagRequest createPolicyTagRequest = - CreatePolicyTagRequest.newBuilder() - .setParent(taxonomyId) - .setPolicyTag(PolicyTag.newBuilder().setDisplayName("ExamplePolicyTag").build()) - .build(); - PolicyTag policyTagResponse = policyTagManagerClient.createPolicyTag(createPolicyTagRequest); - String policyTagId = policyTagResponse.getName(); - PolicyTags policyTags = - PolicyTags.newBuilder().setNames(ImmutableList.of(policyTagId)).build(); - Field stringFieldWithPolicy = - Field.newBuilder("StringFieldWithPolicy", LegacySQLTypeName.STRING) - .setMode(Field.Mode.NULLABLE) - .setDescription("field has a policy") - .setPolicyTags(policyTags) - .build(); - Schema policySchema = - Schema.of(STRING_FIELD_SCHEMA, stringFieldWithPolicy, INTEGER_FIELD_SCHEMA); - - String policyDatasetName = "policyset_" + UUID.randomUUID().toString().replace("-", "_"); - globalBigQuery.create(DatasetInfo.newBuilder(policyDatasetName).setLocation("US").build()); - try { - // Test: Amend an existing schema with a policy tag. - String tableNameForUpdate = "test_update_table_policytags"; - TableId tableIdForUpdate = TableId.of(policyDatasetName, tableNameForUpdate); - TableInfo tableInfo = - TableInfo.newBuilder(tableIdForUpdate, StandardTableDefinition.of(TABLE_SCHEMA)) - .setDescription("policy tag update test table") - .build(); - Table createdTableForUpdate = globalBigQuery.create(tableInfo); - assertNotNull(createdTableForUpdate); - Schema schema = createdTableForUpdate.getDefinition().getSchema(); - FieldList fields = schema.getFields(); - // Create a new schema adding the current fields, plus the new policy tag field - List fieldList = new ArrayList<>(); - for (Field field : fields) { - fieldList.add(field); - } - fieldList.add(stringFieldWithPolicy); - Schema updatedSchemaWithPolicyTag = Schema.of(fieldList); - Table updatedTable = - createdTableForUpdate.toBuilder() - .setDefinition(StandardTableDefinition.of(updatedSchemaWithPolicyTag)) - .build(); - updatedTable.update(); - Table remoteUpdatedTable = globalBigQuery.getTable(policyDatasetName, tableNameForUpdate); - assertEquals( - updatedSchemaWithPolicyTag, - remoteUpdatedTable.getDefinition().getSchema()); - globalBigQuery.delete(tableIdForUpdate); - - // Test: Create a new table with a policy tag defined. - String tableName = "test_create_table_policytags"; - TableId tableId = TableId.of(policyDatasetName, tableName); - StandardTableDefinition tableDefinition = - StandardTableDefinition.newBuilder().setSchema(policySchema).build(); - Table createdTable = globalBigQuery.create(TableInfo.of(tableId, tableDefinition)); - assertNotNull(createdTable); - Table remoteTable = globalBigQuery.getTable(policyDatasetName, tableName); - assertEquals( - policySchema, remoteTable.getDefinition().getSchema()); - globalBigQuery.delete(tableId); - } finally { - RemoteBigQueryHelper.forceDelete(globalBigQuery, policyDatasetName); - } - - // Clean up policy tags - policyTagManagerClient.deletePolicyTag(policyTagId); - policyTagManagerClient.deleteTaxonomy(taxonomyId); - } - } - @Test void testCreateAndGetTable() { String tableName = "test_create_and_get_table"; diff --git a/java-cloud-bom/README.md b/java-cloud-bom/README.md index 1c6b7c694699..bbbe24bf67f8 100644 --- a/java-cloud-bom/README.md +++ b/java-cloud-bom/README.md @@ -123,7 +123,6 @@ This is the table of modules included in the latest libraries-bom release: | google-cloud-core | Runtime | [2.73.0](https://cloud.google.com/java/docs/reference/google-cloud-core/latest/overview) | [Google Cloud Core](n/a) | | google-cloud-data-fusion | Product | [1.95.0](https://cloud.google.com/java/docs/reference/google-cloud-data-fusion/latest/overview) | [Cloud Data Fusion](https://cloud.google.com/data-fusion/docs) | | google-cloud-databasecenter | Product | [0.16.0](https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview) | N/A | -| google-cloud-datacatalog | Product | [1.101.0](https://cloud.google.com/java/docs/reference/google-cloud-datacatalog/latest/overview) | [Data Catalog](https://cloud.google.com/data-catalog) | | google-cloud-dataflow | Product | [0.99.0](https://cloud.google.com/java/docs/reference/google-cloud-dataflow/latest/overview) | [Dataflow](https://cloud.google.com/dataflow/docs) | | google-cloud-dataform | Product | [0.94.0](https://cloud.google.com/java/docs/reference/google-cloud-dataform/latest/overview) | [Cloud Dataform](https://cloud.google.com/dataform/docs) | | google-cloud-datalabeling | Product | [0.215.0](https://cloud.google.com/java/docs/reference/google-cloud-datalabeling/latest/overview) | [Data Labeling](https://cloud.google.com/ai-platform/data-labeling/docs/) | diff --git a/java-cloud-bom/libraries-bom-table-generation/javaModulesMetadata.yaml b/java-cloud-bom/libraries-bom-table-generation/javaModulesMetadata.yaml index 8510a756d39b..29d72370b4e6 100644 --- a/java-cloud-bom/libraries-bom-table-generation/javaModulesMetadata.yaml +++ b/java-cloud-bom/libraries-bom-table-generation/javaModulesMetadata.yaml @@ -80,7 +80,6 @@ google-cloud-contentwarehouse: https://cloud.google.com/document-warehouse/docs/ Document AI Warehouse google-cloud-core: n/a, Google Cloud Core google-cloud-data-fusion: https://cloud.google.com/data-fusion/docs, Cloud Data Fusion -google-cloud-datacatalog: https://cloud.google.com/data-catalog, Data Catalog google-cloud-dataflow: https://cloud.google.com/dataflow/docs, Dataflow google-cloud-dataform: https://cloud.google.com/dataform/docs, Cloud Dataform google-cloud-datalabeling: https://cloud.google.com/ai-platform/data-labeling/docs/, diff --git a/java-cloud-bom/tests/dependency-convergence/pom.xml b/java-cloud-bom/tests/dependency-convergence/pom.xml index a5701ca650fd..e7f61724ca78 100644 --- a/java-cloud-bom/tests/dependency-convergence/pom.xml +++ b/java-cloud-bom/tests/dependency-convergence/pom.xml @@ -136,10 +136,6 @@ google-cloud-data-fusion com.google.cloud - - google-cloud-datacatalog - com.google.cloud - google-cloud-datalabeling com.google.cloud diff --git a/java-datacatalog/.cloud/main.tf b/java-datacatalog/.cloud/main.tf deleted file mode 100644 index 29f9deeb0667..000000000000 --- a/java-datacatalog/.cloud/main.tf +++ /dev/null @@ -1,13 +0,0 @@ -terraform { - required_providers { - google = { - source = "hashicorp/google" - } - } -} -resource "google_project_service" "datacatalog" { - service = "datacatalog.googleapis.com" - project = var.inputs.project_id - count = var.inputs.should_enable_apis_on_apply ? 1 : 0 - disable_on_destroy = var.inputs.should_disable_apis_on_destroy -} diff --git a/java-datacatalog/.cloud/variables.tf b/java-datacatalog/.cloud/variables.tf deleted file mode 100644 index f78a8e9f648c..000000000000 --- a/java-datacatalog/.cloud/variables.tf +++ /dev/null @@ -1,7 +0,0 @@ -variable "inputs" { - type = object({ - project_id = string - should_enable_apis_on_apply = bool - should_disable_apis_on_destroy = bool - }) -} \ No newline at end of file diff --git a/java-datacatalog/.repo-metadata.json b/java-datacatalog/.repo-metadata.json deleted file mode 100644 index c1bbbf58bf1a..000000000000 --- a/java-datacatalog/.repo-metadata.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "api_shortname": "datacatalog", - "name_pretty": "Data Catalog", - "product_documentation": "https://cloud.google.com/data-catalog", - "api_description": "is a fully managed and highly scalable data discovery and metadata management service.", - "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-datacatalog/latest/overview", - "release_level": "stable", - "transport": "grpc+rest", - "language": "java", - "repo": "googleapis/google-cloud-java", - "repo_short": "java-datacatalog", - "distribution_name": "com.google.cloud:google-cloud-datacatalog", - "api_id": "datacatalog.googleapis.com", - "library_type": "GAPIC_AUTO" -} \ No newline at end of file diff --git a/java-datacatalog/CHANGELOG.md b/java-datacatalog/CHANGELOG.md deleted file mode 100644 index e5e637d1d383..000000000000 --- a/java-datacatalog/CHANGELOG.md +++ /dev/null @@ -1,1126 +0,0 @@ -# Changelog - -## 1.94.0 (None) - -* No change - - -## 1.93.0 (2026-03-11) - -* No change - - -## 1.92.0 (2026-02-25) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.57.0 ([#11956](https://github.com/googleapis/google-cloud-java/issues/11956)) ([62b97e1](https://github.com/googleapis/google-cloud-java/commit/62b97e108eee0f8649c53cef400774f4fca4ffab)) - - -## 1.89.0 (2026-01-29) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.56.0 ([#11879](https://github.com/googleapis/google-cloud-java/issues/11879)) ([ac1f018](https://github.com/googleapis/google-cloud-java/commit/ac1f0182ac5b405ca164ac867c8c042322736bef)) - - -## 1.88.0 (2026-01-15) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.55.1 ([#11863](https://github.com/googleapis/google-cloud-java/issues/11863)) ([50cda6e](https://github.com/googleapis/google-cloud-java/commit/50cda6ec7be56bf1900737a6aaf12fc494be20c2)) - - -## 1.87.0 (2025-12-16) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.54.2 ([#11819](https://github.com/googleapis/google-cloud-java/issues/11819)) ([f32924a](https://github.com/googleapis/google-cloud-java/commit/f32924af0899a0b34646e88ffa8c527163b3bb24)) - - -## 1.84.0 (2025-10-21) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.53.0 ([#11776](https://github.com/googleapis/google-cloud-java/issues/11776)) ([e4a2892](https://github.com/googleapis/google-cloud-java/commit/e4a2892c8f7d51e3c3bec551f922b42f70a880d8)) - - -## 1.83.0 (2025-10-13) - -* No change - - -## 1.82.0 (2025-10-07) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.52.3 ([#11755](https://github.com/googleapis/google-cloud-java/issues/11755)) ([b117bc3](https://github.com/googleapis/google-cloud-java/commit/b117bc3d8d04ccc3c1f5586b73e1718ff46b23e6)) - - -## 1.81.0 (2025-09-22) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.52.2 ([#11747](https://github.com/googleapis/google-cloud-java/issues/11747)) ([deb0ed9](https://github.com/googleapis/google-cloud-java/commit/deb0ed92d7c3279e0e26ba8b22463cb77131fa10)) - - -## 1.80.0 (2025-09-11) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.52.1 ([#11738](https://github.com/googleapis/google-cloud-java/issues/11738)) ([b17cf6d](https://github.com/googleapis/google-cloud-java/commit/b17cf6de63b9cabcd44b6fc21b57c187b321ae8f)) - - -## 1.79.0 (2025-08-25) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.52.0 ([#11727](https://github.com/googleapis/google-cloud-java/issues/11727)) ([31d8698](https://github.com/googleapis/google-cloud-java/commit/31d86980d0e27e0a948727d778cf46fbcf227239)) - - -## 1.78.0 (2025-08-13) - -* No change - - -## 1.77.0 (2025-08-08) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.51.0 ([#11695](https://github.com/googleapis/google-cloud-java/issues/11695)) ([b82ce00](https://github.com/googleapis/google-cloud-java/commit/b82ce005c30551b8714099b7219b71bda85aa3a5)) - - -## 1.76.0 (2025-07-30) - -* No change - - -## 1.75.0 (2025-07-28) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.50.2 ([#11680](https://github.com/googleapis/google-cloud-java/issues/11680)) ([d1b99a7](https://github.com/googleapis/google-cloud-java/commit/d1b99a706daa10c487b56edbb5170b41530628ca)) - - -## 1.74.0 (2025-07-11) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.50.1 ([#11655](https://github.com/googleapis/google-cloud-java/issues/11655)) ([9b34528](https://github.com/googleapis/google-cloud-java/commit/9b34528f85043049e3349fffc30bb2dbfe01836c)) - - -## 1.73.0 (2025-06-25) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.50.0 ([#11624](https://github.com/googleapis/google-cloud-java/issues/11624)) ([a19f457](https://github.com/googleapis/google-cloud-java/commit/a19f457d10f15437ac26ce379048ff8b3cc6be5d)) - - -## 1.71.0 (2025-06-16) - -* No change - - -## 1.70.0 (2025-06-04) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.49.0 ([#11603](https://github.com/googleapis/google-cloud-java/issues/11603)) ([3ea506d](https://github.com/googleapis/google-cloud-java/commit/3ea506d86a54fae209e9971af7b4a8aa1f5997b9)) - - -## 1.68.0 (2025-05-06) - -### Bug Fixes - -* update documentation URL ([0f9d110](https://github.com/googleapis/google-cloud-java/commit/0f9d1103fa25bf1edc735f5958364f2dea027b1d)) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.46.3 ([#11531](https://github.com/googleapis/google-cloud-java/issues/11531)) ([5f9a9e7](https://github.com/googleapis/google-cloud-java/commit/5f9a9e73df5e44ae38a8d18780873b7896d31c04)) -* update dependency com.google.cloud:sdk-platform-java-config to v3.47.0 ([#11561](https://github.com/googleapis/google-cloud-java/issues/11561)) ([9e84230](https://github.com/googleapis/google-cloud-java/commit/9e842300aa2e3e654785cc929aef0d6bb9a1a0a9)) - - -## 1.65.0 (2025-02-26) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.44.0 ([#11456](https://github.com/googleapis/google-cloud-java/issues/11456)) ([6b0ad6f](https://github.com/googleapis/google-cloud-java/commit/6b0ad6f8243cc60de7ee608237fa61445f0b0526)) - - -## 1.64.0 (2025-02-11) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.43.0 ([#11426](https://github.com/googleapis/google-cloud-java/issues/11426)) ([afdc294](https://github.com/googleapis/google-cloud-java/commit/afdc2944304a077ce4cbdd8c7675f1ca707b2be0)) - - -## 1.63.0 (2025-01-29) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.42.0 ([#11410](https://github.com/googleapis/google-cloud-java/issues/11410)) ([34dfd0d](https://github.com/googleapis/google-cloud-java/commit/34dfd0dc9c5ca042aca0778e8d34b2ca072bfeb1)) - - -## 1.62.0 (2025-01-09) - -### Bug Fixes - -* A comment for field `parent` in message `.google.cloud.datacatalog.v1beta1.CreateTagRequest` is changed ([b68c98c](https://github.com/googleapis/google-cloud-java/commit/b68c98c14e4de0d1f5755bc306278ee16d2c55ce)) -* fix markdown reference in `TagTemplate.is_publicly_readable` comment ([b68c98c](https://github.com/googleapis/google-cloud-java/commit/b68c98c14e4de0d1f5755bc306278ee16d2c55ce)) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.41.1 ([#11382](https://github.com/googleapis/google-cloud-java/issues/11382)) ([a4fd23c](https://github.com/googleapis/google-cloud-java/commit/a4fd23ce1dfa364959de1e97e3b769996f3c7d0d)) - - -## 1.61.0 (2024-12-13) - -### Features - -* A new method `SetConfig` is added to service `DataCatalog` ([bb9536e](https://github.com/googleapis/google-cloud-java/commit/bb9536e7b488e7b541937df521afdb49eac595c9)) - -### Dependencies - -* update dependency com.google.cloud:sdk-platform-java-config to v3.41.0 ([#11349](https://github.com/googleapis/google-cloud-java/issues/11349)) ([9bb6334](https://github.com/googleapis/google-cloud-java/commit/9bb6334458fdec53ba9fdec501de534d6516f102)) - - -## 1.60.0 (2024-11-18) - -### Features - -* A new field `feature_online_store_spec` is added to message `.google.cloud.datacatalog.v1.Entry` ([bee5fa4](https://github.com/googleapis/google-cloud-java/commit/bee5fa4d897e8a9b6c08ac8511a8503524a88dc0)) - - - -## 1.59.0 (2024-10-28) - -* No change - - -## 1.58.0 (2024-10-09) - -* No change - - -## 1.56.0 (2024-09-26) - -* No change - - -## 1.55.0 (2024-09-11) - -* No change - - -## 1.54.0 (2024-08-21) - -### Bug Fixes - -* mark DataplexTransferStatus.MIGRATED as deprecated ([4aae553](https://github.com/googleapis/google-cloud-java/commit/4aae5537bed9ddb992a85749aa1199b475c2db87)) - - - -## 1.53.0 (2024-07-31) - -### Features - -* add DataplexTransferStatus enum and field to TagTemplate ([ec77898](https://github.com/googleapis/google-cloud-java/commit/ec77898b951324f9de4ddc4e85229b84b2dd81ca)) - - - -## 1.52.0 (2024-06-27) - -* No change - - -## 1.51.0 (None) - -* No change - - -## 1.50.0 (2024-05-23) - -* No change - - -## 1.49.0 (2024-05-08) - -* No change - - -## 1.48.0 (2024-04-25) - -* No change - - -## 1.47.0 (2024-04-04) - -* No change - - -## 1.45.0 (2024-03-28) - -* No change - - -## 1.44.0 (2024-03-22) - -### Features - -* Add RANGE type to Data Catalog ([43b143a](https://github.com/googleapis/google-cloud-java/commit/43b143a3db8c20484289b3cbb7c7cee0815078a0)) - - - -## 1.43.0 (2024-03-06) - -* No change - - -## 1.42.0 (2024-02-20) - -* No change - - -## 1.41.0 (2024-02-09) - -* No change - - -## 1.40.0 (2024-01-23) - -* No change - - -## 1.39.0 (2024-01-10) - -### Features - -* Update the Java code generator (gapic-generator-java) to 2.31.0 ([#10190](https://github.com/googleapis/google-cloud-java/issues/10190)) ([4e23220](https://github.com/googleapis/google-cloud-java/commit/4e232204e656216435c79ae93ded144ca04e0463)) - - - -## 1.38.0 (2023-12-12) - -* No change - - -## 1.37.0 (2023-12-04) - -### Dependencies - -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.20.0 ([#10093](https://github.com/googleapis/google-cloud-java/issues/10093)) ([91a4e4e](https://github.com/googleapis/google-cloud-java/commit/91a4e4e20252f667b8fc6bda0d9ceaf947348274)) - - -## 1.36.0 (2023-11-06) - -### Dependencies - -* **deps:** update dependency com.google.cloud:google-cloud-shared-config to v1.6.1 ([#10014](https://github.com/googleapis/google-cloud-java/issues/10014)) ([7b1b742](https://github.com/googleapis/google-cloud-java/commit/7b1b742dab21139398032549fb03e127b1a03841)) -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.19.0 ([#10018](https://github.com/googleapis/google-cloud-java/issues/10018)) ([d9b705a](https://github.com/googleapis/google-cloud-java/commit/d9b705aaed8ea4447c7a02d5c54300f8909a30b1)) - - -## 1.35.0 (2023-10-25) - -### Dependencies - -* **deps:** update dependency com.google.cloud:google-cloud-shared-config to v1.6.0 ([#9969](https://github.com/googleapis/google-cloud-java/issues/9969)) ([9e2be39](https://github.com/googleapis/google-cloud-java/commit/9e2be39c5b2d7764421325f65a6d0d06351fcda5)) -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.18.0 ([#9984](https://github.com/googleapis/google-cloud-java/issues/9984)) ([9814dc0](https://github.com/googleapis/google-cloud-java/commit/9814dc092ad7edb7b1b21f87fa48d76a2423d731)) - - -## 1.34.0 (2023-10-11) - -### Dependencies - -* **deps:** update dependency com.google.cloud:google-cloud-shared-config to v1.5.8 ([#9941](https://github.com/googleapis/google-cloud-java/issues/9941)) ([f818d26](https://github.com/googleapis/google-cloud-java/commit/f818d26968e1f19d302da1f1ea0145b2cc496ce0)) -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.17.0 ([#9942](https://github.com/googleapis/google-cloud-java/issues/9942)) ([2cc7888](https://github.com/googleapis/google-cloud-java/commit/2cc78885d76ae5e7dfc4cc9f3034c25fa22c6cc1)) - - -## 1.33.0 (2023-09-28) - -* No change - - -## 1.31.0 (2023-09-27) - -### Dependencies - -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.16.0 ([#9866](https://github.com/googleapis/google-cloud-java/issues/9866)) ([aa36b2c](https://github.com/googleapis/google-cloud-java/commit/aa36b2c3c31b817052239fd771a21d20108b2c31)) -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.16.1 ([#9881](https://github.com/googleapis/google-cloud-java/issues/9881)) ([8a29511](https://github.com/googleapis/google-cloud-java/commit/8a2951166eb0305be040cc0ae38be105c437ba25)) - - -## 1.30.0 (2023-09-11) - -### Features - -* fix typo ([#9779](https://github.com/googleapis/google-cloud-java/issues/9779)) ([1285e8d](https://github.com/googleapis/google-cloud-java/commit/1285e8d1ee812be4f64d2ecfc958ed2a1b291e37)) - -### Dependencies - -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.15.0 ([#9809](https://github.com/googleapis/google-cloud-java/issues/9809)) ([09dbd85](https://github.com/googleapis/google-cloud-java/commit/09dbd855f683b40a462c4f918511bee4671e0174)) - - -## 1.29.0 (2023-08-08) - -### Features - -* add support for admin_search in SearchCatalog() API method ([#9728](https://github.com/googleapis/google-cloud-java/issues/9728)) ([aee140e](https://github.com/googleapis/google-cloud-java/commit/aee140e0e4c22465129d4eab682c0112154be7fd)) -* Minor formatting ([#9718](https://github.com/googleapis/google-cloud-java/issues/9718)) ([5103a7a](https://github.com/googleapis/google-cloud-java/commit/5103a7aae963998b651a49a91a5411e425cccb71)) - -### Dependencies - -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.14.0 ([#9722](https://github.com/googleapis/google-cloud-java/issues/9722)) ([c7011db](https://github.com/googleapis/google-cloud-java/commit/c7011dbd69189330de1c2946b736cd712d5c1f4e)) - - -## 1.28.0 (2023-07-21) - -### Dependencies - -* **deps:** update dependency com.google.cloud:google-cloud-shared-config to v1.5.7 ([#9651](https://github.com/googleapis/google-cloud-java/issues/9651)) ([c88d623](https://github.com/googleapis/google-cloud-java/commit/c88d623d12a4342b74e31d6a6a05cde0debe871f)) -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.1 ([#9655](https://github.com/googleapis/google-cloud-java/issues/9655)) ([affebee](https://github.com/googleapis/google-cloud-java/commit/affebeeb37b1cf88ad5964684e1f112cababcab7)) - - -## 1.27.0 (2023-07-11) - -### Features - -* added rpc RenameTagTemplateFieldEnumValue ([#9614](https://github.com/googleapis/google-cloud-java/issues/9614)) ([cc2e2ff](https://github.com/googleapis/google-cloud-java/commit/cc2e2ff1ae033ddb24c99ad0ece351b1129dadbe)) - -### Dependencies - -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.13.0 ([#9622](https://github.com/googleapis/google-cloud-java/issues/9622)) ([3ac3050](https://github.com/googleapis/google-cloud-java/commit/3ac3050250a706e8f9f2d1e435a4983c3cceab82)) - - -## 1.26.0 (2023-06-23) - -### Dependencies - -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.12.0 ([#9577](https://github.com/googleapis/google-cloud-java/issues/9577)) ([9e9812a](https://github.com/googleapis/google-cloud-java/commit/9e9812a0ba19e5aa82a34f2a3049bb72892544a6)) - - -## [1.11.0](https://github.com/googleapis/google-cloud-java/compare/google-cloud-datacatalog-v1.10.1-SNAPSHOT...google-cloud-datacatalog-v1.11.0) (2022-10-24) - - -### Features - -* [analyticsdata] add `subject_to_thresholding` field to `ResponseMetadata` type ([#8545](https://github.com/googleapis/google-cloud-java/issues/8545)) ([8fdc6c1](https://github.com/googleapis/google-cloud-java/commit/8fdc6c1f10f88f30f4d1407579d645f75366b4cf)) -* add `tokens_per_project_per_hour` field to `PropertyQuota` type ([8fdc6c1](https://github.com/googleapis/google-cloud-java/commit/8fdc6c1f10f88f30f4d1407579d645f75366b4cf)) - - -### Bug Fixes - -* **deps:** update dependency com.google.api.grpc:grpc-google-cloud-datacatalog-v1 to v1.9.3 ([#8274](https://github.com/googleapis/google-cloud-java/issues/8274)) ([e8afd6c](https://github.com/googleapis/google-cloud-java/commit/e8afd6c1a4f4ea99f22fc2e6d2428ff115a84b8a)) -* **deps:** update dependency com.google.api.grpc:grpc-google-cloud-datacatalog-v1beta1 to v0.46.3 ([#8275](https://github.com/googleapis/google-cloud-java/issues/8275)) ([1ae8ceb](https://github.com/googleapis/google-cloud-java/commit/1ae8ceb37545a1db74dc7ebcc61fcec552e2c2ff)) -* **deps:** update dependency com.google.api.grpc:proto-google-cloud-datacatalog-v1 to v1.9.3 ([#8281](https://github.com/googleapis/google-cloud-java/issues/8281)) ([1fd10eb](https://github.com/googleapis/google-cloud-java/commit/1fd10ebb0e26be34bf285e31ab32e1d873c9acfc)) -* **deps:** update dependency com.google.api.grpc:proto-google-cloud-datacatalog-v1beta1 to v0.46.3 ([#8282](https://github.com/googleapis/google-cloud-java/issues/8282)) ([9a38b12](https://github.com/googleapis/google-cloud-java/commit/9a38b12cc3470e45c6a3f092f9137c1757d919fc)) -* **deps:** update dependency com.google.cloud:google-cloud-datacatalog-parent to v1.9.3 ([#8289](https://github.com/googleapis/google-cloud-java/issues/8289)) ([d8499f6](https://github.com/googleapis/google-cloud-java/commit/d8499f603204bc26238b94dac6cf9a55a5894a75)) -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#8325](https://github.com/googleapis/google-cloud-java/issues/8325)) ([01f492b](https://github.com/googleapis/google-cloud-java/commit/01f492be424acdb90edb23ba66656aeff7cf39eb)) -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#8528](https://github.com/googleapis/google-cloud-java/issues/8528)) ([bd36199](https://github.com/googleapis/google-cloud-java/commit/bd361998ac4eb7c78eef3b3eac39aef31a0cf44e)) -* **deps:** update dependency com.google.cloud:libraries-bom to v26.1.1 ([#8254](https://github.com/googleapis/google-cloud-java/issues/8254)) ([e4760da](https://github.com/googleapis/google-cloud-java/commit/e4760da4ac8fa6fa91bc82b90b83d0518eca2692)) -* owl-bot-staging should not be commited ([#8337](https://github.com/googleapis/google-cloud-java/issues/8337)) ([c9bb4a9](https://github.com/googleapis/google-cloud-java/commit/c9bb4a97aa19032b78c86c951fe9920f24ac4eec)) -* revert reverting [Many APIs] Update WORKSPACE files for rules_gapic, gax_java, generator_java versions ([#8340](https://github.com/googleapis/google-cloud-java/issues/8340)) ([dedef71](https://github.com/googleapis/google-cloud-java/commit/dedef71f600e85b1c38e7110f5ffd44bf2ba32b4)) - - -### Dependencies - -* reverting renovate bot pull requests ([#8417](https://github.com/googleapis/google-cloud-java/issues/8417)) ([8f0c60b](https://github.com/googleapis/google-cloud-java/commit/8f0c60bde446acccc665eb7894723632eefc3503)) - -## [1.10.0](https://github.com/googleapis/google-cloud-java/compare/google-cloud-datacatalog-v1.9.5...google-cloud-datacatalog-v1.10.0) (2022-10-17) - - -### Features - -* [analyticsdata] add `subject_to_thresholding` field to `ResponseMetadata` type ([#8545](https://github.com/googleapis/google-cloud-java/issues/8545)) ([8fdc6c1](https://github.com/googleapis/google-cloud-java/commit/8fdc6c1f10f88f30f4d1407579d645f75366b4cf)) -* add `tokens_per_project_per_hour` field to `PropertyQuota` type ([8fdc6c1](https://github.com/googleapis/google-cloud-java/commit/8fdc6c1f10f88f30f4d1407579d645f75366b4cf)) - - -### Bug Fixes - -* **deps:** update dependency com.google.api.grpc:grpc-google-cloud-datacatalog-v1 to v1.9.3 ([#8274](https://github.com/googleapis/google-cloud-java/issues/8274)) ([e8afd6c](https://github.com/googleapis/google-cloud-java/commit/e8afd6c1a4f4ea99f22fc2e6d2428ff115a84b8a)) -* **deps:** update dependency com.google.api.grpc:grpc-google-cloud-datacatalog-v1beta1 to v0.46.3 ([#8275](https://github.com/googleapis/google-cloud-java/issues/8275)) ([1ae8ceb](https://github.com/googleapis/google-cloud-java/commit/1ae8ceb37545a1db74dc7ebcc61fcec552e2c2ff)) -* **deps:** update dependency com.google.api.grpc:proto-google-cloud-datacatalog-v1 to v1.9.3 ([#8281](https://github.com/googleapis/google-cloud-java/issues/8281)) ([1fd10eb](https://github.com/googleapis/google-cloud-java/commit/1fd10ebb0e26be34bf285e31ab32e1d873c9acfc)) -* **deps:** update dependency com.google.api.grpc:proto-google-cloud-datacatalog-v1beta1 to v0.46.3 ([#8282](https://github.com/googleapis/google-cloud-java/issues/8282)) ([9a38b12](https://github.com/googleapis/google-cloud-java/commit/9a38b12cc3470e45c6a3f092f9137c1757d919fc)) -* **deps:** update dependency com.google.cloud:google-cloud-datacatalog-parent to v1.9.3 ([#8289](https://github.com/googleapis/google-cloud-java/issues/8289)) ([d8499f6](https://github.com/googleapis/google-cloud-java/commit/d8499f603204bc26238b94dac6cf9a55a5894a75)) -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#8325](https://github.com/googleapis/google-cloud-java/issues/8325)) ([01f492b](https://github.com/googleapis/google-cloud-java/commit/01f492be424acdb90edb23ba66656aeff7cf39eb)) -* **deps:** update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#8528](https://github.com/googleapis/google-cloud-java/issues/8528)) ([bd36199](https://github.com/googleapis/google-cloud-java/commit/bd361998ac4eb7c78eef3b3eac39aef31a0cf44e)) -* **deps:** update dependency com.google.cloud:libraries-bom to v26.1.1 ([#8254](https://github.com/googleapis/google-cloud-java/issues/8254)) ([e4760da](https://github.com/googleapis/google-cloud-java/commit/e4760da4ac8fa6fa91bc82b90b83d0518eca2692)) -* owl-bot-staging should not be commited ([#8337](https://github.com/googleapis/google-cloud-java/issues/8337)) ([c9bb4a9](https://github.com/googleapis/google-cloud-java/commit/c9bb4a97aa19032b78c86c951fe9920f24ac4eec)) -* revert reverting [Many APIs] Update WORKSPACE files for rules_gapic, gax_java, generator_java versions ([#8340](https://github.com/googleapis/google-cloud-java/issues/8340)) ([dedef71](https://github.com/googleapis/google-cloud-java/commit/dedef71f600e85b1c38e7110f5ffd44bf2ba32b4)) - - -### Dependencies - -* reverting renovate bot pull requests ([#8417](https://github.com/googleapis/google-cloud-java/issues/8417)) ([8f0c60b](https://github.com/googleapis/google-cloud-java/commit/8f0c60bde446acccc665eb7894723632eefc3503)) - -## [1.9.5](https://github.com/googleapis/java-datacatalog/compare/v1.9.4...v1.9.5) (2022-10-05) - - -### Dependencies - -* Update dependency cachetools to v5 ([#889](https://github.com/googleapis/java-datacatalog/issues/889)) ([7cce568](https://github.com/googleapis/java-datacatalog/commit/7cce5686c97aed3ced1711b6e0cc63a90d7e38e7)) -* Update dependency certifi to v2022.9.24 ([#869](https://github.com/googleapis/java-datacatalog/issues/869)) ([ae9d4e2](https://github.com/googleapis/java-datacatalog/commit/ae9d4e2ff9a7d0b5442dc3e2ee1dbe58e51a3f4f)) -* Update dependency click to v8.1.3 ([#874](https://github.com/googleapis/java-datacatalog/issues/874)) ([63bfde6](https://github.com/googleapis/java-datacatalog/commit/63bfde6058adaad44471cf60c8f5aeb379810c0c)) -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#897](https://github.com/googleapis/java-datacatalog/issues/897)) ([08ba2f7](https://github.com/googleapis/java-datacatalog/commit/08ba2f70f660b553c1998179a201ca58df840467)) -* Update dependency com.google.protobuf:protobuf-java-util to v3.21.6 ([#860](https://github.com/googleapis/java-datacatalog/issues/860)) ([2d81181](https://github.com/googleapis/java-datacatalog/commit/2d81181c6bbb7e99264d61e1f8391a5a56470d5c)) -* Update dependency com.google.protobuf:protobuf-java-util to v3.21.7 ([#891](https://github.com/googleapis/java-datacatalog/issues/891)) ([a5666ab](https://github.com/googleapis/java-datacatalog/commit/a5666abb1adf25c4092f76264b0f5ca8943f376d)) -* Update dependency google-api-core to v2.10.1 ([#875](https://github.com/googleapis/java-datacatalog/issues/875)) ([8a06f04](https://github.com/googleapis/java-datacatalog/commit/8a06f046588b12be9d59adff85422d6d52801524)) -* Update dependency googleapis-common-protos to v1.56.4 ([#872](https://github.com/googleapis/java-datacatalog/issues/872)) ([c18ed8c](https://github.com/googleapis/java-datacatalog/commit/c18ed8c6710c8b705e460bc6684231243a39393e)) -* Update dependency jeepney to v0.8.0 ([#880](https://github.com/googleapis/java-datacatalog/issues/880)) ([5a7a86a](https://github.com/googleapis/java-datacatalog/commit/5a7a86a0a25254d35930e39101b297ec4ad4be30)) -* Update dependency protobuf to v3.20.2 ([#884](https://github.com/googleapis/java-datacatalog/issues/884)) ([8a3ae10](https://github.com/googleapis/java-datacatalog/commit/8a3ae10d76bc08704327575e0f763cfdc3cd1e23)) -* Update dependency protobuf to v4 ([#890](https://github.com/googleapis/java-datacatalog/issues/890)) ([8ba310c](https://github.com/googleapis/java-datacatalog/commit/8ba310c9fbcabf984595e5e9605174e53a14c709)) -* Update dependency pyjwt to v2.5.0 ([#885](https://github.com/googleapis/java-datacatalog/issues/885)) ([ed3bf6e](https://github.com/googleapis/java-datacatalog/commit/ed3bf6e482450c37c25b3c6ce288d1800543d45c)) -* Update dependency zipp to v3.8.1 ([#888](https://github.com/googleapis/java-datacatalog/issues/888)) ([0b6262a](https://github.com/googleapis/java-datacatalog/commit/0b6262a107cbe980351e530e212e50fd558f875c)) - -## [1.9.4](https://github.com/googleapis/java-datacatalog/compare/v1.9.3...v1.9.4) (2022-09-17) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#858](https://github.com/googleapis/java-datacatalog/issues/858)) ([2bc752f](https://github.com/googleapis/java-datacatalog/commit/2bc752f13c8b219dc1d2e5c58ff6eaf22fe3cd97)) -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#861](https://github.com/googleapis/java-datacatalog/issues/861)) ([2869313](https://github.com/googleapis/java-datacatalog/commit/2869313e0e894ca11d9b0ea5afedd89fca3963d4)) - -## [1.9.3](https://github.com/googleapis/java-datacatalog/compare/v1.9.2...v1.9.3) (2022-08-31) - - -### Dependencies - -* update dependency com.google.protobuf:protobuf-java-util to v3.21.5 ([#845](https://github.com/googleapis/java-datacatalog/issues/845)) ([93c5bfc](https://github.com/googleapis/java-datacatalog/commit/93c5bfc1a24027bcd1e9f898585c2de9fdd59d11)) - -## [1.9.2](https://github.com/googleapis/java-datacatalog/compare/v1.9.1...v1.9.2) (2022-08-11) - - -### Bug Fixes - -* fix datacatalog resource name config ([8c4ab5c](https://github.com/googleapis/java-datacatalog/commit/8c4ab5c439d6f6ef5f7f1bbc3e6621b7672a96b5)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#840](https://github.com/googleapis/java-datacatalog/issues/840)) ([cd972bd](https://github.com/googleapis/java-datacatalog/commit/cd972bd1724acbdc7f5e5f370e5da2bdda94f977)) -* update dependency com.google.protobuf:protobuf-java-util to v3.21.4 ([#842](https://github.com/googleapis/java-datacatalog/issues/842)) ([08ba23a](https://github.com/googleapis/java-datacatalog/commit/08ba23af0354567f3ddc667893e0a061ea269992)) - -## [1.9.1](https://github.com/googleapis/java-datacatalog/compare/v1.9.0...v1.9.1) (2022-07-13) - - -### Bug Fixes - -* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-datacatalog/issues/1485)) ([#833](https://github.com/googleapis/java-datacatalog/issues/833)) ([a9a8828](https://github.com/googleapis/java-datacatalog/commit/a9a88285ba7beac16a94de0c508bfe4bb9372ea0)) - -## [1.9.0](https://github.com/googleapis/java-datacatalog/compare/v1.8.4...v1.9.0) (2022-07-01) - - -### Features - -* java template no longer require clirr ([#1469](https://github.com/googleapis/java-datacatalog/issues/1469)) ([#826](https://github.com/googleapis/java-datacatalog/issues/826)) ([25d1416](https://github.com/googleapis/java-datacatalog/commit/25d1416f720aadc477c9cc952bc862d35ee8b463)) - -## [1.8.4](https://github.com/googleapis/java-datacatalog/compare/v1.8.3...v1.8.4) (2022-06-27) - - -### Dependencies - -* update dependency com.google.protobuf:protobuf-java-util to v3.21.2 ([#821](https://github.com/googleapis/java-datacatalog/issues/821)) ([633601d](https://github.com/googleapis/java-datacatalog/commit/633601de827cbd44b09e19ed226173b3f5c2d1f1)) - -## [1.8.3](https://github.com/googleapis/java-datacatalog/compare/v1.8.2...v1.8.3) (2022-06-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#818](https://github.com/googleapis/java-datacatalog/issues/818)) ([38812b6](https://github.com/googleapis/java-datacatalog/commit/38812b6a9f268d8e91b79bd264a9ca8f20d7e920)) - -## [1.8.2](https://github.com/googleapis/java-datacatalog/compare/v1.8.1...v1.8.2) (2022-06-06) - - -### Dependencies - -* update dependency com.google.protobuf:protobuf-java-util to v3.21.1 ([#808](https://github.com/googleapis/java-datacatalog/issues/808)) ([d3b7922](https://github.com/googleapis/java-datacatalog/commit/d3b7922bd53c8b56c600233d1d97ca83d1400bf5)) - -### [1.8.1](https://github.com/googleapis/java-datacatalog/compare/v1.8.0...v1.8.1) (2022-05-26) - - -### Dependencies - -* update dependency com.google.protobuf:protobuf-java-util to v3.21.0 ([#804](https://github.com/googleapis/java-datacatalog/issues/804)) ([ad91ffa](https://github.com/googleapis/java-datacatalog/commit/ad91ffa697f9d583528955d879afe018507f1557)) - -## [1.8.0](https://github.com/googleapis/java-datacatalog/compare/v1.7.3...v1.8.0) (2022-05-24) - - -### Features - -* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-datacatalog/issues/1440)) ([#798](https://github.com/googleapis/java-datacatalog/issues/798)) ([ef0343d](https://github.com/googleapis/java-datacatalog/commit/ef0343d627cb4ccb1a3d1952c6638e62dde2ca83)) -* added Dataplex specific fields ([501be26](https://github.com/googleapis/java-datacatalog/commit/501be2601a428bb99de1dd3d6982c1b6caba4d72)) -* AuditConfig for IAM v1 ([501be26](https://github.com/googleapis/java-datacatalog/commit/501be2601a428bb99de1dd3d6982c1b6caba4d72)) - - -### Documentation - -* update taxonomy display_name comment ([501be26](https://github.com/googleapis/java-datacatalog/commit/501be2601a428bb99de1dd3d6982c1b6caba4d72)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#797](https://github.com/googleapis/java-datacatalog/issues/797)) ([f022810](https://github.com/googleapis/java-datacatalog/commit/f0228102359e56c087f9a0dfd3ac068a93179885)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#799](https://github.com/googleapis/java-datacatalog/issues/799)) ([e6d818b](https://github.com/googleapis/java-datacatalog/commit/e6d818b9887ece7376a36527f54e8b270cb60ff9)) -* update dependency com.google.protobuf:protobuf-java-util to v3.20.1 ([#791](https://github.com/googleapis/java-datacatalog/issues/791)) ([3f2451b](https://github.com/googleapis/java-datacatalog/commit/3f2451b2d05fe12b81211a6286bf96a2a960443b)) - -### [1.7.3](https://github.com/googleapis/java-datacatalog/compare/v1.7.2...v1.7.3) (2022-04-15) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#783](https://github.com/googleapis/java-datacatalog/issues/783)) ([be7ca85](https://github.com/googleapis/java-datacatalog/commit/be7ca856a010261d8f8927b2fb20e6222acb41e9)) - -### [1.7.2](https://github.com/googleapis/java-datacatalog/compare/v1.7.1...v1.7.2) (2022-04-07) - - -### Dependencies - -* update dependency com.google.protobuf:protobuf-java-util to v3.20.0 ([#777](https://github.com/googleapis/java-datacatalog/issues/777)) ([b808d28](https://github.com/googleapis/java-datacatalog/commit/b808d28f476471cfc7d54a11458dc1bf54562f9b)) - -### [1.7.1](https://github.com/googleapis/java-datacatalog/compare/v1.7.0...v1.7.1) (2022-03-29) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#770](https://github.com/googleapis/java-datacatalog/issues/770)) ([d8e67ad](https://github.com/googleapis/java-datacatalog/commit/d8e67ad8a694041cf1cb7ab97a74eb4ceb19b447)) - -## [1.7.0](https://github.com/googleapis/java-datacatalog/compare/v1.6.3...v1.7.0) (2022-03-03) - - -### Features - -* Add methods and messages related to starring feature feat: Add methods and messages related to business context feature docs: Updates copyright message ([#746](https://github.com/googleapis/java-datacatalog/issues/746)) ([2d04a1e](https://github.com/googleapis/java-datacatalog/commit/2d04a1e991f3cca06c55727f760f5ee05047b391)) - - -### Dependencies - -* update actions/github-script action to v6 ([#750](https://github.com/googleapis/java-datacatalog/issues/750)) ([fd801af](https://github.com/googleapis/java-datacatalog/commit/fd801af42ba9f81dadb438f4a32888745ff84b29)) -* update actions/setup-java action to v3 ([#755](https://github.com/googleapis/java-datacatalog/issues/755)) ([fc98e72](https://github.com/googleapis/java-datacatalog/commit/fc98e72ada8976fb4abc47d72334b24ef97680fa)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#760](https://github.com/googleapis/java-datacatalog/issues/760)) ([ba0a479](https://github.com/googleapis/java-datacatalog/commit/ba0a4793990edf75fbe8f71f3dc347f5202ea41b)) -* update dependency com.google.protobuf:protobuf-java-util to v3.19.4 ([#737](https://github.com/googleapis/java-datacatalog/issues/737)) ([aff8fd4](https://github.com/googleapis/java-datacatalog/commit/aff8fd4114d96ccb8b83f23ec145921f13927a25)) - -### [1.6.3](https://github.com/googleapis/java-datacatalog/compare/v1.6.2...v1.6.3) (2022-02-03) - - -### Dependencies - -* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-datacatalog/issues/1339)) ([#736](https://github.com/googleapis/java-datacatalog/issues/736)) ([a2fd315](https://github.com/googleapis/java-datacatalog/commit/a2fd315adec8dbe35875bda6394b6464305fdf06)) -* update actions/github-script action to v5 ([#735](https://github.com/googleapis/java-datacatalog/issues/735)) ([ae59136](https://github.com/googleapis/java-datacatalog/commit/ae591360de52292c00ccdd796c1ea3049b3f3e16)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#738](https://github.com/googleapis/java-datacatalog/issues/738)) ([684dcb1](https://github.com/googleapis/java-datacatalog/commit/684dcb137eb3c178fde51e04d716499031554cb0)) -* update dependency com.google.protobuf:protobuf-java-util to v3.19.3 ([#729](https://github.com/googleapis/java-datacatalog/issues/729)) ([cfa2852](https://github.com/googleapis/java-datacatalog/commit/cfa2852143043dec0f4e2dcd4c101715be9f265c)) - -### [1.6.2](https://www.github.com/googleapis/java-datacatalog/compare/v1.6.1...v1.6.2) (2022-01-07) - - -### Bug Fixes - -* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-datacatalog/issues/1299)) ([#702](https://www.github.com/googleapis/java-datacatalog/issues/702)) ([1c69eaa](https://www.github.com/googleapis/java-datacatalog/commit/1c69eaa282097b71990e9270cfff75424acb0e57)) -* **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-datacatalog/issues/1301)) ([#716](https://www.github.com/googleapis/java-datacatalog/issues/716)) ([5741b7f](https://www.github.com/googleapis/java-datacatalog/commit/5741b7fd9e022d3b650f737d4f2f49d4739073a3)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#720](https://www.github.com/googleapis/java-datacatalog/issues/720)) ([5aacce1](https://www.github.com/googleapis/java-datacatalog/commit/5aacce16bee5c0c93342e61fd1d0c938a5ea8f13)) -* update dependency com.google.protobuf:protobuf-java-util to v3.19.2 ([#718](https://www.github.com/googleapis/java-datacatalog/issues/718)) ([86f9f50](https://www.github.com/googleapis/java-datacatalog/commit/86f9f50b54ea230bcd64460d4177a8fde711f9a5)) - -### [1.6.1](https://www.github.com/googleapis/java-datacatalog/compare/v1.6.0...v1.6.1) (2021-12-03) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#698](https://www.github.com/googleapis/java-datacatalog/issues/698)) ([cc75948](https://www.github.com/googleapis/java-datacatalog/commit/cc75948eebeb7f7371d33cdb3295f581a544c964)) - -## [1.6.0](https://www.github.com/googleapis/java-datacatalog/compare/v1.5.9...v1.6.0) (2021-11-17) - - -### Features - -* Added BigQueryDateShardedSpec.latest_shard_resource field feat: Added SearchCatalogResult.display_name field feat: Added SearchCatalogResult.description field ([#683](https://www.github.com/googleapis/java-datacatalog/issues/683)) ([fdac6a0](https://www.github.com/googleapis/java-datacatalog/commit/fdac6a0a4b89c83fbc031a088b8e6cf426115563)) - - -### Bug Fixes - -* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-datacatalog/issues/1266)) ([#678](https://www.github.com/googleapis/java-datacatalog/issues/678)) ([6d64ad2](https://www.github.com/googleapis/java-datacatalog/commit/6d64ad2c0b4728a18a5649601607417f50de9f8c)) - - -### Documentation - -* Improved formatting ([#688](https://www.github.com/googleapis/java-datacatalog/issues/688)) ([00c212f](https://www.github.com/googleapis/java-datacatalog/commit/00c212f957042dfab9a355f9b2817833ed6b6667)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#690](https://www.github.com/googleapis/java-datacatalog/issues/690)) ([9248cee](https://www.github.com/googleapis/java-datacatalog/commit/9248cee1c88639bea1bf66dc422e2dc300e209f3)) -* update dependency com.google.protobuf:protobuf-java-util to v3.19.1 ([#676](https://www.github.com/googleapis/java-datacatalog/issues/676)) ([65e1cdc](https://www.github.com/googleapis/java-datacatalog/commit/65e1cdc07603f98803b6f6c6ce419f4878136712)) - -### [1.5.9](https://www.github.com/googleapis/java-datacatalog/compare/v1.5.8...v1.5.9) (2021-10-19) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 ([#672](https://www.github.com/googleapis/java-datacatalog/issues/672)) ([77267f2](https://www.github.com/googleapis/java-datacatalog/commit/77267f25839ff5c752ef09cb2f4cc87c1b6c7803)) - -### [1.5.8](https://www.github.com/googleapis/java-datacatalog/compare/v1.5.7...v1.5.8) (2021-10-06) - - -### Dependencies - -* update dependency com.google.protobuf:protobuf-java-util to v3.18.1 ([#664](https://www.github.com/googleapis/java-datacatalog/issues/664)) ([ab0ce72](https://www.github.com/googleapis/java-datacatalog/commit/ab0ce72e7e45a78805d9fd03b1e3c7df930ba375)) - -### [1.5.7](https://www.github.com/googleapis/java-datacatalog/compare/v1.5.6...v1.5.7) (2021-09-22) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.3.0 ([#655](https://www.github.com/googleapis/java-datacatalog/issues/655)) ([c1bb03b](https://www.github.com/googleapis/java-datacatalog/commit/c1bb03b6973f7cdf1d7c00b3f2890d7a7c481e72)) - -### [1.5.6](https://www.github.com/googleapis/java-datacatalog/compare/v1.5.5...v1.5.6) (2021-09-15) - - -### Dependencies - -* update dependency com.google.protobuf:protobuf-java-util to v3.18.0 ([#649](https://www.github.com/googleapis/java-datacatalog/issues/649)) ([9baaa93](https://www.github.com/googleapis/java-datacatalog/commit/9baaa937c8b947a3c15886f8a7f9cc4e3016d275)) - -### [1.5.5](https://www.github.com/googleapis/java-datacatalog/compare/v1.5.4...v1.5.5) (2021-09-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.1 ([#644](https://www.github.com/googleapis/java-datacatalog/issues/644)) ([f93827c](https://www.github.com/googleapis/java-datacatalog/commit/f93827c8210fd6b61ebdb16cb5c9a756beb582cb)) - -### [1.5.4](https://www.github.com/googleapis/java-datacatalog/compare/v1.5.3...v1.5.4) (2021-08-31) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.2.0 ([#627](https://www.github.com/googleapis/java-datacatalog/issues/627)) ([5158b31](https://www.github.com/googleapis/java-datacatalog/commit/5158b31e888298aeb699ed0b09daab2e9626dece)) - -### [1.5.3](https://www.github.com/googleapis/java-datacatalog/compare/v1.5.2...v1.5.3) (2021-08-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.1.0 ([#615](https://www.github.com/googleapis/java-datacatalog/issues/615)) ([3f7fc7a](https://www.github.com/googleapis/java-datacatalog/commit/3f7fc7a402eadd12a9b387a1003ef79d215bb176)) - -### [1.5.2](https://www.github.com/googleapis/java-datacatalog/compare/v1.5.1...v1.5.2) (2021-08-11) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.0.1 ([#605](https://www.github.com/googleapis/java-datacatalog/issues/605)) ([f0c970f](https://www.github.com/googleapis/java-datacatalog/commit/f0c970f2e81adf3027a31f64a0334e377e8c3b80)) - -### [1.5.1](https://www.github.com/googleapis/java-datacatalog/compare/v1.5.0...v1.5.1) (2021-08-09) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2 ([#594](https://www.github.com/googleapis/java-datacatalog/issues/594)) ([2fd520a](https://www.github.com/googleapis/java-datacatalog/commit/2fd520a1c98d1862d9f68bbae51ad279a15e8263)) - -## [1.5.0](https://www.github.com/googleapis/java-datacatalog/compare/v1.4.2...v1.5.0) (2021-08-09) - - -### Features - -* Added support for BigQuery connections entries feat: Added support for BigQuery routines entries feat: Added usage_signal field feat: Added labels field feat: Added ReplaceTaxonomy in Policy Tag Manager Serialization API feat: Added support for public tag templates feat: Added support for rich text tags docs: Documentation improvements ([#587](https://www.github.com/googleapis/java-datacatalog/issues/587)) ([2e7535b](https://www.github.com/googleapis/java-datacatalog/commit/2e7535b13cd6fb1ffa1caa8cb818f6d9be63a247)) - - -### Documentation - -* **samples:** adds samples from documentation with correct region tags ([#392](https://www.github.com/googleapis/java-datacatalog/issues/392)) ([eff2228](https://www.github.com/googleapis/java-datacatalog/commit/eff2228a09fc16d5b682740727f425d4290e1058)) - -### [1.4.2](https://www.github.com/googleapis/java-datacatalog/compare/v1.4.1...v1.4.2) (2021-07-05) - - -### Bug Fixes - -* Add `shopt -s nullglob` to dependencies script ([#562](https://www.github.com/googleapis/java-datacatalog/issues/562)) ([dd8c163](https://www.github.com/googleapis/java-datacatalog/commit/dd8c16350d1445de0495d6c009d5054d8b519412)) -* Update dependencies.sh to not break on mac ([#558](https://www.github.com/googleapis/java-datacatalog/issues/558)) ([21de1da](https://www.github.com/googleapis/java-datacatalog/commit/21de1da8ce26bdc3c534af33e7380043e93ffee0)) - - -### Documentation - -* **samples:** add Entry, EntryGroup and TagTemplate ([#394](https://www.github.com/googleapis/java-datacatalog/issues/394)) ([fc6a167](https://www.github.com/googleapis/java-datacatalog/commit/fc6a167d9b7be8b18edb5cb6515779beaa86c6ee)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.4.0 ([#567](https://www.github.com/googleapis/java-datacatalog/issues/567)) ([56b33ed](https://www.github.com/googleapis/java-datacatalog/commit/56b33ed46ad4d409d2f4148fac77b07dc1ce5a3a)) -* update dependency com.google.protobuf:protobuf-java-util to v3.17.3 ([#568](https://www.github.com/googleapis/java-datacatalog/issues/568)) ([f2fb70b](https://www.github.com/googleapis/java-datacatalog/commit/f2fb70b50d71debed1a7db34ed31174549285aa0)) - -### [1.4.1](https://www.github.com/googleapis/java-datacatalog/compare/v1.4.0...v1.4.1) (2021-06-04) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#546](https://www.github.com/googleapis/java-datacatalog/issues/546)) ([198f08a](https://www.github.com/googleapis/java-datacatalog/commit/198f08a9fd620c2d6f9095cf94ce1fd479ff4845)) - -## [1.4.0](https://www.github.com/googleapis/java-datacatalog/compare/v1.3.3...v1.4.0) (2021-05-31) - - -### Features - -* add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#533](https://www.github.com/googleapis/java-datacatalog/issues/533)) ([73513ef](https://www.github.com/googleapis/java-datacatalog/commit/73513ef9339264a054227efb986f15d69bdf545c)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#532](https://www.github.com/googleapis/java-datacatalog/issues/532)) ([970ce77](https://www.github.com/googleapis/java-datacatalog/commit/970ce779ac53ab924b07b024abea8b70f6d34df7)) - -### [1.3.3](https://www.github.com/googleapis/java-datacatalog/compare/v1.3.2...v1.3.3) (2021-05-11) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#521](https://www.github.com/googleapis/java-datacatalog/issues/521)) ([9bca2ed](https://www.github.com/googleapis/java-datacatalog/commit/9bca2ed045d28b12789eddfd43096babaaf27664)) - -### [1.3.2](https://www.github.com/googleapis/java-datacatalog/compare/v1.3.1...v1.3.2) (2021-04-23) - - -### Bug Fixes - -* release scripts from issuing overlapping phases ([#491](https://www.github.com/googleapis/java-datacatalog/issues/491)) ([5243cd7](https://www.github.com/googleapis/java-datacatalog/commit/5243cd799592056159fb7d6b37188bf7c5814f60)) -* typo ([#488](https://www.github.com/googleapis/java-datacatalog/issues/488)) ([e81c4ca](https://www.github.com/googleapis/java-datacatalog/commit/e81c4cadb0bcc9a5049cf5fbad4c7ca956a002db)) - - -### Documentation - -* reformat comments in PolicyTagManager definition ([#493](https://www.github.com/googleapis/java-datacatalog/issues/493)) ([54f9277](https://www.github.com/googleapis/java-datacatalog/commit/54f9277a195029a235f74a63a836feefe43def42)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#495](https://www.github.com/googleapis/java-datacatalog/issues/495)) ([d12f96d](https://www.github.com/googleapis/java-datacatalog/commit/d12f96d9d9e3cb69ca9b437b001bdb49d5d92a84)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#509](https://www.github.com/googleapis/java-datacatalog/issues/509)) ([bab8d3c](https://www.github.com/googleapis/java-datacatalog/commit/bab8d3cc0df343e5bdcfdf34f19a343259e78ce9)) - -### [1.3.1](https://www.github.com/googleapis/java-datacatalog/compare/v1.3.0...v1.3.1) (2021-04-09) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#477](https://www.github.com/googleapis/java-datacatalog/issues/477)) ([8b4f7e3](https://www.github.com/googleapis/java-datacatalog/commit/8b4f7e30be68f64893cd6afd493cdb456b787a97)) - -## [1.3.0](https://www.github.com/googleapis/java-datacatalog/compare/v1.2.0...v1.3.0) (2021-03-30) - - -### Features - -* added DATAPROC_METASTORE integrated system along with new entry types: DATABASE and SERVICE ([fcf9213](https://www.github.com/googleapis/java-datacatalog/commit/fcf9213bc23ce5b82dd520a1828cecdcfe36c920)) -* adding fully_qualified_name in lookup and search ([fcf9213](https://www.github.com/googleapis/java-datacatalog/commit/fcf9213bc23ce5b82dd520a1828cecdcfe36c920)) -* new RenameTagTemplateFieldEnumValue API ([fcf9213](https://www.github.com/googleapis/java-datacatalog/commit/fcf9213bc23ce5b82dd520a1828cecdcfe36c920)) -* Policy Tag Manager v1 API service ([#469](https://www.github.com/googleapis/java-datacatalog/issues/469)) ([fcf9213](https://www.github.com/googleapis/java-datacatalog/commit/fcf9213bc23ce5b82dd520a1828cecdcfe36c920)) - - -### Documentation - -* Docum ([fcf9213](https://www.github.com/googleapis/java-datacatalog/commit/fcf9213bc23ce5b82dd520a1828cecdcfe36c920)) - -## [1.2.0](https://www.github.com/googleapis/java-datacatalog/compare/v1.1.1...v1.2.0) (2021-03-11) - - -### Features - -* **generator:** update protoc to v3.15.3 ([#445](https://www.github.com/googleapis/java-datacatalog/issues/445)) ([7069951](https://www.github.com/googleapis/java-datacatalog/commit/70699514e2f0aacc65cc226f641354b0991df899)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#457](https://www.github.com/googleapis/java-datacatalog/issues/457)) ([ccd0c83](https://www.github.com/googleapis/java-datacatalog/commit/ccd0c8354b4039dc4fe53508eae63dfd916ad8d2)) - -### [1.1.1](https://www.github.com/googleapis/java-datacatalog/compare/v1.1.0...v1.1.1) (2021-02-25) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.0 ([#441](https://www.github.com/googleapis/java-datacatalog/issues/441)) ([3a3e6a9](https://www.github.com/googleapis/java-datacatalog/commit/3a3e6a9f03f51c58f1c4ba2ee00ca33db2b3dc6b)) - -## [1.1.0](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.13...v1.1.0) (2021-02-22) - - -### Features - -* generate sample code in the Java microgenerator ([#419](https://www.github.com/googleapis/java-datacatalog/issues/419)) ([0dfec30](https://www.github.com/googleapis/java-datacatalog/commit/0dfec300b1d1b90d026b73c8d080fe7aa5b5af8e)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.19.0 ([#431](https://www.github.com/googleapis/java-datacatalog/issues/431)) ([19e2d6d](https://www.github.com/googleapis/java-datacatalog/commit/19e2d6da3de10c54a2ceec164c0c55e27b7925fe)) - -### [1.0.13](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.12...v1.0.13) (2021-01-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.18.0 ([#401](https://www.github.com/googleapis/java-datacatalog/issues/401)) ([c3f7fb2](https://www.github.com/googleapis/java-datacatalog/commit/c3f7fb25da06e95124c418f8c8b597e39cb2e5ea)) - -### [1.0.12](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.11...v1.0.12) (2020-12-15) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.17.0 ([#385](https://www.github.com/googleapis/java-datacatalog/issues/385)) ([fa6cf48](https://www.github.com/googleapis/java-datacatalog/commit/fa6cf4839f1eb4d1772f4630aa7def34a5b90933)) - -### [1.0.11](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.10...v1.0.11) (2020-12-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.1 ([#380](https://www.github.com/googleapis/java-datacatalog/issues/380)) ([5221ba4](https://www.github.com/googleapis/java-datacatalog/commit/5221ba485473e606398c77a4ab7735016eca767b)) - -### [1.0.10](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.9...v1.0.10) (2020-12-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.16.0 ([#371](https://www.github.com/googleapis/java-datacatalog/issues/371)) ([76677c4](https://www.github.com/googleapis/java-datacatalog/commit/76677c44bf7da89e5311972c9ae6ca9327fefac9)) - -### [1.0.9](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.8...v1.0.9) (2020-11-11) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.15.0 ([#353](https://www.github.com/googleapis/java-datacatalog/issues/353)) ([c019777](https://www.github.com/googleapis/java-datacatalog/commit/c0197778c31aab6f72be2d23cfd688003ae51cc6)) - -### [1.0.8](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.7...v1.0.8) (2020-10-31) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.14.1 ([#343](https://www.github.com/googleapis/java-datacatalog/issues/343)) ([d9fe5f8](https://www.github.com/googleapis/java-datacatalog/commit/d9fe5f8c1a6f34c6b8868e175825c241decc7470)) - -### [1.0.7](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.6...v1.0.7) (2020-10-22) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.13.0 ([#325](https://www.github.com/googleapis/java-datacatalog/issues/325)) ([b376039](https://www.github.com/googleapis/java-datacatalog/commit/b376039da9227265b7a6c90c2aa5e9ee0cbb4989)) - -### [1.0.6](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.5...v1.0.6) (2020-10-19) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.12.1 ([#318](https://www.github.com/googleapis/java-datacatalog/issues/318)) ([c095027](https://www.github.com/googleapis/java-datacatalog/commit/c095027e5a8f022ed528391098a6c8920f14c9e6)) - -### [1.0.5](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.4...v1.0.5) (2020-10-14) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.11.0 ([#306](https://www.github.com/googleapis/java-datacatalog/issues/306)) ([2e682a3](https://www.github.com/googleapis/java-datacatalog/commit/2e682a381282eddd2c3808543a5a20d360d45417)) - -### [1.0.4](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.3...v1.0.4) (2020-10-08) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.2 ([#298](https://www.github.com/googleapis/java-datacatalog/issues/298)) ([a773dd7](https://www.github.com/googleapis/java-datacatalog/commit/a773dd7d57721460e61e73307dd91b19753b4f78)) - -### [1.0.3](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.2...v1.0.3) (2020-09-23) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.10.0 ([#283](https://www.github.com/googleapis/java-datacatalog/issues/283)) ([933a342](https://www.github.com/googleapis/java-datacatalog/commit/933a342c96e0facd208e70262bd21abbce5e1ccd)) - -### [1.0.2](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.1...v1.0.2) (2020-09-21) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.9.0 ([#260](https://www.github.com/googleapis/java-datacatalog/issues/260)) ([af18c6a](https://www.github.com/googleapis/java-datacatalog/commit/af18c6ac0fbf1818124686912db184aee00cd993)) - -### [1.0.1](https://www.github.com/googleapis/java-datacatalog/compare/v1.0.0...v1.0.1) (2020-08-07) - - -### Bug Fixes - -* migrate to grpc_service_config ([#238](https://www.github.com/googleapis/java-datacatalog/issues/238)) ([b56b2fb](https://www.github.com/googleapis/java-datacatalog/commit/b56b2fb43d8c27d8c7bbf495c928587d5b27e554)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.2 ([#242](https://www.github.com/googleapis/java-datacatalog/issues/242)) ([a8e70c0](https://www.github.com/googleapis/java-datacatalog/commit/a8e70c0f01aa991c0eee5dd2ea6cbf20965a8ec4)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.8.3 ([#244](https://www.github.com/googleapis/java-datacatalog/issues/244)) ([679fbe4](https://www.github.com/googleapis/java-datacatalog/commit/679fbe47d85fc4c28be75c4e8b0fadd7259b1212)) - -## [1.0.0](https://www.github.com/googleapis/java-datacatalog/compare/v0.36.0...v1.0.0) (2020-06-17) - - -### Features - -* promote to GA ([#220](https://www.github.com/googleapis/java-datacatalog/issues/220)) ([00acf49](https://www.github.com/googleapis/java-datacatalog/commit/00acf4942960706da565205e8f031c6972baae7f)) -* **deps:** adopt flatten plugin and google-cloud-shared-dependencies ([#223](https://www.github.com/googleapis/java-datacatalog/issues/223)) ([35380ff](https://www.github.com/googleapis/java-datacatalog/commit/35380ffa70afdbcf33b1ad606d9e05be865c33a0)) -* **deps:** use google-cloud-shared-dependencies and flatten-maven-plugin ([#215](https://www.github.com/googleapis/java-datacatalog/issues/215)) ([0b9096a](https://www.github.com/googleapis/java-datacatalog/commit/0b9096a5fae4974b587816bdd295b2a01a58e3e4)) - - -### Dependencies - -* update core dependencies ([#213](https://www.github.com/googleapis/java-datacatalog/issues/213)) ([ac1cf8c](https://www.github.com/googleapis/java-datacatalog/commit/ac1cf8c64e899aaa2b3800d5e6f09a82ed5c9065)) - -## [0.36.0](https://www.github.com/googleapis/java-datacatalog/compare/v0.35.0...v0.36.0) (2020-06-11) - - -### âš  BREAKING CHANGES - -* **v1beta1:** return types for list methods now return paginated responses - -### Features - -* **v1beta1:** regenerate with Gapic V2 pagination settings ([#196](https://www.github.com/googleapis/java-datacatalog/issues/196)) ([9f27e23](https://www.github.com/googleapis/java-datacatalog/commit/9f27e23393e6f30959e39bae9502c937d276f8d9)) - - -### Documentation - -* change relative URLs to absolute URLs to fix broken links. ([#208](https://www.github.com/googleapis/java-datacatalog/issues/208)) ([7aa9ab6](https://www.github.com/googleapis/java-datacatalog/commit/7aa9ab6da80eca8dab4c52c04593d953e618ea44)) - - -### Dependencies - -* update dependency com.google.api:api-common to v1.9.1 ([#192](https://www.github.com/googleapis/java-datacatalog/issues/192)) ([83ec28f](https://www.github.com/googleapis/java-datacatalog/commit/83ec28f1d8dd12dd3ab834e8434362b79342a0c0)) -* update dependency com.google.api:api-common to v1.9.2 ([#197](https://www.github.com/googleapis/java-datacatalog/issues/197)) ([c6afb39](https://www.github.com/googleapis/java-datacatalog/commit/c6afb394300f37821a04c104b140deeb73616312)) -* update dependency com.google.api.grpc:proto-google-common-protos to v1.18.0 ([#181](https://www.github.com/googleapis/java-datacatalog/issues/181)) ([6cd2787](https://www.github.com/googleapis/java-datacatalog/commit/6cd2787cb134be74c20b18503d1f85e46d5ea19b)) -* update dependency com.google.cloud:google-cloud-core to v1.93.5 ([#193](https://www.github.com/googleapis/java-datacatalog/issues/193)) ([a666443](https://www.github.com/googleapis/java-datacatalog/commit/a666443380afe0e3555cc766ed0d7fc8582fb627)) -* update dependency com.google.protobuf:protobuf-java to v3.12.0 ([#187](https://www.github.com/googleapis/java-datacatalog/issues/187)) ([4ddb267](https://www.github.com/googleapis/java-datacatalog/commit/4ddb26799bbcfb271e2adc75d69c383b69d1e2fd)) -* update dependency com.google.protobuf:protobuf-java to v3.12.2 ([#191](https://www.github.com/googleapis/java-datacatalog/issues/191)) ([2bada56](https://www.github.com/googleapis/java-datacatalog/commit/2bada560b4e81963354de18c1dceddcef48c68a1)) -* update dependency io.grpc:grpc-bom to v1.29.0 ([#173](https://www.github.com/googleapis/java-datacatalog/issues/173)) ([8e5f628](https://www.github.com/googleapis/java-datacatalog/commit/8e5f628b7c2f09191179964bd72d14da9d7851da)) -* update dependency io.grpc:grpc-bom to v1.30.0 ([#202](https://www.github.com/googleapis/java-datacatalog/issues/202)) ([6fe1f63](https://www.github.com/googleapis/java-datacatalog/commit/6fe1f63b94b62169fb002aa45e3c119cac122f01)) -* update dependency org.threeten:threetenbp to v1.4.4 ([#175](https://www.github.com/googleapis/java-datacatalog/issues/175)) ([500a5fc](https://www.github.com/googleapis/java-datacatalog/commit/500a5fcb479d93a989525e6e3ffc6097fe75fdd7)) - -## [0.35.0](https://www.github.com/googleapis/java-datacatalog/compare/v0.34.1...v0.35.0) (2020-04-20) - - -### Features - -* add `order` field to `TagField` and `TagTemplateField` message in tags.proto ([#166](https://www.github.com/googleapis/java-datacatalog/issues/166)) ([ed46c97](https://www.github.com/googleapis/java-datacatalog/commit/ed46c976307dca364155e4e380a22db85f1cdb42)) -* add support for Search Partial Response ([#161](https://www.github.com/googleapis/java-datacatalog/issues/161)) ([7d5dd43](https://www.github.com/googleapis/java-datacatalog/commit/7d5dd431fdcbe6078ef86e81e2859738d484781f)) - - -### Dependencies - -* update dependency com.google.guava:guava-bom to v29 ([#149](https://www.github.com/googleapis/java-datacatalog/issues/149)) ([4ab8c7d](https://www.github.com/googleapis/java-datacatalog/commit/4ab8c7d6dac9b9820187c0ebad749fa095ec6660)) - -### [0.34.1](https://www.github.com/googleapis/java-datacatalog/compare/v0.34.0...v0.34.1) (2020-04-06) - - -### Dependencies - -* update core dependencies ([#107](https://www.github.com/googleapis/java-datacatalog/issues/107)) ([c838397](https://www.github.com/googleapis/java-datacatalog/commit/c83839703fca58af8f2e7de6dd0923bfa36973b4)) -* update dependency com.google.cloud:google-cloud-core to v1.93.4 ([#142](https://www.github.com/googleapis/java-datacatalog/issues/142)) ([eb81de4](https://www.github.com/googleapis/java-datacatalog/commit/eb81de4fc8b6e7b0bd6cbab70e703c486b744223)) -* update dependency org.threeten:threetenbp to v1.4.3 ([#121](https://www.github.com/googleapis/java-datacatalog/issues/121)) ([c8a249b](https://www.github.com/googleapis/java-datacatalog/commit/c8a249ba3cba770094ec363f43d543ab9f87e617)) - -## [0.34.0](https://www.github.com/googleapis/java-datacatalog/compare/v0.33.0...v0.34.0) (2020-03-31) - - -### Features - -* **v1:** add v1 client ([#131](https://www.github.com/googleapis/java-datacatalog/issues/131)) ([115d82b](https://www.github.com/googleapis/java-datacatalog/commit/115d82bd9f49c5bb8582a738bfd3cf8af38e15a8)) - - -### Dependencies - -* update dependency com.google.api:api-common to v1.9.0 ([#129](https://www.github.com/googleapis/java-datacatalog/issues/129)) ([e832dac](https://www.github.com/googleapis/java-datacatalog/commit/e832dac064d43461e452f4b020adf20d57f510ea)) - -## [0.33.0](https://www.github.com/googleapis/java-datacatalog/compare/v0.32.1...v0.33.0) (2020-03-11) - - -### Features - -* add ListEntryGroups method, add http bindings to support entry group tagging ([#85](https://www.github.com/googleapis/java-datacatalog/issues/85)) ([fd021e7](https://www.github.com/googleapis/java-datacatalog/commit/fd021e7d4ff9a092bdd7dc238fa9c46c91269ffc)) -* add listEntryGroups, listEntries to v1beta1 client ([#87](https://www.github.com/googleapis/java-datacatalog/issues/87)) ([2d98e84](https://www.github.com/googleapis/java-datacatalog/commit/2d98e8407ff95bd4f3fd7c9674dc8c245b7861c3)) - - -### Dependencies - -* update core dependencies ([#104](https://www.github.com/googleapis/java-datacatalog/issues/104)) ([b0321da](https://www.github.com/googleapis/java-datacatalog/commit/b0321da002a22edd6302c70c78cc1a1579b0a4c2)) -* update dependency com.google.cloud:google-cloud-core to v1.92.5 ([1a5f492](https://www.github.com/googleapis/java-datacatalog/commit/1a5f492420c08133cbf77b13b652121af2bfdc2f)) -* update dependency com.google.cloud:google-cloud-core to v1.93.1 ([#106](https://www.github.com/googleapis/java-datacatalog/issues/106)) ([164f3a4](https://www.github.com/googleapis/java-datacatalog/commit/164f3a4d5785e772d6e509844fcfd3ab22271046)) -* update dependency com.google.protobuf:protobuf-java to v3.11.4 ([366fd61](https://www.github.com/googleapis/java-datacatalog/commit/366fd61c23934eee9342300179c307e47fcf7e2d)) -* update dependency io.grpc:grpc-bom to v1.27.1 ([d78190f](https://www.github.com/googleapis/java-datacatalog/commit/d78190f61e38fe4c934bdf730bb7d34d1dfe3e00)) -* update dependency io.grpc:grpc-bom to v1.27.2 ([a9749b3](https://www.github.com/googleapis/java-datacatalog/commit/a9749b304fda1340d659e1c551d33604773d2962)) - - -### Documentation - -* **regen:** update sample code to set total timeout, add API client header test ([a078590](https://www.github.com/googleapis/java-datacatalog/commit/a078590a3e9f31157b31318188da60f772e30f52)) - -### [0.32.1](https://www.github.com/googleapis/java-datacatalog/compare/v0.32.0...v0.32.1) (2020-02-04) - - -### Dependencies - -* update core dependencies ([#56](https://www.github.com/googleapis/java-datacatalog/issues/56)) ([8939810](https://www.github.com/googleapis/java-datacatalog/commit/8939810421e388b4e69af27f8c1f8932255c7a80)) -* update core dependencies ([#78](https://www.github.com/googleapis/java-datacatalog/issues/78)) ([e7228b8](https://www.github.com/googleapis/java-datacatalog/commit/e7228b88e768005cb7c6e4a72c02b9f213a82e42)) -* update dependency com.google.guava:guava-bom to v28.2-android ([#54](https://www.github.com/googleapis/java-datacatalog/issues/54)) ([bd13a20](https://www.github.com/googleapis/java-datacatalog/commit/bd13a20888047ec0d90ef8c1be5c519d80959f49)) -* update dependency com.google.protobuf:protobuf-java to v3.11.3 ([#80](https://www.github.com/googleapis/java-datacatalog/issues/80)) ([da3ca63](https://www.github.com/googleapis/java-datacatalog/commit/da3ca6305140ea5e85713fecd0cea04cd5ff1454)) - -## [0.32.0](https://www.github.com/googleapis/java-datacatalog/compare/v0.31.0...v0.32.0) (2020-01-23) - - -### Features - -* release as beta ([#64](https://www.github.com/googleapis/java-datacatalog/issues/64)) ([1a18751](https://www.github.com/googleapis/java-datacatalog/commit/1a187515dd75a7d7514451070f431f300d864564)) - - -### Documentation - -* **regen:** fix javadoc return annotation ([#70](https://www.github.com/googleapis/java-datacatalog/issues/70)) ([c6e1958](https://www.github.com/googleapis/java-datacatalog/commit/c6e1958ab6f4aa3607a90320558505d32c75de68)) - - -### Dependencies - -* update dependency org.threeten:threetenbp to v1.4.1 ([53227cf](https://www.github.com/googleapis/java-datacatalog/commit/53227cfb5d9718b8cbcde9b963b6c17859d4f24c)) - -## [0.31.0](https://www.github.com/googleapis/java-datacatalog/compare/v0.30.0...v0.31.0) (2020-01-07) - - -### Features - -* add isRequired to TagTemplateField ([#49](https://www.github.com/googleapis/java-datacatalog/issues/49)) ([f6f2480](https://www.github.com/googleapis/java-datacatalog/commit/f6f2480e7ddb63ba7a0419534236397fb2460e74)) - - -### Dependencies - -* update core dependencies ([#52](https://www.github.com/googleapis/java-datacatalog/issues/52)) ([1d69141](https://www.github.com/googleapis/java-datacatalog/commit/1d69141a604769e12e31a6976383b64a90b40011)) -* update dependency com.google.protobuf:protobuf-java to v3.11.1 ([2a4e568](https://www.github.com/googleapis/java-datacatalog/commit/2a4e568e36e54bb4fb81dd300858778c1def203b)) -* update dependency io.grpc:grpc-bom to v1.26.0 ([#48](https://www.github.com/googleapis/java-datacatalog/issues/48)) ([1e625eb](https://www.github.com/googleapis/java-datacatalog/commit/1e625eb09e4069aa805455c21e3be4c8022b31a1)) - - -### Documentation - -* **regen:** updated docs from protoc update ([#42](https://www.github.com/googleapis/java-datacatalog/issues/42)) ([87883e1](https://www.github.com/googleapis/java-datacatalog/commit/87883e1effed1815dd53adf1f5fc39b86508b2e2)) - -## [0.30.0](https://www.github.com/googleapis/java-datacatalog/compare/v0.29.0...v0.30.0) (2019-11-20) - - -### âš  BREAKING CHANGES - -* resource classes such as `CreateEntryGroupRequest` have moved to the `com.google.cloud.datacatalog.v1beta1` package. - -### Features - -* add policy tag manager, move resource classes v1beta1 ([#32](https://www.github.com/googleapis/java-datacatalog/issues/32)) ([3c11307](https://www.github.com/googleapis/java-datacatalog/commit/3c11307c867a99ffdd960509fbcb06ba2361f0f7)) - - -### Documentation - -* regenerate javadocs ([#37](https://www.github.com/googleapis/java-datacatalog/issues/37)) ([d0b0677](https://www.github.com/googleapis/java-datacatalog/commit/d0b0677c54b459acef7d22725d30ff330a8186ec)) -* remove orderBy from doc samples ([#28](https://www.github.com/googleapis/java-datacatalog/issues/28)) ([a9c3485](https://www.github.com/googleapis/java-datacatalog/commit/a9c348510f3e47b4ec4cdd2de1b0a042a0f6af99)) - -## [0.29.0](https://www.github.com/googleapis/java-datacatalog/compare/0.28.0...v0.29.0) (2019-10-25) - - -### Features - -* make repo reasable, add parent/bom ([#1](https://www.github.com/googleapis/java-datacatalog/issues/1)) ([54a6d2d](https://www.github.com/googleapis/java-datacatalog/commit/54a6d2dd0af70dfa3b7556b0510906ae3065fd59)) - - -### Dependencies - -* update dependency com.google.api.grpc:proto-google-common-protos to v1.17.0 ([#2](https://www.github.com/googleapis/java-datacatalog/issues/2)) ([ed20a64](https://www.github.com/googleapis/java-datacatalog/commit/ed20a648ab18d0cd2b56e8337590ea452c97f0f6)) -* update dependency com.google.cloud:google-cloud-core to v1.91.2 ([#10](https://www.github.com/googleapis/java-datacatalog/issues/10)) ([d4655bd](https://www.github.com/googleapis/java-datacatalog/commit/d4655bd9d82c2a22b72a99d19668cdeab7340eb6)) -* update dependency com.google.cloud:google-cloud-core to v1.91.3 ([#18](https://www.github.com/googleapis/java-datacatalog/issues/18)) ([32faee2](https://www.github.com/googleapis/java-datacatalog/commit/32faee280e3f05cef15e94846526034d92a6953c)) -* update dependency io.grpc:grpc-bom to v1.24.1 ([1f62d04](https://www.github.com/googleapis/java-datacatalog/commit/1f62d04ecb8729c3582c4b91ab266ef66c89cb20)) -* update gax.version to v1.49.0 ([#5](https://www.github.com/googleapis/java-datacatalog/issues/5)) ([ae2ed00](https://www.github.com/googleapis/java-datacatalog/commit/ae2ed00fcd1c76048fca6b2872ee771f50d221aa)) -* update gax.version to v1.49.1 ([76437ef](https://www.github.com/googleapis/java-datacatalog/commit/76437ef7077de450994c8575569593cf3ccc1793)) - - -### Documentation - -* regenerate from protos ([#13](https://www.github.com/googleapis/java-datacatalog/issues/13)) ([0daafd4](https://www.github.com/googleapis/java-datacatalog/commit/0daafd47123a0bf5d62c9909203b891923382427)) diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md deleted file mode 100644 index f218a6496ac7..000000000000 --- a/java-datacatalog/README.md +++ /dev/null @@ -1,204 +0,0 @@ -# Google Data Catalog Client for Java - -Java idiomatic client for [Data Catalog][product-docs]. - -[![Maven][maven-version-image]][maven-version-link] -![Stability][stability-image] - -- [Product Documentation][product-docs] -- [Client Library Documentation][javadocs] - - -## Quickstart - -If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: - -```xml - - - - com.google.cloud - libraries-bom - 26.86.0 - pom - import - - - - - - - com.google.cloud - google-cloud-datacatalog - - -``` - -If you are using Maven without the BOM, add this to your dependencies: - - -```xml - - com.google.cloud - google-cloud-datacatalog - 1.101.0 - -``` - -If you are using Gradle 5.x or later, add this to your dependencies: - -```Groovy -implementation platform('com.google.cloud:libraries-bom:26.86.0') - -implementation 'com.google.cloud:google-cloud-datacatalog' -``` - -If you are using Gradle without BOM, add this to your dependencies: - -```Groovy -implementation 'com.google.cloud:google-cloud-datacatalog:1.101.0' -``` - -If you are using SBT, add this to your dependencies: - -```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datacatalog" % "1.101.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 Data Catalog APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Data Catalog API calls. - -## Getting Started - -### Prerequisites - -You will need a [Google Cloud Platform Console][developer-console] project with the Data Catalog [API enabled][enable-api]. -You will need to [enable billing][enable-billing] to use Google Data Catalog. -[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-datacatalog` library. See the [Quickstart](#quickstart) section -to add `google-cloud-datacatalog` as a dependency in your code. - -## About Data Catalog - - -[Data Catalog][product-docs] is a fully managed and highly scalable data discovery and metadata management service. - -See the [Data Catalog client library docs][javadocs] to learn how to -use this Data Catalog Client Library. - - - - - - -## Troubleshooting - -To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. - -## Transport - -Data Catalog 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/). - - - -## 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/data-catalog -[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datacatalog/latest/overview -[stability-image]: https://img.shields.io/badge/stability-stable-green -[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-datacatalog.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datacatalog/1.101.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=datacatalog.googleapis.com -[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM -[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png - -[semver]: https://semver.org/ -[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained -[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries -[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html -[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml b/java-datacatalog/google-cloud-datacatalog-bom/pom.xml deleted file mode 100644 index 8aa1ec1cd954..000000000000 --- a/java-datacatalog/google-cloud-datacatalog-bom/pom.xml +++ /dev/null @@ -1,52 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-datacatalog-bom - 1.102.0 - pom - - - com.google.cloud - google-cloud-pom-parent - 1.90.0 - ../../google-cloud-pom-parent/pom.xml - - - Google Cloud Data Catalog BOM - - BOM for Google Cloud Data Catalog - - - - - - - com.google.cloud - google-cloud-datacatalog - 1.102.0 - - - com.google.api.grpc - grpc-google-cloud-datacatalog-v1 - 1.102.0 - - - com.google.api.grpc - grpc-google-cloud-datacatalog-v1beta1 - 1.102.0 - - - com.google.api.grpc - proto-google-cloud-datacatalog-v1 - 1.102.0 - - - com.google.api.grpc - proto-google-cloud-datacatalog-v1beta1 - 1.102.0 - - - - - diff --git a/java-datacatalog/google-cloud-datacatalog/pom.xml b/java-datacatalog/google-cloud-datacatalog/pom.xml deleted file mode 100644 index 0f9b3620d134..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/pom.xml +++ /dev/null @@ -1,128 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-datacatalog - 1.102.0 - jar - Google Cloud Data Catalog - Java idiomatic client for Google Cloud Data Catalog - - com.google.cloud - google-cloud-datacatalog-parent - 1.102.0 - - - google-cloud-datacatalog - - - - 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-iam-v1 - - - - - com.google.api.grpc - proto-google-cloud-datacatalog-v1 - - - com.google.api.grpc - proto-google-cloud-datacatalog-v1beta1 - - - - com.google.guava - guava - - - com.google.api - gax - - - com.google.api - gax-grpc - - - com.google.api - gax-httpjson - - - org.threeten - threetenbp - - - com.google.api.grpc - grpc-google-iam-v1 - test - - - - - junit - junit - test - - - com.google.cloud - google-cloud-core - test - - - - - com.google.api.grpc - grpc-google-cloud-datacatalog-v1 - test - - - com.google.api.grpc - grpc-google-cloud-datacatalog-v1beta1 - test - - - - - com.google.api - gax - testlib - test - - - com.google.api - gax-grpc - testlib - test - - - com.google.api - gax-httpjson - testlib - test - - - diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java deleted file mode 100644 index 0e512344b7ba..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogClient.java +++ /dev/null @@ -1,6733 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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.api.resourcenames.ResourceName; -import com.google.cloud.datacatalog.v1.stub.DataCatalogStub; -import com.google.cloud.datacatalog.v1.stub.DataCatalogStubSettings; -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.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: Deprecated: Please use Dataplex Catalog instead. - * - *

Data Catalog API service allows you to discover, understand, and manage your data. - * - *

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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String entryGroupId = "entryGroupId1228924712";
- *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
- *   EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
- * }
- * }
- * - *

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

SearchCatalog

Searches Data Catalog for multiple resources like entries and tags that match a query. - *

This is a [Custom Method] (https://cloud.google.com/apis/design/custom_methods) that doesn't return all information on a resource, only its ID and high level fields. To get more information, you can subsequently call specific get methods. - *

Note: Data Catalog search queries don't guarantee full recall. Results that match your query might not be returned, even in subsequent result pages. Additionally, returned (and not returned) results can vary if you repeat search queries. - *

For more information, see [Data Catalog search syntax] (https://cloud.google.com/data-catalog/docs/how-to/search-reference).

- *

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

- *
    - *
  • searchCatalog(SearchCatalogRequest request) - *

- *

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

- *
    - *
  • searchCatalog(SearchCatalogRequest.Scope scope, String query) - *

- *

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

- *
    - *
  • searchCatalogPagedCallable() - *

  • searchCatalogCallable() - *

- *

CreateEntryGroup

Creates an entry group. - *

An entry group contains logically related entries together with [Cloud Identity and Access Management](/data-catalog/docs/concepts/iam) policies. These policies specify users who can create, edit, and view entries within entry groups. - *

Data Catalog automatically creates entry groups with names that start with the `{@literal @}` symbol for the following resources: - *

    - *
  • BigQuery entries (`{@literal @}bigquery`) - *
  • Pub/Sub topics (`{@literal @}pubsub`) - *
  • Dataproc Metastore services (`{@literal @}dataproc_metastore_{SERVICE_NAME_HASH}`) - *
- *

You can create your own entry groups for Cloud Storage fileset entries and custom entries together with the corresponding IAM policies. User-created entry groups can't contain the `{@literal @}` symbol, it is reserved for automatically created groups. - *

Entry groups, like entries, can be searched. - *

A maximum of 10,000 entry groups may be created per organization across all locations. - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • createEntryGroup(CreateEntryGroupRequest request) - *

- *

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

- *
    - *
  • createEntryGroup(LocationName parent, String entryGroupId, EntryGroup entryGroup) - *

  • createEntryGroup(String parent, String entryGroupId, EntryGroup entryGroup) - *

- *

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

- *
    - *
  • createEntryGroupCallable() - *

- *

GetEntryGroup

Gets an entry group.

- *

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

- *
    - *
  • getEntryGroup(GetEntryGroupRequest request) - *

- *

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

- *
    - *
  • getEntryGroup(EntryGroupName name) - *

  • getEntryGroup(String name) - *

  • getEntryGroup(EntryGroupName name, FieldMask readMask) - *

  • getEntryGroup(String name, FieldMask readMask) - *

- *

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

- *
    - *
  • getEntryGroupCallable() - *

- *

UpdateEntryGroup

Updates an entry group. - *

You must enable the Data Catalog API in the project identified by the `entry_group.name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • updateEntryGroup(UpdateEntryGroupRequest request) - *

- *

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

- *
    - *
  • updateEntryGroup(EntryGroup entryGroup) - *

  • updateEntryGroup(EntryGroup entryGroup, 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.

- *
    - *
  • updateEntryGroupCallable() - *

- *

DeleteEntryGroup

Deletes an entry group. - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • deleteEntryGroup(DeleteEntryGroupRequest request) - *

- *

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

- *
    - *
  • deleteEntryGroup(EntryGroupName name) - *

  • deleteEntryGroup(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.

- *
    - *
  • deleteEntryGroupCallable() - *

- *

ListEntryGroups

Lists entry groups.

- *

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

- *
    - *
  • listEntryGroups(ListEntryGroupsRequest request) - *

- *

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

- *
    - *
  • listEntryGroups(LocationName parent) - *

  • listEntryGroups(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.

- *
    - *
  • listEntryGroupsPagedCallable() - *

  • listEntryGroupsCallable() - *

- *

CreateEntry

Creates an entry. - *

You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM', or custom types. Data Catalog automatically creates entries with other types during metadata ingestion from integrated systems. - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - *

An entry group can have a maximum of 100,000 entries.

- *

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

- *
    - *
  • createEntry(CreateEntryRequest request) - *

- *

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

- *
    - *
  • createEntry(EntryGroupName parent, String entryId, Entry entry) - *

  • createEntry(String parent, String entryId, Entry entry) - *

- *

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

- *
    - *
  • createEntryCallable() - *

- *

UpdateEntry

Updates an existing entry. - *

You must enable the Data Catalog API in the project identified by the `entry.name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • updateEntry(UpdateEntryRequest request) - *

- *

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

- *
    - *
  • updateEntry(Entry entry) - *

  • updateEntry(Entry entry, 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.

- *
    - *
  • updateEntryCallable() - *

- *

DeleteEntry

Deletes an existing entry. - *

You can delete only the entries created by the [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry] method. - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • deleteEntry(DeleteEntryRequest request) - *

- *

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

- *
    - *
  • deleteEntry(EntryName name) - *

  • deleteEntry(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.

- *
    - *
  • deleteEntryCallable() - *

- *

GetEntry

Gets an entry.

- *

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

- *
    - *
  • getEntry(GetEntryRequest request) - *

- *

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

- *
    - *
  • getEntry(EntryName name) - *

  • getEntry(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.

- *
    - *
  • getEntryCallable() - *

- *

LookupEntry

Gets an entry by its target resource name. - *

The resource name comes from the source Google Cloud Platform service.

- *

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

- *
    - *
  • lookupEntry(LookupEntryRequest request) - *

- *

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

- *
    - *
  • lookupEntryCallable() - *

- *

ListEntries

Lists entries. - *

Note: Currently, this method can list only custom entries. To get a list of both custom and automatically created entries, use [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].

- *

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

- *
    - *
  • listEntries(ListEntriesRequest request) - *

- *

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

- *
    - *
  • listEntries(EntryGroupName parent) - *

  • listEntries(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.

- *
    - *
  • listEntriesPagedCallable() - *

  • listEntriesCallable() - *

- *

ModifyEntryOverview

Modifies entry overview, part of the business context of an [Entry][google.cloud.datacatalog.v1.Entry]. - *

To call this method, you must have the `datacatalog.entries.updateOverview` IAM permission on the corresponding project.

- *

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

- *
    - *
  • modifyEntryOverview(ModifyEntryOverviewRequest request) - *

- *

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

- *
    - *
  • modifyEntryOverviewCallable() - *

- *

ModifyEntryContacts

Modifies contacts, part of the business context of an [Entry][google.cloud.datacatalog.v1.Entry]. - *

To call this method, you must have the `datacatalog.entries.updateContacts` IAM permission on the corresponding project.

- *

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

- *
    - *
  • modifyEntryContacts(ModifyEntryContactsRequest request) - *

- *

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

- *
    - *
  • modifyEntryContactsCallable() - *

- *

CreateTagTemplate

Creates a tag template. - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • createTagTemplate(CreateTagTemplateRequest request) - *

- *

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

- *
    - *
  • createTagTemplate(LocationName parent, String tagTemplateId, TagTemplate tagTemplate) - *

  • createTagTemplate(String parent, String tagTemplateId, TagTemplate tagTemplate) - *

- *

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

- *
    - *
  • createTagTemplateCallable() - *

- *

GetTagTemplate

Gets a tag template.

- *

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

- *
    - *
  • getTagTemplate(GetTagTemplateRequest request) - *

- *

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

- *
    - *
  • getTagTemplate(TagTemplateName name) - *

  • getTagTemplate(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.

- *
    - *
  • getTagTemplateCallable() - *

- *

UpdateTagTemplate

Updates a tag template. - *

You can't update template fields with this method. These fields are separate resources with their own create, update, and delete methods. - *

You must enable the Data Catalog API in the project identified by the `tag_template.name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • updateTagTemplate(UpdateTagTemplateRequest request) - *

- *

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

- *
    - *
  • updateTagTemplate(TagTemplate tagTemplate) - *

  • updateTagTemplate(TagTemplate tagTemplate, 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.

- *
    - *
  • updateTagTemplateCallable() - *

- *

DeleteTagTemplate

Deletes a tag template and all tags that use it. - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • deleteTagTemplate(DeleteTagTemplateRequest request) - *

- *

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

- *
    - *
  • deleteTagTemplate(TagTemplateName name, boolean force) - *

  • deleteTagTemplate(String name, boolean force) - *

- *

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

- *
    - *
  • deleteTagTemplateCallable() - *

- *

CreateTagTemplateField

Creates a field in a tag template. - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • createTagTemplateField(CreateTagTemplateFieldRequest request) - *

- *

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

- *
    - *
  • createTagTemplateField(TagTemplateName parent, String tagTemplateFieldId, TagTemplateField tagTemplateField) - *

  • createTagTemplateField(String parent, String tagTemplateFieldId, TagTemplateField tagTemplateField) - *

- *

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

- *
    - *
  • createTagTemplateFieldCallable() - *

- *

UpdateTagTemplateField

Updates a field in a tag template. - *

You can't update the field type with this method. - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • updateTagTemplateField(UpdateTagTemplateFieldRequest request) - *

- *

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

- *
    - *
  • updateTagTemplateField(TagTemplateFieldName name, TagTemplateField tagTemplateField) - *

  • updateTagTemplateField(String name, TagTemplateField tagTemplateField) - *

  • updateTagTemplateField(TagTemplateFieldName name, TagTemplateField tagTemplateField, FieldMask updateMask) - *

  • updateTagTemplateField(String name, TagTemplateField tagTemplateField, 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.

- *
    - *
  • updateTagTemplateFieldCallable() - *

- *

RenameTagTemplateField

Renames a field in a tag template. - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • renameTagTemplateField(RenameTagTemplateFieldRequest request) - *

- *

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

- *
    - *
  • renameTagTemplateField(TagTemplateFieldName name, String newTagTemplateFieldId) - *

  • renameTagTemplateField(String name, String newTagTemplateFieldId) - *

- *

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

- *
    - *
  • renameTagTemplateFieldCallable() - *

- *

RenameTagTemplateFieldEnumValue

Renames an enum value in a tag template. - *

Within a single enum field, enum values must be unique.

- *

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

- *
    - *
  • renameTagTemplateFieldEnumValue(RenameTagTemplateFieldEnumValueRequest request) - *

- *

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

- *
    - *
  • renameTagTemplateFieldEnumValue(TagTemplateFieldEnumValueName name, String newEnumValueDisplayName) - *

  • renameTagTemplateFieldEnumValue(String name, String newEnumValueDisplayName) - *

- *

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

- *
    - *
  • renameTagTemplateFieldEnumValueCallable() - *

- *

DeleteTagTemplateField

Deletes a field in a tag template and all uses of this field from the tags based on this template. - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For more information, see [Data Catalog resource project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).

- *

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

- *
    - *
  • deleteTagTemplateField(DeleteTagTemplateFieldRequest request) - *

- *

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

- *
    - *
  • deleteTagTemplateField(TagTemplateFieldName name, boolean force) - *

  • deleteTagTemplateField(String name, boolean force) - *

- *

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

- *
    - *
  • deleteTagTemplateFieldCallable() - *

- *

CreateTag

Creates a tag and assigns it to: - *

    - *
  • An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is `projects.locations.entryGroups.entries.tags.create`. - *
  • Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method name is `projects.locations.entryGroups.tags.create`. - *
- *

Note: The project identified by the `parent` parameter for the [tag] (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) and the [tag template] (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) used to create the tag must be in the same organization.

- *

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

- *
    - *
  • createTag(CreateTagRequest request) - *

- *

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

- *
    - *
  • createTag(EntryName parent, Tag tag) - *

  • createTag(String parent, Tag tag) - *

- *

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

- *
    - *
  • createTagCallable() - *

- *

UpdateTag

Updates an existing tag.

- *

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

- *
    - *
  • updateTag(UpdateTagRequest request) - *

- *

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

- *
    - *
  • updateTag(Tag tag) - *

  • updateTag(Tag tag, 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.

- *
    - *
  • updateTagCallable() - *

- *

DeleteTag

Deletes a tag.

- *

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

- *
    - *
  • deleteTag(DeleteTagRequest request) - *

- *

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

- *
    - *
  • deleteTag(EntryName name) - *

  • deleteTag(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.

- *
    - *
  • deleteTagCallable() - *

- *

ListTags

Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are lowercased.

- *

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

- *
    - *
  • listTags(ListTagsRequest request) - *

- *

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

- *
    - *
  • listTags(EntryName parent) - *

  • listTags(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.

- *
    - *
  • listTagsPagedCallable() - *

  • listTagsCallable() - *

- *

ReconcileTags

`ReconcileTags` creates or updates a list of tags on the entry. If the [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing] parameter is set, the operation deletes tags not included in the input tag list. - *

`ReconcileTags` returns a [long-running operation] [google.longrunning.Operation] resource that can be queried with [Operations.GetOperation][google.longrunning.Operations.GetOperation] to return [ReconcileTagsMetadata] [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and a [ReconcileTagsResponse] [google.cloud.datacatalog.v1.ReconcileTagsResponse] message.

- *

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

- *
    - *
  • reconcileTagsAsync(ReconcileTagsRequest request) - *

- *

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

- *
    - *
  • reconcileTagsOperationCallable() - *

  • reconcileTagsCallable() - *

- *

StarEntry

Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by the current user. Starring information is private to each user.

- *

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

- *
    - *
  • starEntry(StarEntryRequest request) - *

- *

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

- *
    - *
  • starEntry(EntryName name) - *

  • starEntry(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.

- *
    - *
  • starEntryCallable() - *

- *

UnstarEntry

Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by the current user. Starring information is private to each user.

- *

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

- *
    - *
  • unstarEntry(UnstarEntryRequest request) - *

- *

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

- *
    - *
  • unstarEntry(EntryName name) - *

  • unstarEntry(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.

- *
    - *
  • unstarEntryCallable() - *

- *

SetIamPolicy

Sets an access control policy for a resource. Replaces any existing policy. - *

Supported resources are: - *

- Tag templates - Entry groups - *

Note: This method sets policies only within Data Catalog and can't be used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources synced with the Data Catalog. - *

To call this method, you must have the following Google IAM permissions: - *

- `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.

- *

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

- *
    - *
  • setIamPolicy(SetIamPolicyRequest request) - *

- *

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

- *
    - *
  • setIamPolicy(ResourceName resource, Policy policy) - *

  • setIamPolicy(String resource, Policy policy) - *

- *

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. - *

May return: - *

    - *
  • A`NOT_FOUND` error if the resource doesn't exist or you don't have the permission to view it. - *
  • An empty policy if the resource exists but doesn't have a set policy. - *
- *

Supported resources are: - *

- Tag templates - Entry groups - *

Note: This method doesn't get policies from Google Cloud Platform resources ingested into Data Catalog. - *

To call this method, you must have the following Google IAM permissions: - *

- `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.

- *

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

- *
    - *
  • getIamPolicy(GetIamPolicyRequest request) - *

- *

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

- *
    - *
  • getIamPolicy(ResourceName resource) - *

  • getIamPolicy(String resource) - *

- *

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

Gets your permissions on a resource. - *

Returns an empty set of permissions if the resource doesn't exist. - *

Supported resources are: - *

- Tag templates - Entry groups - *

Note: This method gets policies only within Data Catalog and can't be used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources ingested into Data Catalog. - *

No Google IAM permissions are required to call this method.

- *

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() - *

- *

ImportEntries

Imports entries from a source, such as data previously dumped into a Cloud Storage bucket, into Data Catalog. Import of entries is a sync operation that reconciles the state of the third-party system with the Data Catalog. - *

`ImportEntries` accepts source data snapshots of a third-party system. Snapshot should be delivered as a .wire or base65-encoded .txt file containing a sequence of Protocol Buffer messages of [DumpItem][google.cloud.datacatalog.v1.DumpItem] type. - *

`ImportEntries` returns a [long-running operation] [google.longrunning.Operation] resource that can be queried with [Operations.GetOperation][google.longrunning.Operations.GetOperation] to return [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata] and an [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse] message.

- *

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

- *
    - *
  • importEntriesAsync(ImportEntriesRequest request) - *

- *

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

- *
    - *
  • importEntriesOperationCallable() - *

  • importEntriesCallable() - *

- *

SetConfig

Sets the configuration related to the migration to Dataplex for an organization or project.

- *

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

- *
    - *
  • setConfig(SetConfigRequest request) - *

- *

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

- *
    - *
  • setConfigCallable() - *

- *

RetrieveConfig

Retrieves the configuration related to the migration from Data Catalog to Dataplex for a specific organization, including all the projects under it which have a separate configuration set.

- *

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

- *
    - *
  • retrieveConfig(RetrieveConfigRequest request) - *

- *

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

- *
    - *
  • retrieveConfigCallable() - *

- *

RetrieveEffectiveConfig

Retrieves the effective configuration related to the migration from Data Catalog to Dataplex for a specific organization or project. If there is no specific configuration set for the resource, the setting is checked hierarchicahlly through the ancestors of the resource, starting from the resource itself.

- *

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

- *
    - *
  • retrieveEffectiveConfig(RetrieveEffectiveConfigRequest request) - *

- *

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

- *
    - *
  • retrieveEffectiveConfigCallable() - *

- *
- * - *

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 DataCatalogSettings 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
- * DataCatalogSettings dataCatalogSettings =
- *     DataCatalogSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings);
- * }
- * - *

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
- * DataCatalogSettings dataCatalogSettings =
- *     DataCatalogSettings.newBuilder().setEndpoint(myEndpoint).build();
- * DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings);
- * }
- * - *

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
- * DataCatalogSettings dataCatalogSettings = DataCatalogSettings.newHttpJsonBuilder().build();
- * DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@Deprecated -@Generated("by gapic-generator-java") -public class DataCatalogClient implements BackgroundResource { - private final @Nullable DataCatalogSettings settings; - private final DataCatalogStub stub; - private final OperationsClient httpJsonOperationsClient; - private final com.google.longrunning.OperationsClient operationsClient; - - /** Constructs an instance of DataCatalogClient with default settings. */ - public static final DataCatalogClient create() throws IOException { - return create(DataCatalogSettings.newBuilder().build()); - } - - /** - * Constructs an instance of DataCatalogClient, 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 DataCatalogClient create(DataCatalogSettings settings) throws IOException { - return new DataCatalogClient(settings); - } - - /** - * Constructs an instance of DataCatalogClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(DataCatalogSettings). - */ - public static final DataCatalogClient create(DataCatalogStub stub) { - return new DataCatalogClient(stub); - } - - /** - * Constructs an instance of DataCatalogClient, 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 DataCatalogClient(DataCatalogSettings settings) throws IOException { - this.settings = settings; - this.stub = ((DataCatalogStubSettings) settings.getStubSettings()).createStub(); - this.operationsClient = - com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); - this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); - } - - protected DataCatalogClient(DataCatalogStub 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 DataCatalogSettings getSettings() { - return settings; - } - - public DataCatalogStub 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. - /** - * Searches Data Catalog for multiple resources like entries and tags that match a query. - * - *

This is a [Custom Method] (https://cloud.google.com/apis/design/custom_methods) that doesn't - * return all information on a resource, only its ID and high level fields. To get more - * information, you can subsequently call specific get methods. - * - *

Note: Data Catalog search queries don't guarantee full recall. Results that match your query - * might not be returned, even in subsequent result pages. Additionally, returned (and not - * returned) results can vary if you repeat search queries. - * - *

For more information, see [Data Catalog search syntax] - * (https://cloud.google.com/data-catalog/docs/how-to/search-reference). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build();
-   *   String query = "query107944136";
-   *   for (SearchCatalogResult element :
-   *       dataCatalogClient.searchCatalog(scope, query).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param scope Required. The scope of this search request. - *

The `scope` is invalid if `include_org_ids`, `include_project_ids` are empty AND - * `include_gcp_public_datasets` is set to `false`. In this case, the request returns an - * error. - * @param query Optional. The query string with a minimum of 3 characters and specific syntax. For - * more information, see [Data Catalog search - * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). - *

An empty query string returns all data assets (in the specified scope) that you have - * access to. - *

A query string can be a simple `xyz` or qualified by predicates: - *

- * - * @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 SearchCatalogPagedResponse searchCatalog( - SearchCatalogRequest.Scope scope, String query) { - SearchCatalogRequest request = - SearchCatalogRequest.newBuilder().setScope(scope).setQuery(query).build(); - return searchCatalog(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches Data Catalog for multiple resources like entries and tags that match a query. - * - *

This is a [Custom Method] (https://cloud.google.com/apis/design/custom_methods) that doesn't - * return all information on a resource, only its ID and high level fields. To get more - * information, you can subsequently call specific get methods. - * - *

Note: Data Catalog search queries don't guarantee full recall. Results that match your query - * might not be returned, even in subsequent result pages. Additionally, returned (and not - * returned) results can vary if you repeat search queries. - * - *

For more information, see [Data Catalog search syntax] - * (https://cloud.google.com/data-catalog/docs/how-to/search-reference). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SearchCatalogRequest request =
-   *       SearchCatalogRequest.newBuilder()
-   *           .setScope(SearchCatalogRequest.Scope.newBuilder().build())
-   *           .setQuery("query107944136")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setAdminSearch(true)
-   *           .build();
-   *   for (SearchCatalogResult element : dataCatalogClient.searchCatalog(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final SearchCatalogPagedResponse searchCatalog(SearchCatalogRequest request) { - return searchCatalogPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches Data Catalog for multiple resources like entries and tags that match a query. - * - *

This is a [Custom Method] (https://cloud.google.com/apis/design/custom_methods) that doesn't - * return all information on a resource, only its ID and high level fields. To get more - * information, you can subsequently call specific get methods. - * - *

Note: Data Catalog search queries don't guarantee full recall. Results that match your query - * might not be returned, even in subsequent result pages. Additionally, returned (and not - * returned) results can vary if you repeat search queries. - * - *

For more information, see [Data Catalog search syntax] - * (https://cloud.google.com/data-catalog/docs/how-to/search-reference). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SearchCatalogRequest request =
-   *       SearchCatalogRequest.newBuilder()
-   *           .setScope(SearchCatalogRequest.Scope.newBuilder().build())
-   *           .setQuery("query107944136")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setAdminSearch(true)
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.searchCatalogPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (SearchCatalogResult element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - searchCatalogPagedCallable() { - return stub.searchCatalogPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches Data Catalog for multiple resources like entries and tags that match a query. - * - *

This is a [Custom Method] (https://cloud.google.com/apis/design/custom_methods) that doesn't - * return all information on a resource, only its ID and high level fields. To get more - * information, you can subsequently call specific get methods. - * - *

Note: Data Catalog search queries don't guarantee full recall. Results that match your query - * might not be returned, even in subsequent result pages. Additionally, returned (and not - * returned) results can vary if you repeat search queries. - * - *

For more information, see [Data Catalog search syntax] - * (https://cloud.google.com/data-catalog/docs/how-to/search-reference). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SearchCatalogRequest request =
-   *       SearchCatalogRequest.newBuilder()
-   *           .setScope(SearchCatalogRequest.Scope.newBuilder().build())
-   *           .setQuery("query107944136")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .setAdminSearch(true)
-   *           .build();
-   *   while (true) {
-   *     SearchCatalogResponse response = dataCatalogClient.searchCatalogCallable().call(request);
-   *     for (SearchCatalogResult element : response.getResultsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable searchCatalogCallable() { - return stub.searchCatalogCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry group. - * - *

An entry group contains logically related entries together with [Cloud Identity and Access - * Management](/data-catalog/docs/concepts/iam) policies. These policies specify users who can - * create, edit, and view entries within entry groups. - * - *

Data Catalog automatically creates entry groups with names that start with the - * `{@literal @}` symbol for the following resources: - * - *

    - *
  • BigQuery entries (`{@literal @}bigquery`) - *
  • Pub/Sub topics (`{@literal @}pubsub`) - *
  • Dataproc Metastore services (`{@literal @}dataproc_metastore_{SERVICE_NAME_HASH}`) - *
- * - *

You can create your own entry groups for Cloud Storage fileset entries and custom entries - * together with the corresponding IAM policies. User-created entry groups can't contain the - * `{@literal @}` symbol, it is reserved for automatically created groups. - * - *

Entry groups, like entries, can be searched. - * - *

A maximum of 10,000 entry groups may be created per organization across all locations. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String entryGroupId = "entryGroupId1228924712";
-   *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
-   * }
-   * }
- * - * @param parent Required. The names of the project and location that the new entry group belongs - * to. - *

Note: The entry group itself and its child resources might not be stored in the location - * specified in its name. - * @param entryGroupId Required. The ID of the entry group to create. - *

The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and must - * start with a letter or underscore. The maximum size is 64 bytes when encoded in UTF-8. - * @param entryGroup The entry group to create. Defaults to empty. - * @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 EntryGroup createEntryGroup( - @Nullable LocationName parent, String entryGroupId, EntryGroup entryGroup) { - CreateEntryGroupRequest request = - CreateEntryGroupRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setEntryGroupId(entryGroupId) - .setEntryGroup(entryGroup) - .build(); - return createEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry group. - * - *

An entry group contains logically related entries together with [Cloud Identity and Access - * Management](/data-catalog/docs/concepts/iam) policies. These policies specify users who can - * create, edit, and view entries within entry groups. - * - *

Data Catalog automatically creates entry groups with names that start with the - * `{@literal @}` symbol for the following resources: - * - *

    - *
  • BigQuery entries (`{@literal @}bigquery`) - *
  • Pub/Sub topics (`{@literal @}pubsub`) - *
  • Dataproc Metastore services (`{@literal @}dataproc_metastore_{SERVICE_NAME_HASH}`) - *
- * - *

You can create your own entry groups for Cloud Storage fileset entries and custom entries - * together with the corresponding IAM policies. User-created entry groups can't contain the - * `{@literal @}` symbol, it is reserved for automatically created groups. - * - *

Entry groups, like entries, can be searched. - * - *

A maximum of 10,000 entry groups may be created per organization across all locations. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String entryGroupId = "entryGroupId1228924712";
-   *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
-   * }
-   * }
- * - * @param parent Required. The names of the project and location that the new entry group belongs - * to. - *

Note: The entry group itself and its child resources might not be stored in the location - * specified in its name. - * @param entryGroupId Required. The ID of the entry group to create. - *

The ID must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), and must - * start with a letter or underscore. The maximum size is 64 bytes when encoded in UTF-8. - * @param entryGroup The entry group to create. Defaults to empty. - * @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 EntryGroup createEntryGroup( - String parent, String entryGroupId, EntryGroup entryGroup) { - CreateEntryGroupRequest request = - CreateEntryGroupRequest.newBuilder() - .setParent(parent) - .setEntryGroupId(entryGroupId) - .setEntryGroup(entryGroup) - .build(); - return createEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry group. - * - *

An entry group contains logically related entries together with [Cloud Identity and Access - * Management](/data-catalog/docs/concepts/iam) policies. These policies specify users who can - * create, edit, and view entries within entry groups. - * - *

Data Catalog automatically creates entry groups with names that start with the - * `{@literal @}` symbol for the following resources: - * - *

    - *
  • BigQuery entries (`{@literal @}bigquery`) - *
  • Pub/Sub topics (`{@literal @}pubsub`) - *
  • Dataproc Metastore services (`{@literal @}dataproc_metastore_{SERVICE_NAME_HASH}`) - *
- * - *

You can create your own entry groups for Cloud Storage fileset entries and custom entries - * together with the corresponding IAM policies. User-created entry groups can't contain the - * `{@literal @}` symbol, it is reserved for automatically created groups. - * - *

Entry groups, like entries, can be searched. - * - *

A maximum of 10,000 entry groups may be created per organization across all locations. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateEntryGroupRequest request =
-   *       CreateEntryGroupRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setEntryGroupId("entryGroupId1228924712")
-   *           .setEntryGroup(EntryGroup.newBuilder().build())
-   *           .build();
-   *   EntryGroup response = dataCatalogClient.createEntryGroup(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final EntryGroup createEntryGroup(CreateEntryGroupRequest request) { - return createEntryGroupCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry group. - * - *

An entry group contains logically related entries together with [Cloud Identity and Access - * Management](/data-catalog/docs/concepts/iam) policies. These policies specify users who can - * create, edit, and view entries within entry groups. - * - *

Data Catalog automatically creates entry groups with names that start with the - * `{@literal @}` symbol for the following resources: - * - *

    - *
  • BigQuery entries (`{@literal @}bigquery`) - *
  • Pub/Sub topics (`{@literal @}pubsub`) - *
  • Dataproc Metastore services (`{@literal @}dataproc_metastore_{SERVICE_NAME_HASH}`) - *
- * - *

You can create your own entry groups for Cloud Storage fileset entries and custom entries - * together with the corresponding IAM policies. User-created entry groups can't contain the - * `{@literal @}` symbol, it is reserved for automatically created groups. - * - *

Entry groups, like entries, can be searched. - * - *

A maximum of 10,000 entry groups may be created per organization across all locations. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateEntryGroupRequest request =
-   *       CreateEntryGroupRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setEntryGroupId("entryGroupId1228924712")
-   *           .setEntryGroup(EntryGroup.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.createEntryGroupCallable().futureCall(request);
-   *   // Do something.
-   *   EntryGroup response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable createEntryGroupCallable() { - return stub.createEntryGroupCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry group. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   EntryGroup response = dataCatalogClient.getEntryGroup(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry group to get. - * @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 EntryGroup getEntryGroup(@Nullable EntryGroupName name) { - GetEntryGroupRequest request = - GetEntryGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry group. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
-   *   EntryGroup response = dataCatalogClient.getEntryGroup(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry group to get. - * @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 EntryGroup getEntryGroup(String name) { - GetEntryGroupRequest request = GetEntryGroupRequest.newBuilder().setName(name).build(); - return getEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry group. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   FieldMask readMask = FieldMask.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.getEntryGroup(name, readMask);
-   * }
-   * }
- * - * @param name Required. The name of the entry group to get. - * @param readMask The fields to return. If empty or omitted, all fields are returned. - * @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 EntryGroup getEntryGroup(@Nullable EntryGroupName name, FieldMask readMask) { - GetEntryGroupRequest request = - GetEntryGroupRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setReadMask(readMask) - .build(); - return getEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry group. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
-   *   FieldMask readMask = FieldMask.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.getEntryGroup(name, readMask);
-   * }
-   * }
- * - * @param name Required. The name of the entry group to get. - * @param readMask The fields to return. If empty or omitted, all fields are returned. - * @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 EntryGroup getEntryGroup(String name, FieldMask readMask) { - GetEntryGroupRequest request = - GetEntryGroupRequest.newBuilder().setName(name).setReadMask(readMask).build(); - return getEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry group. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetEntryGroupRequest request =
-   *       GetEntryGroupRequest.newBuilder()
-   *           .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   EntryGroup response = dataCatalogClient.getEntryGroup(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final EntryGroup getEntryGroup(GetEntryGroupRequest request) { - return getEntryGroupCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry group. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetEntryGroupRequest request =
-   *       GetEntryGroupRequest.newBuilder()
-   *           .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.getEntryGroupCallable().futureCall(request);
-   *   // Do something.
-   *   EntryGroup response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable getEntryGroupCallable() { - return stub.getEntryGroupCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an entry group. - * - *

You must enable the Data Catalog API in the project identified by the `entry_group.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.updateEntryGroup(entryGroup);
-   * }
-   * }
- * - * @param entryGroup Required. Updates for the entry group. The `name` field must be set. - * @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 EntryGroup updateEntryGroup(EntryGroup entryGroup) { - UpdateEntryGroupRequest request = - UpdateEntryGroupRequest.newBuilder().setEntryGroup(entryGroup).build(); - return updateEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an entry group. - * - *

You must enable the Data Catalog API in the project identified by the `entry_group.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.updateEntryGroup(entryGroup, updateMask);
-   * }
-   * }
- * - * @param entryGroup Required. Updates for the entry group. The `name` field must be set. - * @param updateMask Names of fields whose values to overwrite on an entry group. - *

If this parameter is absent or empty, all modifiable fields are overwritten. If such - * fields are non-required and omitted in the request body, their values are emptied. - * @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 EntryGroup updateEntryGroup(EntryGroup entryGroup, FieldMask updateMask) { - UpdateEntryGroupRequest request = - UpdateEntryGroupRequest.newBuilder() - .setEntryGroup(entryGroup) - .setUpdateMask(updateMask) - .build(); - return updateEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an entry group. - * - *

You must enable the Data Catalog API in the project identified by the `entry_group.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateEntryGroupRequest request =
-   *       UpdateEntryGroupRequest.newBuilder()
-   *           .setEntryGroup(EntryGroup.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   EntryGroup response = dataCatalogClient.updateEntryGroup(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final EntryGroup updateEntryGroup(UpdateEntryGroupRequest request) { - return updateEntryGroupCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an entry group. - * - *

You must enable the Data Catalog API in the project identified by the `entry_group.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateEntryGroupRequest request =
-   *       UpdateEntryGroupRequest.newBuilder()
-   *           .setEntryGroup(EntryGroup.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.updateEntryGroupCallable().futureCall(request);
-   *   // Do something.
-   *   EntryGroup response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable updateEntryGroupCallable() { - return stub.updateEntryGroupCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an entry group. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   dataCatalogClient.deleteEntryGroup(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry group to delete. - * @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 void deleteEntryGroup(@Nullable EntryGroupName name) { - DeleteEntryGroupRequest request = - DeleteEntryGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an entry group. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
-   *   dataCatalogClient.deleteEntryGroup(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry group to delete. - * @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 void deleteEntryGroup(String name) { - DeleteEntryGroupRequest request = DeleteEntryGroupRequest.newBuilder().setName(name).build(); - deleteEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an entry group. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteEntryGroupRequest request =
-   *       DeleteEntryGroupRequest.newBuilder()
-   *           .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setForce(true)
-   *           .build();
-   *   dataCatalogClient.deleteEntryGroup(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final void deleteEntryGroup(DeleteEntryGroupRequest request) { - deleteEntryGroupCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an entry group. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteEntryGroupRequest request =
-   *       DeleteEntryGroupRequest.newBuilder()
-   *           .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setForce(true)
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.deleteEntryGroupCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable deleteEntryGroupCallable() { - return stub.deleteEntryGroupCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (EntryGroup element : dataCatalogClient.listEntryGroups(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the location that contains the entry groups to list. - *

Can be provided as a URL. - * @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 ListEntryGroupsPagedResponse listEntryGroups(@Nullable LocationName parent) { - ListEntryGroupsRequest request = - ListEntryGroupsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listEntryGroups(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (EntryGroup element : dataCatalogClient.listEntryGroups(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the location that contains the entry groups to list. - *

Can be provided as a URL. - * @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 ListEntryGroupsPagedResponse listEntryGroups(String parent) { - ListEntryGroupsRequest request = ListEntryGroupsRequest.newBuilder().setParent(parent).build(); - return listEntryGroups(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntryGroupsRequest request =
-   *       ListEntryGroupsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (EntryGroup element : dataCatalogClient.listEntryGroups(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final ListEntryGroupsPagedResponse listEntryGroups(ListEntryGroupsRequest request) { - return listEntryGroupsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntryGroupsRequest request =
-   *       ListEntryGroupsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.listEntryGroupsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (EntryGroup element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - listEntryGroupsPagedCallable() { - return stub.listEntryGroupsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntryGroupsRequest request =
-   *       ListEntryGroupsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListEntryGroupsResponse response =
-   *         dataCatalogClient.listEntryGroupsCallable().call(request);
-   *     for (EntryGroup element : response.getEntryGroupsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - listEntryGroupsCallable() { - return stub.listEntryGroupsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry. - * - *

You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM', or custom types. Data - * Catalog automatically creates entries with other types during metadata ingestion from - * integrated systems. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

An entry group can have a maximum of 100,000 entries. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   String entryId = "entryId-1591558867";
-   *   Entry entry = Entry.newBuilder().build();
-   *   Entry response = dataCatalogClient.createEntry(parent, entryId, entry);
-   * }
-   * }
- * - * @param parent Required. The name of the entry group this entry belongs to. - *

Note: The entry itself and its child resources might not be stored in the location - * specified in its name. - * @param entryId Required. The ID of the entry to create. - *

The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (_). The - * maximum size is 64 bytes when encoded in UTF-8. - * @param entry Required. The entry to create. - * @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 Entry createEntry(@Nullable EntryGroupName parent, String entryId, Entry entry) { - CreateEntryRequest request = - CreateEntryRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setEntryId(entryId) - .setEntry(entry) - .build(); - return createEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry. - * - *

You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM', or custom types. Data - * Catalog automatically creates entries with other types during metadata ingestion from - * integrated systems. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

An entry group can have a maximum of 100,000 entries. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
-   *   String entryId = "entryId-1591558867";
-   *   Entry entry = Entry.newBuilder().build();
-   *   Entry response = dataCatalogClient.createEntry(parent, entryId, entry);
-   * }
-   * }
- * - * @param parent Required. The name of the entry group this entry belongs to. - *

Note: The entry itself and its child resources might not be stored in the location - * specified in its name. - * @param entryId Required. The ID of the entry to create. - *

The ID must contain only letters (a-z, A-Z), numbers (0-9), and underscores (_). The - * maximum size is 64 bytes when encoded in UTF-8. - * @param entry Required. The entry to create. - * @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 Entry createEntry(String parent, String entryId, Entry entry) { - CreateEntryRequest request = - CreateEntryRequest.newBuilder() - .setParent(parent) - .setEntryId(entryId) - .setEntry(entry) - .build(); - return createEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry. - * - *

You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM', or custom types. Data - * Catalog automatically creates entries with other types during metadata ingestion from - * integrated systems. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

An entry group can have a maximum of 100,000 entries. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateEntryRequest request =
-   *       CreateEntryRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setEntryId("entryId-1591558867")
-   *           .setEntry(Entry.newBuilder().build())
-   *           .build();
-   *   Entry response = dataCatalogClient.createEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Entry createEntry(CreateEntryRequest request) { - return createEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry. - * - *

You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM', or custom types. Data - * Catalog automatically creates entries with other types during metadata ingestion from - * integrated systems. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

An entry group can have a maximum of 100,000 entries. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateEntryRequest request =
-   *       CreateEntryRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setEntryId("entryId-1591558867")
-   *           .setEntry(Entry.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.createEntryCallable().futureCall(request);
-   *   // Do something.
-   *   Entry response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable createEntryCallable() { - return stub.createEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing entry. - * - *

You must enable the Data Catalog API in the project identified by the `entry.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   Entry entry = Entry.newBuilder().build();
-   *   Entry response = dataCatalogClient.updateEntry(entry);
-   * }
-   * }
- * - * @param entry Required. Updates for the entry. The `name` field must be set. - * @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 Entry updateEntry(Entry entry) { - UpdateEntryRequest request = UpdateEntryRequest.newBuilder().setEntry(entry).build(); - return updateEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing entry. - * - *

You must enable the Data Catalog API in the project identified by the `entry.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   Entry entry = Entry.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Entry response = dataCatalogClient.updateEntry(entry, updateMask);
-   * }
-   * }
- * - * @param entry Required. Updates for the entry. The `name` field must be set. - * @param updateMask Names of fields whose values to overwrite on an entry. - *

If this parameter is absent or empty, all modifiable fields are overwritten. If such - * fields are non-required and omitted in the request body, their values are emptied. - *

You can modify only the fields listed below. - *

For entries with type `DATA_STREAM`: - *

    - *
  • `schema` - *
- *

For entries with type `FILESET`: - *

    - *
  • `schema` - *
  • `display_name` - *
  • `description` - *
  • `gcs_fileset_spec` - *
  • `gcs_fileset_spec.file_patterns` - *
- *

For entries with `user_specified_type`: - *

    - *
  • `schema` - *
  • `display_name` - *
  • `description` - *
  • `user_specified_type` - *
  • `user_specified_system` - *
  • `linked_resource` - *
  • `source_system_timestamps` - *
- * - * @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 Entry updateEntry(Entry entry, FieldMask updateMask) { - UpdateEntryRequest request = - UpdateEntryRequest.newBuilder().setEntry(entry).setUpdateMask(updateMask).build(); - return updateEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing entry. - * - *

You must enable the Data Catalog API in the project identified by the `entry.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateEntryRequest request =
-   *       UpdateEntryRequest.newBuilder()
-   *           .setEntry(Entry.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Entry response = dataCatalogClient.updateEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Entry updateEntry(UpdateEntryRequest request) { - return updateEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing entry. - * - *

You must enable the Data Catalog API in the project identified by the `entry.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateEntryRequest request =
-   *       UpdateEntryRequest.newBuilder()
-   *           .setEntry(Entry.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.updateEntryCallable().futureCall(request);
-   *   // Do something.
-   *   Entry response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable updateEntryCallable() { - return stub.updateEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing entry. - * - *

You can delete only the entries created by the - * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry] method. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   dataCatalogClient.deleteEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry to delete. - * @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 void deleteEntry(@Nullable EntryName name) { - DeleteEntryRequest request = - DeleteEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing entry. - * - *

You can delete only the entries created by the - * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry] method. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   dataCatalogClient.deleteEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry to delete. - * @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 void deleteEntry(String name) { - DeleteEntryRequest request = DeleteEntryRequest.newBuilder().setName(name).build(); - deleteEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing entry. - * - *

You can delete only the entries created by the - * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry] method. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteEntryRequest request =
-   *       DeleteEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   dataCatalogClient.deleteEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final void deleteEntry(DeleteEntryRequest request) { - deleteEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing entry. - * - *

You can delete only the entries created by the - * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry] method. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteEntryRequest request =
-   *       DeleteEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.deleteEntryCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable deleteEntryCallable() { - return stub.deleteEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   Entry response = dataCatalogClient.getEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry to get. - * @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 Entry getEntry(@Nullable EntryName name) { - GetEntryRequest request = - GetEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   Entry response = dataCatalogClient.getEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry to get. - * @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 Entry getEntry(String name) { - GetEntryRequest request = GetEntryRequest.newBuilder().setName(name).build(); - return getEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetEntryRequest request =
-   *       GetEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   Entry response = dataCatalogClient.getEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Entry getEntry(GetEntryRequest request) { - return getEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetEntryRequest request =
-   *       GetEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.getEntryCallable().futureCall(request);
-   *   // Do something.
-   *   Entry response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable getEntryCallable() { - return stub.getEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry by its target resource name. - * - *

The resource name comes from the source Google Cloud Platform service. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   LookupEntryRequest request =
-   *       LookupEntryRequest.newBuilder()
-   *           .setProject("project-309310695")
-   *           .setLocation("location1901043637")
-   *           .build();
-   *   Entry response = dataCatalogClient.lookupEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Entry lookupEntry(LookupEntryRequest request) { - return lookupEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry by its target resource name. - * - *

The resource name comes from the source Google Cloud Platform service. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   LookupEntryRequest request =
-   *       LookupEntryRequest.newBuilder()
-   *           .setProject("project-309310695")
-   *           .setLocation("location1901043637")
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.lookupEntryCallable().futureCall(request);
-   *   // Do something.
-   *   Entry response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable lookupEntryCallable() { - return stub.lookupEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entries. - * - *

Note: Currently, this method can list only custom entries. To get a list of both custom and - * automatically created entries, use - * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   for (Entry element : dataCatalogClient.listEntries(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the entry group that contains the entries to list. - *

Can be provided in URL format. - * @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 ListEntriesPagedResponse listEntries(@Nullable EntryGroupName parent) { - ListEntriesRequest request = - ListEntriesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listEntries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entries. - * - *

Note: Currently, this method can list only custom entries. To get a list of both custom and - * automatically created entries, use - * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
-   *   for (Entry element : dataCatalogClient.listEntries(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the entry group that contains the entries to list. - *

Can be provided in URL format. - * @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 ListEntriesPagedResponse listEntries(String parent) { - ListEntriesRequest request = ListEntriesRequest.newBuilder().setParent(parent).build(); - return listEntries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entries. - * - *

Note: Currently, this method can list only custom entries. To get a list of both custom and - * automatically created entries, use - * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntriesRequest request =
-   *       ListEntriesRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   for (Entry element : dataCatalogClient.listEntries(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final ListEntriesPagedResponse listEntries(ListEntriesRequest request) { - return listEntriesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entries. - * - *

Note: Currently, this method can list only custom entries. To get a list of both custom and - * automatically created entries, use - * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntriesRequest request =
-   *       ListEntriesRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.listEntriesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Entry element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - listEntriesPagedCallable() { - return stub.listEntriesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entries. - * - *

Note: Currently, this method can list only custom entries. To get a list of both custom and - * automatically created entries, use - * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntriesRequest request =
-   *       ListEntriesRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   while (true) {
-   *     ListEntriesResponse response = dataCatalogClient.listEntriesCallable().call(request);
-   *     for (Entry element : response.getEntriesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable listEntriesCallable() { - return stub.listEntriesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Modifies entry overview, part of the business context of an - * [Entry][google.cloud.datacatalog.v1.Entry]. - * - *

To call this method, you must have the `datacatalog.entries.updateOverview` IAM permission - * on the corresponding project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ModifyEntryOverviewRequest request =
-   *       ModifyEntryOverviewRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setEntryOverview(EntryOverview.newBuilder().build())
-   *           .build();
-   *   EntryOverview response = dataCatalogClient.modifyEntryOverview(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final EntryOverview modifyEntryOverview(ModifyEntryOverviewRequest request) { - return modifyEntryOverviewCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Modifies entry overview, part of the business context of an - * [Entry][google.cloud.datacatalog.v1.Entry]. - * - *

To call this method, you must have the `datacatalog.entries.updateOverview` IAM permission - * on the corresponding project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ModifyEntryOverviewRequest request =
-   *       ModifyEntryOverviewRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setEntryOverview(EntryOverview.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.modifyEntryOverviewCallable().futureCall(request);
-   *   // Do something.
-   *   EntryOverview response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - modifyEntryOverviewCallable() { - return stub.modifyEntryOverviewCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Modifies contacts, part of the business context of an - * [Entry][google.cloud.datacatalog.v1.Entry]. - * - *

To call this method, you must have the `datacatalog.entries.updateContacts` IAM permission - * on the corresponding project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ModifyEntryContactsRequest request =
-   *       ModifyEntryContactsRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setContacts(Contacts.newBuilder().build())
-   *           .build();
-   *   Contacts response = dataCatalogClient.modifyEntryContacts(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Contacts modifyEntryContacts(ModifyEntryContactsRequest request) { - return modifyEntryContactsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Modifies contacts, part of the business context of an - * [Entry][google.cloud.datacatalog.v1.Entry]. - * - *

To call this method, you must have the `datacatalog.entries.updateContacts` IAM permission - * on the corresponding project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ModifyEntryContactsRequest request =
-   *       ModifyEntryContactsRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setContacts(Contacts.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.modifyEntryContactsCallable().futureCall(request);
-   *   // Do something.
-   *   Contacts response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable modifyEntryContactsCallable() { - return stub.modifyEntryContactsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String tagTemplateId = "tagTemplateId-1438776721";
-   *   TagTemplate tagTemplate = TagTemplate.newBuilder().build();
-   *   TagTemplate response =
-   *       dataCatalogClient.createTagTemplate(parent, tagTemplateId, tagTemplate);
-   * }
-   * }
- * - * @param parent Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - * @param tagTemplateId Required. The ID of the tag template to create. - *

The ID must contain only lowercase letters (a-z), numbers (0-9), or underscores (_), and - * must start with a letter or underscore. The maximum size is 64 bytes when encoded in UTF-8. - * @param tagTemplate Required. The tag template to create. - * @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 TagTemplate createTagTemplate( - @Nullable LocationName parent, String tagTemplateId, TagTemplate tagTemplate) { - CreateTagTemplateRequest request = - CreateTagTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTagTemplateId(tagTemplateId) - .setTagTemplate(tagTemplate) - .build(); - return createTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String tagTemplateId = "tagTemplateId-1438776721";
-   *   TagTemplate tagTemplate = TagTemplate.newBuilder().build();
-   *   TagTemplate response =
-   *       dataCatalogClient.createTagTemplate(parent, tagTemplateId, tagTemplate);
-   * }
-   * }
- * - * @param parent Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - * @param tagTemplateId Required. The ID of the tag template to create. - *

The ID must contain only lowercase letters (a-z), numbers (0-9), or underscores (_), and - * must start with a letter or underscore. The maximum size is 64 bytes when encoded in UTF-8. - * @param tagTemplate Required. The tag template to create. - * @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 TagTemplate createTagTemplate( - String parent, String tagTemplateId, TagTemplate tagTemplate) { - CreateTagTemplateRequest request = - CreateTagTemplateRequest.newBuilder() - .setParent(parent) - .setTagTemplateId(tagTemplateId) - .setTagTemplate(tagTemplate) - .build(); - return createTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagTemplateRequest request =
-   *       CreateTagTemplateRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setTagTemplateId("tagTemplateId-1438776721")
-   *           .setTagTemplate(TagTemplate.newBuilder().build())
-   *           .build();
-   *   TagTemplate response = dataCatalogClient.createTagTemplate(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplate createTagTemplate(CreateTagTemplateRequest request) { - return createTagTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagTemplateRequest request =
-   *       CreateTagTemplateRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setTagTemplateId("tagTemplateId-1438776721")
-   *           .setTagTemplate(TagTemplate.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.createTagTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplate response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable createTagTemplateCallable() { - return stub.createTagTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a tag 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
-   *   TagTemplate response = dataCatalogClient.getTagTemplate(name);
-   * }
-   * }
- * - * @param name Required. The name of the tag template to get. - * @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 TagTemplate getTagTemplate(@Nullable TagTemplateName name) { - GetTagTemplateRequest request = - GetTagTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a tag 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString();
-   *   TagTemplate response = dataCatalogClient.getTagTemplate(name);
-   * }
-   * }
- * - * @param name Required. The name of the tag template to get. - * @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 TagTemplate getTagTemplate(String name) { - GetTagTemplateRequest request = GetTagTemplateRequest.newBuilder().setName(name).build(); - return getTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a tag 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetTagTemplateRequest request =
-   *       GetTagTemplateRequest.newBuilder()
-   *           .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .build();
-   *   TagTemplate response = dataCatalogClient.getTagTemplate(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplate getTagTemplate(GetTagTemplateRequest request) { - return getTagTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a tag 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetTagTemplateRequest request =
-   *       GetTagTemplateRequest.newBuilder()
-   *           .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.getTagTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplate response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable getTagTemplateCallable() { - return stub.getTagTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a tag template. - * - *

You can't update template fields with this method. These fields are separate resources with - * their own create, update, and delete methods. - * - *

You must enable the Data Catalog API in the project identified by the `tag_template.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplate tagTemplate = TagTemplate.newBuilder().build();
-   *   TagTemplate response = dataCatalogClient.updateTagTemplate(tagTemplate);
-   * }
-   * }
- * - * @param tagTemplate Required. The template to update. The `name` field must be set. - * @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 TagTemplate updateTagTemplate(TagTemplate tagTemplate) { - UpdateTagTemplateRequest request = - UpdateTagTemplateRequest.newBuilder().setTagTemplate(tagTemplate).build(); - return updateTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a tag template. - * - *

You can't update template fields with this method. These fields are separate resources with - * their own create, update, and delete methods. - * - *

You must enable the Data Catalog API in the project identified by the `tag_template.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplate tagTemplate = TagTemplate.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   TagTemplate response = dataCatalogClient.updateTagTemplate(tagTemplate, updateMask);
-   * }
-   * }
- * - * @param tagTemplate Required. The template to update. The `name` field must be set. - * @param updateMask Names of fields whose values to overwrite on a tag template. Currently, only - * `display_name` and `is_publicly_readable` can be overwritten. - *

If this parameter is absent or empty, all modifiable fields are overwritten. If such - * fields are non-required and omitted in the request body, their values are emptied. - *

Note: Updating the `is_publicly_readable` field may require up to 12 hours to take - * effect in search results. - * @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 TagTemplate updateTagTemplate(TagTemplate tagTemplate, FieldMask updateMask) { - UpdateTagTemplateRequest request = - UpdateTagTemplateRequest.newBuilder() - .setTagTemplate(tagTemplate) - .setUpdateMask(updateMask) - .build(); - return updateTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a tag template. - * - *

You can't update template fields with this method. These fields are separate resources with - * their own create, update, and delete methods. - * - *

You must enable the Data Catalog API in the project identified by the `tag_template.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagTemplateRequest request =
-   *       UpdateTagTemplateRequest.newBuilder()
-   *           .setTagTemplate(TagTemplate.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   TagTemplate response = dataCatalogClient.updateTagTemplate(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplate updateTagTemplate(UpdateTagTemplateRequest request) { - return updateTagTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a tag template. - * - *

You can't update template fields with this method. These fields are separate resources with - * their own create, update, and delete methods. - * - *

You must enable the Data Catalog API in the project identified by the `tag_template.name` - * parameter. For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagTemplateRequest request =
-   *       UpdateTagTemplateRequest.newBuilder()
-   *           .setTagTemplate(TagTemplate.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.updateTagTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplate response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable updateTagTemplateCallable() { - return stub.updateTagTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag template and all tags that use it. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
-   *   boolean force = true;
-   *   dataCatalogClient.deleteTagTemplate(name, force);
-   * }
-   * }
- * - * @param name Required. The name of the tag template to delete. - * @param force Required. If true, deletes all tags that use this template. - *

Currently, `true` is the only supported value. - * @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 void deleteTagTemplate(@Nullable TagTemplateName name, boolean force) { - DeleteTagTemplateRequest request = - DeleteTagTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setForce(force) - .build(); - deleteTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag template and all tags that use it. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString();
-   *   boolean force = true;
-   *   dataCatalogClient.deleteTagTemplate(name, force);
-   * }
-   * }
- * - * @param name Required. The name of the tag template to delete. - * @param force Required. If true, deletes all tags that use this template. - *

Currently, `true` is the only supported value. - * @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 void deleteTagTemplate(String name, boolean force) { - DeleteTagTemplateRequest request = - DeleteTagTemplateRequest.newBuilder().setName(name).setForce(force).build(); - deleteTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag template and all tags that use it. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagTemplateRequest request =
-   *       DeleteTagTemplateRequest.newBuilder()
-   *           .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setForce(true)
-   *           .build();
-   *   dataCatalogClient.deleteTagTemplate(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final void deleteTagTemplate(DeleteTagTemplateRequest request) { - deleteTagTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag template and all tags that use it. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagTemplateRequest request =
-   *       DeleteTagTemplateRequest.newBuilder()
-   *           .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setForce(true)
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.deleteTagTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable deleteTagTemplateCallable() { - return stub.deleteTagTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a field in a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
-   *   String tagTemplateFieldId = "tagTemplateFieldId-1556835615";
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   TagTemplateField response =
-   *       dataCatalogClient.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField);
-   * }
-   * }
- * - * @param parent Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - * @param tagTemplateFieldId Required. The ID of the tag template field to create. - *

Note: Adding a required field to an existing template is *not* allowed. - *

Field IDs can contain letters (both uppercase and lowercase), numbers (0-9), underscores - * (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters - * long. Field IDs must also be unique within their template. - * @param tagTemplateField Required. The tag template field to create. - * @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 TagTemplateField createTagTemplateField( - @Nullable TagTemplateName parent, - String tagTemplateFieldId, - TagTemplateField tagTemplateField) { - CreateTagTemplateFieldRequest request = - CreateTagTemplateFieldRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTagTemplateFieldId(tagTemplateFieldId) - .setTagTemplateField(tagTemplateField) - .build(); - return createTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a field in a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString();
-   *   String tagTemplateFieldId = "tagTemplateFieldId-1556835615";
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   TagTemplateField response =
-   *       dataCatalogClient.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField);
-   * }
-   * }
- * - * @param parent Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - * @param tagTemplateFieldId Required. The ID of the tag template field to create. - *

Note: Adding a required field to an existing template is *not* allowed. - *

Field IDs can contain letters (both uppercase and lowercase), numbers (0-9), underscores - * (_) and dashes (-). Field IDs must be at least 1 character long and at most 128 characters - * long. Field IDs must also be unique within their template. - * @param tagTemplateField Required. The tag template field to create. - * @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 TagTemplateField createTagTemplateField( - String parent, String tagTemplateFieldId, TagTemplateField tagTemplateField) { - CreateTagTemplateFieldRequest request = - CreateTagTemplateFieldRequest.newBuilder() - .setParent(parent) - .setTagTemplateFieldId(tagTemplateFieldId) - .setTagTemplateField(tagTemplateField) - .build(); - return createTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a field in a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagTemplateFieldRequest request =
-   *       CreateTagTemplateFieldRequest.newBuilder()
-   *           .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setTagTemplateFieldId("tagTemplateFieldId-1556835615")
-   *           .setTagTemplateField(TagTemplateField.newBuilder().build())
-   *           .build();
-   *   TagTemplateField response = dataCatalogClient.createTagTemplateField(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplateField createTagTemplateField(CreateTagTemplateFieldRequest request) { - return createTagTemplateFieldCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a field in a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `parent` parameter. - * For more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagTemplateFieldRequest request =
-   *       CreateTagTemplateFieldRequest.newBuilder()
-   *           .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setTagTemplateFieldId("tagTemplateFieldId-1556835615")
-   *           .setTagTemplateField(TagTemplateField.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.createTagTemplateFieldCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplateField response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - createTagTemplateFieldCallable() { - return stub.createTagTemplateFieldCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. - * - *

You can't update the field type with this method. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateFieldName name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   TagTemplateField response = dataCatalogClient.updateTagTemplateField(name, tagTemplateField);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field. - * @param tagTemplateField Required. The template to update. - * @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 TagTemplateField updateTagTemplateField( - @Nullable TagTemplateFieldName name, TagTemplateField tagTemplateField) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setTagTemplateField(tagTemplateField) - .build(); - return updateTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. - * - *

You can't update the field type with this method. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *           .toString();
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   TagTemplateField response = dataCatalogClient.updateTagTemplateField(name, tagTemplateField);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field. - * @param tagTemplateField Required. The template to update. - * @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 TagTemplateField updateTagTemplateField( - String name, TagTemplateField tagTemplateField) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName(name) - .setTagTemplateField(tagTemplateField) - .build(); - return updateTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. - * - *

You can't update the field type with this method. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateFieldName name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   TagTemplateField response =
-   *       dataCatalogClient.updateTagTemplateField(name, tagTemplateField, updateMask);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field. - * @param tagTemplateField Required. The template to update. - * @param updateMask Optional. Names of fields whose values to overwrite on an individual field of - * a tag template. The following fields are modifiable: - *
    - *
  • `display_name` - *
  • `type.enum_type` - *
  • `is_required` - *
- *

If this parameter is absent or empty, all modifiable fields are overwritten. If such - * fields are non-required and omitted in the request body, their values are emptied with one - * exception: when updating an enum type, the provided values are merged with the existing - * values. Therefore, enum values can only be added, existing enum values cannot be deleted or - * renamed. - *

Additionally, updating a template field from optional to required is - *

    - *
  • not* allowed. - *
- * - * @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 TagTemplateField updateTagTemplateField( - @Nullable TagTemplateFieldName name, - TagTemplateField tagTemplateField, - FieldMask updateMask) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setTagTemplateField(tagTemplateField) - .setUpdateMask(updateMask) - .build(); - return updateTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. - * - *

You can't update the field type with this method. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *           .toString();
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   TagTemplateField response =
-   *       dataCatalogClient.updateTagTemplateField(name, tagTemplateField, updateMask);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field. - * @param tagTemplateField Required. The template to update. - * @param updateMask Optional. Names of fields whose values to overwrite on an individual field of - * a tag template. The following fields are modifiable: - *
    - *
  • `display_name` - *
  • `type.enum_type` - *
  • `is_required` - *
- *

If this parameter is absent or empty, all modifiable fields are overwritten. If such - * fields are non-required and omitted in the request body, their values are emptied with one - * exception: when updating an enum type, the provided values are merged with the existing - * values. Therefore, enum values can only be added, existing enum values cannot be deleted or - * renamed. - *

Additionally, updating a template field from optional to required is - *

    - *
  • not* allowed. - *
- * - * @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 TagTemplateField updateTagTemplateField( - String name, TagTemplateField tagTemplateField, FieldMask updateMask) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName(name) - .setTagTemplateField(tagTemplateField) - .setUpdateMask(updateMask) - .build(); - return updateTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. - * - *

You can't update the field type with this method. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagTemplateFieldRequest request =
-   *       UpdateTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setTagTemplateField(TagTemplateField.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   TagTemplateField response = dataCatalogClient.updateTagTemplateField(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplateField updateTagTemplateField(UpdateTagTemplateFieldRequest request) { - return updateTagTemplateFieldCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. - * - *

You can't update the field type with this method. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagTemplateFieldRequest request =
-   *       UpdateTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setTagTemplateField(TagTemplateField.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.updateTagTemplateFieldCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplateField response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - updateTagTemplateFieldCallable() { - return stub.updateTagTemplateFieldCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames a field in a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateFieldName name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
-   *   String newTagTemplateFieldId = "newTagTemplateFieldId2008993953";
-   *   TagTemplateField response =
-   *       dataCatalogClient.renameTagTemplateField(name, newTagTemplateFieldId);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field. - * @param newTagTemplateFieldId Required. The new ID of this tag template field. For example, - * `my_new_field`. - * @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 TagTemplateField renameTagTemplateField( - @Nullable TagTemplateFieldName name, String newTagTemplateFieldId) { - RenameTagTemplateFieldRequest request = - RenameTagTemplateFieldRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setNewTagTemplateFieldId(newTagTemplateFieldId) - .build(); - return renameTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames a field in a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *           .toString();
-   *   String newTagTemplateFieldId = "newTagTemplateFieldId2008993953";
-   *   TagTemplateField response =
-   *       dataCatalogClient.renameTagTemplateField(name, newTagTemplateFieldId);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field. - * @param newTagTemplateFieldId Required. The new ID of this tag template field. For example, - * `my_new_field`. - * @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 TagTemplateField renameTagTemplateField(String name, String newTagTemplateFieldId) { - RenameTagTemplateFieldRequest request = - RenameTagTemplateFieldRequest.newBuilder() - .setName(name) - .setNewTagTemplateFieldId(newTagTemplateFieldId) - .build(); - return renameTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames a field in a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RenameTagTemplateFieldRequest request =
-   *       RenameTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setNewTagTemplateFieldId("newTagTemplateFieldId2008993953")
-   *           .build();
-   *   TagTemplateField response = dataCatalogClient.renameTagTemplateField(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplateField renameTagTemplateField(RenameTagTemplateFieldRequest request) { - return renameTagTemplateFieldCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames a field in a tag template. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RenameTagTemplateFieldRequest request =
-   *       RenameTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setNewTagTemplateFieldId("newTagTemplateFieldId2008993953")
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.renameTagTemplateFieldCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplateField response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - renameTagTemplateFieldCallable() { - return stub.renameTagTemplateFieldCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames an enum value in a tag template. - * - *

Within a single enum field, enum values must be unique. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateFieldEnumValueName name =
-   *       TagTemplateFieldEnumValueName.of(
-   *           "[PROJECT]",
-   *           "[LOCATION]",
-   *           "[TAG_TEMPLATE]",
-   *           "[TAG_TEMPLATE_FIELD_ID]",
-   *           "[ENUM_VALUE_DISPLAY_NAME]");
-   *   String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027";
-   *   TagTemplateField response =
-   *       dataCatalogClient.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName);
-   * }
-   * }
- * - * @param name Required. The name of the enum field value. - * @param newEnumValueDisplayName Required. The new display name of the enum value. For example, - * `my_new_enum_value`. - * @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 TagTemplateField renameTagTemplateFieldEnumValue( - @Nullable TagTemplateFieldEnumValueName name, String newEnumValueDisplayName) { - RenameTagTemplateFieldEnumValueRequest request = - RenameTagTemplateFieldEnumValueRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setNewEnumValueDisplayName(newEnumValueDisplayName) - .build(); - return renameTagTemplateFieldEnumValue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames an enum value in a tag template. - * - *

Within a single enum field, enum values must be unique. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name =
-   *       TagTemplateFieldEnumValueName.of(
-   *               "[PROJECT]",
-   *               "[LOCATION]",
-   *               "[TAG_TEMPLATE]",
-   *               "[TAG_TEMPLATE_FIELD_ID]",
-   *               "[ENUM_VALUE_DISPLAY_NAME]")
-   *           .toString();
-   *   String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027";
-   *   TagTemplateField response =
-   *       dataCatalogClient.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName);
-   * }
-   * }
- * - * @param name Required. The name of the enum field value. - * @param newEnumValueDisplayName Required. The new display name of the enum value. For example, - * `my_new_enum_value`. - * @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 TagTemplateField renameTagTemplateFieldEnumValue( - String name, String newEnumValueDisplayName) { - RenameTagTemplateFieldEnumValueRequest request = - RenameTagTemplateFieldEnumValueRequest.newBuilder() - .setName(name) - .setNewEnumValueDisplayName(newEnumValueDisplayName) - .build(); - return renameTagTemplateFieldEnumValue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames an enum value in a tag template. - * - *

Within a single enum field, enum values must be unique. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RenameTagTemplateFieldEnumValueRequest request =
-   *       RenameTagTemplateFieldEnumValueRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldEnumValueName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[TAG_TEMPLATE]",
-   *                       "[TAG_TEMPLATE_FIELD_ID]",
-   *                       "[ENUM_VALUE_DISPLAY_NAME]")
-   *                   .toString())
-   *           .setNewEnumValueDisplayName("newEnumValueDisplayName-1119629027")
-   *           .build();
-   *   TagTemplateField response = dataCatalogClient.renameTagTemplateFieldEnumValue(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplateField renameTagTemplateFieldEnumValue( - RenameTagTemplateFieldEnumValueRequest request) { - return renameTagTemplateFieldEnumValueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames an enum value in a tag template. - * - *

Within a single enum field, enum values must be unique. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RenameTagTemplateFieldEnumValueRequest request =
-   *       RenameTagTemplateFieldEnumValueRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldEnumValueName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[TAG_TEMPLATE]",
-   *                       "[TAG_TEMPLATE_FIELD_ID]",
-   *                       "[ENUM_VALUE_DISPLAY_NAME]")
-   *                   .toString())
-   *           .setNewEnumValueDisplayName("newEnumValueDisplayName-1119629027")
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.renameTagTemplateFieldEnumValueCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplateField response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - renameTagTemplateFieldEnumValueCallable() { - return stub.renameTagTemplateFieldEnumValueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a field in a tag template and all uses of this field from the tags based on this - * template. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateFieldName name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
-   *   boolean force = true;
-   *   dataCatalogClient.deleteTagTemplateField(name, force);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field to delete. - * @param force Required. If true, deletes this field from any tags that use it. - *

Currently, `true` is the only supported value. - * @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 void deleteTagTemplateField(@Nullable TagTemplateFieldName name, boolean force) { - DeleteTagTemplateFieldRequest request = - DeleteTagTemplateFieldRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setForce(force) - .build(); - deleteTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a field in a tag template and all uses of this field from the tags based on this - * template. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *           .toString();
-   *   boolean force = true;
-   *   dataCatalogClient.deleteTagTemplateField(name, force);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field to delete. - * @param force Required. If true, deletes this field from any tags that use it. - *

Currently, `true` is the only supported value. - * @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 void deleteTagTemplateField(String name, boolean force) { - DeleteTagTemplateFieldRequest request = - DeleteTagTemplateFieldRequest.newBuilder().setName(name).setForce(force).build(); - deleteTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a field in a tag template and all uses of this field from the tags based on this - * template. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagTemplateFieldRequest request =
-   *       DeleteTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setForce(true)
-   *           .build();
-   *   dataCatalogClient.deleteTagTemplateField(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final void deleteTagTemplateField(DeleteTagTemplateFieldRequest request) { - deleteTagTemplateFieldCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a field in a tag template and all uses of this field from the tags based on this - * template. - * - *

You must enable the Data Catalog API in the project identified by the `name` parameter. For - * more information, see [Data Catalog resource - * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagTemplateFieldRequest request =
-   *       DeleteTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setForce(true)
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.deleteTagTemplateFieldCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - deleteTagTemplateFieldCallable() { - return stub.deleteTagTemplateFieldCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag and assigns it to: - * - *
    - *
  • An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * `projects.locations.entryGroups.entries.tags.create`. - *
  • Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method name is - * `projects.locations.entryGroups.tags.create`. - *
- * - *

Note: The project identified by the `parent` parameter for the [tag] - * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) - * and the [tag template] - * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) - * used to create the tag must be in the same organization. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   Tag tag = Tag.newBuilder().build();
-   *   Tag response = dataCatalogClient.createTag(parent, tag);
-   * }
-   * }
- * - * @param parent Required. The name of the resource to attach this tag to. - *

Tags can be attached to entries or entry groups. An entry can have up to 1000 attached - * tags. - *

Note: The tag and its child resources might not be stored in the location specified in - * its name. - * @param tag Required. The tag to create. - * @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 Tag createTag(@Nullable EntryName parent, Tag tag) { - CreateTagRequest request = - CreateTagRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTag(tag) - .build(); - return createTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag and assigns it to: - * - *

    - *
  • An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * `projects.locations.entryGroups.entries.tags.create`. - *
  • Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method name is - * `projects.locations.entryGroups.tags.create`. - *
- * - *

Note: The project identified by the `parent` parameter for the [tag] - * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) - * and the [tag template] - * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) - * used to create the tag must be in the same organization. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent =
-   *       EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   Tag tag = Tag.newBuilder().build();
-   *   Tag response = dataCatalogClient.createTag(parent, tag);
-   * }
-   * }
- * - * @param parent Required. The name of the resource to attach this tag to. - *

Tags can be attached to entries or entry groups. An entry can have up to 1000 attached - * tags. - *

Note: The tag and its child resources might not be stored in the location specified in - * its name. - * @param tag Required. The tag to create. - * @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 Tag createTag(String parent, Tag tag) { - CreateTagRequest request = CreateTagRequest.newBuilder().setParent(parent).setTag(tag).build(); - return createTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag and assigns it to: - * - *

    - *
  • An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * `projects.locations.entryGroups.entries.tags.create`. - *
  • Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method name is - * `projects.locations.entryGroups.tags.create`. - *
- * - *

Note: The project identified by the `parent` parameter for the [tag] - * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) - * and the [tag template] - * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) - * used to create the tag must be in the same organization. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagRequest request =
-   *       CreateTagRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setTag(Tag.newBuilder().build())
-   *           .build();
-   *   Tag response = dataCatalogClient.createTag(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Tag createTag(CreateTagRequest request) { - return createTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag and assigns it to: - * - *
    - *
  • An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - * `projects.locations.entryGroups.entries.tags.create`. - *
  • Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method name is - * `projects.locations.entryGroups.tags.create`. - *
- * - *

Note: The project identified by the `parent` parameter for the [tag] - * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) - * and the [tag template] - * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) - * used to create the tag must be in the same organization. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagRequest request =
-   *       CreateTagRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setTag(Tag.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.createTagCallable().futureCall(request);
-   *   // Do something.
-   *   Tag response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable createTagCallable() { - return stub.createTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   Tag tag = Tag.newBuilder().build();
-   *   Tag response = dataCatalogClient.updateTag(tag);
-   * }
-   * }
- * - * @param tag Required. The updated tag. The "name" field must be set. - * @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 Tag updateTag(Tag tag) { - UpdateTagRequest request = UpdateTagRequest.newBuilder().setTag(tag).build(); - return updateTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   Tag tag = Tag.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Tag response = dataCatalogClient.updateTag(tag, updateMask);
-   * }
-   * }
- * - * @param tag Required. The updated tag. The "name" field must be set. - * @param updateMask Names of fields whose values to overwrite on a tag. Currently, a tag has the - * only modifiable field with the name `fields`. - *

In general, if this parameter is absent or empty, all modifiable fields are overwritten. - * If such fields are non-required and omitted in the request body, their values are emptied. - * @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 Tag updateTag(Tag tag, FieldMask updateMask) { - UpdateTagRequest request = - UpdateTagRequest.newBuilder().setTag(tag).setUpdateMask(updateMask).build(); - return updateTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagRequest request =
-   *       UpdateTagRequest.newBuilder()
-   *           .setTag(Tag.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Tag response = dataCatalogClient.updateTag(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Tag updateTag(UpdateTagRequest request) { - return updateTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagRequest request =
-   *       UpdateTagRequest.newBuilder()
-   *           .setTag(Tag.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.updateTagCallable().futureCall(request);
-   *   // Do something.
-   *   Tag response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable updateTagCallable() { - return stub.updateTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   dataCatalogClient.deleteTag(name);
-   * }
-   * }
- * - * @param name Required. The name of the tag to delete. - * @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 void deleteTag(@Nullable EntryName name) { - DeleteTagRequest request = - DeleteTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   dataCatalogClient.deleteTag(name);
-   * }
-   * }
- * - * @param name Required. The name of the tag to delete. - * @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 void deleteTag(String name) { - DeleteTagRequest request = DeleteTagRequest.newBuilder().setName(name).build(); - deleteTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagRequest request =
-   *       DeleteTagRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   dataCatalogClient.deleteTag(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final void deleteTag(DeleteTagRequest request) { - deleteTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagRequest request =
-   *       DeleteTagRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.deleteTagCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable deleteTagCallable() { - return stub.deleteTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. The - * [columns][google.cloud.datacatalog.v1.Tag.column] in the response are lowercased. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the Data Catalog resource to list the tags of. - *

The resource can be an [Entry][google.cloud.datacatalog.v1.Entry] or an - * [EntryGroup][google.cloud.datacatalog.v1.EntryGroup] (without `/entries/{entries}` at the - * end). - * @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 ListTagsPagedResponse listTags(@Nullable EntryName parent) { - ListTagsRequest request = - ListTagsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listTags(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. The - * [columns][google.cloud.datacatalog.v1.Tag.column] in the response are lowercased. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent =
-   *       EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the Data Catalog resource to list the tags of. - *

The resource can be an [Entry][google.cloud.datacatalog.v1.Entry] or an - * [EntryGroup][google.cloud.datacatalog.v1.EntryGroup] (without `/entries/{entries}` at the - * end). - * @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 ListTagsPagedResponse listTags(String parent) { - ListTagsRequest request = ListTagsRequest.newBuilder().setParent(parent).build(); - return listTags(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. The - * [columns][google.cloud.datacatalog.v1.Tag.column] in the response are lowercased. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListTagsRequest request =
-   *       ListTagsRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Tag element : dataCatalogClient.listTags(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final ListTagsPagedResponse listTags(ListTagsRequest request) { - return listTagsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. The - * [columns][google.cloud.datacatalog.v1.Tag.column] in the response are lowercased. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListTagsRequest request =
-   *       ListTagsRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.listTagsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Tag element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable listTagsPagedCallable() { - return stub.listTagsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. The - * [columns][google.cloud.datacatalog.v1.Tag.column] in the response are lowercased. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListTagsRequest request =
-   *       ListTagsRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListTagsResponse response = dataCatalogClient.listTagsCallable().call(request);
-   *     for (Tag element : response.getTagsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable listTagsCallable() { - return stub.listTagsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * `ReconcileTags` creates or updates a list of tags on the entry. If the - * [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing] - * parameter is set, the operation deletes tags not included in the input tag list. - * - *

`ReconcileTags` returns a [long-running operation] [google.longrunning.Operation] resource - * that can be queried with [Operations.GetOperation][google.longrunning.Operations.GetOperation] - * to return [ReconcileTagsMetadata] [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and a - * [ReconcileTagsResponse] [google.cloud.datacatalog.v1.ReconcileTagsResponse] message. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ReconcileTagsRequest request =
-   *       ReconcileTagsRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setTagTemplate(
-   *               TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setForceDeleteMissing(true)
-   *           .addAllTags(new ArrayList())
-   *           .build();
-   *   ReconcileTagsResponse response = dataCatalogClient.reconcileTagsAsync(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 reconcileTagsAsync( - ReconcileTagsRequest request) { - return reconcileTagsOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * `ReconcileTags` creates or updates a list of tags on the entry. If the - * [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing] - * parameter is set, the operation deletes tags not included in the input tag list. - * - *

`ReconcileTags` returns a [long-running operation] [google.longrunning.Operation] resource - * that can be queried with [Operations.GetOperation][google.longrunning.Operations.GetOperation] - * to return [ReconcileTagsMetadata] [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and a - * [ReconcileTagsResponse] [google.cloud.datacatalog.v1.ReconcileTagsResponse] message. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ReconcileTagsRequest request =
-   *       ReconcileTagsRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setTagTemplate(
-   *               TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setForceDeleteMissing(true)
-   *           .addAllTags(new ArrayList())
-   *           .build();
-   *   OperationFuture future =
-   *       dataCatalogClient.reconcileTagsOperationCallable().futureCall(request);
-   *   // Do something.
-   *   ReconcileTagsResponse response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final OperationCallable - reconcileTagsOperationCallable() { - return stub.reconcileTagsOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * `ReconcileTags` creates or updates a list of tags on the entry. If the - * [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing] - * parameter is set, the operation deletes tags not included in the input tag list. - * - *

`ReconcileTags` returns a [long-running operation] [google.longrunning.Operation] resource - * that can be queried with [Operations.GetOperation][google.longrunning.Operations.GetOperation] - * to return [ReconcileTagsMetadata] [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and a - * [ReconcileTagsResponse] [google.cloud.datacatalog.v1.ReconcileTagsResponse] message. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ReconcileTagsRequest request =
-   *       ReconcileTagsRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setTagTemplate(
-   *               TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setForceDeleteMissing(true)
-   *           .addAllTags(new ArrayList())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.reconcileTagsCallable().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 reconcileTagsCallable() { - return stub.reconcileTagsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by the current user. Starring - * information is private to each user. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   StarEntryResponse response = dataCatalogClient.starEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry to mark as starred. - * @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 StarEntryResponse starEntry(@Nullable EntryName name) { - StarEntryRequest request = - StarEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return starEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by the current user. Starring - * information is private to each user. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   StarEntryResponse response = dataCatalogClient.starEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry to mark as starred. - * @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 StarEntryResponse starEntry(String name) { - StarEntryRequest request = StarEntryRequest.newBuilder().setName(name).build(); - return starEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by the current user. Starring - * information is private to each user. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   StarEntryRequest request =
-   *       StarEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   StarEntryResponse response = dataCatalogClient.starEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final StarEntryResponse starEntry(StarEntryRequest request) { - return starEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by the current user. Starring - * information is private to each user. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   StarEntryRequest request =
-   *       StarEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.starEntryCallable().futureCall(request);
-   *   // Do something.
-   *   StarEntryResponse response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable starEntryCallable() { - return stub.starEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by the current user. - * Starring information is private to each user. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   UnstarEntryResponse response = dataCatalogClient.unstarEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry to mark as **not** starred. - * @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 UnstarEntryResponse unstarEntry(@Nullable EntryName name) { - UnstarEntryRequest request = - UnstarEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return unstarEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by the current user. - * Starring information is private to each user. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   UnstarEntryResponse response = dataCatalogClient.unstarEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry to mark as **not** starred. - * @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 UnstarEntryResponse unstarEntry(String name) { - UnstarEntryRequest request = UnstarEntryRequest.newBuilder().setName(name).build(); - return unstarEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by the current user. - * Starring information is private to each user. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UnstarEntryRequest request =
-   *       UnstarEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   UnstarEntryResponse response = dataCatalogClient.unstarEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnstarEntryResponse unstarEntry(UnstarEntryRequest request) { - return unstarEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by the current user. - * Starring information is private to each user. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UnstarEntryRequest request =
-   *       UnstarEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.unstarEntryCallable().futureCall(request);
-   *   // Do something.
-   *   UnstarEntryResponse response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable unstarEntryCallable() { - return stub.unstarEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets an access control policy for a resource. Replaces any existing policy. - * - *

Supported resources are: - * - *

- Tag templates - Entry groups - * - *

Note: This method sets policies only within Data Catalog and can't be used to manage - * policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform - * resources synced with the Data Catalog. - * - *

To call this method, you must have the following Google IAM permissions: - * - *

- `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - - * `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = dataCatalogClient.setIamPolicy(resource, policy);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @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 Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .setPolicy(policy) - .build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets an access control policy for a resource. Replaces any existing policy. - * - *

Supported resources are: - * - *

- Tag templates - Entry groups - * - *

Note: This method sets policies only within Data Catalog and can't be used to manage - * policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform - * resources synced with the Data Catalog. - * - *

To call this method, you must have the following Google IAM permissions: - * - *

- `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - - * `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String resource =
-   *       EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = dataCatalogClient.setIamPolicy(resource, policy);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @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 Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets an access control policy for a resource. Replaces any existing policy. - * - *

Supported resources are: - * - *

- Tag templates - Entry groups - * - *

Note: This method sets policies only within Data Catalog and can't be used to manage - * policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform - * resources synced with the Data Catalog. - * - *

To call this method, you must have the following Google IAM permissions: - * - *

- `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - - * `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Policy response = dataCatalogClient.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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets an access control policy for a resource. Replaces any existing policy. - * - *

Supported resources are: - * - *

- Tag templates - Entry groups - * - *

Note: This method sets policies only within Data Catalog and can't be used to manage - * policies in BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform - * resources synced with the Data Catalog. - * - *

To call this method, you must have the following Google IAM permissions: - * - *

- `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - - * `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.setIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. - * - *

May return: - * - *

    - *
  • A`NOT_FOUND` error if the resource doesn't exist or you don't have the permission to view - * it. - *
  • An empty policy if the resource exists but doesn't have a set policy. - *
- * - *

Supported resources are: - * - *

- Tag templates - Entry groups - * - *

Note: This method doesn't get policies from Google Cloud Platform resources ingested into - * Data Catalog. - * - *

To call this method, you must have the following Google IAM permissions: - * - *

- `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - - * `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   Policy response = dataCatalogClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @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 Policy getIamPolicy(@Nullable ResourceName resource) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. - * - *

May return: - * - *

    - *
  • A`NOT_FOUND` error if the resource doesn't exist or you don't have the permission to view - * it. - *
  • An empty policy if the resource exists but doesn't have a set policy. - *
- * - *

Supported resources are: - * - *

- Tag templates - Entry groups - * - *

Note: This method doesn't get policies from Google Cloud Platform resources ingested into - * Data Catalog. - * - *

To call this method, you must have the following Google IAM permissions: - * - *

- `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - - * `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String resource =
-   *       EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   Policy response = dataCatalogClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @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 Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. - * - *

May return: - * - *

    - *
  • A`NOT_FOUND` error if the resource doesn't exist or you don't have the permission to view - * it. - *
  • An empty policy if the resource exists but doesn't have a set policy. - *
- * - *

Supported resources are: - * - *

- Tag templates - Entry groups - * - *

Note: This method doesn't get policies from Google Cloud Platform resources ingested into - * Data Catalog. - * - *

To call this method, you must have the following Google IAM permissions: - * - *

- `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - - * `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   Policy response = dataCatalogClient.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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. - * - *

May return: - * - *

    - *
  • A`NOT_FOUND` error if the resource doesn't exist or you don't have the permission to view - * it. - *
  • An empty policy if the resource exists but doesn't have a set policy. - *
- * - *

Supported resources are: - * - *

- Tag templates - Entry groups - * - *

Note: This method doesn't get policies from Google Cloud Platform resources ingested into - * Data Catalog. - * - *

To call this method, you must have the following Google IAM permissions: - * - *

- `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - - * `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.getIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets your permissions on a resource. - * - *

Returns an empty set of permissions if the resource doesn't exist. - * - *

Supported resources are: - * - *

- Tag templates - Entry groups - * - *

Note: This method gets policies only within Data Catalog and can't be used to get policies - * from BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources - * ingested into Data Catalog. - * - *

No Google IAM permissions are required to call this method. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   TestIamPermissionsResponse response = dataCatalogClient.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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets your permissions on a resource. - * - *

Returns an empty set of permissions if the resource doesn't exist. - * - *

Supported resources are: - * - *

- Tag templates - Entry groups - * - *

Note: This method gets policies only within Data Catalog and can't be used to get policies - * from BigQuery, Pub/Sub, Dataproc Metastore, and any external Google Cloud Platform resources - * ingested into Data Catalog. - * - *

No Google IAM permissions are required to call this method. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.testIamPermissionsCallable().futureCall(request);
-   *   // Do something.
-   *   TestIamPermissionsResponse response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Imports entries from a source, such as data previously dumped into a Cloud Storage bucket, into - * Data Catalog. Import of entries is a sync operation that reconciles the state of the - * third-party system with the Data Catalog. - * - *

`ImportEntries` accepts source data snapshots of a third-party system. Snapshot should be - * delivered as a .wire or base65-encoded .txt file containing a sequence of Protocol Buffer - * messages of [DumpItem][google.cloud.datacatalog.v1.DumpItem] type. - * - *

`ImportEntries` returns a [long-running operation] [google.longrunning.Operation] resource - * that can be queried with [Operations.GetOperation][google.longrunning.Operations.GetOperation] - * to return [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata] and an - * [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse] message. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ImportEntriesRequest request =
-   *       ImportEntriesRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   ImportEntriesResponse response = dataCatalogClient.importEntriesAsync(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 importEntriesAsync( - ImportEntriesRequest request) { - return importEntriesOperationCallable().futureCall(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Imports entries from a source, such as data previously dumped into a Cloud Storage bucket, into - * Data Catalog. Import of entries is a sync operation that reconciles the state of the - * third-party system with the Data Catalog. - * - *

`ImportEntries` accepts source data snapshots of a third-party system. Snapshot should be - * delivered as a .wire or base65-encoded .txt file containing a sequence of Protocol Buffer - * messages of [DumpItem][google.cloud.datacatalog.v1.DumpItem] type. - * - *

`ImportEntries` returns a [long-running operation] [google.longrunning.Operation] resource - * that can be queried with [Operations.GetOperation][google.longrunning.Operations.GetOperation] - * to return [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata] and an - * [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse] message. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ImportEntriesRequest request =
-   *       ImportEntriesRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   OperationFuture future =
-   *       dataCatalogClient.importEntriesOperationCallable().futureCall(request);
-   *   // Do something.
-   *   ImportEntriesResponse response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final OperationCallable - importEntriesOperationCallable() { - return stub.importEntriesOperationCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Imports entries from a source, such as data previously dumped into a Cloud Storage bucket, into - * Data Catalog. Import of entries is a sync operation that reconciles the state of the - * third-party system with the Data Catalog. - * - *

`ImportEntries` accepts source data snapshots of a third-party system. Snapshot should be - * delivered as a .wire or base65-encoded .txt file containing a sequence of Protocol Buffer - * messages of [DumpItem][google.cloud.datacatalog.v1.DumpItem] type. - * - *

`ImportEntries` returns a [long-running operation] [google.longrunning.Operation] resource - * that can be queried with [Operations.GetOperation][google.longrunning.Operations.GetOperation] - * to return [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata] and an - * [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse] message. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ImportEntriesRequest request =
-   *       ImportEntriesRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setJobId("jobId101296568")
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.importEntriesCallable().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 importEntriesCallable() { - return stub.importEntriesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the configuration related to the migration to Dataplex for an organization or project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build();
-   *   MigrationConfig response = dataCatalogClient.setConfig(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final MigrationConfig setConfig(SetConfigRequest request) { - return setConfigCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the configuration related to the migration to Dataplex for an organization or project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build();
-   *   ApiFuture future = dataCatalogClient.setConfigCallable().futureCall(request);
-   *   // Do something.
-   *   MigrationConfig response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable setConfigCallable() { - return stub.setConfigCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the configuration related to the migration from Data Catalog to Dataplex for a - * specific organization, including all the projects under it which have a separate configuration - * 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RetrieveConfigRequest request =
-   *       RetrieveConfigRequest.newBuilder().setName("name3373707").build();
-   *   OrganizationConfig response = dataCatalogClient.retrieveConfig(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final OrganizationConfig retrieveConfig(RetrieveConfigRequest request) { - return retrieveConfigCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the configuration related to the migration from Data Catalog to Dataplex for a - * specific organization, including all the projects under it which have a separate configuration - * 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RetrieveConfigRequest request =
-   *       RetrieveConfigRequest.newBuilder().setName("name3373707").build();
-   *   ApiFuture future =
-   *       dataCatalogClient.retrieveConfigCallable().futureCall(request);
-   *   // Do something.
-   *   OrganizationConfig response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable retrieveConfigCallable() { - return stub.retrieveConfigCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the effective configuration related to the migration from Data Catalog to Dataplex - * for a specific organization or project. If there is no specific configuration set for the - * resource, the setting is checked hierarchicahlly through the ancestors of the resource, - * starting from the resource itself. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RetrieveEffectiveConfigRequest request =
-   *       RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build();
-   *   MigrationConfig response = dataCatalogClient.retrieveEffectiveConfig(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final MigrationConfig retrieveEffectiveConfig(RetrieveEffectiveConfigRequest request) { - return retrieveEffectiveConfigCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Retrieves the effective configuration related to the migration from Data Catalog to Dataplex - * for a specific organization or project. If there is no specific configuration set for the - * resource, the setting is checked hierarchicahlly through the ancestors of the resource, - * starting from the resource itself. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RetrieveEffectiveConfigRequest request =
-   *       RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build();
-   *   ApiFuture future =
-   *       dataCatalogClient.retrieveEffectiveConfigCallable().futureCall(request);
-   *   // Do something.
-   *   MigrationConfig response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - retrieveEffectiveConfigCallable() { - return stub.retrieveEffectiveConfigCallable(); - } - - @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 SearchCatalogPagedResponse - extends AbstractPagedListResponse< - SearchCatalogRequest, - SearchCatalogResponse, - SearchCatalogResult, - SearchCatalogPage, - SearchCatalogFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - SearchCatalogPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new SearchCatalogPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private SearchCatalogPagedResponse(SearchCatalogPage page) { - super(page, SearchCatalogFixedSizeCollection.createEmptyCollection()); - } - } - - public static class SearchCatalogPage - extends AbstractPage< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogResult, SearchCatalogPage> { - - private SearchCatalogPage( - @Nullable PageContext - context, - @Nullable SearchCatalogResponse response) { - super(context, response); - } - - private static SearchCatalogPage createEmptyPage() { - return new SearchCatalogPage(null, null); - } - - @Override - protected SearchCatalogPage createPage( - @Nullable PageContext - context, - @Nullable SearchCatalogResponse response) { - return new SearchCatalogPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class SearchCatalogFixedSizeCollection - extends AbstractFixedSizeCollection< - SearchCatalogRequest, - SearchCatalogResponse, - SearchCatalogResult, - SearchCatalogPage, - SearchCatalogFixedSizeCollection> { - - private SearchCatalogFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static SearchCatalogFixedSizeCollection createEmptyCollection() { - return new SearchCatalogFixedSizeCollection(null, 0); - } - - @Override - protected SearchCatalogFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new SearchCatalogFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListEntryGroupsPagedResponse - extends AbstractPagedListResponse< - ListEntryGroupsRequest, - ListEntryGroupsResponse, - EntryGroup, - ListEntryGroupsPage, - ListEntryGroupsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListEntryGroupsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListEntryGroupsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListEntryGroupsPagedResponse(ListEntryGroupsPage page) { - super(page, ListEntryGroupsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListEntryGroupsPage - extends AbstractPage< - ListEntryGroupsRequest, ListEntryGroupsResponse, EntryGroup, ListEntryGroupsPage> { - - private ListEntryGroupsPage( - @Nullable PageContext context, - @Nullable ListEntryGroupsResponse response) { - super(context, response); - } - - private static ListEntryGroupsPage createEmptyPage() { - return new ListEntryGroupsPage(null, null); - } - - @Override - protected ListEntryGroupsPage createPage( - @Nullable PageContext context, - @Nullable ListEntryGroupsResponse response) { - return new ListEntryGroupsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListEntryGroupsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListEntryGroupsRequest, - ListEntryGroupsResponse, - EntryGroup, - ListEntryGroupsPage, - ListEntryGroupsFixedSizeCollection> { - - private ListEntryGroupsFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListEntryGroupsFixedSizeCollection createEmptyCollection() { - return new ListEntryGroupsFixedSizeCollection(null, 0); - } - - @Override - protected ListEntryGroupsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListEntryGroupsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListEntriesPagedResponse - extends AbstractPagedListResponse< - ListEntriesRequest, - ListEntriesResponse, - Entry, - ListEntriesPage, - ListEntriesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListEntriesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListEntriesPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListEntriesPagedResponse(ListEntriesPage page) { - super(page, ListEntriesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListEntriesPage - extends AbstractPage { - - private ListEntriesPage( - @Nullable PageContext context, - @Nullable ListEntriesResponse response) { - super(context, response); - } - - private static ListEntriesPage createEmptyPage() { - return new ListEntriesPage(null, null); - } - - @Override - protected ListEntriesPage createPage( - @Nullable PageContext context, - @Nullable ListEntriesResponse response) { - return new ListEntriesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListEntriesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListEntriesRequest, - ListEntriesResponse, - Entry, - ListEntriesPage, - ListEntriesFixedSizeCollection> { - - private ListEntriesFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListEntriesFixedSizeCollection createEmptyCollection() { - return new ListEntriesFixedSizeCollection(null, 0); - } - - @Override - protected ListEntriesFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListEntriesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListTagsPagedResponse - extends AbstractPagedListResponse< - ListTagsRequest, ListTagsResponse, Tag, ListTagsPage, ListTagsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListTagsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListTagsPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListTagsPagedResponse(ListTagsPage page) { - super(page, ListTagsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListTagsPage - extends AbstractPage { - - private ListTagsPage( - @Nullable PageContext context, - @Nullable ListTagsResponse response) { - super(context, response); - } - - private static ListTagsPage createEmptyPage() { - return new ListTagsPage(null, null); - } - - @Override - protected ListTagsPage createPage( - @Nullable PageContext context, - @Nullable ListTagsResponse response) { - return new ListTagsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListTagsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListTagsRequest, ListTagsResponse, Tag, ListTagsPage, ListTagsFixedSizeCollection> { - - private ListTagsFixedSizeCollection(@Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListTagsFixedSizeCollection createEmptyCollection() { - return new ListTagsFixedSizeCollection(null, 0); - } - - @Override - protected ListTagsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListTagsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java deleted file mode 100644 index 6fcc62127175..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogSettings.java +++ /dev/null @@ -1,1068 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.SearchCatalogPagedResponse; - -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.datacatalog.v1.stub.DataCatalogStubSettings; -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 DataCatalogClient}. - * - *

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

    - *
  • The default service address (datacatalog.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 createEntryGroup: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataCatalogSettings.Builder dataCatalogSettingsBuilder = DataCatalogSettings.newBuilder();
- * dataCatalogSettingsBuilder
- *     .createEntryGroupSettings()
- *     .setRetrySettings(
- *         dataCatalogSettingsBuilder
- *             .createEntryGroupSettings()
- *             .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());
- * DataCatalogSettings dataCatalogSettings = dataCatalogSettingsBuilder.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 reconcileTags: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataCatalogSettings.Builder dataCatalogSettingsBuilder = DataCatalogSettings.newBuilder();
- * TimedRetryAlgorithm timedRetryAlgorithm =
- *     OperationalTimedPollAlgorithm.create(
- *         RetrySettings.newBuilder()
- *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
- *             .setRetryDelayMultiplier(1.5)
- *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
- *             .setTotalTimeoutDuration(Duration.ofHours(24))
- *             .build());
- * dataCatalogSettingsBuilder
- *     .createClusterOperationSettings()
- *     .setPollingAlgorithm(timedRetryAlgorithm)
- *     .build();
- * }
- * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@Deprecated -@Generated("by gapic-generator-java") -public class DataCatalogSettings extends ClientSettings { - - /** - * Returns the object with the settings used for calls to searchCatalog. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - searchCatalogSettings() { - return ((DataCatalogStubSettings) getStubSettings()).searchCatalogSettings(); - } - - /** - * Returns the object with the settings used for calls to createEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createEntryGroupSettings(); - } - - /** - * Returns the object with the settings used for calls to getEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).getEntryGroupSettings(); - } - - /** - * Returns the object with the settings used for calls to updateEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateEntryGroupSettings(); - } - - /** - * Returns the object with the settings used for calls to deleteEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteEntryGroupSettings(); - } - - /** - * Returns the object with the settings used for calls to listEntryGroups. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listEntryGroupsSettings(); - } - - /** - * Returns the object with the settings used for calls to createEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).createEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to updateEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to deleteEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to getEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).getEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to lookupEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings lookupEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).lookupEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to listEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - listEntriesSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listEntriesSettings(); - } - - /** - * Returns the object with the settings used for calls to modifyEntryOverview. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - modifyEntryOverviewSettings() { - return ((DataCatalogStubSettings) getStubSettings()).modifyEntryOverviewSettings(); - } - - /** - * Returns the object with the settings used for calls to modifyEntryContacts. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings modifyEntryContactsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).modifyEntryContactsSettings(); - } - - /** - * Returns the object with the settings used for calls to createTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateSettings(); - } - - /** - * Returns the object with the settings used for calls to getTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).getTagTemplateSettings(); - } - - /** - * Returns the object with the settings used for calls to updateTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateSettings(); - } - - /** - * Returns the object with the settings used for calls to deleteTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateSettings(); - } - - /** - * Returns the object with the settings used for calls to createTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - createTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateFieldSettings(); - } - - /** - * Returns the object with the settings used for calls to updateTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - updateTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateFieldSettings(); - } - - /** - * Returns the object with the settings used for calls to renameTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - renameTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldSettings(); - } - - /** - * Returns the object with the settings used for calls to renameTagTemplateFieldEnumValue. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - renameTagTemplateFieldEnumValueSettings() { - return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldEnumValueSettings(); - } - - /** - * Returns the object with the settings used for calls to deleteTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateFieldSettings(); - } - - /** - * Returns the object with the settings used for calls to createTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagSettings(); - } - - /** - * Returns the object with the settings used for calls to updateTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagSettings(); - } - - /** - * Returns the object with the settings used for calls to deleteTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagSettings(); - } - - /** - * Returns the object with the settings used for calls to listTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - listTagsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listTagsSettings(); - } - - /** - * Returns the object with the settings used for calls to reconcileTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings reconcileTagsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).reconcileTagsSettings(); - } - - /** - * Returns the object with the settings used for calls to reconcileTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public OperationCallSettings - reconcileTagsOperationSettings() { - return ((DataCatalogStubSettings) getStubSettings()).reconcileTagsOperationSettings(); - } - - /** - * Returns the object with the settings used for calls to starEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings starEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).starEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to unstarEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings unstarEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).unstarEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to setIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings setIamPolicySettings() { - return ((DataCatalogStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** - * Returns the object with the settings used for calls to getIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getIamPolicySettings() { - return ((DataCatalogStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** - * Returns the object with the settings used for calls to testIamPermissions. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - testIamPermissionsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).testIamPermissionsSettings(); - } - - /** - * Returns the object with the settings used for calls to importEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings importEntriesSettings() { - return ((DataCatalogStubSettings) getStubSettings()).importEntriesSettings(); - } - - /** - * Returns the object with the settings used for calls to importEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public OperationCallSettings - importEntriesOperationSettings() { - return ((DataCatalogStubSettings) getStubSettings()).importEntriesOperationSettings(); - } - - /** - * Returns the object with the settings used for calls to setConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings setConfigSettings() { - return ((DataCatalogStubSettings) getStubSettings()).setConfigSettings(); - } - - /** - * Returns the object with the settings used for calls to retrieveConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings retrieveConfigSettings() { - return ((DataCatalogStubSettings) getStubSettings()).retrieveConfigSettings(); - } - - /** - * Returns the object with the settings used for calls to retrieveEffectiveConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - retrieveEffectiveConfigSettings() { - return ((DataCatalogStubSettings) getStubSettings()).retrieveEffectiveConfigSettings(); - } - - public static final DataCatalogSettings create(DataCatalogStubSettings stub) throws IOException { - return new DataCatalogSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return DataCatalogStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return DataCatalogStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DataCatalogStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return DataCatalogStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return DataCatalogStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return DataCatalogStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return DataCatalogStubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataCatalogStubSettings.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 DataCatalogSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for DataCatalogSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(DataCatalogStubSettings.newBuilder(clientContext)); - } - - protected Builder(DataCatalogSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(DataCatalogStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(DataCatalogStubSettings.newBuilder()); - } - - private static Builder createHttpJsonDefault() { - return new Builder(DataCatalogStubSettings.newHttpJsonBuilder()); - } - - public DataCatalogStubSettings.Builder getStubSettingsBuilder() { - return ((DataCatalogStubSettings.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 searchCatalog. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - searchCatalogSettings() { - return getStubSettingsBuilder().searchCatalogSettings(); - } - - /** - * Returns the builder for the settings used for calls to createEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createEntryGroupSettings() { - return getStubSettingsBuilder().createEntryGroupSettings(); - } - - /** - * Returns the builder for the settings used for calls to getEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getEntryGroupSettings() { - return getStubSettingsBuilder().getEntryGroupSettings(); - } - - /** - * Returns the builder for the settings used for calls to updateEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateEntryGroupSettings() { - return getStubSettingsBuilder().updateEntryGroupSettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteEntryGroupSettings() { - return getStubSettingsBuilder().deleteEntryGroupSettings(); - } - - /** - * Returns the builder for the settings used for calls to listEntryGroups. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return getStubSettingsBuilder().listEntryGroupsSettings(); - } - - /** - * Returns the builder for the settings used for calls to createEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder createEntrySettings() { - return getStubSettingsBuilder().createEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to updateEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder updateEntrySettings() { - return getStubSettingsBuilder().updateEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteEntrySettings() { - return getStubSettingsBuilder().deleteEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to getEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getEntrySettings() { - return getStubSettingsBuilder().getEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to lookupEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder lookupEntrySettings() { - return getStubSettingsBuilder().lookupEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to listEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> - listEntriesSettings() { - return getStubSettingsBuilder().listEntriesSettings(); - } - - /** - * Returns the builder for the settings used for calls to modifyEntryOverview. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - modifyEntryOverviewSettings() { - return getStubSettingsBuilder().modifyEntryOverviewSettings(); - } - - /** - * Returns the builder for the settings used for calls to modifyEntryContacts. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - modifyEntryContactsSettings() { - return getStubSettingsBuilder().modifyEntryContactsSettings(); - } - - /** - * Returns the builder for the settings used for calls to createTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createTagTemplateSettings() { - return getStubSettingsBuilder().createTagTemplateSettings(); - } - - /** - * Returns the builder for the settings used for calls to getTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getTagTemplateSettings() { - return getStubSettingsBuilder().getTagTemplateSettings(); - } - - /** - * Returns the builder for the settings used for calls to updateTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateTagTemplateSettings() { - return getStubSettingsBuilder().updateTagTemplateSettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteTagTemplateSettings() { - return getStubSettingsBuilder().deleteTagTemplateSettings(); - } - - /** - * Returns the builder for the settings used for calls to createTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createTagTemplateFieldSettings() { - return getStubSettingsBuilder().createTagTemplateFieldSettings(); - } - - /** - * Returns the builder for the settings used for calls to updateTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateTagTemplateFieldSettings() { - return getStubSettingsBuilder().updateTagTemplateFieldSettings(); - } - - /** - * Returns the builder for the settings used for calls to renameTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - renameTagTemplateFieldSettings() { - return getStubSettingsBuilder().renameTagTemplateFieldSettings(); - } - - /** - * Returns the builder for the settings used for calls to renameTagTemplateFieldEnumValue. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - renameTagTemplateFieldEnumValueSettings() { - return getStubSettingsBuilder().renameTagTemplateFieldEnumValueSettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - deleteTagTemplateFieldSettings() { - return getStubSettingsBuilder().deleteTagTemplateFieldSettings(); - } - - /** - * Returns the builder for the settings used for calls to createTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder createTagSettings() { - return getStubSettingsBuilder().createTagSettings(); - } - - /** - * Returns the builder for the settings used for calls to updateTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder updateTagSettings() { - return getStubSettingsBuilder().updateTagSettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteTagSettings() { - return getStubSettingsBuilder().deleteTagSettings(); - } - - /** - * Returns the builder for the settings used for calls to listTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder - listTagsSettings() { - return getStubSettingsBuilder().listTagsSettings(); - } - - /** - * Returns the builder for the settings used for calls to reconcileTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder reconcileTagsSettings() { - return getStubSettingsBuilder().reconcileTagsSettings(); - } - - /** - * Returns the builder for the settings used for calls to reconcileTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public OperationCallSettings.Builder< - ReconcileTagsRequest, ReconcileTagsResponse, ReconcileTagsMetadata> - reconcileTagsOperationSettings() { - return getStubSettingsBuilder().reconcileTagsOperationSettings(); - } - - /** - * Returns the builder for the settings used for calls to starEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder starEntrySettings() { - return getStubSettingsBuilder().starEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to unstarEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - unstarEntrySettings() { - return getStubSettingsBuilder().unstarEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to setIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** - * Returns the builder for the settings used for calls to getIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - - /** - * Returns the builder for the settings used for calls to testIamPermissions. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - /** - * Returns the builder for the settings used for calls to importEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder importEntriesSettings() { - return getStubSettingsBuilder().importEntriesSettings(); - } - - /** - * Returns the builder for the settings used for calls to importEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public OperationCallSettings.Builder< - ImportEntriesRequest, ImportEntriesResponse, ImportEntriesMetadata> - importEntriesOperationSettings() { - return getStubSettingsBuilder().importEntriesOperationSettings(); - } - - /** - * Returns the builder for the settings used for calls to setConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder setConfigSettings() { - return getStubSettingsBuilder().setConfigSettings(); - } - - /** - * Returns the builder for the settings used for calls to retrieveConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - retrieveConfigSettings() { - return getStubSettingsBuilder().retrieveConfigSettings(); - } - - /** - * Returns the builder for the settings used for calls to retrieveEffectiveConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - retrieveEffectiveConfigSettings() { - return getStubSettingsBuilder().retrieveEffectiveConfigSettings(); - } - - @Override - public DataCatalogSettings build() throws IOException { - return new DataCatalogSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java deleted file mode 100644 index bb92925f5ef3..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClient.java +++ /dev/null @@ -1,2022 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1.stub.PolicyTagManagerStub; -import com.google.cloud.datacatalog.v1.stub.PolicyTagManagerStubSettings; -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.protobuf.Empty; -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: Policy Tag Manager API service allows you to manage your policy tags and - * taxonomies. - * - *

Policy tags are used to tag BigQuery columns and apply additional access control policies. A - * taxonomy is a hierarchical grouping of policy tags that classify data along a common axis. - * - *

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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   Taxonomy taxonomy = Taxonomy.newBuilder().build();
- *   Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy);
- * }
- * }
- * - *

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

CreateTaxonomy

Creates a taxonomy in a specified project. - *

The taxonomy is initially empty, that is, it doesn't contain policy tags.

- *

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

- *
    - *
  • createTaxonomy(CreateTaxonomyRequest request) - *

- *

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

- *
    - *
  • createTaxonomy(LocationName parent, Taxonomy taxonomy) - *

  • createTaxonomy(String parent, Taxonomy taxonomy) - *

- *

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

- *
    - *
  • createTaxonomyCallable() - *

- *

DeleteTaxonomy

Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and the policy tags references from BigQuery columns.

- *

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

- *
    - *
  • deleteTaxonomy(DeleteTaxonomyRequest request) - *

- *

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

- *
    - *
  • deleteTaxonomy(TaxonomyName name) - *

  • deleteTaxonomy(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.

- *
    - *
  • deleteTaxonomyCallable() - *

- *

UpdateTaxonomy

Updates a taxonomy, including its display name, description, and activated policy types.

- *

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

- *
    - *
  • updateTaxonomy(UpdateTaxonomyRequest request) - *

- *

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

- *
    - *
  • updateTaxonomy(Taxonomy taxonomy) - *

- *

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

- *
    - *
  • updateTaxonomyCallable() - *

- *

ListTaxonomies

Lists all taxonomies in a project in a particular location that you have a permission to view.

- *

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

- *
    - *
  • listTaxonomies(ListTaxonomiesRequest request) - *

- *

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

- *
    - *
  • listTaxonomies(LocationName parent) - *

  • listTaxonomies(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.

- *
    - *
  • listTaxonomiesPagedCallable() - *

  • listTaxonomiesCallable() - *

- *

GetTaxonomy

Gets a taxonomy.

- *

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

- *
    - *
  • getTaxonomy(GetTaxonomyRequest request) - *

- *

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

- *
    - *
  • getTaxonomy(TaxonomyName name) - *

  • getTaxonomy(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.

- *
    - *
  • getTaxonomyCallable() - *

- *

CreatePolicyTag

Creates a policy tag in a taxonomy.

- *

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

- *
    - *
  • createPolicyTag(CreatePolicyTagRequest request) - *

- *

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

- *
    - *
  • createPolicyTag(TaxonomyName parent, PolicyTag policyTag) - *

  • createPolicyTag(String parent, PolicyTag policyTag) - *

- *

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

- *
    - *
  • createPolicyTagCallable() - *

- *

DeletePolicyTag

Deletes a policy tag together with the following: - *

    - *
  • All of its descendant policy tags, if any - *
  • Policies associated with the policy tag and its descendants - *
  • References from BigQuery table schema of the policy tag and its descendants - *
- *

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

- *
    - *
  • deletePolicyTag(DeletePolicyTagRequest request) - *

- *

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

- *
    - *
  • deletePolicyTag(PolicyTagName name) - *

  • deletePolicyTag(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.

- *
    - *
  • deletePolicyTagCallable() - *

- *

UpdatePolicyTag

Updates a policy tag, including its display name, description, and parent policy tag.

- *

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

- *
    - *
  • updatePolicyTag(UpdatePolicyTagRequest request) - *

- *

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

- *
    - *
  • updatePolicyTag(PolicyTag policyTag) - *

- *

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

- *
    - *
  • updatePolicyTagCallable() - *

- *

ListPolicyTags

Lists all policy tags in a taxonomy.

- *

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

- *
    - *
  • listPolicyTags(ListPolicyTagsRequest request) - *

- *

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

- *
    - *
  • listPolicyTags(TaxonomyName parent) - *

  • listPolicyTags(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.

- *
    - *
  • listPolicyTagsPagedCallable() - *

  • listPolicyTagsCallable() - *

- *

GetPolicyTag

Gets a policy tag.

- *

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

- *
    - *
  • getPolicyTag(GetPolicyTagRequest request) - *

- *

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

- *
    - *
  • getPolicyTag(PolicyTagName name) - *

  • getPolicyTag(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.

- *
    - *
  • getPolicyTagCallable() - *

- *

GetIamPolicy

Gets the IAM policy for a policy tag or a taxonomy.

- *

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() - *

- *

SetIamPolicy

Sets the IAM policy for a policy tag or a taxonomy.

- *

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() - *

- *

TestIamPermissions

Returns your permissions on a specified policy tag or taxonomy.

- *

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 PolicyTagManagerSettings 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
- * PolicyTagManagerSettings policyTagManagerSettings =
- *     PolicyTagManagerSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * PolicyTagManagerClient policyTagManagerClient =
- *     PolicyTagManagerClient.create(policyTagManagerSettings);
- * }
- * - *

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
- * PolicyTagManagerSettings policyTagManagerSettings =
- *     PolicyTagManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
- * PolicyTagManagerClient policyTagManagerClient =
- *     PolicyTagManagerClient.create(policyTagManagerSettings);
- * }
- * - *

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
- * PolicyTagManagerSettings policyTagManagerSettings =
- *     PolicyTagManagerSettings.newHttpJsonBuilder().build();
- * PolicyTagManagerClient policyTagManagerClient =
- *     PolicyTagManagerClient.create(policyTagManagerSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class PolicyTagManagerClient implements BackgroundResource { - private final @Nullable PolicyTagManagerSettings settings; - private final PolicyTagManagerStub stub; - - /** Constructs an instance of PolicyTagManagerClient with default settings. */ - public static final PolicyTagManagerClient create() throws IOException { - return create(PolicyTagManagerSettings.newBuilder().build()); - } - - /** - * Constructs an instance of PolicyTagManagerClient, 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 PolicyTagManagerClient create(PolicyTagManagerSettings settings) - throws IOException { - return new PolicyTagManagerClient(settings); - } - - /** - * Constructs an instance of PolicyTagManagerClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(PolicyTagManagerSettings). - */ - public static final PolicyTagManagerClient create(PolicyTagManagerStub stub) { - return new PolicyTagManagerClient(stub); - } - - /** - * Constructs an instance of PolicyTagManagerClient, 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 PolicyTagManagerClient(PolicyTagManagerSettings settings) throws IOException { - this.settings = settings; - this.stub = ((PolicyTagManagerStubSettings) settings.getStubSettings()).createStub(); - } - - protected PolicyTagManagerClient(PolicyTagManagerStub stub) { - this.settings = null; - this.stub = stub; - } - - public final @Nullable PolicyTagManagerSettings getSettings() { - return settings; - } - - public PolicyTagManagerStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a taxonomy in a specified project. - * - *

The taxonomy is initially empty, that is, it doesn't contain policy tags. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Taxonomy taxonomy = Taxonomy.newBuilder().build();
-   *   Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy);
-   * }
-   * }
- * - * @param parent Required. Resource name of the project that the taxonomy will belong to. - * @param taxonomy The taxonomy to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Taxonomy createTaxonomy(@Nullable LocationName parent, Taxonomy taxonomy) { - CreateTaxonomyRequest request = - CreateTaxonomyRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTaxonomy(taxonomy) - .build(); - return createTaxonomy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a taxonomy in a specified project. - * - *

The taxonomy is initially empty, that is, it doesn't contain policy tags. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Taxonomy taxonomy = Taxonomy.newBuilder().build();
-   *   Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy);
-   * }
-   * }
- * - * @param parent Required. Resource name of the project that the taxonomy will belong to. - * @param taxonomy The taxonomy to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Taxonomy createTaxonomy(String parent, Taxonomy taxonomy) { - CreateTaxonomyRequest request = - CreateTaxonomyRequest.newBuilder().setParent(parent).setTaxonomy(taxonomy).build(); - return createTaxonomy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a taxonomy in a specified project. - * - *

The taxonomy is initially empty, that is, it doesn't contain policy tags. - * - *

Sample code: - * - *

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

The taxonomy is initially empty, that is, it doesn't contain policy tags. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   CreateTaxonomyRequest request =
-   *       CreateTaxonomyRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setTaxonomy(Taxonomy.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.createTaxonomyCallable().futureCall(request);
-   *   // Do something.
-   *   Taxonomy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createTaxonomyCallable() { - return stub.createTaxonomyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and - * the policy tags references from BigQuery columns. - * - *

Sample code: - * - *

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

Note: All policy tags in this taxonomy are also deleted. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteTaxonomy(@Nullable TaxonomyName name) { - DeleteTaxonomyRequest request = - DeleteTaxonomyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteTaxonomy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and - * the policy tags references from BigQuery columns. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
-   *   policyTagManagerClient.deleteTaxonomy(name);
-   * }
-   * }
- * - * @param name Required. Resource name of the taxonomy to delete. - *

Note: All policy tags in this taxonomy are also deleted. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteTaxonomy(String name) { - DeleteTaxonomyRequest request = DeleteTaxonomyRequest.newBuilder().setName(name).build(); - deleteTaxonomy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and - * the policy tags references from BigQuery columns. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   DeleteTaxonomyRequest request =
-   *       DeleteTaxonomyRequest.newBuilder()
-   *           .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .build();
-   *   policyTagManagerClient.deleteTaxonomy(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 deleteTaxonomy(DeleteTaxonomyRequest request) { - deleteTaxonomyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a taxonomy, including all policy tags in this taxonomy, their associated policies, and - * the policy tags references from BigQuery columns. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   DeleteTaxonomyRequest request =
-   *       DeleteTaxonomyRequest.newBuilder()
-   *           .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .build();
-   *   ApiFuture future = policyTagManagerClient.deleteTaxonomyCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deleteTaxonomyCallable() { - return stub.deleteTaxonomyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a taxonomy, including its display name, description, and activated policy types. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   Taxonomy taxonomy = Taxonomy.newBuilder().build();
-   *   Taxonomy response = policyTagManagerClient.updateTaxonomy(taxonomy);
-   * }
-   * }
- * - * @param taxonomy The taxonomy to update. You can update only its description, display name, and - * activated policy types. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Taxonomy updateTaxonomy(Taxonomy taxonomy) { - UpdateTaxonomyRequest request = - UpdateTaxonomyRequest.newBuilder().setTaxonomy(taxonomy).build(); - return updateTaxonomy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a taxonomy, including its display name, description, and activated policy types. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   UpdateTaxonomyRequest request =
-   *       UpdateTaxonomyRequest.newBuilder()
-   *           .setTaxonomy(Taxonomy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Taxonomy response = policyTagManagerClient.updateTaxonomy(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 Taxonomy updateTaxonomy(UpdateTaxonomyRequest request) { - return updateTaxonomyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a taxonomy, including its display name, description, and activated policy types. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   UpdateTaxonomyRequest request =
-   *       UpdateTaxonomyRequest.newBuilder()
-   *           .setTaxonomy(Taxonomy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.updateTaxonomyCallable().futureCall(request);
-   *   // Do something.
-   *   Taxonomy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateTaxonomyCallable() { - return stub.updateTaxonomyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all taxonomies in a project in a particular location that you have a permission to view. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Taxonomy element : policyTagManagerClient.listTaxonomies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Resource name of the project to list the taxonomies of. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTaxonomiesPagedResponse listTaxonomies(@Nullable LocationName parent) { - ListTaxonomiesRequest request = - ListTaxonomiesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listTaxonomies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all taxonomies in a project in a particular location that you have a permission to view. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Taxonomy element : policyTagManagerClient.listTaxonomies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Resource name of the project to list the taxonomies of. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTaxonomiesPagedResponse listTaxonomies(String parent) { - ListTaxonomiesRequest request = ListTaxonomiesRequest.newBuilder().setParent(parent).build(); - return listTaxonomies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all taxonomies in a project in a particular location that you have a permission to view. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   ListTaxonomiesRequest request =
-   *       ListTaxonomiesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Taxonomy element : policyTagManagerClient.listTaxonomies(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 ListTaxonomiesPagedResponse listTaxonomies(ListTaxonomiesRequest request) { - return listTaxonomiesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all taxonomies in a project in a particular location that you have a permission to view. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]");
-   *   PolicyTag policyTag = PolicyTag.newBuilder().build();
-   *   PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag);
-   * }
-   * }
- * - * @param parent Required. Resource name of the taxonomy that the policy tag will belong to. - * @param policyTag The policy tag to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyTag createPolicyTag(@Nullable TaxonomyName parent, PolicyTag policyTag) { - CreatePolicyTagRequest request = - CreatePolicyTagRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setPolicyTag(policyTag) - .build(); - return createPolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a policy tag in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
-   *   PolicyTag policyTag = PolicyTag.newBuilder().build();
-   *   PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag);
-   * }
-   * }
- * - * @param parent Required. Resource name of the taxonomy that the policy tag will belong to. - * @param policyTag The policy tag to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyTag createPolicyTag(String parent, PolicyTag policyTag) { - CreatePolicyTagRequest request = - CreatePolicyTagRequest.newBuilder().setParent(parent).setPolicyTag(policyTag).build(); - return createPolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a policy tag in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   CreatePolicyTagRequest request =
-   *       CreatePolicyTagRequest.newBuilder()
-   *           .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setPolicyTag(PolicyTag.newBuilder().build())
-   *           .build();
-   *   PolicyTag response = policyTagManagerClient.createPolicyTag(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 PolicyTag createPolicyTag(CreatePolicyTagRequest request) { - return createPolicyTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a policy tag in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   CreatePolicyTagRequest request =
-   *       CreatePolicyTagRequest.newBuilder()
-   *           .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setPolicyTag(PolicyTag.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.createPolicyTagCallable().futureCall(request);
-   *   // Do something.
-   *   PolicyTag response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createPolicyTagCallable() { - return stub.createPolicyTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a policy tag together with the following: - * - *
    - *
  • All of its descendant policy tags, if any - *
  • Policies associated with the policy tag and its descendants - *
  • References from BigQuery table schema of the policy tag and its descendants - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   PolicyTagName name =
-   *       PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]");
-   *   policyTagManagerClient.deletePolicyTag(name);
-   * }
-   * }
- * - * @param name Required. Resource name of the policy tag to delete. - *

Note: All of its descendant policy tags are also deleted. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deletePolicyTag(@Nullable PolicyTagName name) { - DeletePolicyTagRequest request = - DeletePolicyTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deletePolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a policy tag together with the following: - * - *

    - *
  • All of its descendant policy tags, if any - *
  • Policies associated with the policy tag and its descendants - *
  • References from BigQuery table schema of the policy tag and its descendants - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String name =
-   *       PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString();
-   *   policyTagManagerClient.deletePolicyTag(name);
-   * }
-   * }
- * - * @param name Required. Resource name of the policy tag to delete. - *

Note: All of its descendant policy tags are also deleted. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deletePolicyTag(String name) { - DeletePolicyTagRequest request = DeletePolicyTagRequest.newBuilder().setName(name).build(); - deletePolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a policy tag together with the following: - * - *

    - *
  • All of its descendant policy tags, if any - *
  • Policies associated with the policy tag and its descendants - *
  • References from BigQuery table schema of the policy tag and its descendants - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   DeletePolicyTagRequest request =
-   *       DeletePolicyTagRequest.newBuilder()
-   *           .setName(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .build();
-   *   policyTagManagerClient.deletePolicyTag(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 deletePolicyTag(DeletePolicyTagRequest request) { - deletePolicyTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a policy tag together with the following: - * - *
    - *
  • All of its descendant policy tags, if any - *
  • Policies associated with the policy tag and its descendants - *
  • References from BigQuery table schema of the policy tag and its descendants - *
- * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   DeletePolicyTagRequest request =
-   *       DeletePolicyTagRequest.newBuilder()
-   *           .setName(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.deletePolicyTagCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- */ - public final UnaryCallable deletePolicyTagCallable() { - return stub.deletePolicyTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a policy tag, including its display name, description, and parent policy tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   PolicyTag policyTag = PolicyTag.newBuilder().build();
-   *   PolicyTag response = policyTagManagerClient.updatePolicyTag(policyTag);
-   * }
-   * }
- * - * @param policyTag The policy tag to update. You can update only its description, display name, - * and parent policy tag fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyTag updatePolicyTag(PolicyTag policyTag) { - UpdatePolicyTagRequest request = - UpdatePolicyTagRequest.newBuilder().setPolicyTag(policyTag).build(); - return updatePolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a policy tag, including its display name, description, and parent policy tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   UpdatePolicyTagRequest request =
-   *       UpdatePolicyTagRequest.newBuilder()
-   *           .setPolicyTag(PolicyTag.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   PolicyTag response = policyTagManagerClient.updatePolicyTag(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 PolicyTag updatePolicyTag(UpdatePolicyTagRequest request) { - return updatePolicyTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a policy tag, including its display name, description, and parent policy tag. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]");
-   *   for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Resource name of the taxonomy to list the policy tags of. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListPolicyTagsPagedResponse listPolicyTags(@Nullable TaxonomyName parent) { - ListPolicyTagsRequest request = - ListPolicyTagsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listPolicyTags(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all policy tags in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
-   *   for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Resource name of the taxonomy to list the policy tags of. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListPolicyTagsPagedResponse listPolicyTags(String parent) { - ListPolicyTagsRequest request = ListPolicyTagsRequest.newBuilder().setParent(parent).build(); - return listPolicyTags(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all policy tags in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   ListPolicyTagsRequest request =
-   *       ListPolicyTagsRequest.newBuilder()
-   *           .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (PolicyTag element : policyTagManagerClient.listPolicyTags(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 ListPolicyTagsPagedResponse listPolicyTags(ListPolicyTagsRequest request) { - return listPolicyTagsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all policy tags in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   ListPolicyTagsRequest request =
-   *       ListPolicyTagsRequest.newBuilder()
-   *           .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.listPolicyTagsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (PolicyTag element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPolicyTagsPagedCallable() { - return stub.listPolicyTagsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all policy tags in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   ListPolicyTagsRequest request =
-   *       ListPolicyTagsRequest.newBuilder()
-   *           .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListPolicyTagsResponse response =
-   *         policyTagManagerClient.listPolicyTagsCallable().call(request);
-   *     for (PolicyTag element : response.getPolicyTagsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPolicyTagsCallable() { - return stub.listPolicyTagsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a policy tag. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   GetPolicyTagRequest request =
-   *       GetPolicyTagRequest.newBuilder()
-   *           .setName(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.getPolicyTagCallable().futureCall(request);
-   *   // Do something.
-   *   PolicyTag response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getPolicyTagCallable() { - return stub.getPolicyTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the IAM policy for a policy tag or a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   Policy response = policyTagManagerClient.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 IAM policy for a policy tag or a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = policyTagManagerClient.getIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the IAM policy for a policy tag or a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Policy response = policyTagManagerClient.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 IAM policy for a policy tag or a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = policyTagManagerClient.setIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns your permissions on a specified policy tag or taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   TestIamPermissionsResponse response = policyTagManagerClient.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 your permissions on a specified policy tag or taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.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 ListTaxonomiesPagedResponse - extends AbstractPagedListResponse< - ListTaxonomiesRequest, - ListTaxonomiesResponse, - Taxonomy, - ListTaxonomiesPage, - ListTaxonomiesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListTaxonomiesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListTaxonomiesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListTaxonomiesPagedResponse(ListTaxonomiesPage page) { - super(page, ListTaxonomiesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListTaxonomiesPage - extends AbstractPage< - ListTaxonomiesRequest, ListTaxonomiesResponse, Taxonomy, ListTaxonomiesPage> { - - private ListTaxonomiesPage( - @Nullable PageContext context, - @Nullable ListTaxonomiesResponse response) { - super(context, response); - } - - private static ListTaxonomiesPage createEmptyPage() { - return new ListTaxonomiesPage(null, null); - } - - @Override - protected ListTaxonomiesPage createPage( - @Nullable PageContext context, - @Nullable ListTaxonomiesResponse response) { - return new ListTaxonomiesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListTaxonomiesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListTaxonomiesRequest, - ListTaxonomiesResponse, - Taxonomy, - ListTaxonomiesPage, - ListTaxonomiesFixedSizeCollection> { - - private ListTaxonomiesFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListTaxonomiesFixedSizeCollection createEmptyCollection() { - return new ListTaxonomiesFixedSizeCollection(null, 0); - } - - @Override - protected ListTaxonomiesFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListTaxonomiesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListPolicyTagsPagedResponse - extends AbstractPagedListResponse< - ListPolicyTagsRequest, - ListPolicyTagsResponse, - PolicyTag, - ListPolicyTagsPage, - ListPolicyTagsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListPolicyTagsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListPolicyTagsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListPolicyTagsPagedResponse(ListPolicyTagsPage page) { - super(page, ListPolicyTagsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListPolicyTagsPage - extends AbstractPage< - ListPolicyTagsRequest, ListPolicyTagsResponse, PolicyTag, ListPolicyTagsPage> { - - private ListPolicyTagsPage( - @Nullable PageContext context, - @Nullable ListPolicyTagsResponse response) { - super(context, response); - } - - private static ListPolicyTagsPage createEmptyPage() { - return new ListPolicyTagsPage(null, null); - } - - @Override - protected ListPolicyTagsPage createPage( - @Nullable PageContext context, - @Nullable ListPolicyTagsResponse response) { - return new ListPolicyTagsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListPolicyTagsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListPolicyTagsRequest, - ListPolicyTagsResponse, - PolicyTag, - ListPolicyTagsPage, - ListPolicyTagsFixedSizeCollection> { - - private ListPolicyTagsFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListPolicyTagsFixedSizeCollection createEmptyCollection() { - return new ListPolicyTagsFixedSizeCollection(null, 0); - } - - @Override - protected ListPolicyTagsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListPolicyTagsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java deleted file mode 100644 index 740266961c1f..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClient.java +++ /dev/null @@ -1,479 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1.stub.PolicyTagManagerSerializationStub; -import com.google.cloud.datacatalog.v1.stub.PolicyTagManagerSerializationStubSettings; -import java.io.IOException; -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: Policy Tag Manager Serialization API service allows you to manipulate your - * policy tags and taxonomies in a serialized format. - * - *

Taxonomy is a hierarchical group of policy tags. - * - *

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 (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
- *     PolicyTagManagerSerializationClient.create()) {
- *   ReplaceTaxonomyRequest request =
- *       ReplaceTaxonomyRequest.newBuilder()
- *           .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
- *           .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build())
- *           .build();
- *   Taxonomy response = policyTagManagerSerializationClient.replaceTaxonomy(request);
- * }
- * }
- * - *

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

ReplaceTaxonomy

Replaces (updates) a taxonomy and all its policy tags. - *

The taxonomy and its entire hierarchy of policy tags must be represented literally by `SerializedTaxonomy` and the nested `SerializedPolicyTag` messages. - *

This operation automatically does the following: - *

- Deletes the existing policy tags that are missing from the `SerializedPolicyTag`. - Creates policy tags that don't have resource names. They are considered new. - Updates policy tags with valid resources names accordingly.

- *

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

- *
    - *
  • replaceTaxonomy(ReplaceTaxonomyRequest request) - *

- *

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

- *
    - *
  • replaceTaxonomyCallable() - *

- *

ImportTaxonomies

Creates new taxonomies (including their policy tags) in a given project by importing from inlined or cross-regional sources. - *

For a cross-regional source, new taxonomies are created by copying from a source in another region. - *

For an inlined source, taxonomies and policy tags are created in bulk using nested protocol buffer structures.

- *

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

- *
    - *
  • importTaxonomies(ImportTaxonomiesRequest request) - *

- *

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

- *
    - *
  • importTaxonomiesCallable() - *

- *

ExportTaxonomies

Exports taxonomies in the requested type and returns them, including their policy tags. The requested taxonomies must belong to the same project. - *

This method generates `SerializedTaxonomy` protocol buffers with nested policy tags that can be used as input for `ImportTaxonomies` calls.

- *

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

- *
    - *
  • exportTaxonomies(ExportTaxonomiesRequest request) - *

- *

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

- *
    - *
  • exportTaxonomiesCallable() - *

- *
- * - *

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 - * PolicyTagManagerSerializationSettings 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
- * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
- *     PolicyTagManagerSerializationSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
- *     PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings);
- * }
- * - *

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
- * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
- *     PolicyTagManagerSerializationSettings.newBuilder().setEndpoint(myEndpoint).build();
- * PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
- *     PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings);
- * }
- * - *

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
- * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
- *     PolicyTagManagerSerializationSettings.newHttpJsonBuilder().build();
- * PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
- *     PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class PolicyTagManagerSerializationClient implements BackgroundResource { - private final @Nullable PolicyTagManagerSerializationSettings settings; - private final PolicyTagManagerSerializationStub stub; - - /** Constructs an instance of PolicyTagManagerSerializationClient with default settings. */ - public static final PolicyTagManagerSerializationClient create() throws IOException { - return create(PolicyTagManagerSerializationSettings.newBuilder().build()); - } - - /** - * Constructs an instance of PolicyTagManagerSerializationClient, 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 PolicyTagManagerSerializationClient create( - PolicyTagManagerSerializationSettings settings) throws IOException { - return new PolicyTagManagerSerializationClient(settings); - } - - /** - * Constructs an instance of PolicyTagManagerSerializationClient, using the given stub for making - * calls. This is for advanced usage - prefer using create(PolicyTagManagerSerializationSettings). - */ - public static final PolicyTagManagerSerializationClient create( - PolicyTagManagerSerializationStub stub) { - return new PolicyTagManagerSerializationClient(stub); - } - - /** - * Constructs an instance of PolicyTagManagerSerializationClient, 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 PolicyTagManagerSerializationClient(PolicyTagManagerSerializationSettings settings) - throws IOException { - this.settings = settings; - this.stub = - ((PolicyTagManagerSerializationStubSettings) settings.getStubSettings()).createStub(); - } - - protected PolicyTagManagerSerializationClient(PolicyTagManagerSerializationStub stub) { - this.settings = null; - this.stub = stub; - } - - public final @Nullable PolicyTagManagerSerializationSettings getSettings() { - return settings; - } - - public PolicyTagManagerSerializationStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Replaces (updates) a taxonomy and all its policy tags. - * - *

The taxonomy and its entire hierarchy of policy tags must be represented literally by - * `SerializedTaxonomy` and the nested `SerializedPolicyTag` messages. - * - *

This operation automatically does the following: - * - *

- Deletes the existing policy tags that are missing from the `SerializedPolicyTag`. - - * Creates policy tags that don't have resource names. They are considered new. - Updates policy - * tags with valid resources names accordingly. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
-   *     PolicyTagManagerSerializationClient.create()) {
-   *   ReplaceTaxonomyRequest request =
-   *       ReplaceTaxonomyRequest.newBuilder()
-   *           .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build())
-   *           .build();
-   *   Taxonomy response = policyTagManagerSerializationClient.replaceTaxonomy(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 Taxonomy replaceTaxonomy(ReplaceTaxonomyRequest request) { - return replaceTaxonomyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Replaces (updates) a taxonomy and all its policy tags. - * - *

The taxonomy and its entire hierarchy of policy tags must be represented literally by - * `SerializedTaxonomy` and the nested `SerializedPolicyTag` messages. - * - *

This operation automatically does the following: - * - *

- Deletes the existing policy tags that are missing from the `SerializedPolicyTag`. - - * Creates policy tags that don't have resource names. They are considered new. - Updates policy - * tags with valid resources names accordingly. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
-   *     PolicyTagManagerSerializationClient.create()) {
-   *   ReplaceTaxonomyRequest request =
-   *       ReplaceTaxonomyRequest.newBuilder()
-   *           .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerSerializationClient.replaceTaxonomyCallable().futureCall(request);
-   *   // Do something.
-   *   Taxonomy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable replaceTaxonomyCallable() { - return stub.replaceTaxonomyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new taxonomies (including their policy tags) in a given project by importing from - * inlined or cross-regional sources. - * - *

For a cross-regional source, new taxonomies are created by copying from a source in another - * region. - * - *

For an inlined source, taxonomies and policy tags are created in bulk using nested protocol - * buffer structures. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
-   *     PolicyTagManagerSerializationClient.create()) {
-   *   ImportTaxonomiesRequest request =
-   *       ImportTaxonomiesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ImportTaxonomiesResponse response =
-   *       policyTagManagerSerializationClient.importTaxonomies(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 ImportTaxonomiesResponse importTaxonomies(ImportTaxonomiesRequest request) { - return importTaxonomiesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates new taxonomies (including their policy tags) in a given project by importing from - * inlined or cross-regional sources. - * - *

For a cross-regional source, new taxonomies are created by copying from a source in another - * region. - * - *

For an inlined source, taxonomies and policy tags are created in bulk using nested protocol - * buffer structures. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
-   *     PolicyTagManagerSerializationClient.create()) {
-   *   ImportTaxonomiesRequest request =
-   *       ImportTaxonomiesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerSerializationClient.importTaxonomiesCallable().futureCall(request);
-   *   // Do something.
-   *   ImportTaxonomiesResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - importTaxonomiesCallable() { - return stub.importTaxonomiesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports taxonomies in the requested type and returns them, including their policy tags. The - * requested taxonomies must belong to the same project. - * - *

This method generates `SerializedTaxonomy` protocol buffers with nested policy tags that can - * be used as input for `ImportTaxonomies` calls. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
-   *     PolicyTagManagerSerializationClient.create()) {
-   *   ExportTaxonomiesRequest request =
-   *       ExportTaxonomiesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .addAllTaxonomies(new ArrayList())
-   *           .build();
-   *   ExportTaxonomiesResponse response =
-   *       policyTagManagerSerializationClient.exportTaxonomies(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 ExportTaxonomiesResponse exportTaxonomies(ExportTaxonomiesRequest request) { - return exportTaxonomiesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports taxonomies in the requested type and returns them, including their policy tags. The - * requested taxonomies must belong to the same project. - * - *

This method generates `SerializedTaxonomy` protocol buffers with nested policy tags that can - * be used as input for `ImportTaxonomies` calls. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
-   *     PolicyTagManagerSerializationClient.create()) {
-   *   ExportTaxonomiesRequest request =
-   *       ExportTaxonomiesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .addAllTaxonomies(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerSerializationClient.exportTaxonomiesCallable().futureCall(request);
-   *   // Do something.
-   *   ExportTaxonomiesResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - exportTaxonomiesCallable() { - return stub.exportTaxonomiesCallable(); - } - - @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); - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java deleted file mode 100644 index cdb1e165fa2e..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationSettings.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -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.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.datacatalog.v1.stub.PolicyTagManagerSerializationStubSettings; -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 PolicyTagManagerSerializationClient}. - * - *

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

    - *
  • The default service address (datacatalog.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 replaceTaxonomy: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerSerializationSettings.Builder policyTagManagerSerializationSettingsBuilder =
- *     PolicyTagManagerSerializationSettings.newBuilder();
- * policyTagManagerSerializationSettingsBuilder
- *     .replaceTaxonomySettings()
- *     .setRetrySettings(
- *         policyTagManagerSerializationSettingsBuilder
- *             .replaceTaxonomySettings()
- *             .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());
- * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
- *     policyTagManagerSerializationSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class PolicyTagManagerSerializationSettings - extends ClientSettings { - - /** Returns the object with the settings used for calls to replaceTaxonomy. */ - public UnaryCallSettings replaceTaxonomySettings() { - return ((PolicyTagManagerSerializationStubSettings) getStubSettings()) - .replaceTaxonomySettings(); - } - - /** Returns the object with the settings used for calls to importTaxonomies. */ - public UnaryCallSettings - importTaxonomiesSettings() { - return ((PolicyTagManagerSerializationStubSettings) getStubSettings()) - .importTaxonomiesSettings(); - } - - /** Returns the object with the settings used for calls to exportTaxonomies. */ - public UnaryCallSettings - exportTaxonomiesSettings() { - return ((PolicyTagManagerSerializationStubSettings) getStubSettings()) - .exportTaxonomiesSettings(); - } - - public static final PolicyTagManagerSerializationSettings create( - PolicyTagManagerSerializationStubSettings stub) throws IOException { - return new PolicyTagManagerSerializationSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return PolicyTagManagerSerializationStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return PolicyTagManagerSerializationStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return PolicyTagManagerSerializationStubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.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 PolicyTagManagerSerializationSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for PolicyTagManagerSerializationSettings. */ - public static class Builder - extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(PolicyTagManagerSerializationStubSettings.newBuilder(clientContext)); - } - - protected Builder(PolicyTagManagerSerializationSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(PolicyTagManagerSerializationStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(PolicyTagManagerSerializationStubSettings.newBuilder()); - } - - private static Builder createHttpJsonDefault() { - return new Builder(PolicyTagManagerSerializationStubSettings.newHttpJsonBuilder()); - } - - public PolicyTagManagerSerializationStubSettings.Builder getStubSettingsBuilder() { - return ((PolicyTagManagerSerializationStubSettings.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 replaceTaxonomy. */ - public UnaryCallSettings.Builder replaceTaxonomySettings() { - return getStubSettingsBuilder().replaceTaxonomySettings(); - } - - /** Returns the builder for the settings used for calls to importTaxonomies. */ - public UnaryCallSettings.Builder - importTaxonomiesSettings() { - return getStubSettingsBuilder().importTaxonomiesSettings(); - } - - /** Returns the builder for the settings used for calls to exportTaxonomies. */ - public UnaryCallSettings.Builder - exportTaxonomiesSettings() { - return getStubSettingsBuilder().exportTaxonomiesSettings(); - } - - @Override - public PolicyTagManagerSerializationSettings build() throws IOException { - return new PolicyTagManagerSerializationSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java deleted file mode 100644 index 9949131bfb10..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSettings.java +++ /dev/null @@ -1,358 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -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.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.datacatalog.v1.stub.PolicyTagManagerStubSettings; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import 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 PolicyTagManagerClient}. - * - *

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

    - *
  • The default service address (datacatalog.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 createTaxonomy: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerSettings.Builder policyTagManagerSettingsBuilder =
- *     PolicyTagManagerSettings.newBuilder();
- * policyTagManagerSettingsBuilder
- *     .createTaxonomySettings()
- *     .setRetrySettings(
- *         policyTagManagerSettingsBuilder
- *             .createTaxonomySettings()
- *             .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());
- * PolicyTagManagerSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class PolicyTagManagerSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to createTaxonomy. */ - public UnaryCallSettings createTaxonomySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).createTaxonomySettings(); - } - - /** Returns the object with the settings used for calls to deleteTaxonomy. */ - public UnaryCallSettings deleteTaxonomySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).deleteTaxonomySettings(); - } - - /** Returns the object with the settings used for calls to updateTaxonomy. */ - public UnaryCallSettings updateTaxonomySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).updateTaxonomySettings(); - } - - /** Returns the object with the settings used for calls to listTaxonomies. */ - public PagedCallSettings< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).listTaxonomiesSettings(); - } - - /** Returns the object with the settings used for calls to getTaxonomy. */ - public UnaryCallSettings getTaxonomySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).getTaxonomySettings(); - } - - /** Returns the object with the settings used for calls to createPolicyTag. */ - public UnaryCallSettings createPolicyTagSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).createPolicyTagSettings(); - } - - /** Returns the object with the settings used for calls to deletePolicyTag. */ - public UnaryCallSettings deletePolicyTagSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).deletePolicyTagSettings(); - } - - /** Returns the object with the settings used for calls to updatePolicyTag. */ - public UnaryCallSettings updatePolicyTagSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).updatePolicyTagSettings(); - } - - /** Returns the object with the settings used for calls to listPolicyTags. */ - public PagedCallSettings< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).listPolicyTagsSettings(); - } - - /** Returns the object with the settings used for calls to getPolicyTag. */ - public UnaryCallSettings getPolicyTagSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).getPolicyTagSettings(); - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).testIamPermissionsSettings(); - } - - public static final PolicyTagManagerSettings create(PolicyTagManagerStubSettings stub) - throws IOException { - return new PolicyTagManagerSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return PolicyTagManagerStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return PolicyTagManagerStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return PolicyTagManagerStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return PolicyTagManagerStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return PolicyTagManagerStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return PolicyTagManagerStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return PolicyTagManagerStubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return PolicyTagManagerStubSettings.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 PolicyTagManagerSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for PolicyTagManagerSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(PolicyTagManagerStubSettings.newBuilder(clientContext)); - } - - protected Builder(PolicyTagManagerSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(PolicyTagManagerStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(PolicyTagManagerStubSettings.newBuilder()); - } - - private static Builder createHttpJsonDefault() { - return new Builder(PolicyTagManagerStubSettings.newHttpJsonBuilder()); - } - - public PolicyTagManagerStubSettings.Builder getStubSettingsBuilder() { - return ((PolicyTagManagerStubSettings.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 createTaxonomy. */ - public UnaryCallSettings.Builder createTaxonomySettings() { - return getStubSettingsBuilder().createTaxonomySettings(); - } - - /** Returns the builder for the settings used for calls to deleteTaxonomy. */ - public UnaryCallSettings.Builder deleteTaxonomySettings() { - return getStubSettingsBuilder().deleteTaxonomySettings(); - } - - /** Returns the builder for the settings used for calls to updateTaxonomy. */ - public UnaryCallSettings.Builder updateTaxonomySettings() { - return getStubSettingsBuilder().updateTaxonomySettings(); - } - - /** Returns the builder for the settings used for calls to listTaxonomies. */ - public PagedCallSettings.Builder< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings() { - return getStubSettingsBuilder().listTaxonomiesSettings(); - } - - /** Returns the builder for the settings used for calls to getTaxonomy. */ - public UnaryCallSettings.Builder getTaxonomySettings() { - return getStubSettingsBuilder().getTaxonomySettings(); - } - - /** Returns the builder for the settings used for calls to createPolicyTag. */ - public UnaryCallSettings.Builder createPolicyTagSettings() { - return getStubSettingsBuilder().createPolicyTagSettings(); - } - - /** Returns the builder for the settings used for calls to deletePolicyTag. */ - public UnaryCallSettings.Builder deletePolicyTagSettings() { - return getStubSettingsBuilder().deletePolicyTagSettings(); - } - - /** Returns the builder for the settings used for calls to updatePolicyTag. */ - public UnaryCallSettings.Builder updatePolicyTagSettings() { - return getStubSettingsBuilder().updatePolicyTagSettings(); - } - - /** Returns the builder for the settings used for calls to listPolicyTags. */ - public PagedCallSettings.Builder< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings() { - return getStubSettingsBuilder().listPolicyTagsSettings(); - } - - /** Returns the builder for the settings used for calls to getPolicyTag. */ - public UnaryCallSettings.Builder getPolicyTagSettings() { - return getStubSettingsBuilder().getPolicyTagSettings(); - } - - /** 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 setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - @Override - public PolicyTagManagerSettings build() throws IOException { - return new PolicyTagManagerSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/gapic_metadata.json b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/gapic_metadata.json deleted file mode 100644 index d38999328726..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/gapic_metadata.json +++ /dev/null @@ -1,195 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.datacatalog.v1", - "libraryPackage": "com.google.cloud.datacatalog.v1", - "services": { - "DataCatalog": { - "clients": { - "grpc": { - "libraryClient": "DataCatalogClient", - "rpcs": { - "CreateEntry": { - "methods": ["createEntry", "createEntry", "createEntry", "createEntryCallable"] - }, - "CreateEntryGroup": { - "methods": ["createEntryGroup", "createEntryGroup", "createEntryGroup", "createEntryGroupCallable"] - }, - "CreateTag": { - "methods": ["createTag", "createTag", "createTag", "createTagCallable"] - }, - "CreateTagTemplate": { - "methods": ["createTagTemplate", "createTagTemplate", "createTagTemplate", "createTagTemplateCallable"] - }, - "CreateTagTemplateField": { - "methods": ["createTagTemplateField", "createTagTemplateField", "createTagTemplateField", "createTagTemplateFieldCallable"] - }, - "DeleteEntry": { - "methods": ["deleteEntry", "deleteEntry", "deleteEntry", "deleteEntryCallable"] - }, - "DeleteEntryGroup": { - "methods": ["deleteEntryGroup", "deleteEntryGroup", "deleteEntryGroup", "deleteEntryGroupCallable"] - }, - "DeleteTag": { - "methods": ["deleteTag", "deleteTag", "deleteTag", "deleteTagCallable"] - }, - "DeleteTagTemplate": { - "methods": ["deleteTagTemplate", "deleteTagTemplate", "deleteTagTemplate", "deleteTagTemplateCallable"] - }, - "DeleteTagTemplateField": { - "methods": ["deleteTagTemplateField", "deleteTagTemplateField", "deleteTagTemplateField", "deleteTagTemplateFieldCallable"] - }, - "GetEntry": { - "methods": ["getEntry", "getEntry", "getEntry", "getEntryCallable"] - }, - "GetEntryGroup": { - "methods": ["getEntryGroup", "getEntryGroup", "getEntryGroup", "getEntryGroup", "getEntryGroup", "getEntryGroupCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] - }, - "GetTagTemplate": { - "methods": ["getTagTemplate", "getTagTemplate", "getTagTemplate", "getTagTemplateCallable"] - }, - "ImportEntries": { - "methods": ["importEntriesAsync", "importEntriesOperationCallable", "importEntriesCallable"] - }, - "ListEntries": { - "methods": ["listEntries", "listEntries", "listEntries", "listEntriesPagedCallable", "listEntriesCallable"] - }, - "ListEntryGroups": { - "methods": ["listEntryGroups", "listEntryGroups", "listEntryGroups", "listEntryGroupsPagedCallable", "listEntryGroupsCallable"] - }, - "ListTags": { - "methods": ["listTags", "listTags", "listTags", "listTagsPagedCallable", "listTagsCallable"] - }, - "LookupEntry": { - "methods": ["lookupEntry", "lookupEntryCallable"] - }, - "ModifyEntryContacts": { - "methods": ["modifyEntryContacts", "modifyEntryContactsCallable"] - }, - "ModifyEntryOverview": { - "methods": ["modifyEntryOverview", "modifyEntryOverviewCallable"] - }, - "ReconcileTags": { - "methods": ["reconcileTagsAsync", "reconcileTagsOperationCallable", "reconcileTagsCallable"] - }, - "RenameTagTemplateField": { - "methods": ["renameTagTemplateField", "renameTagTemplateField", "renameTagTemplateField", "renameTagTemplateFieldCallable"] - }, - "RenameTagTemplateFieldEnumValue": { - "methods": ["renameTagTemplateFieldEnumValue", "renameTagTemplateFieldEnumValue", "renameTagTemplateFieldEnumValue", "renameTagTemplateFieldEnumValueCallable"] - }, - "RetrieveConfig": { - "methods": ["retrieveConfig", "retrieveConfigCallable"] - }, - "RetrieveEffectiveConfig": { - "methods": ["retrieveEffectiveConfig", "retrieveEffectiveConfigCallable"] - }, - "SearchCatalog": { - "methods": ["searchCatalog", "searchCatalog", "searchCatalogPagedCallable", "searchCatalogCallable"] - }, - "SetConfig": { - "methods": ["setConfig", "setConfigCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] - }, - "StarEntry": { - "methods": ["starEntry", "starEntry", "starEntry", "starEntryCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissionsCallable"] - }, - "UnstarEntry": { - "methods": ["unstarEntry", "unstarEntry", "unstarEntry", "unstarEntryCallable"] - }, - "UpdateEntry": { - "methods": ["updateEntry", "updateEntry", "updateEntry", "updateEntryCallable"] - }, - "UpdateEntryGroup": { - "methods": ["updateEntryGroup", "updateEntryGroup", "updateEntryGroup", "updateEntryGroupCallable"] - }, - "UpdateTag": { - "methods": ["updateTag", "updateTag", "updateTag", "updateTagCallable"] - }, - "UpdateTagTemplate": { - "methods": ["updateTagTemplate", "updateTagTemplate", "updateTagTemplate", "updateTagTemplateCallable"] - }, - "UpdateTagTemplateField": { - "methods": ["updateTagTemplateField", "updateTagTemplateField", "updateTagTemplateField", "updateTagTemplateField", "updateTagTemplateField", "updateTagTemplateFieldCallable"] - } - } - } - } - }, - "PolicyTagManager": { - "clients": { - "grpc": { - "libraryClient": "PolicyTagManagerClient", - "rpcs": { - "CreatePolicyTag": { - "methods": ["createPolicyTag", "createPolicyTag", "createPolicyTag", "createPolicyTagCallable"] - }, - "CreateTaxonomy": { - "methods": ["createTaxonomy", "createTaxonomy", "createTaxonomy", "createTaxonomyCallable"] - }, - "DeletePolicyTag": { - "methods": ["deletePolicyTag", "deletePolicyTag", "deletePolicyTag", "deletePolicyTagCallable"] - }, - "DeleteTaxonomy": { - "methods": ["deleteTaxonomy", "deleteTaxonomy", "deleteTaxonomy", "deleteTaxonomyCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicyCallable"] - }, - "GetPolicyTag": { - "methods": ["getPolicyTag", "getPolicyTag", "getPolicyTag", "getPolicyTagCallable"] - }, - "GetTaxonomy": { - "methods": ["getTaxonomy", "getTaxonomy", "getTaxonomy", "getTaxonomyCallable"] - }, - "ListPolicyTags": { - "methods": ["listPolicyTags", "listPolicyTags", "listPolicyTags", "listPolicyTagsPagedCallable", "listPolicyTagsCallable"] - }, - "ListTaxonomies": { - "methods": ["listTaxonomies", "listTaxonomies", "listTaxonomies", "listTaxonomiesPagedCallable", "listTaxonomiesCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissionsCallable"] - }, - "UpdatePolicyTag": { - "methods": ["updatePolicyTag", "updatePolicyTag", "updatePolicyTagCallable"] - }, - "UpdateTaxonomy": { - "methods": ["updateTaxonomy", "updateTaxonomy", "updateTaxonomyCallable"] - } - } - } - } - }, - "PolicyTagManagerSerialization": { - "clients": { - "grpc": { - "libraryClient": "PolicyTagManagerSerializationClient", - "rpcs": { - "ExportTaxonomies": { - "methods": ["exportTaxonomies", "exportTaxonomiesCallable"] - }, - "ImportTaxonomies": { - "methods": ["importTaxonomies", "importTaxonomiesCallable"] - }, - "ReplaceTaxonomy": { - "methods": ["replaceTaxonomy", "replaceTaxonomyCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/package-info.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/package-info.java deleted file mode 100644 index 3bc318d1b31f..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/package-info.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 Google Cloud Data Catalog API - * - *

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

======================= DataCatalogClient ======================= - * - *

Service Description: Deprecated: Please use Dataplex Catalog instead. - * - *

Data Catalog API service allows you to discover, understand, and manage your data. - * - *

Sample for DataCatalogClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String entryGroupId = "entryGroupId1228924712";
- *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
- *   EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
- * }
- * }
- * - *

======================= PolicyTagManagerClient ======================= - * - *

Service Description: Policy Tag Manager API service allows you to manage your policy tags and - * taxonomies. - * - *

Policy tags are used to tag BigQuery columns and apply additional access control policies. A - * taxonomy is a hierarchical grouping of policy tags that classify data along a common axis. - * - *

Sample for PolicyTagManagerClient: - * - *

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

======================= PolicyTagManagerSerializationClient ======================= - * - *

Service Description: Policy Tag Manager Serialization API service allows you to manipulate - * your policy tags and taxonomies in a serialized format. - * - *

Taxonomy is a hierarchical group of policy tags. - * - *

Sample for PolicyTagManagerSerializationClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
- *     PolicyTagManagerSerializationClient.create()) {
- *   ReplaceTaxonomyRequest request =
- *       ReplaceTaxonomyRequest.newBuilder()
- *           .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
- *           .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build())
- *           .build();
- *   Taxonomy response = policyTagManagerSerializationClient.replaceTaxonomy(request);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.datacatalog.v1; - -import javax.annotation.Generated; diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java deleted file mode 100644 index 2612250f24ab..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStub.java +++ /dev/null @@ -1,342 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.SearchCatalogPagedResponse; - -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.datacatalog.v1.Contacts; -import com.google.cloud.datacatalog.v1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1.CreateTagRequest; -import com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryOverview; -import com.google.cloud.datacatalog.v1.GetEntryGroupRequest; -import com.google.cloud.datacatalog.v1.GetEntryRequest; -import com.google.cloud.datacatalog.v1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1.ImportEntriesMetadata; -import com.google.cloud.datacatalog.v1.ImportEntriesRequest; -import com.google.cloud.datacatalog.v1.ImportEntriesResponse; -import com.google.cloud.datacatalog.v1.ListEntriesRequest; -import com.google.cloud.datacatalog.v1.ListEntriesResponse; -import com.google.cloud.datacatalog.v1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1.ListEntryGroupsResponse; -import com.google.cloud.datacatalog.v1.ListTagsRequest; -import com.google.cloud.datacatalog.v1.ListTagsResponse; -import com.google.cloud.datacatalog.v1.LookupEntryRequest; -import com.google.cloud.datacatalog.v1.MigrationConfig; -import com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest; -import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; -import com.google.cloud.datacatalog.v1.OrganizationConfig; -import com.google.cloud.datacatalog.v1.ReconcileTagsMetadata; -import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; -import com.google.cloud.datacatalog.v1.ReconcileTagsResponse; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; -import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogResponse; -import com.google.cloud.datacatalog.v1.SetConfigRequest; -import com.google.cloud.datacatalog.v1.StarEntryRequest; -import com.google.cloud.datacatalog.v1.StarEntryResponse; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.UnstarEntryRequest; -import com.google.cloud.datacatalog.v1.UnstarEntryResponse; -import com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest; -import com.google.cloud.datacatalog.v1.UpdateEntryRequest; -import com.google.cloud.datacatalog.v1.UpdateTagRequest; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest; -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.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 DataCatalog service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@Deprecated -@Generated("by gapic-generator-java") -public abstract class DataCatalogStub implements BackgroundResource { - - public @Nullable OperationsStub getOperationsStub() { - return null; - } - - public com.google.api.gax.httpjson.longrunning.stub.@Nullable OperationsStub - getHttpJsonOperationsStub() { - return null; - } - - @Deprecated - public UnaryCallable - searchCatalogPagedCallable() { - throw new UnsupportedOperationException("Not implemented: searchCatalogPagedCallable()"); - } - - @Deprecated - public UnaryCallable searchCatalogCallable() { - throw new UnsupportedOperationException("Not implemented: searchCatalogCallable()"); - } - - @Deprecated - public UnaryCallable createEntryGroupCallable() { - throw new UnsupportedOperationException("Not implemented: createEntryGroupCallable()"); - } - - @Deprecated - public UnaryCallable getEntryGroupCallable() { - throw new UnsupportedOperationException("Not implemented: getEntryGroupCallable()"); - } - - @Deprecated - public UnaryCallable updateEntryGroupCallable() { - throw new UnsupportedOperationException("Not implemented: updateEntryGroupCallable()"); - } - - @Deprecated - public UnaryCallable deleteEntryGroupCallable() { - throw new UnsupportedOperationException("Not implemented: deleteEntryGroupCallable()"); - } - - @Deprecated - public UnaryCallable - listEntryGroupsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listEntryGroupsPagedCallable()"); - } - - @Deprecated - public UnaryCallable listEntryGroupsCallable() { - throw new UnsupportedOperationException("Not implemented: listEntryGroupsCallable()"); - } - - @Deprecated - public UnaryCallable createEntryCallable() { - throw new UnsupportedOperationException("Not implemented: createEntryCallable()"); - } - - @Deprecated - public UnaryCallable updateEntryCallable() { - throw new UnsupportedOperationException("Not implemented: updateEntryCallable()"); - } - - @Deprecated - public UnaryCallable deleteEntryCallable() { - throw new UnsupportedOperationException("Not implemented: deleteEntryCallable()"); - } - - @Deprecated - public UnaryCallable getEntryCallable() { - throw new UnsupportedOperationException("Not implemented: getEntryCallable()"); - } - - @Deprecated - public UnaryCallable lookupEntryCallable() { - throw new UnsupportedOperationException("Not implemented: lookupEntryCallable()"); - } - - @Deprecated - public UnaryCallable listEntriesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listEntriesPagedCallable()"); - } - - @Deprecated - public UnaryCallable listEntriesCallable() { - throw new UnsupportedOperationException("Not implemented: listEntriesCallable()"); - } - - @Deprecated - public UnaryCallable modifyEntryOverviewCallable() { - throw new UnsupportedOperationException("Not implemented: modifyEntryOverviewCallable()"); - } - - @Deprecated - public UnaryCallable modifyEntryContactsCallable() { - throw new UnsupportedOperationException("Not implemented: modifyEntryContactsCallable()"); - } - - @Deprecated - public UnaryCallable createTagTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: createTagTemplateCallable()"); - } - - @Deprecated - public UnaryCallable getTagTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: getTagTemplateCallable()"); - } - - @Deprecated - public UnaryCallable updateTagTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: updateTagTemplateCallable()"); - } - - @Deprecated - public UnaryCallable deleteTagTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTagTemplateCallable()"); - } - - @Deprecated - public UnaryCallable - createTagTemplateFieldCallable() { - throw new UnsupportedOperationException("Not implemented: createTagTemplateFieldCallable()"); - } - - @Deprecated - public UnaryCallable - updateTagTemplateFieldCallable() { - throw new UnsupportedOperationException("Not implemented: updateTagTemplateFieldCallable()"); - } - - @Deprecated - public UnaryCallable - renameTagTemplateFieldCallable() { - throw new UnsupportedOperationException("Not implemented: renameTagTemplateFieldCallable()"); - } - - @Deprecated - public UnaryCallable - renameTagTemplateFieldEnumValueCallable() { - throw new UnsupportedOperationException( - "Not implemented: renameTagTemplateFieldEnumValueCallable()"); - } - - @Deprecated - public UnaryCallable deleteTagTemplateFieldCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTagTemplateFieldCallable()"); - } - - @Deprecated - public UnaryCallable createTagCallable() { - throw new UnsupportedOperationException("Not implemented: createTagCallable()"); - } - - @Deprecated - public UnaryCallable updateTagCallable() { - throw new UnsupportedOperationException("Not implemented: updateTagCallable()"); - } - - @Deprecated - public UnaryCallable deleteTagCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTagCallable()"); - } - - @Deprecated - public UnaryCallable listTagsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listTagsPagedCallable()"); - } - - @Deprecated - public UnaryCallable listTagsCallable() { - throw new UnsupportedOperationException("Not implemented: listTagsCallable()"); - } - - @Deprecated - public OperationCallable - reconcileTagsOperationCallable() { - throw new UnsupportedOperationException("Not implemented: reconcileTagsOperationCallable()"); - } - - @Deprecated - public UnaryCallable reconcileTagsCallable() { - throw new UnsupportedOperationException("Not implemented: reconcileTagsCallable()"); - } - - @Deprecated - public UnaryCallable starEntryCallable() { - throw new UnsupportedOperationException("Not implemented: starEntryCallable()"); - } - - @Deprecated - public UnaryCallable unstarEntryCallable() { - throw new UnsupportedOperationException("Not implemented: unstarEntryCallable()"); - } - - @Deprecated - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - @Deprecated - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - @Deprecated - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - - @Deprecated - public OperationCallable - importEntriesOperationCallable() { - throw new UnsupportedOperationException("Not implemented: importEntriesOperationCallable()"); - } - - @Deprecated - public UnaryCallable importEntriesCallable() { - throw new UnsupportedOperationException("Not implemented: importEntriesCallable()"); - } - - @Deprecated - public UnaryCallable setConfigCallable() { - throw new UnsupportedOperationException("Not implemented: setConfigCallable()"); - } - - @Deprecated - public UnaryCallable retrieveConfigCallable() { - throw new UnsupportedOperationException("Not implemented: retrieveConfigCallable()"); - } - - @Deprecated - public UnaryCallable - retrieveEffectiveConfigCallable() { - throw new UnsupportedOperationException("Not implemented: retrieveEffectiveConfigCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java deleted file mode 100644 index d90bd609d663..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/DataCatalogStubSettings.java +++ /dev/null @@ -1,2006 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.SearchCatalogPagedResponse; - -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.datacatalog.v1.Contacts; -import com.google.cloud.datacatalog.v1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1.CreateTagRequest; -import com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryOverview; -import com.google.cloud.datacatalog.v1.GetEntryGroupRequest; -import com.google.cloud.datacatalog.v1.GetEntryRequest; -import com.google.cloud.datacatalog.v1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1.ImportEntriesMetadata; -import com.google.cloud.datacatalog.v1.ImportEntriesRequest; -import com.google.cloud.datacatalog.v1.ImportEntriesResponse; -import com.google.cloud.datacatalog.v1.ListEntriesRequest; -import com.google.cloud.datacatalog.v1.ListEntriesResponse; -import com.google.cloud.datacatalog.v1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1.ListEntryGroupsResponse; -import com.google.cloud.datacatalog.v1.ListTagsRequest; -import com.google.cloud.datacatalog.v1.ListTagsResponse; -import com.google.cloud.datacatalog.v1.LookupEntryRequest; -import com.google.cloud.datacatalog.v1.MigrationConfig; -import com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest; -import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; -import com.google.cloud.datacatalog.v1.OrganizationConfig; -import com.google.cloud.datacatalog.v1.ReconcileTagsMetadata; -import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; -import com.google.cloud.datacatalog.v1.ReconcileTagsResponse; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; -import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogResponse; -import com.google.cloud.datacatalog.v1.SearchCatalogResult; -import com.google.cloud.datacatalog.v1.SetConfigRequest; -import com.google.cloud.datacatalog.v1.StarEntryRequest; -import com.google.cloud.datacatalog.v1.StarEntryResponse; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.UnstarEntryRequest; -import com.google.cloud.datacatalog.v1.UnstarEntryResponse; -import com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest; -import com.google.cloud.datacatalog.v1.UpdateEntryRequest; -import com.google.cloud.datacatalog.v1.UpdateTagRequest; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest; -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.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.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 DataCatalogStub}. - * - *

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

    - *
  • The default service address (datacatalog.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 createEntryGroup: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataCatalogStubSettings.Builder dataCatalogSettingsBuilder =
- *     DataCatalogStubSettings.newBuilder();
- * dataCatalogSettingsBuilder
- *     .createEntryGroupSettings()
- *     .setRetrySettings(
- *         dataCatalogSettingsBuilder
- *             .createEntryGroupSettings()
- *             .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());
- * DataCatalogStubSettings dataCatalogSettings = dataCatalogSettingsBuilder.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 reconcileTags: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataCatalogStubSettings.Builder dataCatalogSettingsBuilder =
- *     DataCatalogStubSettings.newBuilder();
- * TimedRetryAlgorithm timedRetryAlgorithm =
- *     OperationalTimedPollAlgorithm.create(
- *         RetrySettings.newBuilder()
- *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
- *             .setRetryDelayMultiplier(1.5)
- *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
- *             .setTotalTimeoutDuration(Duration.ofHours(24))
- *             .build());
- * dataCatalogSettingsBuilder
- *     .createClusterOperationSettings()
- *     .setPollingAlgorithm(timedRetryAlgorithm)
- *     .build();
- * }
- * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@Deprecated -@Generated("by gapic-generator-java") -@SuppressWarnings("CanonicalDuration") -public class DataCatalogStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - searchCatalogSettings; - private final UnaryCallSettings createEntryGroupSettings; - private final UnaryCallSettings getEntryGroupSettings; - private final UnaryCallSettings updateEntryGroupSettings; - private final UnaryCallSettings deleteEntryGroupSettings; - private final PagedCallSettings< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings; - private final UnaryCallSettings createEntrySettings; - private final UnaryCallSettings updateEntrySettings; - private final UnaryCallSettings deleteEntrySettings; - private final UnaryCallSettings getEntrySettings; - private final UnaryCallSettings lookupEntrySettings; - private final PagedCallSettings - listEntriesSettings; - private final UnaryCallSettings - modifyEntryOverviewSettings; - private final UnaryCallSettings modifyEntryContactsSettings; - private final UnaryCallSettings createTagTemplateSettings; - private final UnaryCallSettings getTagTemplateSettings; - private final UnaryCallSettings updateTagTemplateSettings; - private final UnaryCallSettings deleteTagTemplateSettings; - private final UnaryCallSettings - createTagTemplateFieldSettings; - private final UnaryCallSettings - updateTagTemplateFieldSettings; - private final UnaryCallSettings - renameTagTemplateFieldSettings; - private final UnaryCallSettings - renameTagTemplateFieldEnumValueSettings; - private final UnaryCallSettings - deleteTagTemplateFieldSettings; - private final UnaryCallSettings createTagSettings; - private final UnaryCallSettings updateTagSettings; - private final UnaryCallSettings deleteTagSettings; - private final PagedCallSettings - listTagsSettings; - private final UnaryCallSettings reconcileTagsSettings; - private final OperationCallSettings< - ReconcileTagsRequest, ReconcileTagsResponse, ReconcileTagsMetadata> - reconcileTagsOperationSettings; - private final UnaryCallSettings starEntrySettings; - private final UnaryCallSettings unstarEntrySettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; - private final UnaryCallSettings importEntriesSettings; - private final OperationCallSettings< - ImportEntriesRequest, ImportEntriesResponse, ImportEntriesMetadata> - importEntriesOperationSettings; - private final UnaryCallSettings setConfigSettings; - private final UnaryCallSettings retrieveConfigSettings; - private final UnaryCallSettings - retrieveEffectiveConfigSettings; - - private static final PagedListDescriptor< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogResult> - SEARCH_CATALOG_PAGE_STR_DESC = - new PagedListDescriptor< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogResult>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public SearchCatalogRequest injectToken(SearchCatalogRequest payload, String token) { - return SearchCatalogRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public SearchCatalogRequest injectPageSize(SearchCatalogRequest payload, int pageSize) { - return SearchCatalogRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(SearchCatalogRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(SearchCatalogResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(SearchCatalogResponse payload) { - return payload.getResultsList(); - } - }; - - private static final PagedListDescriptor< - ListEntryGroupsRequest, ListEntryGroupsResponse, EntryGroup> - LIST_ENTRY_GROUPS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListEntryGroupsRequest injectToken( - ListEntryGroupsRequest payload, String token) { - return ListEntryGroupsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListEntryGroupsRequest injectPageSize( - ListEntryGroupsRequest payload, int pageSize) { - return ListEntryGroupsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListEntryGroupsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListEntryGroupsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListEntryGroupsResponse payload) { - return payload.getEntryGroupsList(); - } - }; - - private static final PagedListDescriptor - LIST_ENTRIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListEntriesRequest injectToken(ListEntriesRequest payload, String token) { - return ListEntriesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListEntriesRequest injectPageSize(ListEntriesRequest payload, int pageSize) { - return ListEntriesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListEntriesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListEntriesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListEntriesResponse payload) { - return payload.getEntriesList(); - } - }; - - private static final PagedListDescriptor - LIST_TAGS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListTagsRequest injectToken(ListTagsRequest payload, String token) { - return ListTagsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListTagsRequest injectPageSize(ListTagsRequest payload, int pageSize) { - return ListTagsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListTagsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListTagsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListTagsResponse payload) { - return payload.getTagsList(); - } - }; - - private static final PagedListResponseFactory< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - SEARCH_CATALOG_PAGE_STR_FACT = - new PagedListResponseFactory< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - SearchCatalogRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create(callable, SEARCH_CATALOG_PAGE_STR_DESC, request, context); - return SearchCatalogPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - LIST_ENTRY_GROUPS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListEntryGroupsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_ENTRY_GROUPS_PAGE_STR_DESC, request, context); - return ListEntryGroupsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> - LIST_ENTRIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListEntriesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_ENTRIES_PAGE_STR_DESC, request, context); - return ListEntriesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListTagsRequest, ListTagsResponse, ListTagsPagedResponse> - LIST_TAGS_PAGE_STR_FACT = - new PagedListResponseFactory() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListTagsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_TAGS_PAGE_STR_DESC, request, context); - return ListTagsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** - * Returns the object with the settings used for calls to searchCatalog. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - searchCatalogSettings() { - return searchCatalogSettings; - } - - /** - * Returns the object with the settings used for calls to createEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createEntryGroupSettings() { - return createEntryGroupSettings; - } - - /** - * Returns the object with the settings used for calls to getEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getEntryGroupSettings() { - return getEntryGroupSettings; - } - - /** - * Returns the object with the settings used for calls to updateEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateEntryGroupSettings() { - return updateEntryGroupSettings; - } - - /** - * Returns the object with the settings used for calls to deleteEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteEntryGroupSettings() { - return deleteEntryGroupSettings; - } - - /** - * Returns the object with the settings used for calls to listEntryGroups. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return listEntryGroupsSettings; - } - - /** - * Returns the object with the settings used for calls to createEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createEntrySettings() { - return createEntrySettings; - } - - /** - * Returns the object with the settings used for calls to updateEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateEntrySettings() { - return updateEntrySettings; - } - - /** - * Returns the object with the settings used for calls to deleteEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteEntrySettings() { - return deleteEntrySettings; - } - - /** - * Returns the object with the settings used for calls to getEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getEntrySettings() { - return getEntrySettings; - } - - /** - * Returns the object with the settings used for calls to lookupEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings lookupEntrySettings() { - return lookupEntrySettings; - } - - /** - * Returns the object with the settings used for calls to listEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - listEntriesSettings() { - return listEntriesSettings; - } - - /** - * Returns the object with the settings used for calls to modifyEntryOverview. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - modifyEntryOverviewSettings() { - return modifyEntryOverviewSettings; - } - - /** - * Returns the object with the settings used for calls to modifyEntryContacts. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings modifyEntryContactsSettings() { - return modifyEntryContactsSettings; - } - - /** - * Returns the object with the settings used for calls to createTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createTagTemplateSettings() { - return createTagTemplateSettings; - } - - /** - * Returns the object with the settings used for calls to getTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getTagTemplateSettings() { - return getTagTemplateSettings; - } - - /** - * Returns the object with the settings used for calls to updateTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateTagTemplateSettings() { - return updateTagTemplateSettings; - } - - /** - * Returns the object with the settings used for calls to deleteTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagTemplateSettings() { - return deleteTagTemplateSettings; - } - - /** - * Returns the object with the settings used for calls to createTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - createTagTemplateFieldSettings() { - return createTagTemplateFieldSettings; - } - - /** - * Returns the object with the settings used for calls to updateTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - updateTagTemplateFieldSettings() { - return updateTagTemplateFieldSettings; - } - - /** - * Returns the object with the settings used for calls to renameTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - renameTagTemplateFieldSettings() { - return renameTagTemplateFieldSettings; - } - - /** - * Returns the object with the settings used for calls to renameTagTemplateFieldEnumValue. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - renameTagTemplateFieldEnumValueSettings() { - return renameTagTemplateFieldEnumValueSettings; - } - - /** - * Returns the object with the settings used for calls to deleteTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagTemplateFieldSettings() { - return deleteTagTemplateFieldSettings; - } - - /** - * Returns the object with the settings used for calls to createTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createTagSettings() { - return createTagSettings; - } - - /** - * Returns the object with the settings used for calls to updateTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateTagSettings() { - return updateTagSettings; - } - - /** - * Returns the object with the settings used for calls to deleteTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagSettings() { - return deleteTagSettings; - } - - /** - * Returns the object with the settings used for calls to listTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - listTagsSettings() { - return listTagsSettings; - } - - /** - * Returns the object with the settings used for calls to reconcileTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings reconcileTagsSettings() { - return reconcileTagsSettings; - } - - /** Returns the object with the settings used for calls to reconcileTags. */ - public OperationCallSettings - reconcileTagsOperationSettings() { - return reconcileTagsOperationSettings; - } - - /** - * Returns the object with the settings used for calls to starEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings starEntrySettings() { - return starEntrySettings; - } - - /** - * Returns the object with the settings used for calls to unstarEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings unstarEntrySettings() { - return unstarEntrySettings; - } - - /** - * Returns the object with the settings used for calls to setIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** - * Returns the object with the settings used for calls to getIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - - /** - * Returns the object with the settings used for calls to testIamPermissions. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** - * Returns the object with the settings used for calls to importEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings importEntriesSettings() { - return importEntriesSettings; - } - - /** Returns the object with the settings used for calls to importEntries. */ - public OperationCallSettings - importEntriesOperationSettings() { - return importEntriesOperationSettings; - } - - /** - * Returns the object with the settings used for calls to setConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings setConfigSettings() { - return setConfigSettings; - } - - /** - * Returns the object with the settings used for calls to retrieveConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings retrieveConfigSettings() { - return retrieveConfigSettings; - } - - /** - * Returns the object with the settings used for calls to retrieveEffectiveConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - retrieveEffectiveConfigSettings() { - return retrieveEffectiveConfigSettings; - } - - public DataCatalogStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcDataCatalogStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonDataCatalogStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "datacatalog"; - } - - /** 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 "datacatalog.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "datacatalog.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(DataCatalogStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(DataCatalogStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataCatalogStubSettings.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 DataCatalogStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - searchCatalogSettings = settingsBuilder.searchCatalogSettings().build(); - createEntryGroupSettings = settingsBuilder.createEntryGroupSettings().build(); - getEntryGroupSettings = settingsBuilder.getEntryGroupSettings().build(); - updateEntryGroupSettings = settingsBuilder.updateEntryGroupSettings().build(); - deleteEntryGroupSettings = settingsBuilder.deleteEntryGroupSettings().build(); - listEntryGroupsSettings = settingsBuilder.listEntryGroupsSettings().build(); - createEntrySettings = settingsBuilder.createEntrySettings().build(); - updateEntrySettings = settingsBuilder.updateEntrySettings().build(); - deleteEntrySettings = settingsBuilder.deleteEntrySettings().build(); - getEntrySettings = settingsBuilder.getEntrySettings().build(); - lookupEntrySettings = settingsBuilder.lookupEntrySettings().build(); - listEntriesSettings = settingsBuilder.listEntriesSettings().build(); - modifyEntryOverviewSettings = settingsBuilder.modifyEntryOverviewSettings().build(); - modifyEntryContactsSettings = settingsBuilder.modifyEntryContactsSettings().build(); - createTagTemplateSettings = settingsBuilder.createTagTemplateSettings().build(); - getTagTemplateSettings = settingsBuilder.getTagTemplateSettings().build(); - updateTagTemplateSettings = settingsBuilder.updateTagTemplateSettings().build(); - deleteTagTemplateSettings = settingsBuilder.deleteTagTemplateSettings().build(); - createTagTemplateFieldSettings = settingsBuilder.createTagTemplateFieldSettings().build(); - updateTagTemplateFieldSettings = settingsBuilder.updateTagTemplateFieldSettings().build(); - renameTagTemplateFieldSettings = settingsBuilder.renameTagTemplateFieldSettings().build(); - renameTagTemplateFieldEnumValueSettings = - settingsBuilder.renameTagTemplateFieldEnumValueSettings().build(); - deleteTagTemplateFieldSettings = settingsBuilder.deleteTagTemplateFieldSettings().build(); - createTagSettings = settingsBuilder.createTagSettings().build(); - updateTagSettings = settingsBuilder.updateTagSettings().build(); - deleteTagSettings = settingsBuilder.deleteTagSettings().build(); - listTagsSettings = settingsBuilder.listTagsSettings().build(); - reconcileTagsSettings = settingsBuilder.reconcileTagsSettings().build(); - reconcileTagsOperationSettings = settingsBuilder.reconcileTagsOperationSettings().build(); - starEntrySettings = settingsBuilder.starEntrySettings().build(); - unstarEntrySettings = settingsBuilder.unstarEntrySettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); - getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); - testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); - importEntriesSettings = settingsBuilder.importEntriesSettings().build(); - importEntriesOperationSettings = settingsBuilder.importEntriesOperationSettings().build(); - setConfigSettings = settingsBuilder.setConfigSettings().build(); - retrieveConfigSettings = settingsBuilder.retrieveConfigSettings().build(); - retrieveEffectiveConfigSettings = settingsBuilder.retrieveEffectiveConfigSettings().build(); - } - - @Override - protected LibraryMetadata getLibraryMetadata() { - return LibraryMetadata.newBuilder() - .setArtifactName("com.google.cloud:google-cloud-datacatalog") - .setRepository("googleapis/google-cloud-java") - .setVersion(Version.VERSION) - .build(); - } - - /** Builder for DataCatalogStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - searchCatalogSettings; - private final UnaryCallSettings.Builder - createEntryGroupSettings; - private final UnaryCallSettings.Builder getEntryGroupSettings; - private final UnaryCallSettings.Builder - updateEntryGroupSettings; - private final UnaryCallSettings.Builder - deleteEntryGroupSettings; - private final PagedCallSettings.Builder< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings; - private final UnaryCallSettings.Builder createEntrySettings; - private final UnaryCallSettings.Builder updateEntrySettings; - private final UnaryCallSettings.Builder deleteEntrySettings; - private final UnaryCallSettings.Builder getEntrySettings; - private final UnaryCallSettings.Builder lookupEntrySettings; - private final PagedCallSettings.Builder< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> - listEntriesSettings; - private final UnaryCallSettings.Builder - modifyEntryOverviewSettings; - private final UnaryCallSettings.Builder - modifyEntryContactsSettings; - private final UnaryCallSettings.Builder - createTagTemplateSettings; - private final UnaryCallSettings.Builder - getTagTemplateSettings; - private final UnaryCallSettings.Builder - updateTagTemplateSettings; - private final UnaryCallSettings.Builder - deleteTagTemplateSettings; - private final UnaryCallSettings.Builder - createTagTemplateFieldSettings; - private final UnaryCallSettings.Builder - updateTagTemplateFieldSettings; - private final UnaryCallSettings.Builder - renameTagTemplateFieldSettings; - private final UnaryCallSettings.Builder< - RenameTagTemplateFieldEnumValueRequest, TagTemplateField> - renameTagTemplateFieldEnumValueSettings; - private final UnaryCallSettings.Builder - deleteTagTemplateFieldSettings; - private final UnaryCallSettings.Builder createTagSettings; - private final UnaryCallSettings.Builder updateTagSettings; - private final UnaryCallSettings.Builder deleteTagSettings; - private final PagedCallSettings.Builder< - ListTagsRequest, ListTagsResponse, ListTagsPagedResponse> - listTagsSettings; - private final UnaryCallSettings.Builder reconcileTagsSettings; - private final OperationCallSettings.Builder< - ReconcileTagsRequest, ReconcileTagsResponse, ReconcileTagsMetadata> - reconcileTagsOperationSettings; - private final UnaryCallSettings.Builder starEntrySettings; - private final UnaryCallSettings.Builder - unstarEntrySettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; - private final UnaryCallSettings.Builder importEntriesSettings; - private final OperationCallSettings.Builder< - ImportEntriesRequest, ImportEntriesResponse, ImportEntriesMetadata> - importEntriesOperationSettings; - private final UnaryCallSettings.Builder setConfigSettings; - private final UnaryCallSettings.Builder - retrieveConfigSettings; - private final UnaryCallSettings.Builder - retrieveEffectiveConfigSettings; - 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, - StatusCode.Code.RESOURCE_EXHAUSTED, - StatusCode.Code.INTERNAL))); - 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(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) - .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setTotalTimeoutDuration(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(clientContext); - - searchCatalogSettings = PagedCallSettings.newBuilder(SEARCH_CATALOG_PAGE_STR_FACT); - createEntryGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getEntryGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateEntryGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteEntryGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listEntryGroupsSettings = PagedCallSettings.newBuilder(LIST_ENTRY_GROUPS_PAGE_STR_FACT); - createEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - lookupEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listEntriesSettings = PagedCallSettings.newBuilder(LIST_ENTRIES_PAGE_STR_FACT); - modifyEntryOverviewSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - modifyEntryContactsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createTagTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getTagTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateTagTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTagTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createTagTemplateFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateTagTemplateFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - renameTagTemplateFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - renameTagTemplateFieldEnumValueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTagTemplateFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listTagsSettings = PagedCallSettings.newBuilder(LIST_TAGS_PAGE_STR_FACT); - reconcileTagsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - reconcileTagsOperationSettings = OperationCallSettings.newBuilder(); - starEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - unstarEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - importEntriesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - importEntriesOperationSettings = OperationCallSettings.newBuilder(); - setConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - retrieveConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - retrieveEffectiveConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - searchCatalogSettings, - createEntryGroupSettings, - getEntryGroupSettings, - updateEntryGroupSettings, - deleteEntryGroupSettings, - listEntryGroupsSettings, - createEntrySettings, - updateEntrySettings, - deleteEntrySettings, - getEntrySettings, - lookupEntrySettings, - listEntriesSettings, - modifyEntryOverviewSettings, - modifyEntryContactsSettings, - createTagTemplateSettings, - getTagTemplateSettings, - updateTagTemplateSettings, - deleteTagTemplateSettings, - createTagTemplateFieldSettings, - updateTagTemplateFieldSettings, - renameTagTemplateFieldSettings, - renameTagTemplateFieldEnumValueSettings, - deleteTagTemplateFieldSettings, - createTagSettings, - updateTagSettings, - deleteTagSettings, - listTagsSettings, - reconcileTagsSettings, - starEntrySettings, - unstarEntrySettings, - setIamPolicySettings, - getIamPolicySettings, - testIamPermissionsSettings, - importEntriesSettings, - setConfigSettings, - retrieveConfigSettings, - retrieveEffectiveConfigSettings); - initDefaults(this); - } - - protected Builder(DataCatalogStubSettings settings) { - super(settings); - - searchCatalogSettings = settings.searchCatalogSettings.toBuilder(); - createEntryGroupSettings = settings.createEntryGroupSettings.toBuilder(); - getEntryGroupSettings = settings.getEntryGroupSettings.toBuilder(); - updateEntryGroupSettings = settings.updateEntryGroupSettings.toBuilder(); - deleteEntryGroupSettings = settings.deleteEntryGroupSettings.toBuilder(); - listEntryGroupsSettings = settings.listEntryGroupsSettings.toBuilder(); - createEntrySettings = settings.createEntrySettings.toBuilder(); - updateEntrySettings = settings.updateEntrySettings.toBuilder(); - deleteEntrySettings = settings.deleteEntrySettings.toBuilder(); - getEntrySettings = settings.getEntrySettings.toBuilder(); - lookupEntrySettings = settings.lookupEntrySettings.toBuilder(); - listEntriesSettings = settings.listEntriesSettings.toBuilder(); - modifyEntryOverviewSettings = settings.modifyEntryOverviewSettings.toBuilder(); - modifyEntryContactsSettings = settings.modifyEntryContactsSettings.toBuilder(); - createTagTemplateSettings = settings.createTagTemplateSettings.toBuilder(); - getTagTemplateSettings = settings.getTagTemplateSettings.toBuilder(); - updateTagTemplateSettings = settings.updateTagTemplateSettings.toBuilder(); - deleteTagTemplateSettings = settings.deleteTagTemplateSettings.toBuilder(); - createTagTemplateFieldSettings = settings.createTagTemplateFieldSettings.toBuilder(); - updateTagTemplateFieldSettings = settings.updateTagTemplateFieldSettings.toBuilder(); - renameTagTemplateFieldSettings = settings.renameTagTemplateFieldSettings.toBuilder(); - renameTagTemplateFieldEnumValueSettings = - settings.renameTagTemplateFieldEnumValueSettings.toBuilder(); - deleteTagTemplateFieldSettings = settings.deleteTagTemplateFieldSettings.toBuilder(); - createTagSettings = settings.createTagSettings.toBuilder(); - updateTagSettings = settings.updateTagSettings.toBuilder(); - deleteTagSettings = settings.deleteTagSettings.toBuilder(); - listTagsSettings = settings.listTagsSettings.toBuilder(); - reconcileTagsSettings = settings.reconcileTagsSettings.toBuilder(); - reconcileTagsOperationSettings = settings.reconcileTagsOperationSettings.toBuilder(); - starEntrySettings = settings.starEntrySettings.toBuilder(); - unstarEntrySettings = settings.unstarEntrySettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - importEntriesSettings = settings.importEntriesSettings.toBuilder(); - importEntriesOperationSettings = settings.importEntriesOperationSettings.toBuilder(); - setConfigSettings = settings.setConfigSettings.toBuilder(); - retrieveConfigSettings = settings.retrieveConfigSettings.toBuilder(); - retrieveEffectiveConfigSettings = settings.retrieveEffectiveConfigSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - searchCatalogSettings, - createEntryGroupSettings, - getEntryGroupSettings, - updateEntryGroupSettings, - deleteEntryGroupSettings, - listEntryGroupsSettings, - createEntrySettings, - updateEntrySettings, - deleteEntrySettings, - getEntrySettings, - lookupEntrySettings, - listEntriesSettings, - modifyEntryOverviewSettings, - modifyEntryContactsSettings, - createTagTemplateSettings, - getTagTemplateSettings, - updateTagTemplateSettings, - deleteTagTemplateSettings, - createTagTemplateFieldSettings, - updateTagTemplateFieldSettings, - renameTagTemplateFieldSettings, - renameTagTemplateFieldEnumValueSettings, - deleteTagTemplateFieldSettings, - createTagSettings, - updateTagSettings, - deleteTagSettings, - listTagsSettings, - reconcileTagsSettings, - starEntrySettings, - unstarEntrySettings, - setIamPolicySettings, - getIamPolicySettings, - testIamPermissionsSettings, - importEntriesSettings, - setConfigSettings, - retrieveConfigSettings, - retrieveEffectiveConfigSettings); - } - - 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 - .searchCatalogSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createEntryGroupSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getEntryGroupSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateEntryGroupSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteEntryGroupSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listEntryGroupsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .lookupEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listEntriesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .modifyEntryOverviewSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .modifyEntryContactsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createTagTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getTagTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateTagTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteTagTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createTagTemplateFieldSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateTagTemplateFieldSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .renameTagTemplateFieldSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .renameTagTemplateFieldEnumValueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteTagTemplateFieldSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listTagsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .reconcileTagsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .starEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .unstarEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .importEntriesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .setConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .retrieveConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .retrieveEffectiveConfigSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .reconcileTagsOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ReconcileTagsResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ReconcileTagsMetadata.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 - .importEntriesOperationSettings() - .setInitialCallSettings( - UnaryCallSettings - .newUnaryCallSettingsBuilder() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) - .build()) - .setResponseTransformer( - ProtoOperationTransformers.ResponseTransformer.create(ImportEntriesResponse.class)) - .setMetadataTransformer( - ProtoOperationTransformers.MetadataTransformer.create(ImportEntriesMetadata.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 searchCatalog. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - searchCatalogSettings() { - return searchCatalogSettings; - } - - /** - * Returns the builder for the settings used for calls to createEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createEntryGroupSettings() { - return createEntryGroupSettings; - } - - /** - * Returns the builder for the settings used for calls to getEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getEntryGroupSettings() { - return getEntryGroupSettings; - } - - /** - * Returns the builder for the settings used for calls to updateEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateEntryGroupSettings() { - return updateEntryGroupSettings; - } - - /** - * Returns the builder for the settings used for calls to deleteEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteEntryGroupSettings() { - return deleteEntryGroupSettings; - } - - /** - * Returns the builder for the settings used for calls to listEntryGroups. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return listEntryGroupsSettings; - } - - /** - * Returns the builder for the settings used for calls to createEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder createEntrySettings() { - return createEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to updateEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder updateEntrySettings() { - return updateEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to deleteEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteEntrySettings() { - return deleteEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to getEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getEntrySettings() { - return getEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to lookupEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder lookupEntrySettings() { - return lookupEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to listEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> - listEntriesSettings() { - return listEntriesSettings; - } - - /** - * Returns the builder for the settings used for calls to modifyEntryOverview. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - modifyEntryOverviewSettings() { - return modifyEntryOverviewSettings; - } - - /** - * Returns the builder for the settings used for calls to modifyEntryContacts. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - modifyEntryContactsSettings() { - return modifyEntryContactsSettings; - } - - /** - * Returns the builder for the settings used for calls to createTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createTagTemplateSettings() { - return createTagTemplateSettings; - } - - /** - * Returns the builder for the settings used for calls to getTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getTagTemplateSettings() { - return getTagTemplateSettings; - } - - /** - * Returns the builder for the settings used for calls to updateTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateTagTemplateSettings() { - return updateTagTemplateSettings; - } - - /** - * Returns the builder for the settings used for calls to deleteTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteTagTemplateSettings() { - return deleteTagTemplateSettings; - } - - /** - * Returns the builder for the settings used for calls to createTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createTagTemplateFieldSettings() { - return createTagTemplateFieldSettings; - } - - /** - * Returns the builder for the settings used for calls to updateTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateTagTemplateFieldSettings() { - return updateTagTemplateFieldSettings; - } - - /** - * Returns the builder for the settings used for calls to renameTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - renameTagTemplateFieldSettings() { - return renameTagTemplateFieldSettings; - } - - /** - * Returns the builder for the settings used for calls to renameTagTemplateFieldEnumValue. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - renameTagTemplateFieldEnumValueSettings() { - return renameTagTemplateFieldEnumValueSettings; - } - - /** - * Returns the builder for the settings used for calls to deleteTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - deleteTagTemplateFieldSettings() { - return deleteTagTemplateFieldSettings; - } - - /** - * Returns the builder for the settings used for calls to createTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder createTagSettings() { - return createTagSettings; - } - - /** - * Returns the builder for the settings used for calls to updateTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder updateTagSettings() { - return updateTagSettings; - } - - /** - * Returns the builder for the settings used for calls to deleteTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteTagSettings() { - return deleteTagSettings; - } - - /** - * Returns the builder for the settings used for calls to listTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder - listTagsSettings() { - return listTagsSettings; - } - - /** - * Returns the builder for the settings used for calls to reconcileTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder reconcileTagsSettings() { - return reconcileTagsSettings; - } - - /** Returns the builder for the settings used for calls to reconcileTags. */ - public OperationCallSettings.Builder< - ReconcileTagsRequest, ReconcileTagsResponse, ReconcileTagsMetadata> - reconcileTagsOperationSettings() { - return reconcileTagsOperationSettings; - } - - /** - * Returns the builder for the settings used for calls to starEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder starEntrySettings() { - return starEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to unstarEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - unstarEntrySettings() { - return unstarEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to setIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder setIamPolicySettings() { - return setIamPolicySettings; - } - - /** - * Returns the builder for the settings used for calls to getIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - - /** - * Returns the builder for the settings used for calls to testIamPermissions. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** - * Returns the builder for the settings used for calls to importEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder importEntriesSettings() { - return importEntriesSettings; - } - - /** Returns the builder for the settings used for calls to importEntries. */ - public OperationCallSettings.Builder< - ImportEntriesRequest, ImportEntriesResponse, ImportEntriesMetadata> - importEntriesOperationSettings() { - return importEntriesOperationSettings; - } - - /** - * Returns the builder for the settings used for calls to setConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder setConfigSettings() { - return setConfigSettings; - } - - /** - * Returns the builder for the settings used for calls to retrieveConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - retrieveConfigSettings() { - return retrieveConfigSettings; - } - - /** - * Returns the builder for the settings used for calls to retrieveEffectiveConfig. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - retrieveEffectiveConfigSettings() { - return retrieveEffectiveConfigSettings; - } - - @Override - public DataCatalogStubSettings build() throws IOException { - return new DataCatalogStubSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogCallableFactory.java deleted file mode 100644 index bb21812254bf..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogCallableFactory.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 DataCatalog service API. - * - *

This class is for advanced usage. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@Deprecated -@Generated("by gapic-generator-java") -public class GrpcDataCatalogCallableFactory 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java deleted file mode 100644 index 4d0b1fa03444..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcDataCatalogStub.java +++ /dev/null @@ -1,1427 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.SearchCatalogPagedResponse; - -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.datacatalog.v1.Contacts; -import com.google.cloud.datacatalog.v1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1.CreateTagRequest; -import com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryOverview; -import com.google.cloud.datacatalog.v1.GetEntryGroupRequest; -import com.google.cloud.datacatalog.v1.GetEntryRequest; -import com.google.cloud.datacatalog.v1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1.ImportEntriesMetadata; -import com.google.cloud.datacatalog.v1.ImportEntriesRequest; -import com.google.cloud.datacatalog.v1.ImportEntriesResponse; -import com.google.cloud.datacatalog.v1.ListEntriesRequest; -import com.google.cloud.datacatalog.v1.ListEntriesResponse; -import com.google.cloud.datacatalog.v1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1.ListEntryGroupsResponse; -import com.google.cloud.datacatalog.v1.ListTagsRequest; -import com.google.cloud.datacatalog.v1.ListTagsResponse; -import com.google.cloud.datacatalog.v1.LookupEntryRequest; -import com.google.cloud.datacatalog.v1.MigrationConfig; -import com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest; -import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; -import com.google.cloud.datacatalog.v1.OrganizationConfig; -import com.google.cloud.datacatalog.v1.ReconcileTagsMetadata; -import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; -import com.google.cloud.datacatalog.v1.ReconcileTagsResponse; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; -import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogResponse; -import com.google.cloud.datacatalog.v1.SetConfigRequest; -import com.google.cloud.datacatalog.v1.StarEntryRequest; -import com.google.cloud.datacatalog.v1.StarEntryResponse; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.UnstarEntryRequest; -import com.google.cloud.datacatalog.v1.UnstarEntryResponse; -import com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest; -import com.google.cloud.datacatalog.v1.UpdateEntryRequest; -import com.google.cloud.datacatalog.v1.UpdateTagRequest; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest; -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.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 DataCatalog service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@Deprecated -@Generated("by gapic-generator-java") -public class GrpcDataCatalogStub extends DataCatalogStub { - private static final MethodDescriptor - searchCatalogMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/SearchCatalog") - .setRequestMarshaller( - ProtoUtils.marshaller(SearchCatalogRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SearchCatalogResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createEntryGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/CreateEntryGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateEntryGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(EntryGroup.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - getEntryGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/GetEntryGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(GetEntryGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(EntryGroup.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updateEntryGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UpdateEntryGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateEntryGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(EntryGroup.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteEntryGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/DeleteEntryGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteEntryGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listEntryGroupsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ListEntryGroups") - .setRequestMarshaller( - ProtoUtils.marshaller(ListEntryGroupsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListEntryGroupsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor createEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/CreateEntry") - .setRequestMarshaller(ProtoUtils.marshaller(CreateEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Entry.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor updateEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UpdateEntry") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Entry.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor deleteEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/DeleteEntry") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/GetEntry") - .setRequestMarshaller(ProtoUtils.marshaller(GetEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Entry.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor lookupEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/LookupEntry") - .setRequestMarshaller(ProtoUtils.marshaller(LookupEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Entry.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listEntriesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ListEntries") - .setRequestMarshaller(ProtoUtils.marshaller(ListEntriesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListEntriesResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - modifyEntryOverviewMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ModifyEntryOverview") - .setRequestMarshaller( - ProtoUtils.marshaller(ModifyEntryOverviewRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(EntryOverview.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - modifyEntryContactsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ModifyEntryContacts") - .setRequestMarshaller( - ProtoUtils.marshaller(ModifyEntryContactsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Contacts.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createTagTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/CreateTagTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateTagTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplate.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - getTagTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/GetTagTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(GetTagTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplate.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updateTagTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UpdateTagTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateTagTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplate.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteTagTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/DeleteTagTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteTagTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createTagTemplateFieldMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/CreateTagTemplateField") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateTagTemplateFieldRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplateField.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updateTagTemplateFieldMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UpdateTagTemplateField") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateTagTemplateFieldRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplateField.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - renameTagTemplateFieldMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/RenameTagTemplateField") - .setRequestMarshaller( - ProtoUtils.marshaller(RenameTagTemplateFieldRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplateField.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - renameTagTemplateFieldEnumValueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1.DataCatalog/RenameTagTemplateFieldEnumValue") - .setRequestMarshaller( - ProtoUtils.marshaller( - RenameTagTemplateFieldEnumValueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplateField.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteTagTemplateFieldMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/DeleteTagTemplateField") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteTagTemplateFieldRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor createTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/CreateTag") - .setRequestMarshaller(ProtoUtils.marshaller(CreateTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Tag.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor updateTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UpdateTag") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Tag.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor deleteTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/DeleteTag") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listTagsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ListTags") - .setRequestMarshaller(ProtoUtils.marshaller(ListTagsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListTagsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - reconcileTagsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ReconcileTags") - .setRequestMarshaller( - ProtoUtils.marshaller(ReconcileTagsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - starEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/StarEntry") - .setRequestMarshaller(ProtoUtils.marshaller(StarEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(StarEntryResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - unstarEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UnstarEntry") - .setRequestMarshaller(ProtoUtils.marshaller(UnstarEntryRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(UnstarEntryResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor setIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/SetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - testIamPermissionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/TestIamPermissions") - .setRequestMarshaller( - ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - importEntriesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ImportEntries") - .setRequestMarshaller( - ProtoUtils.marshaller(ImportEntriesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - setConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/SetConfig") - .setRequestMarshaller(ProtoUtils.marshaller(SetConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(MigrationConfig.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - retrieveConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/RetrieveConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(OrganizationConfig.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - retrieveEffectiveConfigMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/RetrieveEffectiveConfig") - .setRequestMarshaller( - ProtoUtils.marshaller(RetrieveEffectiveConfigRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(MigrationConfig.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private final UnaryCallable searchCatalogCallable; - private final UnaryCallable - searchCatalogPagedCallable; - private final UnaryCallable createEntryGroupCallable; - private final UnaryCallable getEntryGroupCallable; - private final UnaryCallable updateEntryGroupCallable; - private final UnaryCallable deleteEntryGroupCallable; - private final UnaryCallable - listEntryGroupsCallable; - private final UnaryCallable - listEntryGroupsPagedCallable; - private final UnaryCallable createEntryCallable; - private final UnaryCallable updateEntryCallable; - private final UnaryCallable deleteEntryCallable; - private final UnaryCallable getEntryCallable; - private final UnaryCallable lookupEntryCallable; - private final UnaryCallable listEntriesCallable; - private final UnaryCallable - listEntriesPagedCallable; - private final UnaryCallable - modifyEntryOverviewCallable; - private final UnaryCallable modifyEntryContactsCallable; - private final UnaryCallable createTagTemplateCallable; - private final UnaryCallable getTagTemplateCallable; - private final UnaryCallable updateTagTemplateCallable; - private final UnaryCallable deleteTagTemplateCallable; - private final UnaryCallable - createTagTemplateFieldCallable; - private final UnaryCallable - updateTagTemplateFieldCallable; - private final UnaryCallable - renameTagTemplateFieldCallable; - private final UnaryCallable - renameTagTemplateFieldEnumValueCallable; - private final UnaryCallable deleteTagTemplateFieldCallable; - private final UnaryCallable createTagCallable; - private final UnaryCallable updateTagCallable; - private final UnaryCallable deleteTagCallable; - private final UnaryCallable listTagsCallable; - private final UnaryCallable listTagsPagedCallable; - private final UnaryCallable reconcileTagsCallable; - private final OperationCallable< - ReconcileTagsRequest, ReconcileTagsResponse, ReconcileTagsMetadata> - reconcileTagsOperationCallable; - private final UnaryCallable starEntryCallable; - private final UnaryCallable unstarEntryCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - private final UnaryCallable importEntriesCallable; - private final OperationCallable< - ImportEntriesRequest, ImportEntriesResponse, ImportEntriesMetadata> - importEntriesOperationCallable; - private final UnaryCallable setConfigCallable; - private final UnaryCallable retrieveConfigCallable; - private final UnaryCallable - retrieveEffectiveConfigCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcDataCatalogStub create(DataCatalogStubSettings settings) - throws IOException { - return new GrpcDataCatalogStub(settings, ClientContext.create(settings)); - } - - public static final GrpcDataCatalogStub create(ClientContext clientContext) throws IOException { - return new GrpcDataCatalogStub(DataCatalogStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcDataCatalogStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcDataCatalogStub( - DataCatalogStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcDataCatalogStub, 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 GrpcDataCatalogStub(DataCatalogStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcDataCatalogCallableFactory()); - } - - /** - * Constructs an instance of GrpcDataCatalogStub, 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 GrpcDataCatalogStub( - DataCatalogStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings searchCatalogTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(searchCatalogMethodDescriptor) - .build(); - GrpcCallSettings createEntryGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createEntryGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings getEntryGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getEntryGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings updateEntryGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateEntryGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "entry_group.name", String.valueOf(request.getEntryGroup().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteEntryGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteEntryGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings - listEntryGroupsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listEntryGroupsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings createEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings updateEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("entry.name", String.valueOf(request.getEntry().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings getEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings lookupEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(lookupEntryMethodDescriptor) - .build(); - GrpcCallSettings listEntriesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listEntriesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings - modifyEntryOverviewTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(modifyEntryOverviewMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings modifyEntryContactsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(modifyEntryContactsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings createTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings getTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings updateTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "tag_template.name", String.valueOf(request.getTagTemplate().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings - createTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings - updateTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings - renameTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(renameTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings - renameTagTemplateFieldEnumValueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(renameTagTemplateFieldEnumValueMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings deleteTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings createTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings updateTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("tag.name", String.valueOf(request.getTag().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings listTagsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listTagsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings reconcileTagsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(reconcileTagsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings starEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(starEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings unstarEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(unstarEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .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(); - GrpcCallSettings importEntriesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(importEntriesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings setConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setConfigMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings retrieveConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(retrieveConfigMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - retrieveEffectiveConfigTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(retrieveEffectiveConfigMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.searchCatalogCallable = - callableFactory.createUnaryCallable( - searchCatalogTransportSettings, settings.searchCatalogSettings(), clientContext); - this.searchCatalogPagedCallable = - callableFactory.createPagedCallable( - searchCatalogTransportSettings, settings.searchCatalogSettings(), clientContext); - this.createEntryGroupCallable = - callableFactory.createUnaryCallable( - createEntryGroupTransportSettings, settings.createEntryGroupSettings(), clientContext); - this.getEntryGroupCallable = - callableFactory.createUnaryCallable( - getEntryGroupTransportSettings, settings.getEntryGroupSettings(), clientContext); - this.updateEntryGroupCallable = - callableFactory.createUnaryCallable( - updateEntryGroupTransportSettings, settings.updateEntryGroupSettings(), clientContext); - this.deleteEntryGroupCallable = - callableFactory.createUnaryCallable( - deleteEntryGroupTransportSettings, settings.deleteEntryGroupSettings(), clientContext); - this.listEntryGroupsCallable = - callableFactory.createUnaryCallable( - listEntryGroupsTransportSettings, settings.listEntryGroupsSettings(), clientContext); - this.listEntryGroupsPagedCallable = - callableFactory.createPagedCallable( - listEntryGroupsTransportSettings, settings.listEntryGroupsSettings(), clientContext); - this.createEntryCallable = - callableFactory.createUnaryCallable( - createEntryTransportSettings, settings.createEntrySettings(), clientContext); - this.updateEntryCallable = - callableFactory.createUnaryCallable( - updateEntryTransportSettings, settings.updateEntrySettings(), clientContext); - this.deleteEntryCallable = - callableFactory.createUnaryCallable( - deleteEntryTransportSettings, settings.deleteEntrySettings(), clientContext); - this.getEntryCallable = - callableFactory.createUnaryCallable( - getEntryTransportSettings, settings.getEntrySettings(), clientContext); - this.lookupEntryCallable = - callableFactory.createUnaryCallable( - lookupEntryTransportSettings, settings.lookupEntrySettings(), clientContext); - this.listEntriesCallable = - callableFactory.createUnaryCallable( - listEntriesTransportSettings, settings.listEntriesSettings(), clientContext); - this.listEntriesPagedCallable = - callableFactory.createPagedCallable( - listEntriesTransportSettings, settings.listEntriesSettings(), clientContext); - this.modifyEntryOverviewCallable = - callableFactory.createUnaryCallable( - modifyEntryOverviewTransportSettings, - settings.modifyEntryOverviewSettings(), - clientContext); - this.modifyEntryContactsCallable = - callableFactory.createUnaryCallable( - modifyEntryContactsTransportSettings, - settings.modifyEntryContactsSettings(), - clientContext); - this.createTagTemplateCallable = - callableFactory.createUnaryCallable( - createTagTemplateTransportSettings, - settings.createTagTemplateSettings(), - clientContext); - this.getTagTemplateCallable = - callableFactory.createUnaryCallable( - getTagTemplateTransportSettings, settings.getTagTemplateSettings(), clientContext); - this.updateTagTemplateCallable = - callableFactory.createUnaryCallable( - updateTagTemplateTransportSettings, - settings.updateTagTemplateSettings(), - clientContext); - this.deleteTagTemplateCallable = - callableFactory.createUnaryCallable( - deleteTagTemplateTransportSettings, - settings.deleteTagTemplateSettings(), - clientContext); - this.createTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - createTagTemplateFieldTransportSettings, - settings.createTagTemplateFieldSettings(), - clientContext); - this.updateTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - updateTagTemplateFieldTransportSettings, - settings.updateTagTemplateFieldSettings(), - clientContext); - this.renameTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - renameTagTemplateFieldTransportSettings, - settings.renameTagTemplateFieldSettings(), - clientContext); - this.renameTagTemplateFieldEnumValueCallable = - callableFactory.createUnaryCallable( - renameTagTemplateFieldEnumValueTransportSettings, - settings.renameTagTemplateFieldEnumValueSettings(), - clientContext); - this.deleteTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - deleteTagTemplateFieldTransportSettings, - settings.deleteTagTemplateFieldSettings(), - clientContext); - this.createTagCallable = - callableFactory.createUnaryCallable( - createTagTransportSettings, settings.createTagSettings(), clientContext); - this.updateTagCallable = - callableFactory.createUnaryCallable( - updateTagTransportSettings, settings.updateTagSettings(), clientContext); - this.deleteTagCallable = - callableFactory.createUnaryCallable( - deleteTagTransportSettings, settings.deleteTagSettings(), clientContext); - this.listTagsCallable = - callableFactory.createUnaryCallable( - listTagsTransportSettings, settings.listTagsSettings(), clientContext); - this.listTagsPagedCallable = - callableFactory.createPagedCallable( - listTagsTransportSettings, settings.listTagsSettings(), clientContext); - this.reconcileTagsCallable = - callableFactory.createUnaryCallable( - reconcileTagsTransportSettings, settings.reconcileTagsSettings(), clientContext); - this.reconcileTagsOperationCallable = - callableFactory.createOperationCallable( - reconcileTagsTransportSettings, - settings.reconcileTagsOperationSettings(), - clientContext, - operationsStub); - this.starEntryCallable = - callableFactory.createUnaryCallable( - starEntryTransportSettings, settings.starEntrySettings(), clientContext); - this.unstarEntryCallable = - callableFactory.createUnaryCallable( - unstarEntryTransportSettings, settings.unstarEntrySettings(), 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.importEntriesCallable = - callableFactory.createUnaryCallable( - importEntriesTransportSettings, settings.importEntriesSettings(), clientContext); - this.importEntriesOperationCallable = - callableFactory.createOperationCallable( - importEntriesTransportSettings, - settings.importEntriesOperationSettings(), - clientContext, - operationsStub); - this.setConfigCallable = - callableFactory.createUnaryCallable( - setConfigTransportSettings, settings.setConfigSettings(), clientContext); - this.retrieveConfigCallable = - callableFactory.createUnaryCallable( - retrieveConfigTransportSettings, settings.retrieveConfigSettings(), clientContext); - this.retrieveEffectiveConfigCallable = - callableFactory.createUnaryCallable( - retrieveEffectiveConfigTransportSettings, - settings.retrieveEffectiveConfigSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable searchCatalogCallable() { - return searchCatalogCallable; - } - - @Override - public UnaryCallable - searchCatalogPagedCallable() { - return searchCatalogPagedCallable; - } - - @Override - public UnaryCallable createEntryGroupCallable() { - return createEntryGroupCallable; - } - - @Override - public UnaryCallable getEntryGroupCallable() { - return getEntryGroupCallable; - } - - @Override - public UnaryCallable updateEntryGroupCallable() { - return updateEntryGroupCallable; - } - - @Override - public UnaryCallable deleteEntryGroupCallable() { - return deleteEntryGroupCallable; - } - - @Override - public UnaryCallable listEntryGroupsCallable() { - return listEntryGroupsCallable; - } - - @Override - public UnaryCallable - listEntryGroupsPagedCallable() { - return listEntryGroupsPagedCallable; - } - - @Override - public UnaryCallable createEntryCallable() { - return createEntryCallable; - } - - @Override - public UnaryCallable updateEntryCallable() { - return updateEntryCallable; - } - - @Override - public UnaryCallable deleteEntryCallable() { - return deleteEntryCallable; - } - - @Override - public UnaryCallable getEntryCallable() { - return getEntryCallable; - } - - @Override - public UnaryCallable lookupEntryCallable() { - return lookupEntryCallable; - } - - @Override - public UnaryCallable listEntriesCallable() { - return listEntriesCallable; - } - - @Override - public UnaryCallable listEntriesPagedCallable() { - return listEntriesPagedCallable; - } - - @Override - public UnaryCallable modifyEntryOverviewCallable() { - return modifyEntryOverviewCallable; - } - - @Override - public UnaryCallable modifyEntryContactsCallable() { - return modifyEntryContactsCallable; - } - - @Override - public UnaryCallable createTagTemplateCallable() { - return createTagTemplateCallable; - } - - @Override - public UnaryCallable getTagTemplateCallable() { - return getTagTemplateCallable; - } - - @Override - public UnaryCallable updateTagTemplateCallable() { - return updateTagTemplateCallable; - } - - @Override - public UnaryCallable deleteTagTemplateCallable() { - return deleteTagTemplateCallable; - } - - @Override - public UnaryCallable - createTagTemplateFieldCallable() { - return createTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - updateTagTemplateFieldCallable() { - return updateTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - renameTagTemplateFieldCallable() { - return renameTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - renameTagTemplateFieldEnumValueCallable() { - return renameTagTemplateFieldEnumValueCallable; - } - - @Override - public UnaryCallable deleteTagTemplateFieldCallable() { - return deleteTagTemplateFieldCallable; - } - - @Override - public UnaryCallable createTagCallable() { - return createTagCallable; - } - - @Override - public UnaryCallable updateTagCallable() { - return updateTagCallable; - } - - @Override - public UnaryCallable deleteTagCallable() { - return deleteTagCallable; - } - - @Override - public UnaryCallable listTagsCallable() { - return listTagsCallable; - } - - @Override - public UnaryCallable listTagsPagedCallable() { - return listTagsPagedCallable; - } - - @Override - public UnaryCallable reconcileTagsCallable() { - return reconcileTagsCallable; - } - - @Override - public OperationCallable - reconcileTagsOperationCallable() { - return reconcileTagsOperationCallable; - } - - @Override - public UnaryCallable starEntryCallable() { - return starEntryCallable; - } - - @Override - public UnaryCallable unstarEntryCallable() { - return unstarEntryCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public UnaryCallable importEntriesCallable() { - return importEntriesCallable; - } - - @Override - public OperationCallable - importEntriesOperationCallable() { - return importEntriesOperationCallable; - } - - @Override - public UnaryCallable setConfigCallable() { - return setConfigCallable; - } - - @Override - public UnaryCallable retrieveConfigCallable() { - return retrieveConfigCallable; - } - - @Override - public UnaryCallable - retrieveEffectiveConfigCallable() { - return retrieveEffectiveConfigCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerCallableFactory.java deleted file mode 100644 index 10639a140196..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 PolicyTagManager service API. - * - *

This class is for advanced usage. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class GrpcPolicyTagManagerCallableFactory 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java deleted file mode 100644 index 0794303d01d0..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 PolicyTagManagerSerialization service API. - * - *

This class is for advanced usage. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class GrpcPolicyTagManagerSerializationCallableFactory 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationStub.java deleted file mode 100644 index f02a8cc38633..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerSerializationStub.java +++ /dev/null @@ -1,246 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -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.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.longrunning.stub.GrpcOperationsStub; -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 PolicyTagManagerSerialization service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class GrpcPolicyTagManagerSerializationStub extends PolicyTagManagerSerializationStub { - private static final MethodDescriptor - replaceTaxonomyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1.PolicyTagManagerSerialization/ReplaceTaxonomy") - .setRequestMarshaller( - ProtoUtils.marshaller(ReplaceTaxonomyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Taxonomy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - importTaxonomiesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1.PolicyTagManagerSerialization/ImportTaxonomies") - .setRequestMarshaller( - ProtoUtils.marshaller(ImportTaxonomiesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ImportTaxonomiesResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - exportTaxonomiesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1.PolicyTagManagerSerialization/ExportTaxonomies") - .setRequestMarshaller( - ProtoUtils.marshaller(ExportTaxonomiesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ExportTaxonomiesResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private final UnaryCallable replaceTaxonomyCallable; - private final UnaryCallable - importTaxonomiesCallable; - private final UnaryCallable - exportTaxonomiesCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcPolicyTagManagerSerializationStub create( - PolicyTagManagerSerializationStubSettings settings) throws IOException { - return new GrpcPolicyTagManagerSerializationStub(settings, ClientContext.create(settings)); - } - - public static final GrpcPolicyTagManagerSerializationStub create(ClientContext clientContext) - throws IOException { - return new GrpcPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcPolicyTagManagerSerializationStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings.newBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of GrpcPolicyTagManagerSerializationStub, 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 GrpcPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcPolicyTagManagerSerializationCallableFactory()); - } - - /** - * Constructs an instance of GrpcPolicyTagManagerSerializationStub, 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 GrpcPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings replaceTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(replaceTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings - importTaxonomiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(importTaxonomiesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings - exportTaxonomiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(exportTaxonomiesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - - this.replaceTaxonomyCallable = - callableFactory.createUnaryCallable( - replaceTaxonomyTransportSettings, settings.replaceTaxonomySettings(), clientContext); - this.importTaxonomiesCallable = - callableFactory.createUnaryCallable( - importTaxonomiesTransportSettings, settings.importTaxonomiesSettings(), clientContext); - this.exportTaxonomiesCallable = - callableFactory.createUnaryCallable( - exportTaxonomiesTransportSettings, settings.exportTaxonomiesSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable replaceTaxonomyCallable() { - return replaceTaxonomyCallable; - } - - @Override - public UnaryCallable - importTaxonomiesCallable() { - return importTaxonomiesCallable; - } - - @Override - public UnaryCallable - exportTaxonomiesCallable() { - return exportTaxonomiesCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerStub.java deleted file mode 100644 index df9d161595c4..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/GrpcPolicyTagManagerStub.java +++ /dev/null @@ -1,582 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -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.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1.ListPolicyTagsResponse; -import com.google.cloud.datacatalog.v1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ListTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest; -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.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 PolicyTagManager service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class GrpcPolicyTagManagerStub extends PolicyTagManagerStub { - private static final MethodDescriptor - createTaxonomyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/CreateTaxonomy") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateTaxonomyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Taxonomy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteTaxonomyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/DeleteTaxonomy") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteTaxonomyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updateTaxonomyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/UpdateTaxonomy") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateTaxonomyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Taxonomy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listTaxonomiesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/ListTaxonomies") - .setRequestMarshaller( - ProtoUtils.marshaller(ListTaxonomiesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListTaxonomiesResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getTaxonomyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/GetTaxonomy") - .setRequestMarshaller(ProtoUtils.marshaller(GetTaxonomyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Taxonomy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createPolicyTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/CreatePolicyTag") - .setRequestMarshaller( - ProtoUtils.marshaller(CreatePolicyTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(PolicyTag.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deletePolicyTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/DeletePolicyTag") - .setRequestMarshaller( - ProtoUtils.marshaller(DeletePolicyTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updatePolicyTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/UpdatePolicyTag") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdatePolicyTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(PolicyTag.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listPolicyTagsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/ListPolicyTags") - .setRequestMarshaller( - ProtoUtils.marshaller(ListPolicyTagsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListPolicyTagsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - getPolicyTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/GetPolicyTag") - .setRequestMarshaller(ProtoUtils.marshaller(GetPolicyTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(PolicyTag.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor setIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/SetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - testIamPermissionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/TestIamPermissions") - .setRequestMarshaller( - ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private final UnaryCallable createTaxonomyCallable; - private final UnaryCallable deleteTaxonomyCallable; - private final UnaryCallable updateTaxonomyCallable; - private final UnaryCallable listTaxonomiesCallable; - private final UnaryCallable - listTaxonomiesPagedCallable; - private final UnaryCallable getTaxonomyCallable; - private final UnaryCallable createPolicyTagCallable; - private final UnaryCallable deletePolicyTagCallable; - private final UnaryCallable updatePolicyTagCallable; - private final UnaryCallable listPolicyTagsCallable; - private final UnaryCallable - listPolicyTagsPagedCallable; - private final UnaryCallable getPolicyTagCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcPolicyTagManagerStub create(PolicyTagManagerStubSettings settings) - throws IOException { - return new GrpcPolicyTagManagerStub(settings, ClientContext.create(settings)); - } - - public static final GrpcPolicyTagManagerStub create(ClientContext clientContext) - throws IOException { - return new GrpcPolicyTagManagerStub( - PolicyTagManagerStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcPolicyTagManagerStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcPolicyTagManagerStub( - PolicyTagManagerStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcPolicyTagManagerStub, 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 GrpcPolicyTagManagerStub( - PolicyTagManagerStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcPolicyTagManagerCallableFactory()); - } - - /** - * Constructs an instance of GrpcPolicyTagManagerStub, 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 GrpcPolicyTagManagerStub( - PolicyTagManagerStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings createTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings deleteTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings updateTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("taxonomy.name", String.valueOf(request.getTaxonomy().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listTaxonomiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listTaxonomiesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings getTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings createPolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createPolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings deletePolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deletePolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings updatePolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updatePolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("policy_tag.name", String.valueOf(request.getPolicyTag().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listPolicyTagsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listPolicyTagsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings getPolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getPolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .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 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 - 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.createTaxonomyCallable = - callableFactory.createUnaryCallable( - createTaxonomyTransportSettings, settings.createTaxonomySettings(), clientContext); - this.deleteTaxonomyCallable = - callableFactory.createUnaryCallable( - deleteTaxonomyTransportSettings, settings.deleteTaxonomySettings(), clientContext); - this.updateTaxonomyCallable = - callableFactory.createUnaryCallable( - updateTaxonomyTransportSettings, settings.updateTaxonomySettings(), clientContext); - this.listTaxonomiesCallable = - callableFactory.createUnaryCallable( - listTaxonomiesTransportSettings, settings.listTaxonomiesSettings(), clientContext); - this.listTaxonomiesPagedCallable = - callableFactory.createPagedCallable( - listTaxonomiesTransportSettings, settings.listTaxonomiesSettings(), clientContext); - this.getTaxonomyCallable = - callableFactory.createUnaryCallable( - getTaxonomyTransportSettings, settings.getTaxonomySettings(), clientContext); - this.createPolicyTagCallable = - callableFactory.createUnaryCallable( - createPolicyTagTransportSettings, settings.createPolicyTagSettings(), clientContext); - this.deletePolicyTagCallable = - callableFactory.createUnaryCallable( - deletePolicyTagTransportSettings, settings.deletePolicyTagSettings(), clientContext); - this.updatePolicyTagCallable = - callableFactory.createUnaryCallable( - updatePolicyTagTransportSettings, settings.updatePolicyTagSettings(), clientContext); - this.listPolicyTagsCallable = - callableFactory.createUnaryCallable( - listPolicyTagsTransportSettings, settings.listPolicyTagsSettings(), clientContext); - this.listPolicyTagsPagedCallable = - callableFactory.createPagedCallable( - listPolicyTagsTransportSettings, settings.listPolicyTagsSettings(), clientContext); - this.getPolicyTagCallable = - callableFactory.createUnaryCallable( - getPolicyTagTransportSettings, settings.getPolicyTagSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable createTaxonomyCallable() { - return createTaxonomyCallable; - } - - @Override - public UnaryCallable deleteTaxonomyCallable() { - return deleteTaxonomyCallable; - } - - @Override - public UnaryCallable updateTaxonomyCallable() { - return updateTaxonomyCallable; - } - - @Override - public UnaryCallable listTaxonomiesCallable() { - return listTaxonomiesCallable; - } - - @Override - public UnaryCallable - listTaxonomiesPagedCallable() { - return listTaxonomiesPagedCallable; - } - - @Override - public UnaryCallable getTaxonomyCallable() { - return getTaxonomyCallable; - } - - @Override - public UnaryCallable createPolicyTagCallable() { - return createPolicyTagCallable; - } - - @Override - public UnaryCallable deletePolicyTagCallable() { - return deletePolicyTagCallable; - } - - @Override - public UnaryCallable updatePolicyTagCallable() { - return updatePolicyTagCallable; - } - - @Override - public UnaryCallable listPolicyTagsCallable() { - return listPolicyTagsCallable; - } - - @Override - public UnaryCallable - listPolicyTagsPagedCallable() { - return listPolicyTagsPagedCallable; - } - - @Override - public UnaryCallable getPolicyTagCallable() { - return getPolicyTagCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogCallableFactory.java deleted file mode 100644 index 765c26209bca..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogCallableFactory.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 DataCatalog service API. - * - *

This class is for advanced usage. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@Deprecated -@Generated("by gapic-generator-java") -public class HttpJsonDataCatalogCallableFactory - 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogStub.java deleted file mode 100644 index 1a9b2cccd181..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonDataCatalogStub.java +++ /dev/null @@ -1,2500 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.SearchCatalogPagedResponse; - -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.datacatalog.v1.Contacts; -import com.google.cloud.datacatalog.v1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1.CreateTagRequest; -import com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryOverview; -import com.google.cloud.datacatalog.v1.GetEntryGroupRequest; -import com.google.cloud.datacatalog.v1.GetEntryRequest; -import com.google.cloud.datacatalog.v1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1.ImportEntriesMetadata; -import com.google.cloud.datacatalog.v1.ImportEntriesRequest; -import com.google.cloud.datacatalog.v1.ImportEntriesResponse; -import com.google.cloud.datacatalog.v1.ListEntriesRequest; -import com.google.cloud.datacatalog.v1.ListEntriesResponse; -import com.google.cloud.datacatalog.v1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1.ListEntryGroupsResponse; -import com.google.cloud.datacatalog.v1.ListTagsRequest; -import com.google.cloud.datacatalog.v1.ListTagsResponse; -import com.google.cloud.datacatalog.v1.LookupEntryRequest; -import com.google.cloud.datacatalog.v1.MigrationConfig; -import com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest; -import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; -import com.google.cloud.datacatalog.v1.OrganizationConfig; -import com.google.cloud.datacatalog.v1.ReconcileTagsMetadata; -import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; -import com.google.cloud.datacatalog.v1.ReconcileTagsResponse; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; -import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogResponse; -import com.google.cloud.datacatalog.v1.SetConfigRequest; -import com.google.cloud.datacatalog.v1.StarEntryRequest; -import com.google.cloud.datacatalog.v1.StarEntryResponse; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.UnstarEntryRequest; -import com.google.cloud.datacatalog.v1.UnstarEntryResponse; -import com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest; -import com.google.cloud.datacatalog.v1.UpdateEntryRequest; -import com.google.cloud.datacatalog.v1.UpdateTagRequest; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest; -import com.google.common.collect.ImmutableMap; -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 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 DataCatalog service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@Deprecated -@Generated("by gapic-generator-java") -public class HttpJsonDataCatalogStub extends DataCatalogStub { - private static final TypeRegistry typeRegistry = - TypeRegistry.newBuilder() - .add(ImportEntriesMetadata.getDescriptor()) - .add(ReconcileTagsResponse.getDescriptor()) - .add(ReconcileTagsMetadata.getDescriptor()) - .add(ImportEntriesResponse.getDescriptor()) - .build(); - - private static final ApiMethodDescriptor - searchCatalogMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/SearchCatalog") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/catalog:search", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchCatalogResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createEntryGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/CreateEntryGroup") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/entryGroups", - 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, "entryGroupId", request.getEntryGroupId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("entryGroup", request.getEntryGroup(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EntryGroup.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getEntryGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/GetEntryGroup") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/entryGroups/*}", - 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, "readMask", request.getReadMask()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EntryGroup.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateEntryGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UpdateEntryGroup") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{entryGroup.name=projects/*/locations/*/entryGroups/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "entryGroup.name", request.getEntryGroup().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("entryGroup", request.getEntryGroup(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EntryGroup.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteEntryGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/DeleteEntryGroup") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/entryGroups/*}", - 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()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listEntryGroupsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ListEntryGroups") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/entryGroups", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListEntryGroupsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor createEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/CreateEntry") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/entryGroups/*}/entries", - 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, "entryId", request.getEntryId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("entry", request.getEntry(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Entry.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor updateEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UpdateEntry") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{entry.name=projects/*/locations/*/entryGroups/*/entries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "entry.name", request.getEntry().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("entry", request.getEntry(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Entry.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/DeleteEntry") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/GetEntry") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Entry.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor lookupEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/LookupEntry") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/entries:lookup", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "fullyQualifiedName", request.getFullyQualifiedName()); - serializer.putQueryParam( - fields, "linkedResource", request.getLinkedResource()); - serializer.putQueryParam(fields, "location", request.getLocation()); - serializer.putQueryParam(fields, "project", request.getProject()); - serializer.putQueryParam(fields, "sqlResource", request.getSqlResource()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Entry.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listEntriesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ListEntries") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/entryGroups/*}/entries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam(fields, "readMask", request.getReadMask()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListEntriesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - modifyEntryOverviewMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ModifyEntryOverview") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:modifyEntryOverview", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EntryOverview.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - modifyEntryContactsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ModifyEntryContacts") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:modifyEntryContacts", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Contacts.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createTagTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/CreateTagTemplate") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/tagTemplates", - 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, "tagTemplateId", request.getTagTemplateId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("tagTemplate", request.getTagTemplate(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplate.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getTagTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/GetTagTemplate") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/tagTemplates/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplate.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateTagTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UpdateTagTemplate") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{tagTemplate.name=projects/*/locations/*/tagTemplates/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "tagTemplate.name", request.getTagTemplate().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("tagTemplate", request.getTagTemplate(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplate.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteTagTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/DeleteTagTemplate") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/tagTemplates/*}", - 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()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createTagTemplateFieldMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/CreateTagTemplateField") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/tagTemplates/*}/fields", - 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, "tagTemplateFieldId", request.getTagTemplateFieldId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("tagTemplateField", request.getTagTemplateField(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplateField.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateTagTemplateFieldMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UpdateTagTemplateField") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*}", - 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, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("tagTemplateField", request.getTagTemplateField(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplateField.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - renameTagTemplateFieldMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/RenameTagTemplateField") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*}:rename", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplateField.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - renameTagTemplateFieldEnumValueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1.DataCatalog/RenameTagTemplateFieldEnumValue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*/enumValues/*}:rename", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplateField.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteTagTemplateFieldMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/DeleteTagTemplateField") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*}", - 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()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor createTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/CreateTag") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1/{parent=projects/*/locations/*/entryGroups/*}/tags") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("tag", request.getTag(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Tag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor updateTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UpdateTag") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{tag.name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "tag.name", request.getTag().getName()); - return fields; - }) - .setAdditionalPaths("/v1/{tag.name=projects/*/locations/*/entryGroups/*/tags/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("tag", request.getTag(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Tag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/DeleteTag") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths("/v1/{name=projects/*/locations/*/entryGroups/*/tags/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listTagsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ListTags") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1/{parent=projects/*/locations/*/entryGroups/*}/tags") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListTagsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - reconcileTagsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ReconcileTags") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags:reconcile", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ReconcileTagsRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - starEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/StarEntry") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:star", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(StarEntryResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - unstarEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/UnstarEntry") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:unstar", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(UnstarEntryResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/SetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{resource=projects/*/locations/*/tagTemplates/*}:setIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/GetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{resource=projects/*/locations/*/tagTemplates/*}:getIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy", - "/v1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:getIamPolicy") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/TestIamPermissions") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{resource=projects/*/locations/*/tagTemplates/*}:testIamPermissions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions", - "/v1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:testIamPermissions") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - importEntriesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/ImportEntries") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/entryGroups/*}/entries:import", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Operation.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .setOperationSnapshotFactory( - (ImportEntriesRequest request, Operation response) -> - HttpJsonOperationSnapshot.create(response)) - .build(); - - private static final ApiMethodDescriptor - setConfigMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/SetConfig") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=organizations/*/locations/*}:setConfig", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths("/v1/{name=projects/*/locations/*}:setConfig") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MigrationConfig.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - retrieveConfigMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/RetrieveConfig") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=organizations/*/locations/*}:retrieveConfig", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(OrganizationConfig.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - retrieveEffectiveConfigMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.DataCatalog/RetrieveEffectiveConfig") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=organizations/*/locations/*}:retrieveEffectiveConfig", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths( - "/v1/{name=projects/*/locations/*}:retrieveEffectiveConfig") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(MigrationConfig.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable searchCatalogCallable; - private final UnaryCallable - searchCatalogPagedCallable; - private final UnaryCallable createEntryGroupCallable; - private final UnaryCallable getEntryGroupCallable; - private final UnaryCallable updateEntryGroupCallable; - private final UnaryCallable deleteEntryGroupCallable; - private final UnaryCallable - listEntryGroupsCallable; - private final UnaryCallable - listEntryGroupsPagedCallable; - private final UnaryCallable createEntryCallable; - private final UnaryCallable updateEntryCallable; - private final UnaryCallable deleteEntryCallable; - private final UnaryCallable getEntryCallable; - private final UnaryCallable lookupEntryCallable; - private final UnaryCallable listEntriesCallable; - private final UnaryCallable - listEntriesPagedCallable; - private final UnaryCallable - modifyEntryOverviewCallable; - private final UnaryCallable modifyEntryContactsCallable; - private final UnaryCallable createTagTemplateCallable; - private final UnaryCallable getTagTemplateCallable; - private final UnaryCallable updateTagTemplateCallable; - private final UnaryCallable deleteTagTemplateCallable; - private final UnaryCallable - createTagTemplateFieldCallable; - private final UnaryCallable - updateTagTemplateFieldCallable; - private final UnaryCallable - renameTagTemplateFieldCallable; - private final UnaryCallable - renameTagTemplateFieldEnumValueCallable; - private final UnaryCallable deleteTagTemplateFieldCallable; - private final UnaryCallable createTagCallable; - private final UnaryCallable updateTagCallable; - private final UnaryCallable deleteTagCallable; - private final UnaryCallable listTagsCallable; - private final UnaryCallable listTagsPagedCallable; - private final UnaryCallable reconcileTagsCallable; - private final OperationCallable< - ReconcileTagsRequest, ReconcileTagsResponse, ReconcileTagsMetadata> - reconcileTagsOperationCallable; - private final UnaryCallable starEntryCallable; - private final UnaryCallable unstarEntryCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - private final UnaryCallable importEntriesCallable; - private final OperationCallable< - ImportEntriesRequest, ImportEntriesResponse, ImportEntriesMetadata> - importEntriesOperationCallable; - private final UnaryCallable setConfigCallable; - private final UnaryCallable retrieveConfigCallable; - private final UnaryCallable - retrieveEffectiveConfigCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonOperationsStub httpJsonOperationsStub; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonDataCatalogStub create(DataCatalogStubSettings settings) - throws IOException { - return new HttpJsonDataCatalogStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonDataCatalogStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonDataCatalogStub( - DataCatalogStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonDataCatalogStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonDataCatalogStub( - DataCatalogStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonDataCatalogStub, 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 HttpJsonDataCatalogStub(DataCatalogStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonDataCatalogCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonDataCatalogStub, 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 HttpJsonDataCatalogStub( - DataCatalogStubSettings 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 - searchCatalogTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(searchCatalogMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createEntryGroupTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createEntryGroupMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings getEntryGroupTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getEntryGroupMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings updateEntryGroupTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateEntryGroupMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "entry_group.name", String.valueOf(request.getEntryGroup().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteEntryGroupTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteEntryGroupMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - listEntryGroupsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listEntryGroupsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings createEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings updateEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("entry.name", String.valueOf(request.getEntry().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings getEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings lookupEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(lookupEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listEntriesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listEntriesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings - modifyEntryOverviewTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(modifyEntryOverviewMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - modifyEntryContactsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(modifyEntryContactsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings createTagTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings getTagTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getTagTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings updateTagTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateTagTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "tag_template.name", String.valueOf(request.getTagTemplate().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteTagTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTagTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - createTagTemplateFieldTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateFieldMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings - updateTagTemplateFieldTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateTagTemplateFieldMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - renameTagTemplateFieldTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(renameTagTemplateFieldMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - renameTagTemplateFieldEnumValueTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(renameTagTemplateFieldEnumValueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - deleteTagTemplateFieldTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTagTemplateFieldMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings createTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings updateTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("tag.name", String.valueOf(request.getTag().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings listTagsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listTagsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings reconcileTagsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(reconcileTagsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings starEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(starEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings unstarEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(unstarEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .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(); - HttpJsonCallSettings importEntriesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(importEntriesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings setConfigTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(setConfigMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - retrieveConfigTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(retrieveConfigMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - retrieveEffectiveConfigTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(retrieveEffectiveConfigMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.searchCatalogCallable = - callableFactory.createUnaryCallable( - searchCatalogTransportSettings, settings.searchCatalogSettings(), clientContext); - this.searchCatalogPagedCallable = - callableFactory.createPagedCallable( - searchCatalogTransportSettings, settings.searchCatalogSettings(), clientContext); - this.createEntryGroupCallable = - callableFactory.createUnaryCallable( - createEntryGroupTransportSettings, settings.createEntryGroupSettings(), clientContext); - this.getEntryGroupCallable = - callableFactory.createUnaryCallable( - getEntryGroupTransportSettings, settings.getEntryGroupSettings(), clientContext); - this.updateEntryGroupCallable = - callableFactory.createUnaryCallable( - updateEntryGroupTransportSettings, settings.updateEntryGroupSettings(), clientContext); - this.deleteEntryGroupCallable = - callableFactory.createUnaryCallable( - deleteEntryGroupTransportSettings, settings.deleteEntryGroupSettings(), clientContext); - this.listEntryGroupsCallable = - callableFactory.createUnaryCallable( - listEntryGroupsTransportSettings, settings.listEntryGroupsSettings(), clientContext); - this.listEntryGroupsPagedCallable = - callableFactory.createPagedCallable( - listEntryGroupsTransportSettings, settings.listEntryGroupsSettings(), clientContext); - this.createEntryCallable = - callableFactory.createUnaryCallable( - createEntryTransportSettings, settings.createEntrySettings(), clientContext); - this.updateEntryCallable = - callableFactory.createUnaryCallable( - updateEntryTransportSettings, settings.updateEntrySettings(), clientContext); - this.deleteEntryCallable = - callableFactory.createUnaryCallable( - deleteEntryTransportSettings, settings.deleteEntrySettings(), clientContext); - this.getEntryCallable = - callableFactory.createUnaryCallable( - getEntryTransportSettings, settings.getEntrySettings(), clientContext); - this.lookupEntryCallable = - callableFactory.createUnaryCallable( - lookupEntryTransportSettings, settings.lookupEntrySettings(), clientContext); - this.listEntriesCallable = - callableFactory.createUnaryCallable( - listEntriesTransportSettings, settings.listEntriesSettings(), clientContext); - this.listEntriesPagedCallable = - callableFactory.createPagedCallable( - listEntriesTransportSettings, settings.listEntriesSettings(), clientContext); - this.modifyEntryOverviewCallable = - callableFactory.createUnaryCallable( - modifyEntryOverviewTransportSettings, - settings.modifyEntryOverviewSettings(), - clientContext); - this.modifyEntryContactsCallable = - callableFactory.createUnaryCallable( - modifyEntryContactsTransportSettings, - settings.modifyEntryContactsSettings(), - clientContext); - this.createTagTemplateCallable = - callableFactory.createUnaryCallable( - createTagTemplateTransportSettings, - settings.createTagTemplateSettings(), - clientContext); - this.getTagTemplateCallable = - callableFactory.createUnaryCallable( - getTagTemplateTransportSettings, settings.getTagTemplateSettings(), clientContext); - this.updateTagTemplateCallable = - callableFactory.createUnaryCallable( - updateTagTemplateTransportSettings, - settings.updateTagTemplateSettings(), - clientContext); - this.deleteTagTemplateCallable = - callableFactory.createUnaryCallable( - deleteTagTemplateTransportSettings, - settings.deleteTagTemplateSettings(), - clientContext); - this.createTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - createTagTemplateFieldTransportSettings, - settings.createTagTemplateFieldSettings(), - clientContext); - this.updateTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - updateTagTemplateFieldTransportSettings, - settings.updateTagTemplateFieldSettings(), - clientContext); - this.renameTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - renameTagTemplateFieldTransportSettings, - settings.renameTagTemplateFieldSettings(), - clientContext); - this.renameTagTemplateFieldEnumValueCallable = - callableFactory.createUnaryCallable( - renameTagTemplateFieldEnumValueTransportSettings, - settings.renameTagTemplateFieldEnumValueSettings(), - clientContext); - this.deleteTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - deleteTagTemplateFieldTransportSettings, - settings.deleteTagTemplateFieldSettings(), - clientContext); - this.createTagCallable = - callableFactory.createUnaryCallable( - createTagTransportSettings, settings.createTagSettings(), clientContext); - this.updateTagCallable = - callableFactory.createUnaryCallable( - updateTagTransportSettings, settings.updateTagSettings(), clientContext); - this.deleteTagCallable = - callableFactory.createUnaryCallable( - deleteTagTransportSettings, settings.deleteTagSettings(), clientContext); - this.listTagsCallable = - callableFactory.createUnaryCallable( - listTagsTransportSettings, settings.listTagsSettings(), clientContext); - this.listTagsPagedCallable = - callableFactory.createPagedCallable( - listTagsTransportSettings, settings.listTagsSettings(), clientContext); - this.reconcileTagsCallable = - callableFactory.createUnaryCallable( - reconcileTagsTransportSettings, settings.reconcileTagsSettings(), clientContext); - this.reconcileTagsOperationCallable = - callableFactory.createOperationCallable( - reconcileTagsTransportSettings, - settings.reconcileTagsOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.starEntryCallable = - callableFactory.createUnaryCallable( - starEntryTransportSettings, settings.starEntrySettings(), clientContext); - this.unstarEntryCallable = - callableFactory.createUnaryCallable( - unstarEntryTransportSettings, settings.unstarEntrySettings(), 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.importEntriesCallable = - callableFactory.createUnaryCallable( - importEntriesTransportSettings, settings.importEntriesSettings(), clientContext); - this.importEntriesOperationCallable = - callableFactory.createOperationCallable( - importEntriesTransportSettings, - settings.importEntriesOperationSettings(), - clientContext, - httpJsonOperationsStub); - this.setConfigCallable = - callableFactory.createUnaryCallable( - setConfigTransportSettings, settings.setConfigSettings(), clientContext); - this.retrieveConfigCallable = - callableFactory.createUnaryCallable( - retrieveConfigTransportSettings, settings.retrieveConfigSettings(), clientContext); - this.retrieveEffectiveConfigCallable = - callableFactory.createUnaryCallable( - retrieveEffectiveConfigTransportSettings, - settings.retrieveEffectiveConfigSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(searchCatalogMethodDescriptor); - methodDescriptors.add(createEntryGroupMethodDescriptor); - methodDescriptors.add(getEntryGroupMethodDescriptor); - methodDescriptors.add(updateEntryGroupMethodDescriptor); - methodDescriptors.add(deleteEntryGroupMethodDescriptor); - methodDescriptors.add(listEntryGroupsMethodDescriptor); - methodDescriptors.add(createEntryMethodDescriptor); - methodDescriptors.add(updateEntryMethodDescriptor); - methodDescriptors.add(deleteEntryMethodDescriptor); - methodDescriptors.add(getEntryMethodDescriptor); - methodDescriptors.add(lookupEntryMethodDescriptor); - methodDescriptors.add(listEntriesMethodDescriptor); - methodDescriptors.add(modifyEntryOverviewMethodDescriptor); - methodDescriptors.add(modifyEntryContactsMethodDescriptor); - methodDescriptors.add(createTagTemplateMethodDescriptor); - methodDescriptors.add(getTagTemplateMethodDescriptor); - methodDescriptors.add(updateTagTemplateMethodDescriptor); - methodDescriptors.add(deleteTagTemplateMethodDescriptor); - methodDescriptors.add(createTagTemplateFieldMethodDescriptor); - methodDescriptors.add(updateTagTemplateFieldMethodDescriptor); - methodDescriptors.add(renameTagTemplateFieldMethodDescriptor); - methodDescriptors.add(renameTagTemplateFieldEnumValueMethodDescriptor); - methodDescriptors.add(deleteTagTemplateFieldMethodDescriptor); - methodDescriptors.add(createTagMethodDescriptor); - methodDescriptors.add(updateTagMethodDescriptor); - methodDescriptors.add(deleteTagMethodDescriptor); - methodDescriptors.add(listTagsMethodDescriptor); - methodDescriptors.add(reconcileTagsMethodDescriptor); - methodDescriptors.add(starEntryMethodDescriptor); - methodDescriptors.add(unstarEntryMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); - methodDescriptors.add(getIamPolicyMethodDescriptor); - methodDescriptors.add(testIamPermissionsMethodDescriptor); - methodDescriptors.add(importEntriesMethodDescriptor); - methodDescriptors.add(setConfigMethodDescriptor); - methodDescriptors.add(retrieveConfigMethodDescriptor); - methodDescriptors.add(retrieveEffectiveConfigMethodDescriptor); - return methodDescriptors; - } - - public HttpJsonOperationsStub getHttpJsonOperationsStub() { - return httpJsonOperationsStub; - } - - @Override - public UnaryCallable searchCatalogCallable() { - return searchCatalogCallable; - } - - @Override - public UnaryCallable - searchCatalogPagedCallable() { - return searchCatalogPagedCallable; - } - - @Override - public UnaryCallable createEntryGroupCallable() { - return createEntryGroupCallable; - } - - @Override - public UnaryCallable getEntryGroupCallable() { - return getEntryGroupCallable; - } - - @Override - public UnaryCallable updateEntryGroupCallable() { - return updateEntryGroupCallable; - } - - @Override - public UnaryCallable deleteEntryGroupCallable() { - return deleteEntryGroupCallable; - } - - @Override - public UnaryCallable listEntryGroupsCallable() { - return listEntryGroupsCallable; - } - - @Override - public UnaryCallable - listEntryGroupsPagedCallable() { - return listEntryGroupsPagedCallable; - } - - @Override - public UnaryCallable createEntryCallable() { - return createEntryCallable; - } - - @Override - public UnaryCallable updateEntryCallable() { - return updateEntryCallable; - } - - @Override - public UnaryCallable deleteEntryCallable() { - return deleteEntryCallable; - } - - @Override - public UnaryCallable getEntryCallable() { - return getEntryCallable; - } - - @Override - public UnaryCallable lookupEntryCallable() { - return lookupEntryCallable; - } - - @Override - public UnaryCallable listEntriesCallable() { - return listEntriesCallable; - } - - @Override - public UnaryCallable listEntriesPagedCallable() { - return listEntriesPagedCallable; - } - - @Override - public UnaryCallable modifyEntryOverviewCallable() { - return modifyEntryOverviewCallable; - } - - @Override - public UnaryCallable modifyEntryContactsCallable() { - return modifyEntryContactsCallable; - } - - @Override - public UnaryCallable createTagTemplateCallable() { - return createTagTemplateCallable; - } - - @Override - public UnaryCallable getTagTemplateCallable() { - return getTagTemplateCallable; - } - - @Override - public UnaryCallable updateTagTemplateCallable() { - return updateTagTemplateCallable; - } - - @Override - public UnaryCallable deleteTagTemplateCallable() { - return deleteTagTemplateCallable; - } - - @Override - public UnaryCallable - createTagTemplateFieldCallable() { - return createTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - updateTagTemplateFieldCallable() { - return updateTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - renameTagTemplateFieldCallable() { - return renameTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - renameTagTemplateFieldEnumValueCallable() { - return renameTagTemplateFieldEnumValueCallable; - } - - @Override - public UnaryCallable deleteTagTemplateFieldCallable() { - return deleteTagTemplateFieldCallable; - } - - @Override - public UnaryCallable createTagCallable() { - return createTagCallable; - } - - @Override - public UnaryCallable updateTagCallable() { - return updateTagCallable; - } - - @Override - public UnaryCallable deleteTagCallable() { - return deleteTagCallable; - } - - @Override - public UnaryCallable listTagsCallable() { - return listTagsCallable; - } - - @Override - public UnaryCallable listTagsPagedCallable() { - return listTagsPagedCallable; - } - - @Override - public UnaryCallable reconcileTagsCallable() { - return reconcileTagsCallable; - } - - @Override - public OperationCallable - reconcileTagsOperationCallable() { - return reconcileTagsOperationCallable; - } - - @Override - public UnaryCallable starEntryCallable() { - return starEntryCallable; - } - - @Override - public UnaryCallable unstarEntryCallable() { - return unstarEntryCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public UnaryCallable importEntriesCallable() { - return importEntriesCallable; - } - - @Override - public OperationCallable - importEntriesOperationCallable() { - return importEntriesOperationCallable; - } - - @Override - public UnaryCallable setConfigCallable() { - return setConfigCallable; - } - - @Override - public UnaryCallable retrieveConfigCallable() { - return retrieveConfigCallable; - } - - @Override - public UnaryCallable - retrieveEffectiveConfigCallable() { - return retrieveEffectiveConfigCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerCallableFactory.java deleted file mode 100644 index 45c63fde5c50..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerCallableFactory.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 PolicyTagManager service API. - * - *

This class is for advanced usage. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class HttpJsonPolicyTagManagerCallableFactory - 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java deleted file mode 100644 index 8b400215901d..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java +++ /dev/null @@ -1,103 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 PolicyTagManagerSerialization service API. - * - *

This class is for advanced usage. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class HttpJsonPolicyTagManagerSerializationCallableFactory - 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationStub.java deleted file mode 100644 index 96bc38f4e3f5..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerSerializationStub.java +++ /dev/null @@ -1,335 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest; -import com.google.cloud.datacatalog.v1.Taxonomy; -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 PolicyTagManagerSerialization service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class HttpJsonPolicyTagManagerSerializationStub extends PolicyTagManagerSerializationStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - replaceTaxonomyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1.PolicyTagManagerSerialization/ReplaceTaxonomy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/taxonomies/*}:replace", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Taxonomy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - importTaxonomiesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1.PolicyTagManagerSerialization/ImportTaxonomies") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/taxonomies:import", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ImportTaxonomiesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - exportTaxonomiesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1.PolicyTagManagerSerialization/ExportTaxonomies") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/taxonomies:export", - 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, "serializedTaxonomies", request.getSerializedTaxonomies()); - serializer.putQueryParam( - fields, "taxonomies", request.getTaxonomiesList()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ExportTaxonomiesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable replaceTaxonomyCallable; - private final UnaryCallable - importTaxonomiesCallable; - private final UnaryCallable - exportTaxonomiesCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonPolicyTagManagerSerializationStub create( - PolicyTagManagerSerializationStubSettings settings) throws IOException { - return new HttpJsonPolicyTagManagerSerializationStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonPolicyTagManagerSerializationStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonPolicyTagManagerSerializationStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonPolicyTagManagerSerializationStub, 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 HttpJsonPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonPolicyTagManagerSerializationCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonPolicyTagManagerSerializationStub, 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 HttpJsonPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings replaceTaxonomyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(replaceTaxonomyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - importTaxonomiesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(importTaxonomiesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings - exportTaxonomiesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(exportTaxonomiesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - - this.replaceTaxonomyCallable = - callableFactory.createUnaryCallable( - replaceTaxonomyTransportSettings, settings.replaceTaxonomySettings(), clientContext); - this.importTaxonomiesCallable = - callableFactory.createUnaryCallable( - importTaxonomiesTransportSettings, settings.importTaxonomiesSettings(), clientContext); - this.exportTaxonomiesCallable = - callableFactory.createUnaryCallable( - exportTaxonomiesTransportSettings, settings.exportTaxonomiesSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(replaceTaxonomyMethodDescriptor); - methodDescriptors.add(importTaxonomiesMethodDescriptor); - methodDescriptors.add(exportTaxonomiesMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable replaceTaxonomyCallable() { - return replaceTaxonomyCallable; - } - - @Override - public UnaryCallable - importTaxonomiesCallable() { - return importTaxonomiesCallable; - } - - @Override - public UnaryCallable - exportTaxonomiesCallable() { - return exportTaxonomiesCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerStub.java deleted file mode 100644 index de953c5840c0..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/HttpJsonPolicyTagManagerStub.java +++ /dev/null @@ -1,943 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1.ListPolicyTagsResponse; -import com.google.cloud.datacatalog.v1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ListTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the PolicyTagManager service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@Generated("by gapic-generator-java") -public class HttpJsonPolicyTagManagerStub extends PolicyTagManagerStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - createTaxonomyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/CreateTaxonomy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/taxonomies", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("taxonomy", request.getTaxonomy(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Taxonomy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteTaxonomyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/DeleteTaxonomy") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/taxonomies/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateTaxonomyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/UpdateTaxonomy") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{taxonomy.name=projects/*/locations/*/taxonomies/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "taxonomy.name", request.getTaxonomy().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("taxonomy", request.getTaxonomy(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Taxonomy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listTaxonomiesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/ListTaxonomies") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*}/taxonomies", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListTaxonomiesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getTaxonomyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/GetTaxonomy") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/taxonomies/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Taxonomy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createPolicyTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/CreatePolicyTag") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/taxonomies/*}/policyTags", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("policyTag", request.getPolicyTag(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(PolicyTag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deletePolicyTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/DeletePolicyTag") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updatePolicyTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/UpdatePolicyTag") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{policyTag.name=projects/*/locations/*/taxonomies/*/policyTags/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "policyTag.name", request.getPolicyTag().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("policyTag", request.getPolicyTag(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(PolicyTag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listPolicyTagsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/ListPolicyTags") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{parent=projects/*/locations/*/taxonomies/*}/policyTags", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListPolicyTagsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getPolicyTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/GetPolicyTag") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(PolicyTag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/GetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{resource=projects/*/locations/*/taxonomies/*}:getIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:getIamPolicy") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/SetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{resource=projects/*/locations/*/taxonomies/*}:setIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:setIamPolicy") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1.PolicyTagManager/TestIamPermissions") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1/{resource=projects/*/locations/*/taxonomies/*}:testIamPermissions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:testIamPermissions") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable createTaxonomyCallable; - private final UnaryCallable deleteTaxonomyCallable; - private final UnaryCallable updateTaxonomyCallable; - private final UnaryCallable listTaxonomiesCallable; - private final UnaryCallable - listTaxonomiesPagedCallable; - private final UnaryCallable getTaxonomyCallable; - private final UnaryCallable createPolicyTagCallable; - private final UnaryCallable deletePolicyTagCallable; - private final UnaryCallable updatePolicyTagCallable; - private final UnaryCallable listPolicyTagsCallable; - private final UnaryCallable - listPolicyTagsPagedCallable; - private final UnaryCallable getPolicyTagCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonPolicyTagManagerStub create(PolicyTagManagerStubSettings settings) - throws IOException { - return new HttpJsonPolicyTagManagerStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonPolicyTagManagerStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonPolicyTagManagerStub( - PolicyTagManagerStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonPolicyTagManagerStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonPolicyTagManagerStub( - PolicyTagManagerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonPolicyTagManagerStub, 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 HttpJsonPolicyTagManagerStub( - PolicyTagManagerStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonPolicyTagManagerCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonPolicyTagManagerStub, 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 HttpJsonPolicyTagManagerStub( - PolicyTagManagerStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings createTaxonomyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTaxonomyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings deleteTaxonomyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTaxonomyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings updateTaxonomyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateTaxonomyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("taxonomy.name", String.valueOf(request.getTaxonomy().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listTaxonomiesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listTaxonomiesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings getTaxonomyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getTaxonomyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings createPolicyTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createPolicyTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings deletePolicyTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deletePolicyTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings updatePolicyTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updatePolicyTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("policy_tag.name", String.valueOf(request.getPolicyTag().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listPolicyTagsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listPolicyTagsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings getPolicyTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getPolicyTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .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 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 - 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.createTaxonomyCallable = - callableFactory.createUnaryCallable( - createTaxonomyTransportSettings, settings.createTaxonomySettings(), clientContext); - this.deleteTaxonomyCallable = - callableFactory.createUnaryCallable( - deleteTaxonomyTransportSettings, settings.deleteTaxonomySettings(), clientContext); - this.updateTaxonomyCallable = - callableFactory.createUnaryCallable( - updateTaxonomyTransportSettings, settings.updateTaxonomySettings(), clientContext); - this.listTaxonomiesCallable = - callableFactory.createUnaryCallable( - listTaxonomiesTransportSettings, settings.listTaxonomiesSettings(), clientContext); - this.listTaxonomiesPagedCallable = - callableFactory.createPagedCallable( - listTaxonomiesTransportSettings, settings.listTaxonomiesSettings(), clientContext); - this.getTaxonomyCallable = - callableFactory.createUnaryCallable( - getTaxonomyTransportSettings, settings.getTaxonomySettings(), clientContext); - this.createPolicyTagCallable = - callableFactory.createUnaryCallable( - createPolicyTagTransportSettings, settings.createPolicyTagSettings(), clientContext); - this.deletePolicyTagCallable = - callableFactory.createUnaryCallable( - deletePolicyTagTransportSettings, settings.deletePolicyTagSettings(), clientContext); - this.updatePolicyTagCallable = - callableFactory.createUnaryCallable( - updatePolicyTagTransportSettings, settings.updatePolicyTagSettings(), clientContext); - this.listPolicyTagsCallable = - callableFactory.createUnaryCallable( - listPolicyTagsTransportSettings, settings.listPolicyTagsSettings(), clientContext); - this.listPolicyTagsPagedCallable = - callableFactory.createPagedCallable( - listPolicyTagsTransportSettings, settings.listPolicyTagsSettings(), clientContext); - this.getPolicyTagCallable = - callableFactory.createUnaryCallable( - getPolicyTagTransportSettings, settings.getPolicyTagSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), 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(createTaxonomyMethodDescriptor); - methodDescriptors.add(deleteTaxonomyMethodDescriptor); - methodDescriptors.add(updateTaxonomyMethodDescriptor); - methodDescriptors.add(listTaxonomiesMethodDescriptor); - methodDescriptors.add(getTaxonomyMethodDescriptor); - methodDescriptors.add(createPolicyTagMethodDescriptor); - methodDescriptors.add(deletePolicyTagMethodDescriptor); - methodDescriptors.add(updatePolicyTagMethodDescriptor); - methodDescriptors.add(listPolicyTagsMethodDescriptor); - methodDescriptors.add(getPolicyTagMethodDescriptor); - methodDescriptors.add(getIamPolicyMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); - methodDescriptors.add(testIamPermissionsMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable createTaxonomyCallable() { - return createTaxonomyCallable; - } - - @Override - public UnaryCallable deleteTaxonomyCallable() { - return deleteTaxonomyCallable; - } - - @Override - public UnaryCallable updateTaxonomyCallable() { - return updateTaxonomyCallable; - } - - @Override - public UnaryCallable listTaxonomiesCallable() { - return listTaxonomiesCallable; - } - - @Override - public UnaryCallable - listTaxonomiesPagedCallable() { - return listTaxonomiesPagedCallable; - } - - @Override - public UnaryCallable getTaxonomyCallable() { - return getTaxonomyCallable; - } - - @Override - public UnaryCallable createPolicyTagCallable() { - return createPolicyTagCallable; - } - - @Override - public UnaryCallable deletePolicyTagCallable() { - return deletePolicyTagCallable; - } - - @Override - public UnaryCallable updatePolicyTagCallable() { - return updatePolicyTagCallable; - } - - @Override - public UnaryCallable listPolicyTagsCallable() { - return listPolicyTagsCallable; - } - - @Override - public UnaryCallable - listPolicyTagsPagedCallable() { - return listPolicyTagsPagedCallable; - } - - @Override - public UnaryCallable getPolicyTagCallable() { - return getPolicyTagCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStub.java deleted file mode 100644 index fad16076cddc..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStub.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest; -import com.google.cloud.datacatalog.v1.Taxonomy; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the PolicyTagManagerSerialization service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@Generated("by gapic-generator-java") -public abstract class PolicyTagManagerSerializationStub implements BackgroundResource { - - public UnaryCallable replaceTaxonomyCallable() { - throw new UnsupportedOperationException("Not implemented: replaceTaxonomyCallable()"); - } - - public UnaryCallable - importTaxonomiesCallable() { - throw new UnsupportedOperationException("Not implemented: importTaxonomiesCallable()"); - } - - public UnaryCallable - exportTaxonomiesCallable() { - throw new UnsupportedOperationException("Not implemented: exportTaxonomiesCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java deleted file mode 100644 index 1618bd510be6..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerSerializationStubSettings.java +++ /dev/null @@ -1,412 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import com.google.api.core.ApiFunction; -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.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.LibraryMetadata; -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.cloud.datacatalog.v1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest; -import com.google.cloud.datacatalog.v1.Taxonomy; -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 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 PolicyTagManagerSerializationStub}. - * - *

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

    - *
  • The default service address (datacatalog.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 replaceTaxonomy: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerSerializationStubSettings.Builder policyTagManagerSerializationSettingsBuilder =
- *     PolicyTagManagerSerializationStubSettings.newBuilder();
- * policyTagManagerSerializationSettingsBuilder
- *     .replaceTaxonomySettings()
- *     .setRetrySettings(
- *         policyTagManagerSerializationSettingsBuilder
- *             .replaceTaxonomySettings()
- *             .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());
- * PolicyTagManagerSerializationStubSettings policyTagManagerSerializationSettings =
- *     policyTagManagerSerializationSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - */ -@NullMarked -@Generated("by gapic-generator-java") -@SuppressWarnings("CanonicalDuration") -public class PolicyTagManagerSerializationStubSettings - 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 replaceTaxonomySettings; - private final UnaryCallSettings - importTaxonomiesSettings; - private final UnaryCallSettings - exportTaxonomiesSettings; - - /** Returns the object with the settings used for calls to replaceTaxonomy. */ - public UnaryCallSettings replaceTaxonomySettings() { - return replaceTaxonomySettings; - } - - /** Returns the object with the settings used for calls to importTaxonomies. */ - public UnaryCallSettings - importTaxonomiesSettings() { - return importTaxonomiesSettings; - } - - /** Returns the object with the settings used for calls to exportTaxonomies. */ - public UnaryCallSettings - exportTaxonomiesSettings() { - return exportTaxonomiesSettings; - } - - public PolicyTagManagerSerializationStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcPolicyTagManagerSerializationStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonPolicyTagManagerSerializationStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "datacatalog"; - } - - /** 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 "datacatalog.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "datacatalog.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(PolicyTagManagerSerializationStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", - GaxProperties.getLibraryVersion(PolicyTagManagerSerializationStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.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 PolicyTagManagerSerializationStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - replaceTaxonomySettings = settingsBuilder.replaceTaxonomySettings().build(); - importTaxonomiesSettings = settingsBuilder.importTaxonomiesSettings().build(); - exportTaxonomiesSettings = settingsBuilder.exportTaxonomiesSettings().build(); - } - - @Override - protected LibraryMetadata getLibraryMetadata() { - return LibraryMetadata.newBuilder() - .setArtifactName("com.google.cloud:google-cloud-datacatalog") - .setRepository("googleapis/google-cloud-java") - .setVersion(Version.VERSION) - .build(); - } - - /** Builder for PolicyTagManagerSerializationStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - replaceTaxonomySettings; - private final UnaryCallSettings.Builder - importTaxonomiesSettings; - private final UnaryCallSettings.Builder - exportTaxonomiesSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_2_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() - .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setTotalTimeoutDuration(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_2_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(clientContext); - - replaceTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - importTaxonomiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - exportTaxonomiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - replaceTaxonomySettings, importTaxonomiesSettings, exportTaxonomiesSettings); - initDefaults(this); - } - - protected Builder(PolicyTagManagerSerializationStubSettings settings) { - super(settings); - - replaceTaxonomySettings = settings.replaceTaxonomySettings.toBuilder(); - importTaxonomiesSettings = settings.importTaxonomiesSettings.toBuilder(); - exportTaxonomiesSettings = settings.exportTaxonomiesSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - replaceTaxonomySettings, importTaxonomiesSettings, exportTaxonomiesSettings); - } - - 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 - .replaceTaxonomySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); - - builder - .importTaxonomiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); - - builder - .exportTaxonomiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); - - 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 replaceTaxonomy. */ - public UnaryCallSettings.Builder replaceTaxonomySettings() { - return replaceTaxonomySettings; - } - - /** Returns the builder for the settings used for calls to importTaxonomies. */ - public UnaryCallSettings.Builder - importTaxonomiesSettings() { - return importTaxonomiesSettings; - } - - /** Returns the builder for the settings used for calls to exportTaxonomies. */ - public UnaryCallSettings.Builder - exportTaxonomiesSettings() { - return exportTaxonomiesSettings; - } - - @Override - public PolicyTagManagerSerializationStubSettings build() throws IOException { - return new PolicyTagManagerSerializationStubSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStub.java deleted file mode 100644 index 4c83f749dea9..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStub.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1.ListPolicyTagsResponse; -import com.google.cloud.datacatalog.v1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ListTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the PolicyTagManager service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@Generated("by gapic-generator-java") -public abstract class PolicyTagManagerStub implements BackgroundResource { - - public UnaryCallable createTaxonomyCallable() { - throw new UnsupportedOperationException("Not implemented: createTaxonomyCallable()"); - } - - public UnaryCallable deleteTaxonomyCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTaxonomyCallable()"); - } - - public UnaryCallable updateTaxonomyCallable() { - throw new UnsupportedOperationException("Not implemented: updateTaxonomyCallable()"); - } - - public UnaryCallable - listTaxonomiesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listTaxonomiesPagedCallable()"); - } - - public UnaryCallable listTaxonomiesCallable() { - throw new UnsupportedOperationException("Not implemented: listTaxonomiesCallable()"); - } - - public UnaryCallable getTaxonomyCallable() { - throw new UnsupportedOperationException("Not implemented: getTaxonomyCallable()"); - } - - public UnaryCallable createPolicyTagCallable() { - throw new UnsupportedOperationException("Not implemented: createPolicyTagCallable()"); - } - - public UnaryCallable deletePolicyTagCallable() { - throw new UnsupportedOperationException("Not implemented: deletePolicyTagCallable()"); - } - - public UnaryCallable updatePolicyTagCallable() { - throw new UnsupportedOperationException("Not implemented: updatePolicyTagCallable()"); - } - - public UnaryCallable - listPolicyTagsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listPolicyTagsPagedCallable()"); - } - - public UnaryCallable listPolicyTagsCallable() { - throw new UnsupportedOperationException("Not implemented: listPolicyTagsCallable()"); - } - - public UnaryCallable getPolicyTagCallable() { - throw new UnsupportedOperationException("Not implemented: getPolicyTagCallable()"); - } - - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java deleted file mode 100644 index b1f7cbd383b4..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/PolicyTagManagerStubSettings.java +++ /dev/null @@ -1,772 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -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.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.LibraryMetadata; -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.datacatalog.v1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1.ListPolicyTagsResponse; -import com.google.cloud.datacatalog.v1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ListTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest; -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.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import 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 PolicyTagManagerStub}. - * - *

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

    - *
  • The default service address (datacatalog.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 createTaxonomy: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerStubSettings.Builder policyTagManagerSettingsBuilder =
- *     PolicyTagManagerStubSettings.newBuilder();
- * policyTagManagerSettingsBuilder
- *     .createTaxonomySettings()
- *     .setRetrySettings(
- *         policyTagManagerSettingsBuilder
- *             .createTaxonomySettings()
- *             .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());
- * PolicyTagManagerStubSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - */ -@NullMarked -@Generated("by gapic-generator-java") -@SuppressWarnings("CanonicalDuration") -public class PolicyTagManagerStubSettings 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 createTaxonomySettings; - private final UnaryCallSettings deleteTaxonomySettings; - private final UnaryCallSettings updateTaxonomySettings; - private final PagedCallSettings< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings; - private final UnaryCallSettings getTaxonomySettings; - private final UnaryCallSettings createPolicyTagSettings; - private final UnaryCallSettings deletePolicyTagSettings; - private final UnaryCallSettings updatePolicyTagSettings; - private final PagedCallSettings< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings; - private final UnaryCallSettings getPolicyTagSettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; - - private static final PagedListDescriptor - LIST_TAXONOMIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListTaxonomiesRequest injectToken(ListTaxonomiesRequest payload, String token) { - return ListTaxonomiesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListTaxonomiesRequest injectPageSize( - ListTaxonomiesRequest payload, int pageSize) { - return ListTaxonomiesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListTaxonomiesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListTaxonomiesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListTaxonomiesResponse payload) { - return payload.getTaxonomiesList(); - } - }; - - private static final PagedListDescriptor - LIST_POLICY_TAGS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListPolicyTagsRequest injectToken(ListPolicyTagsRequest payload, String token) { - return ListPolicyTagsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListPolicyTagsRequest injectPageSize( - ListPolicyTagsRequest payload, int pageSize) { - return ListPolicyTagsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListPolicyTagsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListPolicyTagsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListPolicyTagsResponse payload) { - return payload.getPolicyTagsList(); - } - }; - - private static final PagedListResponseFactory< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - LIST_TAXONOMIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListTaxonomiesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_TAXONOMIES_PAGE_STR_DESC, request, context); - return ListTaxonomiesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - LIST_POLICY_TAGS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListPolicyTagsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_POLICY_TAGS_PAGE_STR_DESC, request, context); - return ListPolicyTagsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to createTaxonomy. */ - public UnaryCallSettings createTaxonomySettings() { - return createTaxonomySettings; - } - - /** Returns the object with the settings used for calls to deleteTaxonomy. */ - public UnaryCallSettings deleteTaxonomySettings() { - return deleteTaxonomySettings; - } - - /** Returns the object with the settings used for calls to updateTaxonomy. */ - public UnaryCallSettings updateTaxonomySettings() { - return updateTaxonomySettings; - } - - /** Returns the object with the settings used for calls to listTaxonomies. */ - public PagedCallSettings< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings() { - return listTaxonomiesSettings; - } - - /** Returns the object with the settings used for calls to getTaxonomy. */ - public UnaryCallSettings getTaxonomySettings() { - return getTaxonomySettings; - } - - /** Returns the object with the settings used for calls to createPolicyTag. */ - public UnaryCallSettings createPolicyTagSettings() { - return createPolicyTagSettings; - } - - /** Returns the object with the settings used for calls to deletePolicyTag. */ - public UnaryCallSettings deletePolicyTagSettings() { - return deletePolicyTagSettings; - } - - /** Returns the object with the settings used for calls to updatePolicyTag. */ - public UnaryCallSettings updatePolicyTagSettings() { - return updatePolicyTagSettings; - } - - /** Returns the object with the settings used for calls to listPolicyTags. */ - public PagedCallSettings< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings() { - return listPolicyTagsSettings; - } - - /** Returns the object with the settings used for calls to getPolicyTag. */ - public UnaryCallSettings getPolicyTagSettings() { - return getPolicyTagSettings; - } - - /** 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 setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - public PolicyTagManagerStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcPolicyTagManagerStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonPolicyTagManagerStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "datacatalog"; - } - - /** 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 "datacatalog.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "datacatalog.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(PolicyTagManagerStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(PolicyTagManagerStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return PolicyTagManagerStubSettings.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 PolicyTagManagerStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createTaxonomySettings = settingsBuilder.createTaxonomySettings().build(); - deleteTaxonomySettings = settingsBuilder.deleteTaxonomySettings().build(); - updateTaxonomySettings = settingsBuilder.updateTaxonomySettings().build(); - listTaxonomiesSettings = settingsBuilder.listTaxonomiesSettings().build(); - getTaxonomySettings = settingsBuilder.getTaxonomySettings().build(); - createPolicyTagSettings = settingsBuilder.createPolicyTagSettings().build(); - deletePolicyTagSettings = settingsBuilder.deletePolicyTagSettings().build(); - updatePolicyTagSettings = settingsBuilder.updatePolicyTagSettings().build(); - listPolicyTagsSettings = settingsBuilder.listPolicyTagsSettings().build(); - getPolicyTagSettings = settingsBuilder.getPolicyTagSettings().build(); - getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); - testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); - } - - @Override - protected LibraryMetadata getLibraryMetadata() { - return LibraryMetadata.newBuilder() - .setArtifactName("com.google.cloud:google-cloud-datacatalog") - .setRepository("googleapis/google-cloud-java") - .setVersion(Version.VERSION) - .build(); - } - - /** Builder for PolicyTagManagerStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createTaxonomySettings; - private final UnaryCallSettings.Builder deleteTaxonomySettings; - private final UnaryCallSettings.Builder updateTaxonomySettings; - private final PagedCallSettings.Builder< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings; - private final UnaryCallSettings.Builder getTaxonomySettings; - private final UnaryCallSettings.Builder - createPolicyTagSettings; - private final UnaryCallSettings.Builder deletePolicyTagSettings; - private final UnaryCallSettings.Builder - updatePolicyTagSettings; - private final PagedCallSettings.Builder< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings; - private final UnaryCallSettings.Builder getPolicyTagSettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setTotalTimeoutDuration(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(clientContext); - - createTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listTaxonomiesSettings = PagedCallSettings.newBuilder(LIST_TAXONOMIES_PAGE_STR_FACT); - getTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createPolicyTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deletePolicyTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updatePolicyTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listPolicyTagsSettings = PagedCallSettings.newBuilder(LIST_POLICY_TAGS_PAGE_STR_FACT); - getPolicyTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createTaxonomySettings, - deleteTaxonomySettings, - updateTaxonomySettings, - listTaxonomiesSettings, - getTaxonomySettings, - createPolicyTagSettings, - deletePolicyTagSettings, - updatePolicyTagSettings, - listPolicyTagsSettings, - getPolicyTagSettings, - getIamPolicySettings, - setIamPolicySettings, - testIamPermissionsSettings); - initDefaults(this); - } - - protected Builder(PolicyTagManagerStubSettings settings) { - super(settings); - - createTaxonomySettings = settings.createTaxonomySettings.toBuilder(); - deleteTaxonomySettings = settings.deleteTaxonomySettings.toBuilder(); - updateTaxonomySettings = settings.updateTaxonomySettings.toBuilder(); - listTaxonomiesSettings = settings.listTaxonomiesSettings.toBuilder(); - getTaxonomySettings = settings.getTaxonomySettings.toBuilder(); - createPolicyTagSettings = settings.createPolicyTagSettings.toBuilder(); - deletePolicyTagSettings = settings.deletePolicyTagSettings.toBuilder(); - updatePolicyTagSettings = settings.updatePolicyTagSettings.toBuilder(); - listPolicyTagsSettings = settings.listPolicyTagsSettings.toBuilder(); - getPolicyTagSettings = settings.getPolicyTagSettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createTaxonomySettings, - deleteTaxonomySettings, - updateTaxonomySettings, - listTaxonomiesSettings, - getTaxonomySettings, - createPolicyTagSettings, - deletePolicyTagSettings, - updatePolicyTagSettings, - listPolicyTagsSettings, - getPolicyTagSettings, - getIamPolicySettings, - setIamPolicySettings, - 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 - .createTaxonomySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteTaxonomySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateTaxonomySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listTaxonomiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getTaxonomySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createPolicyTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deletePolicyTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updatePolicyTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listPolicyTagsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getPolicyTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - 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 createTaxonomy. */ - public UnaryCallSettings.Builder createTaxonomySettings() { - return createTaxonomySettings; - } - - /** Returns the builder for the settings used for calls to deleteTaxonomy. */ - public UnaryCallSettings.Builder deleteTaxonomySettings() { - return deleteTaxonomySettings; - } - - /** Returns the builder for the settings used for calls to updateTaxonomy. */ - public UnaryCallSettings.Builder updateTaxonomySettings() { - return updateTaxonomySettings; - } - - /** Returns the builder for the settings used for calls to listTaxonomies. */ - public PagedCallSettings.Builder< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings() { - return listTaxonomiesSettings; - } - - /** Returns the builder for the settings used for calls to getTaxonomy. */ - public UnaryCallSettings.Builder getTaxonomySettings() { - return getTaxonomySettings; - } - - /** Returns the builder for the settings used for calls to createPolicyTag. */ - public UnaryCallSettings.Builder createPolicyTagSettings() { - return createPolicyTagSettings; - } - - /** Returns the builder for the settings used for calls to deletePolicyTag. */ - public UnaryCallSettings.Builder deletePolicyTagSettings() { - return deletePolicyTagSettings; - } - - /** Returns the builder for the settings used for calls to updatePolicyTag. */ - public UnaryCallSettings.Builder updatePolicyTagSettings() { - return updatePolicyTagSettings; - } - - /** Returns the builder for the settings used for calls to listPolicyTags. */ - public PagedCallSettings.Builder< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings() { - return listPolicyTagsSettings; - } - - /** Returns the builder for the settings used for calls to getPolicyTag. */ - public UnaryCallSettings.Builder getPolicyTagSettings() { - return getPolicyTagSettings; - } - - /** 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 setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - @Override - public PolicyTagManagerStubSettings build() throws IOException { - return new PolicyTagManagerStubSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/Version.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/Version.java deleted file mode 100644 index cb00c4a0db9a..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1/stub/Version.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub; - -import com.google.api.core.InternalApi; - -@InternalApi("For internal use only") -final class Version { - // {x-version-update-start:google-cloud-datacatalog:current} - static final String VERSION = "1.102.0"; - // {x-version-update-end} - -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java deleted file mode 100644 index b2ce8024d774..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClient.java +++ /dev/null @@ -1,5471 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.datacatalog.v1beta1.stub.DataCatalogStub; -import com.google.cloud.datacatalog.v1beta1.stub.DataCatalogStubSettings; -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.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: Deprecated: Please use Dataplex Catalog instead. - * - *

Data Catalog API service allows clients to discover, understand, and manage their data. - * - *

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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String entryGroupId = "entryGroupId1228924712";
- *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
- *   EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
- * }
- * }
- * - *

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

SearchCatalog

Searches Data Catalog for multiple resources like entries, tags that match a query. - *

This is a custom method (https://cloud.google.com/apis/design/custom_methods) and does not return the complete resource, only the resource identifier and high level fields. Clients can subsequently call `Get` methods. - *

Note that Data Catalog search queries do not guarantee full recall. Query results that match your query may not be returned, even in subsequent result pages. Also note that results returned (and not returned) can vary across repeated search queries. - *

See [Data Catalog Search Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference) for more information.

- *

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

- *
    - *
  • searchCatalog(SearchCatalogRequest request) - *

- *

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

- *
    - *
  • searchCatalog(SearchCatalogRequest.Scope scope, String query) - *

- *

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

- *
    - *
  • searchCatalogPagedCallable() - *

  • searchCatalogCallable() - *

- *

CreateEntryGroup

A maximum of 10,000 entry groups may be created per organization across all locations. - *

Users should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • createEntryGroup(CreateEntryGroupRequest request) - *

- *

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

- *
    - *
  • createEntryGroup(LocationName parent, String entryGroupId, EntryGroup entryGroup) - *

  • createEntryGroup(String parent, String entryGroupId, EntryGroup entryGroup) - *

- *

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

- *
    - *
  • createEntryGroupCallable() - *

- *

UpdateEntryGroup

Updates an EntryGroup. The user should enable the Data Catalog API in the project identified by the `entry_group.name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • updateEntryGroup(UpdateEntryGroupRequest request) - *

- *

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

- *
    - *
  • updateEntryGroup(EntryGroup entryGroup) - *

  • updateEntryGroup(EntryGroup entryGroup, 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.

- *
    - *
  • updateEntryGroupCallable() - *

- *

GetEntryGroup

Gets an EntryGroup.

- *

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

- *
    - *
  • getEntryGroup(GetEntryGroupRequest request) - *

- *

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

- *
    - *
  • getEntryGroup(EntryGroupName name) - *

  • getEntryGroup(String name) - *

  • getEntryGroup(EntryGroupName name, FieldMask readMask) - *

  • getEntryGroup(String name, FieldMask readMask) - *

- *

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

- *
    - *
  • getEntryGroupCallable() - *

- *

DeleteEntryGroup

Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • deleteEntryGroup(DeleteEntryGroupRequest request) - *

- *

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

- *
    - *
  • deleteEntryGroup(EntryGroupName name) - *

  • deleteEntryGroup(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.

- *
    - *
  • deleteEntryGroupCallable() - *

- *

ListEntryGroups

Lists entry groups.

- *

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

- *
    - *
  • listEntryGroups(ListEntryGroupsRequest request) - *

- *

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

- *
    - *
  • listEntryGroups(LocationName parent) - *

  • listEntryGroups(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.

- *
    - *
  • listEntryGroupsPagedCallable() - *

  • listEntryGroupsCallable() - *

- *

CreateEntry

Creates an entry. Only entries of 'FILESET' type or user-specified type can be created. - *

Users should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - *

A maximum of 100,000 entries may be created per entry group.

- *

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

- *
    - *
  • createEntry(CreateEntryRequest request) - *

- *

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

- *
    - *
  • createEntry(EntryGroupName parent, String entryId, Entry entry) - *

  • createEntry(String parent, String entryId, Entry entry) - *

- *

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

- *
    - *
  • createEntryCallable() - *

- *

UpdateEntry

Updates an existing entry. Users should enable the Data Catalog API in the project identified by the `entry.name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • updateEntry(UpdateEntryRequest request) - *

- *

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

- *
    - *
  • updateEntry(Entry entry) - *

  • updateEntry(Entry entry, 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.

- *
    - *
  • updateEntryCallable() - *

- *

DeleteEntry

Deletes an existing entry. Only entries created through [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry] method can be deleted. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • deleteEntry(DeleteEntryRequest request) - *

- *

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

- *
    - *
  • deleteEntry(EntryName name) - *

  • deleteEntry(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.

- *
    - *
  • deleteEntryCallable() - *

- *

GetEntry

Gets an entry.

- *

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

- *
    - *
  • getEntry(GetEntryRequest request) - *

- *

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

- *
    - *
  • getEntry(EntryName name) - *

  • getEntry(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.

- *
    - *
  • getEntryCallable() - *

- *

LookupEntry

Get an entry by target resource name. This method allows clients to use the resource name from the source Google Cloud Platform service to get the Data Catalog Entry.

- *

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

- *
    - *
  • lookupEntry(LookupEntryRequest request) - *

- *

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

- *
    - *
  • lookupEntryCallable() - *

- *

ListEntries

Lists entries.

- *

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

- *
    - *
  • listEntries(ListEntriesRequest request) - *

- *

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

- *
    - *
  • listEntries(EntryGroupName parent) - *

  • listEntries(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.

- *
    - *
  • listEntriesPagedCallable() - *

  • listEntriesCallable() - *

- *

CreateTagTemplate

Creates a tag template. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • createTagTemplate(CreateTagTemplateRequest request) - *

- *

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

- *
    - *
  • createTagTemplate(LocationName parent, String tagTemplateId, TagTemplate tagTemplate) - *

  • createTagTemplate(String parent, String tagTemplateId, TagTemplate tagTemplate) - *

- *

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

- *
    - *
  • createTagTemplateCallable() - *

- *

GetTagTemplate

Gets a tag template.

- *

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

- *
    - *
  • getTagTemplate(GetTagTemplateRequest request) - *

- *

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

- *
    - *
  • getTagTemplate(TagTemplateName name) - *

  • getTagTemplate(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.

- *
    - *
  • getTagTemplateCallable() - *

- *

UpdateTagTemplate

Updates a tag template. This method cannot be used to update the fields of a template. The tag template fields are represented as separate resources and should be updated using their own create/update/delete methods. Users should enable the Data Catalog API in the project identified by the `tag_template.name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • updateTagTemplate(UpdateTagTemplateRequest request) - *

- *

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

- *
    - *
  • updateTagTemplate(TagTemplate tagTemplate) - *

  • updateTagTemplate(TagTemplate tagTemplate, 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.

- *
    - *
  • updateTagTemplateCallable() - *

- *

DeleteTagTemplate

Deletes a tag template and all tags using the template. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • deleteTagTemplate(DeleteTagTemplateRequest request) - *

- *

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

- *
    - *
  • deleteTagTemplate(TagTemplateName name, boolean force) - *

  • deleteTagTemplate(String name, boolean force) - *

- *

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

- *
    - *
  • deleteTagTemplateCallable() - *

- *

CreateTagTemplateField

Creates a field in a tag template. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • createTagTemplateField(CreateTagTemplateFieldRequest request) - *

- *

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

- *
    - *
  • createTagTemplateField(TagTemplateName parent, String tagTemplateFieldId, TagTemplateField tagTemplateField) - *

  • createTagTemplateField(String parent, String tagTemplateFieldId, TagTemplateField tagTemplateField) - *

- *

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

- *
    - *
  • createTagTemplateFieldCallable() - *

- *

UpdateTagTemplateField

Updates a field in a tag template. This method cannot be used to update the field type. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • updateTagTemplateField(UpdateTagTemplateFieldRequest request) - *

- *

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

- *
    - *
  • updateTagTemplateField(TagTemplateFieldName name, TagTemplateField tagTemplateField) - *

  • updateTagTemplateField(String name, TagTemplateField tagTemplateField) - *

  • updateTagTemplateField(TagTemplateFieldName name, TagTemplateField tagTemplateField, FieldMask updateMask) - *

  • updateTagTemplateField(String name, TagTemplateField tagTemplateField, 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.

- *
    - *
  • updateTagTemplateFieldCallable() - *

- *

RenameTagTemplateField

Renames a field in a tag template. The user should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • renameTagTemplateField(RenameTagTemplateFieldRequest request) - *

- *

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

- *
    - *
  • renameTagTemplateField(TagTemplateFieldName name, String newTagTemplateFieldId) - *

  • renameTagTemplateField(String name, String newTagTemplateFieldId) - *

- *

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

- *
    - *
  • renameTagTemplateFieldCallable() - *

- *

RenameTagTemplateFieldEnumValue

Renames an enum value in a tag template. The enum values have to be unique within one enum field. Thus, an enum value cannot be renamed with a name used in any other enum value within the same enum field.

- *

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

- *
    - *
  • renameTagTemplateFieldEnumValue(RenameTagTemplateFieldEnumValueRequest request) - *

- *

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

- *
    - *
  • renameTagTemplateFieldEnumValue(TagTemplateFieldEnumValueName name, String newEnumValueDisplayName) - *

  • renameTagTemplateFieldEnumValue(String name, String newEnumValueDisplayName) - *

- *

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

- *
    - *
  • renameTagTemplateFieldEnumValueCallable() - *

- *

DeleteTagTemplateField

Deletes a field in a tag template and all uses of that field. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information).

- *

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

- *
    - *
  • deleteTagTemplateField(DeleteTagTemplateFieldRequest request) - *

- *

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

- *
    - *
  • deleteTagTemplateField(TagTemplateFieldName name, boolean force) - *

  • deleteTagTemplateField(String name, boolean force) - *

- *

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

- *
    - *
  • deleteTagTemplateFieldCallable() - *

- *

CreateTag

Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry]. Note: The project identified by the `parent` parameter for the [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters) and the [tag template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters) used to create the tag must be from the same organization.

- *

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

- *
    - *
  • createTag(CreateTagRequest request) - *

- *

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

- *
    - *
  • createTag(EntryName parent, Tag tag) - *

  • createTag(String parent, Tag tag) - *

- *

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

- *
    - *
  • createTagCallable() - *

- *

UpdateTag

Updates an existing tag.

- *

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

- *
    - *
  • updateTag(UpdateTagRequest request) - *

- *

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

- *
    - *
  • updateTag(Tag tag) - *

  • updateTag(Tag tag, 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.

- *
    - *
  • updateTagCallable() - *

- *

DeleteTag

Deletes a tag.

- *

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

- *
    - *
  • deleteTag(DeleteTagRequest request) - *

- *

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

- *
    - *
  • deleteTag(EntryName name) - *

  • deleteTag(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.

- *
    - *
  • deleteTagCallable() - *

- *

ListTags

Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry]. The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response are lowercased.

- *

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

- *
    - *
  • listTags(ListTagsRequest request) - *

- *

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

- *
    - *
  • listTags(EntryName parent) - *

  • listTags(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.

- *
    - *
  • listTagsPagedCallable() - *

  • listTagsCallable() - *

- *

SetIamPolicy

Sets the access control policy for a resource. Replaces any existing policy. Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data Catalog. - *

Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.

- *

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

- *
    - *
  • setIamPolicy(SetIamPolicyRequest request) - *

- *

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

- *
    - *
  • setIamPolicy(ResourceName resource, Policy policy) - *

  • setIamPolicy(String resource, Policy policy) - *

- *

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. A `NOT_FOUND` error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it. - *

Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data Catalog. - *

Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.

- *

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

- *
    - *
  • getIamPolicy(GetIamPolicyRequest request) - *

- *

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

- *
    - *
  • getIamPolicy(ResourceName resource) - *

  • getIamPolicy(String resource) - *

- *

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 the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (We don't return a `NOT_FOUND` error). - *

Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced to Data Catalog. - *

A caller is not required to have Google IAM permission to make this request.

- *

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 DataCatalogSettings 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
- * DataCatalogSettings dataCatalogSettings =
- *     DataCatalogSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings);
- * }
- * - *

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
- * DataCatalogSettings dataCatalogSettings =
- *     DataCatalogSettings.newBuilder().setEndpoint(myEndpoint).build();
- * DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings);
- * }
- * - *

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
- * DataCatalogSettings dataCatalogSettings = DataCatalogSettings.newHttpJsonBuilder().build();
- * DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@BetaApi -@Deprecated -@Generated("by gapic-generator-java") -public class DataCatalogClient implements BackgroundResource { - private final @Nullable DataCatalogSettings settings; - private final DataCatalogStub stub; - - /** Constructs an instance of DataCatalogClient with default settings. */ - public static final DataCatalogClient create() throws IOException { - return create(DataCatalogSettings.newBuilder().build()); - } - - /** - * Constructs an instance of DataCatalogClient, 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 DataCatalogClient create(DataCatalogSettings settings) throws IOException { - return new DataCatalogClient(settings); - } - - /** - * Constructs an instance of DataCatalogClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(DataCatalogSettings). - */ - public static final DataCatalogClient create(DataCatalogStub stub) { - return new DataCatalogClient(stub); - } - - /** - * Constructs an instance of DataCatalogClient, 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 DataCatalogClient(DataCatalogSettings settings) throws IOException { - this.settings = settings; - this.stub = ((DataCatalogStubSettings) settings.getStubSettings()).createStub(); - } - - protected DataCatalogClient(DataCatalogStub stub) { - this.settings = null; - this.stub = stub; - } - - public final @Nullable DataCatalogSettings getSettings() { - return settings; - } - - public DataCatalogStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches Data Catalog for multiple resources like entries, tags that match a query. - * - *

This is a custom method (https://cloud.google.com/apis/design/custom_methods) and does not - * return the complete resource, only the resource identifier and high level fields. Clients can - * subsequently call `Get` methods. - * - *

Note that Data Catalog search queries do not guarantee full recall. Query results that match - * your query may not be returned, even in subsequent result pages. Also note that results - * returned (and not returned) can vary across repeated search queries. - * - *

See [Data Catalog Search - * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference) for more - * information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build();
-   *   String query = "query107944136";
-   *   for (SearchCatalogResult element :
-   *       dataCatalogClient.searchCatalog(scope, query).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param scope Required. The scope of this search request. A `scope` that has empty - * `include_org_ids`, `include_project_ids` AND false `include_gcp_public_datasets` is - * considered invalid. Data Catalog will return an error in such a case. - * @param query Optional. The query string in search query syntax. An empty query string will - * result in all data assets (in the specified scope) that the user has access to. Query - * strings can be simple as "x" or more qualified as: - *
    - *
  • name:x - *
  • column:x - *
  • description:y - *
- *

Note: Query tokens need to have a minimum of 3 characters for substring matching to work - * correctly. See [Data Catalog Search - * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference) for more - * information. - * @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 SearchCatalogPagedResponse searchCatalog( - SearchCatalogRequest.Scope scope, String query) { - SearchCatalogRequest request = - SearchCatalogRequest.newBuilder().setScope(scope).setQuery(query).build(); - return searchCatalog(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches Data Catalog for multiple resources like entries, tags that match a query. - * - *

This is a custom method (https://cloud.google.com/apis/design/custom_methods) and does not - * return the complete resource, only the resource identifier and high level fields. Clients can - * subsequently call `Get` methods. - * - *

Note that Data Catalog search queries do not guarantee full recall. Query results that match - * your query may not be returned, even in subsequent result pages. Also note that results - * returned (and not returned) can vary across repeated search queries. - * - *

See [Data Catalog Search - * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference) for more - * information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SearchCatalogRequest request =
-   *       SearchCatalogRequest.newBuilder()
-   *           .setScope(SearchCatalogRequest.Scope.newBuilder().build())
-   *           .setQuery("query107944136")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   for (SearchCatalogResult element : dataCatalogClient.searchCatalog(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final SearchCatalogPagedResponse searchCatalog(SearchCatalogRequest request) { - return searchCatalogPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches Data Catalog for multiple resources like entries, tags that match a query. - * - *

This is a custom method (https://cloud.google.com/apis/design/custom_methods) and does not - * return the complete resource, only the resource identifier and high level fields. Clients can - * subsequently call `Get` methods. - * - *

Note that Data Catalog search queries do not guarantee full recall. Query results that match - * your query may not be returned, even in subsequent result pages. Also note that results - * returned (and not returned) can vary across repeated search queries. - * - *

See [Data Catalog Search - * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference) for more - * information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SearchCatalogRequest request =
-   *       SearchCatalogRequest.newBuilder()
-   *           .setScope(SearchCatalogRequest.Scope.newBuilder().build())
-   *           .setQuery("query107944136")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.searchCatalogPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (SearchCatalogResult element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - searchCatalogPagedCallable() { - return stub.searchCatalogPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Searches Data Catalog for multiple resources like entries, tags that match a query. - * - *

This is a custom method (https://cloud.google.com/apis/design/custom_methods) and does not - * return the complete resource, only the resource identifier and high level fields. Clients can - * subsequently call `Get` methods. - * - *

Note that Data Catalog search queries do not guarantee full recall. Query results that match - * your query may not be returned, even in subsequent result pages. Also note that results - * returned (and not returned) can vary across repeated search queries. - * - *

See [Data Catalog Search - * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference) for more - * information. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SearchCatalogRequest request =
-   *       SearchCatalogRequest.newBuilder()
-   *           .setScope(SearchCatalogRequest.Scope.newBuilder().build())
-   *           .setQuery("query107944136")
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setOrderBy("orderBy-1207110587")
-   *           .build();
-   *   while (true) {
-   *     SearchCatalogResponse response = dataCatalogClient.searchCatalogCallable().call(request);
-   *     for (SearchCatalogResult element : response.getResultsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable searchCatalogCallable() { - return stub.searchCatalogCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * A maximum of 10,000 entry groups may be created per organization across all locations. - * - *

Users should enable the Data Catalog API in the project identified by the `parent` parameter - * (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String entryGroupId = "entryGroupId1228924712";
-   *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
-   * }
-   * }
- * - * @param parent Required. The name of the project this entry group is in. Example: - *
    - *
  • projects/{project_id}/locations/{location} - *
- *

Note that this EntryGroup and its child resources may not actually be stored in the - * location in this name. - * @param entryGroupId Required. The id of the entry group to create. The id must begin with a - * letter or underscore, contain only English letters, numbers and underscores, and be at most - * 64 characters. - * @param entryGroup The entry group to create. Defaults to an empty entry group. - * @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 EntryGroup createEntryGroup( - @Nullable LocationName parent, String entryGroupId, EntryGroup entryGroup) { - CreateEntryGroupRequest request = - CreateEntryGroupRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setEntryGroupId(entryGroupId) - .setEntryGroup(entryGroup) - .build(); - return createEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * A maximum of 10,000 entry groups may be created per organization across all locations. - * - *

Users should enable the Data Catalog API in the project identified by the `parent` parameter - * (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String entryGroupId = "entryGroupId1228924712";
-   *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
-   * }
-   * }
- * - * @param parent Required. The name of the project this entry group is in. Example: - *
    - *
  • projects/{project_id}/locations/{location} - *
- *

Note that this EntryGroup and its child resources may not actually be stored in the - * location in this name. - * @param entryGroupId Required. The id of the entry group to create. The id must begin with a - * letter or underscore, contain only English letters, numbers and underscores, and be at most - * 64 characters. - * @param entryGroup The entry group to create. Defaults to an empty entry group. - * @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 EntryGroup createEntryGroup( - String parent, String entryGroupId, EntryGroup entryGroup) { - CreateEntryGroupRequest request = - CreateEntryGroupRequest.newBuilder() - .setParent(parent) - .setEntryGroupId(entryGroupId) - .setEntryGroup(entryGroup) - .build(); - return createEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * A maximum of 10,000 entry groups may be created per organization across all locations. - * - *

Users should enable the Data Catalog API in the project identified by the `parent` parameter - * (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateEntryGroupRequest request =
-   *       CreateEntryGroupRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setEntryGroupId("entryGroupId1228924712")
-   *           .setEntryGroup(EntryGroup.newBuilder().build())
-   *           .build();
-   *   EntryGroup response = dataCatalogClient.createEntryGroup(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final EntryGroup createEntryGroup(CreateEntryGroupRequest request) { - return createEntryGroupCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * A maximum of 10,000 entry groups may be created per organization across all locations. - * - *

Users should enable the Data Catalog API in the project identified by the `parent` parameter - * (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateEntryGroupRequest request =
-   *       CreateEntryGroupRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setEntryGroupId("entryGroupId1228924712")
-   *           .setEntryGroup(EntryGroup.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.createEntryGroupCallable().futureCall(request);
-   *   // Do something.
-   *   EntryGroup response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable createEntryGroupCallable() { - return stub.createEntryGroupCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an EntryGroup. The user should enable the Data Catalog API in the project identified by - * the `entry_group.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.updateEntryGroup(entryGroup);
-   * }
-   * }
- * - * @param entryGroup Required. The updated entry group. "name" field must be set. - * @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 EntryGroup updateEntryGroup(EntryGroup entryGroup) { - UpdateEntryGroupRequest request = - UpdateEntryGroupRequest.newBuilder().setEntryGroup(entryGroup).build(); - return updateEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an EntryGroup. The user should enable the Data Catalog API in the project identified by - * the `entry_group.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.updateEntryGroup(entryGroup, updateMask);
-   * }
-   * }
- * - * @param entryGroup Required. The updated entry group. "name" field must be set. - * @param updateMask Names of fields whose values to overwrite on an entry group. - *

If this parameter is absent or empty, all modifiable fields are overwritten. If such - * fields are non-required and omitted in the request body, their values are emptied. - * @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 EntryGroup updateEntryGroup(EntryGroup entryGroup, FieldMask updateMask) { - UpdateEntryGroupRequest request = - UpdateEntryGroupRequest.newBuilder() - .setEntryGroup(entryGroup) - .setUpdateMask(updateMask) - .build(); - return updateEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an EntryGroup. The user should enable the Data Catalog API in the project identified by - * the `entry_group.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateEntryGroupRequest request =
-   *       UpdateEntryGroupRequest.newBuilder()
-   *           .setEntryGroup(EntryGroup.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   EntryGroup response = dataCatalogClient.updateEntryGroup(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final EntryGroup updateEntryGroup(UpdateEntryGroupRequest request) { - return updateEntryGroupCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an EntryGroup. The user should enable the Data Catalog API in the project identified by - * the `entry_group.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateEntryGroupRequest request =
-   *       UpdateEntryGroupRequest.newBuilder()
-   *           .setEntryGroup(EntryGroup.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.updateEntryGroupCallable().futureCall(request);
-   *   // Do something.
-   *   EntryGroup response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable updateEntryGroupCallable() { - return stub.updateEntryGroupCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an EntryGroup. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   EntryGroup response = dataCatalogClient.getEntryGroup(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - * @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 EntryGroup getEntryGroup(@Nullable EntryGroupName name) { - GetEntryGroupRequest request = - GetEntryGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an EntryGroup. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
-   *   EntryGroup response = dataCatalogClient.getEntryGroup(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - * @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 EntryGroup getEntryGroup(String name) { - GetEntryGroupRequest request = GetEntryGroupRequest.newBuilder().setName(name).build(); - return getEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an EntryGroup. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   FieldMask readMask = FieldMask.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.getEntryGroup(name, readMask);
-   * }
-   * }
- * - * @param name Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - * @param readMask The fields to return. If not set or empty, all fields are returned. - * @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 EntryGroup getEntryGroup(@Nullable EntryGroupName name, FieldMask readMask) { - GetEntryGroupRequest request = - GetEntryGroupRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setReadMask(readMask) - .build(); - return getEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an EntryGroup. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
-   *   FieldMask readMask = FieldMask.newBuilder().build();
-   *   EntryGroup response = dataCatalogClient.getEntryGroup(name, readMask);
-   * }
-   * }
- * - * @param name Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - * @param readMask The fields to return. If not set or empty, all fields are returned. - * @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 EntryGroup getEntryGroup(String name, FieldMask readMask) { - GetEntryGroupRequest request = - GetEntryGroupRequest.newBuilder().setName(name).setReadMask(readMask).build(); - return getEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an EntryGroup. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetEntryGroupRequest request =
-   *       GetEntryGroupRequest.newBuilder()
-   *           .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   EntryGroup response = dataCatalogClient.getEntryGroup(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final EntryGroup getEntryGroup(GetEntryGroupRequest request) { - return getEntryGroupCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an EntryGroup. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetEntryGroupRequest request =
-   *       GetEntryGroupRequest.newBuilder()
-   *           .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.getEntryGroupCallable().futureCall(request);
-   *   // Do something.
-   *   EntryGroup response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable getEntryGroupCallable() { - return stub.getEntryGroupCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   dataCatalogClient.deleteEntryGroup(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - * @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 void deleteEntryGroup(@Nullable EntryGroupName name) { - DeleteEntryGroupRequest request = - DeleteEntryGroupRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
-   *   dataCatalogClient.deleteEntryGroup(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry group. For example, - * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - * @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 void deleteEntryGroup(String name) { - DeleteEntryGroupRequest request = DeleteEntryGroupRequest.newBuilder().setName(name).build(); - deleteEntryGroup(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteEntryGroupRequest request =
-   *       DeleteEntryGroupRequest.newBuilder()
-   *           .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setForce(true)
-   *           .build();
-   *   dataCatalogClient.deleteEntryGroup(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final void deleteEntryGroup(DeleteEntryGroupRequest request) { - deleteEntryGroupCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an EntryGroup. Only entry groups that do not contain entries can be deleted. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteEntryGroupRequest request =
-   *       DeleteEntryGroupRequest.newBuilder()
-   *           .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setForce(true)
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.deleteEntryGroupCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable deleteEntryGroupCallable() { - return stub.deleteEntryGroupCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (EntryGroup element : dataCatalogClient.listEntryGroups(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the location that contains the entry groups, which can be - * provided in URL format. Example: - *
    - *
  • projects/{project_id}/locations/{location} - *
- * - * @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 ListEntryGroupsPagedResponse listEntryGroups(@Nullable LocationName parent) { - ListEntryGroupsRequest request = - ListEntryGroupsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listEntryGroups(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (EntryGroup element : dataCatalogClient.listEntryGroups(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the location that contains the entry groups, which can be - * provided in URL format. Example: - *
    - *
  • projects/{project_id}/locations/{location} - *
- * - * @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 ListEntryGroupsPagedResponse listEntryGroups(String parent) { - ListEntryGroupsRequest request = ListEntryGroupsRequest.newBuilder().setParent(parent).build(); - return listEntryGroups(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntryGroupsRequest request =
-   *       ListEntryGroupsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (EntryGroup element : dataCatalogClient.listEntryGroups(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final ListEntryGroupsPagedResponse listEntryGroups(ListEntryGroupsRequest request) { - return listEntryGroupsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntryGroupsRequest request =
-   *       ListEntryGroupsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.listEntryGroupsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (EntryGroup element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - listEntryGroupsPagedCallable() { - return stub.listEntryGroupsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntryGroupsRequest request =
-   *       ListEntryGroupsRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListEntryGroupsResponse response =
-   *         dataCatalogClient.listEntryGroupsCallable().call(request);
-   *     for (EntryGroup element : response.getEntryGroupsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - listEntryGroupsCallable() { - return stub.listEntryGroupsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry. Only entries of 'FILESET' type or user-specified type can be created. - * - *

Users should enable the Data Catalog API in the project identified by the `parent` parameter - * (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

A maximum of 100,000 entries may be created per entry group. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   String entryId = "entryId-1591558867";
-   *   Entry entry = Entry.newBuilder().build();
-   *   Entry response = dataCatalogClient.createEntry(parent, entryId, entry);
-   * }
-   * }
- * - * @param parent Required. The name of the entry group this entry is in. Example: - *
    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - *
- *

Note that this Entry and its child resources may not actually be stored in the location - * in this name. - * @param entryId Required. The id of the entry to create. - * @param entry Required. The entry to create. - * @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 Entry createEntry(@Nullable EntryGroupName parent, String entryId, Entry entry) { - CreateEntryRequest request = - CreateEntryRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setEntryId(entryId) - .setEntry(entry) - .build(); - return createEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry. Only entries of 'FILESET' type or user-specified type can be created. - * - *

Users should enable the Data Catalog API in the project identified by the `parent` parameter - * (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

A maximum of 100,000 entries may be created per entry group. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
-   *   String entryId = "entryId-1591558867";
-   *   Entry entry = Entry.newBuilder().build();
-   *   Entry response = dataCatalogClient.createEntry(parent, entryId, entry);
-   * }
-   * }
- * - * @param parent Required. The name of the entry group this entry is in. Example: - *
    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - *
- *

Note that this Entry and its child resources may not actually be stored in the location - * in this name. - * @param entryId Required. The id of the entry to create. - * @param entry Required. The entry to create. - * @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 Entry createEntry(String parent, String entryId, Entry entry) { - CreateEntryRequest request = - CreateEntryRequest.newBuilder() - .setParent(parent) - .setEntryId(entryId) - .setEntry(entry) - .build(); - return createEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry. Only entries of 'FILESET' type or user-specified type can be created. - * - *

Users should enable the Data Catalog API in the project identified by the `parent` parameter - * (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

A maximum of 100,000 entries may be created per entry group. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateEntryRequest request =
-   *       CreateEntryRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setEntryId("entryId-1591558867")
-   *           .setEntry(Entry.newBuilder().build())
-   *           .build();
-   *   Entry response = dataCatalogClient.createEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Entry createEntry(CreateEntryRequest request) { - return createEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an entry. Only entries of 'FILESET' type or user-specified type can be created. - * - *

Users should enable the Data Catalog API in the project identified by the `parent` parameter - * (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

A maximum of 100,000 entries may be created per entry group. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateEntryRequest request =
-   *       CreateEntryRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setEntryId("entryId-1591558867")
-   *           .setEntry(Entry.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.createEntryCallable().futureCall(request);
-   *   // Do something.
-   *   Entry response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable createEntryCallable() { - return stub.createEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing entry. Users should enable the Data Catalog API in the project identified - * by the `entry.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   Entry entry = Entry.newBuilder().build();
-   *   Entry response = dataCatalogClient.updateEntry(entry);
-   * }
-   * }
- * - * @param entry Required. The updated entry. The "name" field must be set. - * @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 Entry updateEntry(Entry entry) { - UpdateEntryRequest request = UpdateEntryRequest.newBuilder().setEntry(entry).build(); - return updateEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing entry. Users should enable the Data Catalog API in the project identified - * by the `entry.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   Entry entry = Entry.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Entry response = dataCatalogClient.updateEntry(entry, updateMask);
-   * }
-   * }
- * - * @param entry Required. The updated entry. The "name" field must be set. - * @param updateMask Names of fields whose values to overwrite on an entry. - *

If this parameter is absent or empty, all modifiable fields are overwritten. If such - * fields are non-required and omitted in the request body, their values are emptied. - *

The following fields are modifiable: - *

    - *
  • For entries with type `DATA_STREAM`: * `schema` - *
  • For entries with type `FILESET`: * `schema` * `display_name` * - * `description` * `gcs_fileset_spec` * `gcs_fileset_spec.file_patterns` - *
  • For entries with `user_specified_type`: * `schema` * `display_name` * - * `description` * `user_specified_type` * `user_specified_system` * - * `linked_resource` * `source_system_timestamps` - *
- * - * @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 Entry updateEntry(Entry entry, FieldMask updateMask) { - UpdateEntryRequest request = - UpdateEntryRequest.newBuilder().setEntry(entry).setUpdateMask(updateMask).build(); - return updateEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing entry. Users should enable the Data Catalog API in the project identified - * by the `entry.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateEntryRequest request =
-   *       UpdateEntryRequest.newBuilder()
-   *           .setEntry(Entry.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Entry response = dataCatalogClient.updateEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Entry updateEntry(UpdateEntryRequest request) { - return updateEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing entry. Users should enable the Data Catalog API in the project identified - * by the `entry.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateEntryRequest request =
-   *       UpdateEntryRequest.newBuilder()
-   *           .setEntry(Entry.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.updateEntryCallable().futureCall(request);
-   *   // Do something.
-   *   Entry response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable updateEntryCallable() { - return stub.updateEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing entry. Only entries created through - * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry] method can be deleted. - * Users should enable the Data Catalog API in the project identified by the `name` parameter (see - * [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   dataCatalogClient.deleteEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry. Example: - *
    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - *
- * - * @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 void deleteEntry(@Nullable EntryName name) { - DeleteEntryRequest request = - DeleteEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing entry. Only entries created through - * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry] method can be deleted. - * Users should enable the Data Catalog API in the project identified by the `name` parameter (see - * [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   dataCatalogClient.deleteEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry. Example: - *
    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - *
- * - * @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 void deleteEntry(String name) { - DeleteEntryRequest request = DeleteEntryRequest.newBuilder().setName(name).build(); - deleteEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing entry. Only entries created through - * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry] method can be deleted. - * Users should enable the Data Catalog API in the project identified by the `name` parameter (see - * [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteEntryRequest request =
-   *       DeleteEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   dataCatalogClient.deleteEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final void deleteEntry(DeleteEntryRequest request) { - deleteEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes an existing entry. Only entries created through - * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry] method can be deleted. - * Users should enable the Data Catalog API in the project identified by the `name` parameter (see - * [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteEntryRequest request =
-   *       DeleteEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.deleteEntryCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable deleteEntryCallable() { - return stub.deleteEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   Entry response = dataCatalogClient.getEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry. Example: - *
    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - *
- * - * @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 Entry getEntry(@Nullable EntryName name) { - GetEntryRequest request = - GetEntryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   Entry response = dataCatalogClient.getEntry(name);
-   * }
-   * }
- * - * @param name Required. The name of the entry. Example: - *
    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - *
- * - * @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 Entry getEntry(String name) { - GetEntryRequest request = GetEntryRequest.newBuilder().setName(name).build(); - return getEntry(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetEntryRequest request =
-   *       GetEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   Entry response = dataCatalogClient.getEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Entry getEntry(GetEntryRequest request) { - return getEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets an entry. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetEntryRequest request =
-   *       GetEntryRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.getEntryCallable().futureCall(request);
-   *   // Do something.
-   *   Entry response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable getEntryCallable() { - return stub.getEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get an entry by target resource name. This method allows clients to use the resource name from - * the source Google Cloud Platform service to get the Data Catalog Entry. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   LookupEntryRequest request = LookupEntryRequest.newBuilder().build();
-   *   Entry response = dataCatalogClient.lookupEntry(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Entry lookupEntry(LookupEntryRequest request) { - return lookupEntryCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Get an entry by target resource name. This method allows clients to use the resource name from - * the source Google Cloud Platform service to get the Data Catalog Entry. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   LookupEntryRequest request = LookupEntryRequest.newBuilder().build();
-   *   ApiFuture future = dataCatalogClient.lookupEntryCallable().futureCall(request);
-   *   // Do something.
-   *   Entry response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable lookupEntryCallable() { - return stub.lookupEntryCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entries. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   for (Entry element : dataCatalogClient.listEntries(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the entry group that contains the entries, which can be - * provided in URL format. Example: - *
    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - *
- * - * @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 ListEntriesPagedResponse listEntries(@Nullable EntryGroupName parent) { - ListEntriesRequest request = - ListEntriesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listEntries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entries. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString();
-   *   for (Entry element : dataCatalogClient.listEntries(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the entry group that contains the entries, which can be - * provided in URL format. Example: - *
    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - *
- * - * @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 ListEntriesPagedResponse listEntries(String parent) { - ListEntriesRequest request = ListEntriesRequest.newBuilder().setParent(parent).build(); - return listEntries(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entries. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntriesRequest request =
-   *       ListEntriesRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   for (Entry element : dataCatalogClient.listEntries(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final ListEntriesPagedResponse listEntries(ListEntriesRequest request) { - return listEntriesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entries. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntriesRequest request =
-   *       ListEntriesRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.listEntriesPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Entry element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - listEntriesPagedCallable() { - return stub.listEntriesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists entries. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListEntriesRequest request =
-   *       ListEntriesRequest.newBuilder()
-   *           .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setReadMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   while (true) {
-   *     ListEntriesResponse response = dataCatalogClient.listEntriesCallable().call(request);
-   *     for (Entry element : response.getEntriesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable listEntriesCallable() { - return stub.listEntriesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag template. The user should enable the Data Catalog API in the project identified - * by the `parent` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   String tagTemplateId = "tagTemplateId-1438776721";
-   *   TagTemplate tagTemplate = TagTemplate.newBuilder().build();
-   *   TagTemplate response =
-   *       dataCatalogClient.createTagTemplate(parent, tagTemplateId, tagTemplate);
-   * }
-   * }
- * - * @param parent Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions. - *

Example: - *

    - *
  • projects/{project_id}/locations/us-central1 - *
- * - * @param tagTemplateId Required. The id of the tag template to create. - * @param tagTemplate Required. The tag template to create. - * @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 TagTemplate createTagTemplate( - @Nullable LocationName parent, String tagTemplateId, TagTemplate tagTemplate) { - CreateTagTemplateRequest request = - CreateTagTemplateRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTagTemplateId(tagTemplateId) - .setTagTemplate(tagTemplate) - .build(); - return createTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag template. The user should enable the Data Catalog API in the project identified - * by the `parent` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   String tagTemplateId = "tagTemplateId-1438776721";
-   *   TagTemplate tagTemplate = TagTemplate.newBuilder().build();
-   *   TagTemplate response =
-   *       dataCatalogClient.createTagTemplate(parent, tagTemplateId, tagTemplate);
-   * }
-   * }
- * - * @param parent Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions. - *

Example: - *

    - *
  • projects/{project_id}/locations/us-central1 - *
- * - * @param tagTemplateId Required. The id of the tag template to create. - * @param tagTemplate Required. The tag template to create. - * @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 TagTemplate createTagTemplate( - String parent, String tagTemplateId, TagTemplate tagTemplate) { - CreateTagTemplateRequest request = - CreateTagTemplateRequest.newBuilder() - .setParent(parent) - .setTagTemplateId(tagTemplateId) - .setTagTemplate(tagTemplate) - .build(); - return createTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag template. The user should enable the Data Catalog API in the project identified - * by the `parent` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagTemplateRequest request =
-   *       CreateTagTemplateRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setTagTemplateId("tagTemplateId-1438776721")
-   *           .setTagTemplate(TagTemplate.newBuilder().build())
-   *           .build();
-   *   TagTemplate response = dataCatalogClient.createTagTemplate(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplate createTagTemplate(CreateTagTemplateRequest request) { - return createTagTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag template. The user should enable the Data Catalog API in the project identified - * by the `parent` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagTemplateRequest request =
-   *       CreateTagTemplateRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setTagTemplateId("tagTemplateId-1438776721")
-   *           .setTagTemplate(TagTemplate.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.createTagTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplate response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable createTagTemplateCallable() { - return stub.createTagTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a tag 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
-   *   TagTemplate response = dataCatalogClient.getTagTemplate(name);
-   * }
-   * }
- * - * @param name Required. The name of the tag template. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - *
- * - * @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 TagTemplate getTagTemplate(@Nullable TagTemplateName name) { - GetTagTemplateRequest request = - GetTagTemplateRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a tag 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString();
-   *   TagTemplate response = dataCatalogClient.getTagTemplate(name);
-   * }
-   * }
- * - * @param name Required. The name of the tag template. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - *
- * - * @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 TagTemplate getTagTemplate(String name) { - GetTagTemplateRequest request = GetTagTemplateRequest.newBuilder().setName(name).build(); - return getTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a tag 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetTagTemplateRequest request =
-   *       GetTagTemplateRequest.newBuilder()
-   *           .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .build();
-   *   TagTemplate response = dataCatalogClient.getTagTemplate(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplate getTagTemplate(GetTagTemplateRequest request) { - return getTagTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a tag 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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetTagTemplateRequest request =
-   *       GetTagTemplateRequest.newBuilder()
-   *           .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.getTagTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplate response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable getTagTemplateCallable() { - return stub.getTagTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a tag template. This method cannot be used to update the fields of a template. The tag - * template fields are represented as separate resources and should be updated using their own - * create/update/delete methods. Users should enable the Data Catalog API in the project - * identified by the `tag_template.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplate tagTemplate = TagTemplate.newBuilder().build();
-   *   TagTemplate response = dataCatalogClient.updateTagTemplate(tagTemplate);
-   * }
-   * }
- * - * @param tagTemplate Required. The template to update. The "name" field must be set. - * @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 TagTemplate updateTagTemplate(TagTemplate tagTemplate) { - UpdateTagTemplateRequest request = - UpdateTagTemplateRequest.newBuilder().setTagTemplate(tagTemplate).build(); - return updateTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a tag template. This method cannot be used to update the fields of a template. The tag - * template fields are represented as separate resources and should be updated using their own - * create/update/delete methods. Users should enable the Data Catalog API in the project - * identified by the `tag_template.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplate tagTemplate = TagTemplate.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   TagTemplate response = dataCatalogClient.updateTagTemplate(tagTemplate, updateMask);
-   * }
-   * }
- * - * @param tagTemplate Required. The template to update. The "name" field must be set. - * @param updateMask Names of fields whose values to overwrite on a tag template. Currently, only - * `display_name` can be overwritten. - *

In general, if this parameter is absent or empty, all modifiable fields are overwritten. - * If such fields are non-required and omitted in the request body, their values are emptied. - * @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 TagTemplate updateTagTemplate(TagTemplate tagTemplate, FieldMask updateMask) { - UpdateTagTemplateRequest request = - UpdateTagTemplateRequest.newBuilder() - .setTagTemplate(tagTemplate) - .setUpdateMask(updateMask) - .build(); - return updateTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a tag template. This method cannot be used to update the fields of a template. The tag - * template fields are represented as separate resources and should be updated using their own - * create/update/delete methods. Users should enable the Data Catalog API in the project - * identified by the `tag_template.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagTemplateRequest request =
-   *       UpdateTagTemplateRequest.newBuilder()
-   *           .setTagTemplate(TagTemplate.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   TagTemplate response = dataCatalogClient.updateTagTemplate(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplate updateTagTemplate(UpdateTagTemplateRequest request) { - return updateTagTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a tag template. This method cannot be used to update the fields of a template. The tag - * template fields are represented as separate resources and should be updated using their own - * create/update/delete methods. Users should enable the Data Catalog API in the project - * identified by the `tag_template.name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagTemplateRequest request =
-   *       UpdateTagTemplateRequest.newBuilder()
-   *           .setTagTemplate(TagTemplate.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.updateTagTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplate response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable updateTagTemplateCallable() { - return stub.updateTagTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag template and all tags using the template. Users should enable the Data Catalog - * API in the project identified by the `name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
-   *   boolean force = true;
-   *   dataCatalogClient.deleteTagTemplate(name, force);
-   * }
-   * }
- * - * @param name Required. The name of the tag template to delete. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - *
- * - * @param force Required. Currently, this field must always be set to `true`. This confirms the - * deletion of any possible tags using this template. `force = false` will be supported in the - * future. - * @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 void deleteTagTemplate(@Nullable TagTemplateName name, boolean force) { - DeleteTagTemplateRequest request = - DeleteTagTemplateRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setForce(force) - .build(); - deleteTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag template and all tags using the template. Users should enable the Data Catalog - * API in the project identified by the `name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString();
-   *   boolean force = true;
-   *   dataCatalogClient.deleteTagTemplate(name, force);
-   * }
-   * }
- * - * @param name Required. The name of the tag template to delete. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - *
- * - * @param force Required. Currently, this field must always be set to `true`. This confirms the - * deletion of any possible tags using this template. `force = false` will be supported in the - * future. - * @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 void deleteTagTemplate(String name, boolean force) { - DeleteTagTemplateRequest request = - DeleteTagTemplateRequest.newBuilder().setName(name).setForce(force).build(); - deleteTagTemplate(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag template and all tags using the template. Users should enable the Data Catalog - * API in the project identified by the `name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagTemplateRequest request =
-   *       DeleteTagTemplateRequest.newBuilder()
-   *           .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setForce(true)
-   *           .build();
-   *   dataCatalogClient.deleteTagTemplate(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final void deleteTagTemplate(DeleteTagTemplateRequest request) { - deleteTagTemplateCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag template and all tags using the template. Users should enable the Data Catalog - * API in the project identified by the `name` parameter (see [Data Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagTemplateRequest request =
-   *       DeleteTagTemplateRequest.newBuilder()
-   *           .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setForce(true)
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.deleteTagTemplateCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable deleteTagTemplateCallable() { - return stub.deleteTagTemplateCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a field in a tag template. The user should enable the Data Catalog API in the project - * identified by the `parent` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]");
-   *   String tagTemplateFieldId = "tagTemplateFieldId-1556835615";
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   TagTemplateField response =
-   *       dataCatalogClient.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField);
-   * }
-   * }
- * - * @param parent Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - *

Example: - *

    - *
  • projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id} - *
- * - * @param tagTemplateFieldId Required. The ID of the tag template field to create. Field ids can - * contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes - * (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs - * must also be unique within their template. - * @param tagTemplateField Required. The tag template field to create. - * @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 TagTemplateField createTagTemplateField( - @Nullable TagTemplateName parent, - String tagTemplateFieldId, - TagTemplateField tagTemplateField) { - CreateTagTemplateFieldRequest request = - CreateTagTemplateFieldRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTagTemplateFieldId(tagTemplateFieldId) - .setTagTemplateField(tagTemplateField) - .build(); - return createTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a field in a tag template. The user should enable the Data Catalog API in the project - * identified by the `parent` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString();
-   *   String tagTemplateFieldId = "tagTemplateFieldId-1556835615";
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   TagTemplateField response =
-   *       dataCatalogClient.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField);
-   * }
-   * }
- * - * @param parent Required. The name of the project and the template location - * [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - *

Example: - *

    - *
  • projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id} - *
- * - * @param tagTemplateFieldId Required. The ID of the tag template field to create. Field ids can - * contain letters (both uppercase and lowercase), numbers (0-9), underscores (_) and dashes - * (-). Field IDs must be at least 1 character long and at most 128 characters long. Field IDs - * must also be unique within their template. - * @param tagTemplateField Required. The tag template field to create. - * @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 TagTemplateField createTagTemplateField( - String parent, String tagTemplateFieldId, TagTemplateField tagTemplateField) { - CreateTagTemplateFieldRequest request = - CreateTagTemplateFieldRequest.newBuilder() - .setParent(parent) - .setTagTemplateFieldId(tagTemplateFieldId) - .setTagTemplateField(tagTemplateField) - .build(); - return createTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a field in a tag template. The user should enable the Data Catalog API in the project - * identified by the `parent` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagTemplateFieldRequest request =
-   *       CreateTagTemplateFieldRequest.newBuilder()
-   *           .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setTagTemplateFieldId("tagTemplateFieldId-1556835615")
-   *           .setTagTemplateField(TagTemplateField.newBuilder().build())
-   *           .build();
-   *   TagTemplateField response = dataCatalogClient.createTagTemplateField(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplateField createTagTemplateField(CreateTagTemplateFieldRequest request) { - return createTagTemplateFieldCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a field in a tag template. The user should enable the Data Catalog API in the project - * identified by the `parent` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagTemplateFieldRequest request =
-   *       CreateTagTemplateFieldRequest.newBuilder()
-   *           .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString())
-   *           .setTagTemplateFieldId("tagTemplateFieldId-1556835615")
-   *           .setTagTemplateField(TagTemplateField.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.createTagTemplateFieldCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplateField response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - createTagTemplateFieldCallable() { - return stub.createTagTemplateFieldCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. This method cannot be used to update the field type. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateFieldName name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   TagTemplateField response = dataCatalogClient.updateTagTemplateField(name, tagTemplateField);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - *
- * - * @param tagTemplateField Required. The template to update. - * @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 TagTemplateField updateTagTemplateField( - @Nullable TagTemplateFieldName name, TagTemplateField tagTemplateField) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setTagTemplateField(tagTemplateField) - .build(); - return updateTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. This method cannot be used to update the field type. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *           .toString();
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   TagTemplateField response = dataCatalogClient.updateTagTemplateField(name, tagTemplateField);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - *
- * - * @param tagTemplateField Required. The template to update. - * @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 TagTemplateField updateTagTemplateField( - String name, TagTemplateField tagTemplateField) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName(name) - .setTagTemplateField(tagTemplateField) - .build(); - return updateTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. This method cannot be used to update the field type. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateFieldName name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   TagTemplateField response =
-   *       dataCatalogClient.updateTagTemplateField(name, tagTemplateField, updateMask);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - *
- * - * @param tagTemplateField Required. The template to update. - * @param updateMask Optional. Names of fields whose values to overwrite on an individual field of - * a tag template. The following fields are modifiable: - *

* `display_name` * `type.enum_type` * `is_required` - *

If this parameter is absent or empty, all modifiable fields are overwritten. If such - * fields are non-required and omitted in the request body, their values are emptied with one - * exception: when updating an enum type, the provided values are merged with the existing - * values. Therefore, enum values can only be added, existing enum values cannot be deleted or - * renamed. - *

Additionally, updating a template field from optional to required is - *

    - *
  • not* allowed. - *
- * - * @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 TagTemplateField updateTagTemplateField( - @Nullable TagTemplateFieldName name, - TagTemplateField tagTemplateField, - FieldMask updateMask) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setTagTemplateField(tagTemplateField) - .setUpdateMask(updateMask) - .build(); - return updateTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. This method cannot be used to update the field type. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *           .toString();
-   *   TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   TagTemplateField response =
-   *       dataCatalogClient.updateTagTemplateField(name, tagTemplateField, updateMask);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - *
- * - * @param tagTemplateField Required. The template to update. - * @param updateMask Optional. Names of fields whose values to overwrite on an individual field of - * a tag template. The following fields are modifiable: - *

* `display_name` * `type.enum_type` * `is_required` - *

If this parameter is absent or empty, all modifiable fields are overwritten. If such - * fields are non-required and omitted in the request body, their values are emptied with one - * exception: when updating an enum type, the provided values are merged with the existing - * values. Therefore, enum values can only be added, existing enum values cannot be deleted or - * renamed. - *

Additionally, updating a template field from optional to required is - *

    - *
  • not* allowed. - *
- * - * @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 TagTemplateField updateTagTemplateField( - String name, TagTemplateField tagTemplateField, FieldMask updateMask) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName(name) - .setTagTemplateField(tagTemplateField) - .setUpdateMask(updateMask) - .build(); - return updateTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. This method cannot be used to update the field type. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagTemplateFieldRequest request =
-   *       UpdateTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setTagTemplateField(TagTemplateField.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   TagTemplateField response = dataCatalogClient.updateTagTemplateField(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplateField updateTagTemplateField(UpdateTagTemplateFieldRequest request) { - return updateTagTemplateFieldCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a field in a tag template. This method cannot be used to update the field type. Users - * should enable the Data Catalog API in the project identified by the `name` parameter (see [Data - * Catalog Resource Project] - * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagTemplateFieldRequest request =
-   *       UpdateTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setTagTemplateField(TagTemplateField.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.updateTagTemplateFieldCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplateField response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - updateTagTemplateFieldCallable() { - return stub.updateTagTemplateFieldCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames a field in a tag template. The user should enable the Data Catalog API in the project - * identified by the `name` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateFieldName name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
-   *   String newTagTemplateFieldId = "newTagTemplateFieldId2008993953";
-   *   TagTemplateField response =
-   *       dataCatalogClient.renameTagTemplateField(name, newTagTemplateFieldId);
-   * }
-   * }
- * - * @param name Required. The name of the tag template. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - *
- * - * @param newTagTemplateFieldId Required. The new ID of this tag template field. For example, - * `my_new_field`. - * @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 TagTemplateField renameTagTemplateField( - @Nullable TagTemplateFieldName name, String newTagTemplateFieldId) { - RenameTagTemplateFieldRequest request = - RenameTagTemplateFieldRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setNewTagTemplateFieldId(newTagTemplateFieldId) - .build(); - return renameTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames a field in a tag template. The user should enable the Data Catalog API in the project - * identified by the `name` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *           .toString();
-   *   String newTagTemplateFieldId = "newTagTemplateFieldId2008993953";
-   *   TagTemplateField response =
-   *       dataCatalogClient.renameTagTemplateField(name, newTagTemplateFieldId);
-   * }
-   * }
- * - * @param name Required. The name of the tag template. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - *
- * - * @param newTagTemplateFieldId Required. The new ID of this tag template field. For example, - * `my_new_field`. - * @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 TagTemplateField renameTagTemplateField(String name, String newTagTemplateFieldId) { - RenameTagTemplateFieldRequest request = - RenameTagTemplateFieldRequest.newBuilder() - .setName(name) - .setNewTagTemplateFieldId(newTagTemplateFieldId) - .build(); - return renameTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames a field in a tag template. The user should enable the Data Catalog API in the project - * identified by the `name` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RenameTagTemplateFieldRequest request =
-   *       RenameTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setNewTagTemplateFieldId("newTagTemplateFieldId2008993953")
-   *           .build();
-   *   TagTemplateField response = dataCatalogClient.renameTagTemplateField(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplateField renameTagTemplateField(RenameTagTemplateFieldRequest request) { - return renameTagTemplateFieldCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames a field in a tag template. The user should enable the Data Catalog API in the project - * identified by the `name` parameter (see [Data Catalog Resource - * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RenameTagTemplateFieldRequest request =
-   *       RenameTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setNewTagTemplateFieldId("newTagTemplateFieldId2008993953")
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.renameTagTemplateFieldCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplateField response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - renameTagTemplateFieldCallable() { - return stub.renameTagTemplateFieldCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames an enum value in a tag template. The enum values have to be unique within one enum - * field. Thus, an enum value cannot be renamed with a name used in any other enum value within - * the same enum field. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateFieldEnumValueName name =
-   *       TagTemplateFieldEnumValueName.of(
-   *           "[PROJECT]",
-   *           "[LOCATION]",
-   *           "[TAG_TEMPLATE]",
-   *           "[TAG_TEMPLATE_FIELD_ID]",
-   *           "[ENUM_VALUE_DISPLAY_NAME]");
-   *   String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027";
-   *   TagTemplateField response =
-   *       dataCatalogClient.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName);
-   * }
-   * }
- * - * @param name Required. The name of the enum field value. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name} - *
- * - * @param newEnumValueDisplayName Required. The new display name of the enum value. For example, - * `my_new_enum_value`. - * @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 TagTemplateField renameTagTemplateFieldEnumValue( - @Nullable TagTemplateFieldEnumValueName name, String newEnumValueDisplayName) { - RenameTagTemplateFieldEnumValueRequest request = - RenameTagTemplateFieldEnumValueRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setNewEnumValueDisplayName(newEnumValueDisplayName) - .build(); - return renameTagTemplateFieldEnumValue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames an enum value in a tag template. The enum values have to be unique within one enum - * field. Thus, an enum value cannot be renamed with a name used in any other enum value within - * the same enum field. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name =
-   *       TagTemplateFieldEnumValueName.of(
-   *               "[PROJECT]",
-   *               "[LOCATION]",
-   *               "[TAG_TEMPLATE]",
-   *               "[TAG_TEMPLATE_FIELD_ID]",
-   *               "[ENUM_VALUE_DISPLAY_NAME]")
-   *           .toString();
-   *   String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027";
-   *   TagTemplateField response =
-   *       dataCatalogClient.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName);
-   * }
-   * }
- * - * @param name Required. The name of the enum field value. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name} - *
- * - * @param newEnumValueDisplayName Required. The new display name of the enum value. For example, - * `my_new_enum_value`. - * @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 TagTemplateField renameTagTemplateFieldEnumValue( - String name, String newEnumValueDisplayName) { - RenameTagTemplateFieldEnumValueRequest request = - RenameTagTemplateFieldEnumValueRequest.newBuilder() - .setName(name) - .setNewEnumValueDisplayName(newEnumValueDisplayName) - .build(); - return renameTagTemplateFieldEnumValue(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames an enum value in a tag template. The enum values have to be unique within one enum - * field. Thus, an enum value cannot be renamed with a name used in any other enum value within - * the same enum field. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RenameTagTemplateFieldEnumValueRequest request =
-   *       RenameTagTemplateFieldEnumValueRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldEnumValueName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[TAG_TEMPLATE]",
-   *                       "[TAG_TEMPLATE_FIELD_ID]",
-   *                       "[ENUM_VALUE_DISPLAY_NAME]")
-   *                   .toString())
-   *           .setNewEnumValueDisplayName("newEnumValueDisplayName-1119629027")
-   *           .build();
-   *   TagTemplateField response = dataCatalogClient.renameTagTemplateFieldEnumValue(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TagTemplateField renameTagTemplateFieldEnumValue( - RenameTagTemplateFieldEnumValueRequest request) { - return renameTagTemplateFieldEnumValueCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Renames an enum value in a tag template. The enum values have to be unique within one enum - * field. Thus, an enum value cannot be renamed with a name used in any other enum value within - * the same enum field. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   RenameTagTemplateFieldEnumValueRequest request =
-   *       RenameTagTemplateFieldEnumValueRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldEnumValueName.of(
-   *                       "[PROJECT]",
-   *                       "[LOCATION]",
-   *                       "[TAG_TEMPLATE]",
-   *                       "[TAG_TEMPLATE_FIELD_ID]",
-   *                       "[ENUM_VALUE_DISPLAY_NAME]")
-   *                   .toString())
-   *           .setNewEnumValueDisplayName("newEnumValueDisplayName-1119629027")
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.renameTagTemplateFieldEnumValueCallable().futureCall(request);
-   *   // Do something.
-   *   TagTemplateField response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - renameTagTemplateFieldEnumValueCallable() { - return stub.renameTagTemplateFieldEnumValueCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a field in a tag template and all uses of that field. Users should enable the Data - * Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource - * Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TagTemplateFieldName name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]");
-   *   boolean force = true;
-   *   dataCatalogClient.deleteTagTemplateField(name, force);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field to delete. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - *
- * - * @param force Required. Currently, this field must always be set to `true`. This confirms the - * deletion of this field from any tags using this field. `force = false` will be supported in - * the future. - * @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 void deleteTagTemplateField(@Nullable TagTemplateFieldName name, boolean force) { - DeleteTagTemplateFieldRequest request = - DeleteTagTemplateFieldRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setForce(force) - .build(); - deleteTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a field in a tag template and all uses of that field. Users should enable the Data - * Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource - * Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name =
-   *       TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *           .toString();
-   *   boolean force = true;
-   *   dataCatalogClient.deleteTagTemplateField(name, force);
-   * }
-   * }
- * - * @param name Required. The name of the tag template field to delete. Example: - *
    - *
  • projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - *
- * - * @param force Required. Currently, this field must always be set to `true`. This confirms the - * deletion of this field from any tags using this field. `force = false` will be supported in - * the future. - * @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 void deleteTagTemplateField(String name, boolean force) { - DeleteTagTemplateFieldRequest request = - DeleteTagTemplateFieldRequest.newBuilder().setName(name).setForce(force).build(); - deleteTagTemplateField(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a field in a tag template and all uses of that field. Users should enable the Data - * Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource - * Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagTemplateFieldRequest request =
-   *       DeleteTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setForce(true)
-   *           .build();
-   *   dataCatalogClient.deleteTagTemplateField(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final void deleteTagTemplateField(DeleteTagTemplateFieldRequest request) { - deleteTagTemplateFieldCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a field in a tag template and all uses of that field. Users should enable the Data - * Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource - * Project] (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for more - * information). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagTemplateFieldRequest request =
-   *       DeleteTagTemplateFieldRequest.newBuilder()
-   *           .setName(
-   *               TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]")
-   *                   .toString())
-   *           .setForce(true)
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.deleteTagTemplateFieldCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable - deleteTagTemplateFieldCallable() { - return stub.deleteTagTemplateFieldCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry]. Note: The project - * identified by the `parent` parameter for the - * [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters) - * and the [tag - * template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters) - * used to create the tag must be from the same organization. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   Tag tag = Tag.newBuilder().build();
-   *   Tag response = dataCatalogClient.createTag(parent, tag);
-   * }
-   * }
- * - * @param parent Required. The name of the resource to attach this tag to. Tags can be attached to - * Entries. Example: - *

* - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - *

Note that this Tag and its child resources may not actually be stored in the location in - * this name. - * @param tag Required. The tag to create. - * @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 Tag createTag(@Nullable EntryName parent, Tag tag) { - CreateTagRequest request = - CreateTagRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTag(tag) - .build(); - return createTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry]. Note: The project - * identified by the `parent` parameter for the - * [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters) - * and the [tag - * template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters) - * used to create the tag must be from the same organization. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent =
-   *       EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   Tag tag = Tag.newBuilder().build();
-   *   Tag response = dataCatalogClient.createTag(parent, tag);
-   * }
-   * }
- * - * @param parent Required. The name of the resource to attach this tag to. Tags can be attached to - * Entries. Example: - *

* - * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - *

Note that this Tag and its child resources may not actually be stored in the location in - * this name. - * @param tag Required. The tag to create. - * @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 Tag createTag(String parent, Tag tag) { - CreateTagRequest request = CreateTagRequest.newBuilder().setParent(parent).setTag(tag).build(); - return createTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry]. Note: The project - * identified by the `parent` parameter for the - * [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters) - * and the [tag - * template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters) - * used to create the tag must be from the same organization. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagRequest request =
-   *       CreateTagRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setTag(Tag.newBuilder().build())
-   *           .build();
-   *   Tag response = dataCatalogClient.createTag(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Tag createTag(CreateTagRequest request) { - return createTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry]. Note: The project - * identified by the `parent` parameter for the - * [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters) - * and the [tag - * template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters) - * used to create the tag must be from the same organization. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   CreateTagRequest request =
-   *       CreateTagRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setTag(Tag.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.createTagCallable().futureCall(request);
-   *   // Do something.
-   *   Tag response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable createTagCallable() { - return stub.createTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   Tag tag = Tag.newBuilder().build();
-   *   Tag response = dataCatalogClient.updateTag(tag);
-   * }
-   * }
- * - * @param tag Required. The updated tag. The "name" field must be set. - * @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 Tag updateTag(Tag tag) { - UpdateTagRequest request = UpdateTagRequest.newBuilder().setTag(tag).build(); - return updateTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   Tag tag = Tag.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   Tag response = dataCatalogClient.updateTag(tag, updateMask);
-   * }
-   * }
- * - * @param tag Required. The updated tag. The "name" field must be set. - * @param updateMask Note: Currently, this parameter can only take `"fields"` as value. - *

Names of fields whose values to overwrite on a tag. Currently, a tag has the only - * modifiable field with the name `fields`. - *

In general, if this parameter is absent or empty, all modifiable fields are overwritten. - * If such fields are non-required and omitted in the request body, their values are emptied. - * @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 Tag updateTag(Tag tag, FieldMask updateMask) { - UpdateTagRequest request = - UpdateTagRequest.newBuilder().setTag(tag).setUpdateMask(updateMask).build(); - return updateTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagRequest request =
-   *       UpdateTagRequest.newBuilder()
-   *           .setTag(Tag.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Tag response = dataCatalogClient.updateTag(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Tag updateTag(UpdateTagRequest request) { - return updateTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates an existing tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   UpdateTagRequest request =
-   *       UpdateTagRequest.newBuilder()
-   *           .setTag(Tag.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.updateTagCallable().futureCall(request);
-   *   // Do something.
-   *   Tag response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable updateTagCallable() { - return stub.updateTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   dataCatalogClient.deleteTag(name);
-   * }
-   * }
- * - * @param name Required. The name of the tag to delete. Example: - *
    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - *
- * - * @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 void deleteTag(@Nullable EntryName name) { - DeleteTagRequest request = - DeleteTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   dataCatalogClient.deleteTag(name);
-   * }
-   * }
- * - * @param name Required. The name of the tag to delete. Example: - *
    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - *
- * - * @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 void deleteTag(String name) { - DeleteTagRequest request = DeleteTagRequest.newBuilder().setName(name).build(); - deleteTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagRequest request =
-   *       DeleteTagRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   dataCatalogClient.deleteTag(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final void deleteTag(DeleteTagRequest request) { - deleteTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   DeleteTagRequest request =
-   *       DeleteTagRequest.newBuilder()
-   *           .setName(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.deleteTagCallable().futureCall(request);
-   *   // Do something.
-   *   future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable deleteTagCallable() { - return stub.deleteTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry]. The - * [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response are lowercased. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the Data Catalog resource to list the tags of. The resource - * could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an - * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup]. - *

Examples: - *

    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - *
- * - * @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 ListTagsPagedResponse listTags(@Nullable EntryName parent) { - ListTagsRequest request = - ListTagsRequest.newBuilder().setParent(parent == null ? null : parent.toString()).build(); - return listTags(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry]. The - * [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response are lowercased. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String parent =
-   *       EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. The name of the Data Catalog resource to list the tags of. The resource - * could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an - * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup]. - *

Examples: - *

    - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - *
  • projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - *
- * - * @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 ListTagsPagedResponse listTags(String parent) { - ListTagsRequest request = ListTagsRequest.newBuilder().setParent(parent).build(); - return listTags(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry]. The - * [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response are lowercased. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListTagsRequest request =
-   *       ListTagsRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (Tag element : dataCatalogClient.listTags(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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final ListTagsPagedResponse listTags(ListTagsRequest request) { - return listTagsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry]. The - * [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response are lowercased. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListTagsRequest request =
-   *       ListTagsRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.listTagsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (Tag element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable listTagsPagedCallable() { - return stub.listTagsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry]. The - * [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response are lowercased. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ListTagsRequest request =
-   *       ListTagsRequest.newBuilder()
-   *           .setParent(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListTagsResponse response = dataCatalogClient.listTagsCallable().call(request);
-   *     for (Tag element : response.getTagsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable listTagsCallable() { - return stub.listTagsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a resource. Replaces any existing policy. Supported - * resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to - * manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced - * to Data Catalog. - * - *

Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy` - * to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on - * entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]");
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = dataCatalogClient.setIamPolicy(resource, policy);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @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 Policy setIamPolicy(@Nullable ResourceName resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .setPolicy(policy) - .build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a resource. Replaces any existing policy. Supported - * resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to - * manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced - * to Data Catalog. - * - *

Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy` - * to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on - * entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String resource =
-   *       EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   Policy policy = Policy.newBuilder().build();
-   *   Policy response = dataCatalogClient.setIamPolicy(resource, policy);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @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 Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a resource. Replaces any existing policy. Supported - * resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to - * manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced - * to Data Catalog. - * - *

Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy` - * to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on - * entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Policy response = dataCatalogClient.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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the access control policy for a resource. Replaces any existing policy. Supported - * resources are: - Tag templates. - Entries. - Entry groups. Note, this method cannot be used to - * manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform resources synced - * to Data Catalog. - * - *

Callers must have following Google IAM permission - `datacatalog.tagTemplates.setIamPolicy` - * to set policies on tag templates. - `datacatalog.entries.setIamPolicy` to set policies on - * entries. - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.setIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource - * does not exist. An empty policy is returned if the resource exists but does not have a policy - * set on it. - * - *

Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method - * cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform - * resources synced to Data Catalog. - * - *

Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy` - * to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on - * entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]");
-   *   Policy response = dataCatalogClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @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 Policy getIamPolicy(@Nullable ResourceName resource) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource - * does not exist. An empty policy is returned if the resource exists but does not have a policy - * set on it. - * - *

Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method - * cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform - * resources synced to Data Catalog. - * - *

Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy` - * to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on - * entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   String resource =
-   *       EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString();
-   *   Policy response = dataCatalogClient.getIamPolicy(resource);
-   * }
-   * }
- * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @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 Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource - * does not exist. An empty policy is returned if the resource exists but does not have a policy - * set on it. - * - *

Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method - * cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform - * resources synced to Data Catalog. - * - *

Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy` - * to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on - * entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   Policy response = dataCatalogClient.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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the access control policy for a resource. A `NOT_FOUND` error is returned if the resource - * does not exist. An empty policy is returned if the resource exists but does not have a policy - * set on it. - * - *

Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method - * cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform - * resources synced to Data Catalog. - * - *

Callers must have following Google IAM permission - `datacatalog.tagTemplates.getIamPolicy` - * to get policies on tag templates. - `datacatalog.entries.getIamPolicy` to get policies on - * entries. - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = dataCatalogClient.getIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the caller's permissions on a resource. If the resource does not exist, an empty set of - * permissions is returned (We don't return a `NOT_FOUND` error). - * - *

Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method - * cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform - * resources synced to Data Catalog. - * - *

A caller is not required to have Google IAM permission to make this request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   TestIamPermissionsResponse response = dataCatalogClient.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 - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the caller's permissions on a resource. If the resource does not exist, an empty set of - * permissions is returned (We don't return a `NOT_FOUND` error). - * - *

Supported resources are: - Tag templates. - Entries. - Entry groups. Note, this method - * cannot be used to manage policies for BigQuery, Pub/Sub and any external Google Cloud Platform - * resources synced to Data Catalog. - * - *

A caller is not required to have Google IAM permission to make this request. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(
-   *               EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       dataCatalogClient.testIamPermissionsCallable().futureCall(request);
-   *   // Do something.
-   *   TestIamPermissionsResponse response = future.get();
-   * }
-   * }
- * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - 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 SearchCatalogPagedResponse - extends AbstractPagedListResponse< - SearchCatalogRequest, - SearchCatalogResponse, - SearchCatalogResult, - SearchCatalogPage, - SearchCatalogFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - SearchCatalogPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new SearchCatalogPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private SearchCatalogPagedResponse(SearchCatalogPage page) { - super(page, SearchCatalogFixedSizeCollection.createEmptyCollection()); - } - } - - public static class SearchCatalogPage - extends AbstractPage< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogResult, SearchCatalogPage> { - - private SearchCatalogPage( - @Nullable PageContext - context, - @Nullable SearchCatalogResponse response) { - super(context, response); - } - - private static SearchCatalogPage createEmptyPage() { - return new SearchCatalogPage(null, null); - } - - @Override - protected SearchCatalogPage createPage( - @Nullable PageContext - context, - @Nullable SearchCatalogResponse response) { - return new SearchCatalogPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class SearchCatalogFixedSizeCollection - extends AbstractFixedSizeCollection< - SearchCatalogRequest, - SearchCatalogResponse, - SearchCatalogResult, - SearchCatalogPage, - SearchCatalogFixedSizeCollection> { - - private SearchCatalogFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static SearchCatalogFixedSizeCollection createEmptyCollection() { - return new SearchCatalogFixedSizeCollection(null, 0); - } - - @Override - protected SearchCatalogFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new SearchCatalogFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListEntryGroupsPagedResponse - extends AbstractPagedListResponse< - ListEntryGroupsRequest, - ListEntryGroupsResponse, - EntryGroup, - ListEntryGroupsPage, - ListEntryGroupsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListEntryGroupsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListEntryGroupsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListEntryGroupsPagedResponse(ListEntryGroupsPage page) { - super(page, ListEntryGroupsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListEntryGroupsPage - extends AbstractPage< - ListEntryGroupsRequest, ListEntryGroupsResponse, EntryGroup, ListEntryGroupsPage> { - - private ListEntryGroupsPage( - @Nullable PageContext context, - @Nullable ListEntryGroupsResponse response) { - super(context, response); - } - - private static ListEntryGroupsPage createEmptyPage() { - return new ListEntryGroupsPage(null, null); - } - - @Override - protected ListEntryGroupsPage createPage( - @Nullable PageContext context, - @Nullable ListEntryGroupsResponse response) { - return new ListEntryGroupsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListEntryGroupsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListEntryGroupsRequest, - ListEntryGroupsResponse, - EntryGroup, - ListEntryGroupsPage, - ListEntryGroupsFixedSizeCollection> { - - private ListEntryGroupsFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListEntryGroupsFixedSizeCollection createEmptyCollection() { - return new ListEntryGroupsFixedSizeCollection(null, 0); - } - - @Override - protected ListEntryGroupsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListEntryGroupsFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListEntriesPagedResponse - extends AbstractPagedListResponse< - ListEntriesRequest, - ListEntriesResponse, - Entry, - ListEntriesPage, - ListEntriesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListEntriesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListEntriesPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListEntriesPagedResponse(ListEntriesPage page) { - super(page, ListEntriesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListEntriesPage - extends AbstractPage { - - private ListEntriesPage( - @Nullable PageContext context, - @Nullable ListEntriesResponse response) { - super(context, response); - } - - private static ListEntriesPage createEmptyPage() { - return new ListEntriesPage(null, null); - } - - @Override - protected ListEntriesPage createPage( - @Nullable PageContext context, - @Nullable ListEntriesResponse response) { - return new ListEntriesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListEntriesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListEntriesRequest, - ListEntriesResponse, - Entry, - ListEntriesPage, - ListEntriesFixedSizeCollection> { - - private ListEntriesFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListEntriesFixedSizeCollection createEmptyCollection() { - return new ListEntriesFixedSizeCollection(null, 0); - } - - @Override - protected ListEntriesFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListEntriesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListTagsPagedResponse - extends AbstractPagedListResponse< - ListTagsRequest, ListTagsResponse, Tag, ListTagsPage, ListTagsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListTagsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListTagsPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListTagsPagedResponse(ListTagsPage page) { - super(page, ListTagsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListTagsPage - extends AbstractPage { - - private ListTagsPage( - @Nullable PageContext context, - @Nullable ListTagsResponse response) { - super(context, response); - } - - private static ListTagsPage createEmptyPage() { - return new ListTagsPage(null, null); - } - - @Override - protected ListTagsPage createPage( - @Nullable PageContext context, - @Nullable ListTagsResponse response) { - return new ListTagsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListTagsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListTagsRequest, ListTagsResponse, Tag, ListTagsPage, ListTagsFixedSizeCollection> { - - private ListTagsFixedSizeCollection(@Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListTagsFixedSizeCollection createEmptyCollection() { - return new ListTagsFixedSizeCollection(null, 0); - } - - @Override - protected ListTagsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListTagsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java deleted file mode 100644 index 0cc1262d6a6b..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java +++ /dev/null @@ -1,809 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.SearchCatalogPagedResponse; - -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.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.datacatalog.v1beta1.stub.DataCatalogStubSettings; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import 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 DataCatalogClient}. - * - *

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

    - *
  • The default service address (datacatalog.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 createEntryGroup: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataCatalogSettings.Builder dataCatalogSettingsBuilder = DataCatalogSettings.newBuilder();
- * dataCatalogSettingsBuilder
- *     .createEntryGroupSettings()
- *     .setRetrySettings(
- *         dataCatalogSettingsBuilder
- *             .createEntryGroupSettings()
- *             .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());
- * DataCatalogSettings dataCatalogSettings = dataCatalogSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@BetaApi -@Deprecated -@Generated("by gapic-generator-java") -public class DataCatalogSettings extends ClientSettings { - - /** - * Returns the object with the settings used for calls to searchCatalog. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - searchCatalogSettings() { - return ((DataCatalogStubSettings) getStubSettings()).searchCatalogSettings(); - } - - /** - * Returns the object with the settings used for calls to createEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createEntryGroupSettings(); - } - - /** - * Returns the object with the settings used for calls to updateEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateEntryGroupSettings(); - } - - /** - * Returns the object with the settings used for calls to getEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).getEntryGroupSettings(); - } - - /** - * Returns the object with the settings used for calls to deleteEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteEntryGroupSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteEntryGroupSettings(); - } - - /** - * Returns the object with the settings used for calls to listEntryGroups. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listEntryGroupsSettings(); - } - - /** - * Returns the object with the settings used for calls to createEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).createEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to updateEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to deleteEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to getEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).getEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to lookupEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings lookupEntrySettings() { - return ((DataCatalogStubSettings) getStubSettings()).lookupEntrySettings(); - } - - /** - * Returns the object with the settings used for calls to listEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - listEntriesSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listEntriesSettings(); - } - - /** - * Returns the object with the settings used for calls to createTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateSettings(); - } - - /** - * Returns the object with the settings used for calls to getTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).getTagTemplateSettings(); - } - - /** - * Returns the object with the settings used for calls to updateTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateSettings(); - } - - /** - * Returns the object with the settings used for calls to deleteTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagTemplateSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateSettings(); - } - - /** - * Returns the object with the settings used for calls to createTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - createTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagTemplateFieldSettings(); - } - - /** - * Returns the object with the settings used for calls to updateTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - updateTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagTemplateFieldSettings(); - } - - /** - * Returns the object with the settings used for calls to renameTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - renameTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldSettings(); - } - - /** - * Returns the object with the settings used for calls to renameTagTemplateFieldEnumValue. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - renameTagTemplateFieldEnumValueSettings() { - return ((DataCatalogStubSettings) getStubSettings()).renameTagTemplateFieldEnumValueSettings(); - } - - /** - * Returns the object with the settings used for calls to deleteTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagTemplateFieldSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagTemplateFieldSettings(); - } - - /** - * Returns the object with the settings used for calls to createTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).createTagSettings(); - } - - /** - * Returns the object with the settings used for calls to updateTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).updateTagSettings(); - } - - /** - * Returns the object with the settings used for calls to deleteTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagSettings() { - return ((DataCatalogStubSettings) getStubSettings()).deleteTagSettings(); - } - - /** - * Returns the object with the settings used for calls to listTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - listTagsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).listTagsSettings(); - } - - /** - * Returns the object with the settings used for calls to setIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings setIamPolicySettings() { - return ((DataCatalogStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** - * Returns the object with the settings used for calls to getIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getIamPolicySettings() { - return ((DataCatalogStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** - * Returns the object with the settings used for calls to testIamPermissions. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - testIamPermissionsSettings() { - return ((DataCatalogStubSettings) getStubSettings()).testIamPermissionsSettings(); - } - - public static final DataCatalogSettings create(DataCatalogStubSettings stub) throws IOException { - return new DataCatalogSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return DataCatalogStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return DataCatalogStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DataCatalogStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return DataCatalogStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return DataCatalogStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return DataCatalogStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return DataCatalogStubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataCatalogStubSettings.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 DataCatalogSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for DataCatalogSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(DataCatalogStubSettings.newBuilder(clientContext)); - } - - protected Builder(DataCatalogSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(DataCatalogStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(DataCatalogStubSettings.newBuilder()); - } - - private static Builder createHttpJsonDefault() { - return new Builder(DataCatalogStubSettings.newHttpJsonBuilder()); - } - - public DataCatalogStubSettings.Builder getStubSettingsBuilder() { - return ((DataCatalogStubSettings.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 searchCatalog. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - searchCatalogSettings() { - return getStubSettingsBuilder().searchCatalogSettings(); - } - - /** - * Returns the builder for the settings used for calls to createEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createEntryGroupSettings() { - return getStubSettingsBuilder().createEntryGroupSettings(); - } - - /** - * Returns the builder for the settings used for calls to updateEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateEntryGroupSettings() { - return getStubSettingsBuilder().updateEntryGroupSettings(); - } - - /** - * Returns the builder for the settings used for calls to getEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getEntryGroupSettings() { - return getStubSettingsBuilder().getEntryGroupSettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteEntryGroupSettings() { - return getStubSettingsBuilder().deleteEntryGroupSettings(); - } - - /** - * Returns the builder for the settings used for calls to listEntryGroups. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return getStubSettingsBuilder().listEntryGroupsSettings(); - } - - /** - * Returns the builder for the settings used for calls to createEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder createEntrySettings() { - return getStubSettingsBuilder().createEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to updateEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder updateEntrySettings() { - return getStubSettingsBuilder().updateEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteEntrySettings() { - return getStubSettingsBuilder().deleteEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to getEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getEntrySettings() { - return getStubSettingsBuilder().getEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to lookupEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder lookupEntrySettings() { - return getStubSettingsBuilder().lookupEntrySettings(); - } - - /** - * Returns the builder for the settings used for calls to listEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> - listEntriesSettings() { - return getStubSettingsBuilder().listEntriesSettings(); - } - - /** - * Returns the builder for the settings used for calls to createTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createTagTemplateSettings() { - return getStubSettingsBuilder().createTagTemplateSettings(); - } - - /** - * Returns the builder for the settings used for calls to getTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getTagTemplateSettings() { - return getStubSettingsBuilder().getTagTemplateSettings(); - } - - /** - * Returns the builder for the settings used for calls to updateTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateTagTemplateSettings() { - return getStubSettingsBuilder().updateTagTemplateSettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteTagTemplateSettings() { - return getStubSettingsBuilder().deleteTagTemplateSettings(); - } - - /** - * Returns the builder for the settings used for calls to createTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createTagTemplateFieldSettings() { - return getStubSettingsBuilder().createTagTemplateFieldSettings(); - } - - /** - * Returns the builder for the settings used for calls to updateTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateTagTemplateFieldSettings() { - return getStubSettingsBuilder().updateTagTemplateFieldSettings(); - } - - /** - * Returns the builder for the settings used for calls to renameTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - renameTagTemplateFieldSettings() { - return getStubSettingsBuilder().renameTagTemplateFieldSettings(); - } - - /** - * Returns the builder for the settings used for calls to renameTagTemplateFieldEnumValue. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - renameTagTemplateFieldEnumValueSettings() { - return getStubSettingsBuilder().renameTagTemplateFieldEnumValueSettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - deleteTagTemplateFieldSettings() { - return getStubSettingsBuilder().deleteTagTemplateFieldSettings(); - } - - /** - * Returns the builder for the settings used for calls to createTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder createTagSettings() { - return getStubSettingsBuilder().createTagSettings(); - } - - /** - * Returns the builder for the settings used for calls to updateTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder updateTagSettings() { - return getStubSettingsBuilder().updateTagSettings(); - } - - /** - * Returns the builder for the settings used for calls to deleteTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteTagSettings() { - return getStubSettingsBuilder().deleteTagSettings(); - } - - /** - * Returns the builder for the settings used for calls to listTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder - listTagsSettings() { - return getStubSettingsBuilder().listTagsSettings(); - } - - /** - * Returns the builder for the settings used for calls to setIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** - * Returns the builder for the settings used for calls to getIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - - /** - * Returns the builder for the settings used for calls to testIamPermissions. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - @Override - public DataCatalogSettings build() throws IOException { - return new DataCatalogSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java deleted file mode 100644 index ab73f81f52d2..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java +++ /dev/null @@ -1,1988 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.stub.PolicyTagManagerStub; -import com.google.cloud.datacatalog.v1beta1.stub.PolicyTagManagerStubSettings; -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.protobuf.Empty; -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: The policy tag manager API service allows clients to manage their taxonomies - * and policy tags. - * - *

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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   Taxonomy taxonomy = Taxonomy.newBuilder().build();
- *   Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy);
- * }
- * }
- * - *

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

CreateTaxonomy

Creates a taxonomy in the specified project.

- *

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

- *
    - *
  • createTaxonomy(CreateTaxonomyRequest request) - *

- *

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

- *
    - *
  • createTaxonomy(LocationName parent, Taxonomy taxonomy) - *

  • createTaxonomy(String parent, Taxonomy taxonomy) - *

- *

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

- *
    - *
  • createTaxonomyCallable() - *

- *

DeleteTaxonomy

Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with their associated policies.

- *

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

- *
    - *
  • deleteTaxonomy(DeleteTaxonomyRequest request) - *

- *

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

- *
    - *
  • deleteTaxonomy(TaxonomyName name) - *

  • deleteTaxonomy(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.

- *
    - *
  • deleteTaxonomyCallable() - *

- *

UpdateTaxonomy

Updates a taxonomy.

- *

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

- *
    - *
  • updateTaxonomy(UpdateTaxonomyRequest request) - *

- *

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

- *
    - *
  • updateTaxonomy(Taxonomy taxonomy) - *

- *

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

- *
    - *
  • updateTaxonomyCallable() - *

- *

ListTaxonomies

Lists all taxonomies in a project in a particular location that the caller has permission to view.

- *

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

- *
    - *
  • listTaxonomies(ListTaxonomiesRequest request) - *

- *

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

- *
    - *
  • listTaxonomies(LocationName parent) - *

  • listTaxonomies(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.

- *
    - *
  • listTaxonomiesPagedCallable() - *

  • listTaxonomiesCallable() - *

- *

GetTaxonomy

Gets a taxonomy.

- *

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

- *
    - *
  • getTaxonomy(GetTaxonomyRequest request) - *

- *

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

- *
    - *
  • getTaxonomy(TaxonomyName name) - *

  • getTaxonomy(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.

- *
    - *
  • getTaxonomyCallable() - *

- *

CreatePolicyTag

Creates a policy tag in the specified taxonomy.

- *

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

- *
    - *
  • createPolicyTag(CreatePolicyTagRequest request) - *

- *

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

- *
    - *
  • createPolicyTag(TaxonomyName parent, PolicyTag policyTag) - *

  • createPolicyTag(String parent, PolicyTag policyTag) - *

- *

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

- *
    - *
  • createPolicyTagCallable() - *

- *

DeletePolicyTag

Deletes a policy tag. Also deletes all of its descendant policy tags.

- *

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

- *
    - *
  • deletePolicyTag(DeletePolicyTagRequest request) - *

- *

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

- *
    - *
  • deletePolicyTag(PolicyTagName name) - *

  • deletePolicyTag(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.

- *
    - *
  • deletePolicyTagCallable() - *

- *

UpdatePolicyTag

Updates a policy tag.

- *

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

- *
    - *
  • updatePolicyTag(UpdatePolicyTagRequest request) - *

- *

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

- *
    - *
  • updatePolicyTag(PolicyTag policyTag) - *

- *

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

- *
    - *
  • updatePolicyTagCallable() - *

- *

ListPolicyTags

Lists all policy tags in a taxonomy.

- *

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

- *
    - *
  • listPolicyTags(ListPolicyTagsRequest request) - *

- *

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

- *
    - *
  • listPolicyTags(TaxonomyName parent) - *

  • listPolicyTags(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.

- *
    - *
  • listPolicyTagsPagedCallable() - *

  • listPolicyTagsCallable() - *

- *

GetPolicyTag

Gets a policy tag.

- *

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

- *
    - *
  • getPolicyTag(GetPolicyTagRequest request) - *

- *

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

- *
    - *
  • getPolicyTag(PolicyTagName name) - *

  • getPolicyTag(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.

- *
    - *
  • getPolicyTagCallable() - *

- *

GetIamPolicy

Gets the IAM policy for a taxonomy or a policy tag.

- *

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() - *

- *

SetIamPolicy

Sets the IAM policy for a taxonomy or a policy tag.

- *

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() - *

- *

TestIamPermissions

Returns the permissions that a caller has on the specified taxonomy or policy tag.

- *

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 PolicyTagManagerSettings 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
- * PolicyTagManagerSettings policyTagManagerSettings =
- *     PolicyTagManagerSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * PolicyTagManagerClient policyTagManagerClient =
- *     PolicyTagManagerClient.create(policyTagManagerSettings);
- * }
- * - *

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
- * PolicyTagManagerSettings policyTagManagerSettings =
- *     PolicyTagManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
- * PolicyTagManagerClient policyTagManagerClient =
- *     PolicyTagManagerClient.create(policyTagManagerSettings);
- * }
- * - *

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
- * PolicyTagManagerSettings policyTagManagerSettings =
- *     PolicyTagManagerSettings.newHttpJsonBuilder().build();
- * PolicyTagManagerClient policyTagManagerClient =
- *     PolicyTagManagerClient.create(policyTagManagerSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class PolicyTagManagerClient implements BackgroundResource { - private final @Nullable PolicyTagManagerSettings settings; - private final PolicyTagManagerStub stub; - - /** Constructs an instance of PolicyTagManagerClient with default settings. */ - public static final PolicyTagManagerClient create() throws IOException { - return create(PolicyTagManagerSettings.newBuilder().build()); - } - - /** - * Constructs an instance of PolicyTagManagerClient, 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 PolicyTagManagerClient create(PolicyTagManagerSettings settings) - throws IOException { - return new PolicyTagManagerClient(settings); - } - - /** - * Constructs an instance of PolicyTagManagerClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(PolicyTagManagerSettings). - */ - public static final PolicyTagManagerClient create(PolicyTagManagerStub stub) { - return new PolicyTagManagerClient(stub); - } - - /** - * Constructs an instance of PolicyTagManagerClient, 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 PolicyTagManagerClient(PolicyTagManagerSettings settings) throws IOException { - this.settings = settings; - this.stub = ((PolicyTagManagerStubSettings) settings.getStubSettings()).createStub(); - } - - protected PolicyTagManagerClient(PolicyTagManagerStub stub) { - this.settings = null; - this.stub = stub; - } - - public final @Nullable PolicyTagManagerSettings getSettings() { - return settings; - } - - public PolicyTagManagerStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a taxonomy in the specified project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   Taxonomy taxonomy = Taxonomy.newBuilder().build();
-   *   Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy);
-   * }
-   * }
- * - * @param parent Required. Resource name of the project that the taxonomy will belong to. - * @param taxonomy The taxonomy to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Taxonomy createTaxonomy(@Nullable LocationName parent, Taxonomy taxonomy) { - CreateTaxonomyRequest request = - CreateTaxonomyRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setTaxonomy(taxonomy) - .build(); - return createTaxonomy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a taxonomy in the specified project. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   Taxonomy taxonomy = Taxonomy.newBuilder().build();
-   *   Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy);
-   * }
-   * }
- * - * @param parent Required. Resource name of the project that the taxonomy will belong to. - * @param taxonomy The taxonomy to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Taxonomy createTaxonomy(String parent, Taxonomy taxonomy) { - CreateTaxonomyRequest request = - CreateTaxonomyRequest.newBuilder().setParent(parent).setTaxonomy(taxonomy).build(); - return createTaxonomy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a taxonomy in the specified project. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   CreateTaxonomyRequest request =
-   *       CreateTaxonomyRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setTaxonomy(Taxonomy.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.createTaxonomyCallable().futureCall(request);
-   *   // Do something.
-   *   Taxonomy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createTaxonomyCallable() { - return stub.createTaxonomyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with - * their associated policies. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]");
-   *   policyTagManagerClient.deleteTaxonomy(name);
-   * }
-   * }
- * - * @param name Required. Resource name of the taxonomy to be deleted. All policy tags in this - * taxonomy will also be deleted. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteTaxonomy(@Nullable TaxonomyName name) { - DeleteTaxonomyRequest request = - DeleteTaxonomyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteTaxonomy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with - * their associated policies. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
-   *   policyTagManagerClient.deleteTaxonomy(name);
-   * }
-   * }
- * - * @param name Required. Resource name of the taxonomy to be deleted. All policy tags in this - * taxonomy will also be deleted. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteTaxonomy(String name) { - DeleteTaxonomyRequest request = DeleteTaxonomyRequest.newBuilder().setName(name).build(); - deleteTaxonomy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with - * their associated policies. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   DeleteTaxonomyRequest request =
-   *       DeleteTaxonomyRequest.newBuilder()
-   *           .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .build();
-   *   policyTagManagerClient.deleteTaxonomy(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 deleteTaxonomy(DeleteTaxonomyRequest request) { - deleteTaxonomyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy along with - * their associated policies. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   Taxonomy taxonomy = Taxonomy.newBuilder().build();
-   *   Taxonomy response = policyTagManagerClient.updateTaxonomy(taxonomy);
-   * }
-   * }
- * - * @param taxonomy The taxonomy to update. Only description, display_name, and activated policy - * types can be updated. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Taxonomy updateTaxonomy(Taxonomy taxonomy) { - UpdateTaxonomyRequest request = - UpdateTaxonomyRequest.newBuilder().setTaxonomy(taxonomy).build(); - return updateTaxonomy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a taxonomy. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   UpdateTaxonomyRequest request =
-   *       UpdateTaxonomyRequest.newBuilder()
-   *           .setTaxonomy(Taxonomy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.updateTaxonomyCallable().futureCall(request);
-   *   // Do something.
-   *   Taxonomy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateTaxonomyCallable() { - return stub.updateTaxonomyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all taxonomies in a project in a particular location that the caller has permission to - * view. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
-   *   for (Taxonomy element : policyTagManagerClient.listTaxonomies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Resource name of the project to list the taxonomies of. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTaxonomiesPagedResponse listTaxonomies(@Nullable LocationName parent) { - ListTaxonomiesRequest request = - ListTaxonomiesRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listTaxonomies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all taxonomies in a project in a particular location that the caller has permission to - * view. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
-   *   for (Taxonomy element : policyTagManagerClient.listTaxonomies(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Resource name of the project to list the taxonomies of. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListTaxonomiesPagedResponse listTaxonomies(String parent) { - ListTaxonomiesRequest request = ListTaxonomiesRequest.newBuilder().setParent(parent).build(); - return listTaxonomies(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all taxonomies in a project in a particular location that the caller has permission to - * view. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   ListTaxonomiesRequest request =
-   *       ListTaxonomiesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .setFilter("filter-1274492040")
-   *           .build();
-   *   for (Taxonomy element : policyTagManagerClient.listTaxonomies(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 ListTaxonomiesPagedResponse listTaxonomies(ListTaxonomiesRequest request) { - return listTaxonomiesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all taxonomies in a project in a particular location that the caller has permission to - * view. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]");
-   *   PolicyTag policyTag = PolicyTag.newBuilder().build();
-   *   PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag);
-   * }
-   * }
- * - * @param parent Required. Resource name of the taxonomy that the policy tag will belong to. - * @param policyTag The policy tag to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyTag createPolicyTag(@Nullable TaxonomyName parent, PolicyTag policyTag) { - CreatePolicyTagRequest request = - CreatePolicyTagRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setPolicyTag(policyTag) - .build(); - return createPolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a policy tag in the specified taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
-   *   PolicyTag policyTag = PolicyTag.newBuilder().build();
-   *   PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag);
-   * }
-   * }
- * - * @param parent Required. Resource name of the taxonomy that the policy tag will belong to. - * @param policyTag The policy tag to be created. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyTag createPolicyTag(String parent, PolicyTag policyTag) { - CreatePolicyTagRequest request = - CreatePolicyTagRequest.newBuilder().setParent(parent).setPolicyTag(policyTag).build(); - return createPolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a policy tag in the specified taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   CreatePolicyTagRequest request =
-   *       CreatePolicyTagRequest.newBuilder()
-   *           .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setPolicyTag(PolicyTag.newBuilder().build())
-   *           .build();
-   *   PolicyTag response = policyTagManagerClient.createPolicyTag(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 PolicyTag createPolicyTag(CreatePolicyTagRequest request) { - return createPolicyTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a policy tag in the specified taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   CreatePolicyTagRequest request =
-   *       CreatePolicyTagRequest.newBuilder()
-   *           .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setPolicyTag(PolicyTag.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.createPolicyTagCallable().futureCall(request);
-   *   // Do something.
-   *   PolicyTag response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable createPolicyTagCallable() { - return stub.createPolicyTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a policy tag. Also deletes all of its descendant policy tags. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   PolicyTagName name =
-   *       PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]");
-   *   policyTagManagerClient.deletePolicyTag(name);
-   * }
-   * }
- * - * @param name Required. Resource name of the policy tag to be deleted. All of its descendant - * policy tags will also be deleted. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deletePolicyTag(@Nullable PolicyTagName name) { - DeletePolicyTagRequest request = - DeletePolicyTagRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deletePolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a policy tag. Also deletes all of its descendant policy tags. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String name =
-   *       PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString();
-   *   policyTagManagerClient.deletePolicyTag(name);
-   * }
-   * }
- * - * @param name Required. Resource name of the policy tag to be deleted. All of its descendant - * policy tags will also be deleted. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deletePolicyTag(String name) { - DeletePolicyTagRequest request = DeletePolicyTagRequest.newBuilder().setName(name).build(); - deletePolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a policy tag. Also deletes all of its descendant policy tags. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   DeletePolicyTagRequest request =
-   *       DeletePolicyTagRequest.newBuilder()
-   *           .setName(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .build();
-   *   policyTagManagerClient.deletePolicyTag(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 deletePolicyTag(DeletePolicyTagRequest request) { - deletePolicyTagCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a policy tag. Also deletes all of its descendant policy tags. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   PolicyTag policyTag = PolicyTag.newBuilder().build();
-   *   PolicyTag response = policyTagManagerClient.updatePolicyTag(policyTag);
-   * }
-   * }
- * - * @param policyTag The policy tag to update. Only the description, display_name, and - * parent_policy_tag fields can be updated. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyTag updatePolicyTag(PolicyTag policyTag) { - UpdatePolicyTagRequest request = - UpdatePolicyTagRequest.newBuilder().setPolicyTag(policyTag).build(); - return updatePolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a policy tag. - * - *

Sample code: - * - *

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

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]");
-   *   for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Resource name of the taxonomy to list the policy tags of. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListPolicyTagsPagedResponse listPolicyTags(@Nullable TaxonomyName parent) { - ListPolicyTagsRequest request = - ListPolicyTagsRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .build(); - return listPolicyTags(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all policy tags in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString();
-   *   for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- * - * @param parent Required. Resource name of the taxonomy to list the policy tags of. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListPolicyTagsPagedResponse listPolicyTags(String parent) { - ListPolicyTagsRequest request = ListPolicyTagsRequest.newBuilder().setParent(parent).build(); - return listPolicyTags(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all policy tags in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   ListPolicyTagsRequest request =
-   *       ListPolicyTagsRequest.newBuilder()
-   *           .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (PolicyTag element : policyTagManagerClient.listPolicyTags(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 ListPolicyTagsPagedResponse listPolicyTags(ListPolicyTagsRequest request) { - return listPolicyTagsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all policy tags in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   ListPolicyTagsRequest request =
-   *       ListPolicyTagsRequest.newBuilder()
-   *           .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.listPolicyTagsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (PolicyTag element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPolicyTagsPagedCallable() { - return stub.listPolicyTagsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists all policy tags in a taxonomy. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   ListPolicyTagsRequest request =
-   *       ListPolicyTagsRequest.newBuilder()
-   *           .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   while (true) {
-   *     ListPolicyTagsResponse response =
-   *         policyTagManagerClient.listPolicyTagsCallable().call(request);
-   *     for (PolicyTag element : response.getPolicyTagsList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
-   * }
-   * }
- */ - public final UnaryCallable - listPolicyTagsCallable() { - return stub.listPolicyTagsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a policy tag. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   String name =
-   *       PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString();
-   *   PolicyTag response = policyTagManagerClient.getPolicyTag(name);
-   * }
-   * }
- * - * @param name Required. Resource name of the requested policy tag. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final PolicyTag getPolicyTag(String name) { - GetPolicyTagRequest request = GetPolicyTagRequest.newBuilder().setName(name).build(); - return getPolicyTag(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a policy tag. - * - *

Sample code: - * - *

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

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   GetPolicyTagRequest request =
-   *       GetPolicyTagRequest.newBuilder()
-   *           .setName(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.getPolicyTagCallable().futureCall(request);
-   *   // Do something.
-   *   PolicyTag response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getPolicyTagCallable() { - return stub.getPolicyTagCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the IAM policy for a taxonomy or a policy tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   Policy response = policyTagManagerClient.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 IAM policy for a taxonomy or a policy tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   GetIamPolicyRequest request =
-   *       GetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .setOptions(GetPolicyOptions.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = policyTagManagerClient.getIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the IAM policy for a taxonomy or a policy tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   Policy response = policyTagManagerClient.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 IAM policy for a taxonomy or a policy tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   SetIamPolicyRequest request =
-   *       SetIamPolicyRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .setPolicy(Policy.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future = policyTagManagerClient.setIamPolicyCallable().futureCall(request);
-   *   // Do something.
-   *   Policy response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns the permissions that a caller has on the specified taxonomy or policy tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   TestIamPermissionsResponse response = policyTagManagerClient.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 the permissions that a caller has on the specified taxonomy or policy tag. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
-   *   TestIamPermissionsRequest request =
-   *       TestIamPermissionsRequest.newBuilder()
-   *           .setResource(
-   *               PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]")
-   *                   .toString())
-   *           .addAllPermissions(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerClient.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 ListTaxonomiesPagedResponse - extends AbstractPagedListResponse< - ListTaxonomiesRequest, - ListTaxonomiesResponse, - Taxonomy, - ListTaxonomiesPage, - ListTaxonomiesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListTaxonomiesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListTaxonomiesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListTaxonomiesPagedResponse(ListTaxonomiesPage page) { - super(page, ListTaxonomiesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListTaxonomiesPage - extends AbstractPage< - ListTaxonomiesRequest, ListTaxonomiesResponse, Taxonomy, ListTaxonomiesPage> { - - private ListTaxonomiesPage( - @Nullable PageContext context, - @Nullable ListTaxonomiesResponse response) { - super(context, response); - } - - private static ListTaxonomiesPage createEmptyPage() { - return new ListTaxonomiesPage(null, null); - } - - @Override - protected ListTaxonomiesPage createPage( - @Nullable PageContext context, - @Nullable ListTaxonomiesResponse response) { - return new ListTaxonomiesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListTaxonomiesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListTaxonomiesRequest, - ListTaxonomiesResponse, - Taxonomy, - ListTaxonomiesPage, - ListTaxonomiesFixedSizeCollection> { - - private ListTaxonomiesFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListTaxonomiesFixedSizeCollection createEmptyCollection() { - return new ListTaxonomiesFixedSizeCollection(null, 0); - } - - @Override - protected ListTaxonomiesFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListTaxonomiesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListPolicyTagsPagedResponse - extends AbstractPagedListResponse< - ListPolicyTagsRequest, - ListPolicyTagsResponse, - PolicyTag, - ListPolicyTagsPage, - ListPolicyTagsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListPolicyTagsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListPolicyTagsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListPolicyTagsPagedResponse(ListPolicyTagsPage page) { - super(page, ListPolicyTagsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListPolicyTagsPage - extends AbstractPage< - ListPolicyTagsRequest, ListPolicyTagsResponse, PolicyTag, ListPolicyTagsPage> { - - private ListPolicyTagsPage( - @Nullable PageContext context, - @Nullable ListPolicyTagsResponse response) { - super(context, response); - } - - private static ListPolicyTagsPage createEmptyPage() { - return new ListPolicyTagsPage(null, null); - } - - @Override - protected ListPolicyTagsPage createPage( - @Nullable PageContext context, - @Nullable ListPolicyTagsResponse response) { - return new ListPolicyTagsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListPolicyTagsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListPolicyTagsRequest, - ListPolicyTagsResponse, - PolicyTag, - ListPolicyTagsPage, - ListPolicyTagsFixedSizeCollection> { - - private ListPolicyTagsFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListPolicyTagsFixedSizeCollection createEmptyCollection() { - return new ListPolicyTagsFixedSizeCollection(null, 0); - } - - @Override - protected ListPolicyTagsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListPolicyTagsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java deleted file mode 100644 index 6c8d4e85097e..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClient.java +++ /dev/null @@ -1,371 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.stub.PolicyTagManagerSerializationStub; -import com.google.cloud.datacatalog.v1beta1.stub.PolicyTagManagerSerializationStubSettings; -import java.io.IOException; -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: Policy tag manager serialization API service allows clients to manipulate - * their taxonomies and policy tags data with serialized format. - * - *

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 (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
- *     PolicyTagManagerSerializationClient.create()) {
- *   ImportTaxonomiesRequest request =
- *       ImportTaxonomiesRequest.newBuilder()
- *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- *           .build();
- *   ImportTaxonomiesResponse response =
- *       policyTagManagerSerializationClient.importTaxonomies(request);
- * }
- * }
- * - *

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

ImportTaxonomies

Imports all taxonomies and their policy tags to a project as new taxonomies. - *

This method provides a bulk taxonomy / policy tag creation using nested proto structure.

- *

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

- *
    - *
  • importTaxonomies(ImportTaxonomiesRequest request) - *

- *

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

- *
    - *
  • importTaxonomiesCallable() - *

- *

ExportTaxonomies

Exports all taxonomies and their policy tags in a project. - *

This method generates SerializedTaxonomy protos with nested policy tags that can be used as an input for future ImportTaxonomies calls.

- *

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

- *
    - *
  • exportTaxonomies(ExportTaxonomiesRequest request) - *

- *

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

- *
    - *
  • exportTaxonomiesCallable() - *

- *
- * - *

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 - * PolicyTagManagerSerializationSettings 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
- * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
- *     PolicyTagManagerSerializationSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
- *     PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings);
- * }
- * - *

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
- * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
- *     PolicyTagManagerSerializationSettings.newBuilder().setEndpoint(myEndpoint).build();
- * PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
- *     PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings);
- * }
- * - *

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
- * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
- *     PolicyTagManagerSerializationSettings.newHttpJsonBuilder().build();
- * PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
- *     PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class PolicyTagManagerSerializationClient implements BackgroundResource { - private final @Nullable PolicyTagManagerSerializationSettings settings; - private final PolicyTagManagerSerializationStub stub; - - /** Constructs an instance of PolicyTagManagerSerializationClient with default settings. */ - public static final PolicyTagManagerSerializationClient create() throws IOException { - return create(PolicyTagManagerSerializationSettings.newBuilder().build()); - } - - /** - * Constructs an instance of PolicyTagManagerSerializationClient, 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 PolicyTagManagerSerializationClient create( - PolicyTagManagerSerializationSettings settings) throws IOException { - return new PolicyTagManagerSerializationClient(settings); - } - - /** - * Constructs an instance of PolicyTagManagerSerializationClient, using the given stub for making - * calls. This is for advanced usage - prefer using create(PolicyTagManagerSerializationSettings). - */ - public static final PolicyTagManagerSerializationClient create( - PolicyTagManagerSerializationStub stub) { - return new PolicyTagManagerSerializationClient(stub); - } - - /** - * Constructs an instance of PolicyTagManagerSerializationClient, 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 PolicyTagManagerSerializationClient(PolicyTagManagerSerializationSettings settings) - throws IOException { - this.settings = settings; - this.stub = - ((PolicyTagManagerSerializationStubSettings) settings.getStubSettings()).createStub(); - } - - protected PolicyTagManagerSerializationClient(PolicyTagManagerSerializationStub stub) { - this.settings = null; - this.stub = stub; - } - - public final @Nullable PolicyTagManagerSerializationSettings getSettings() { - return settings; - } - - public PolicyTagManagerSerializationStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Imports all taxonomies and their policy tags to a project as new taxonomies. - * - *

This method provides a bulk taxonomy / policy tag creation using nested proto structure. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
-   *     PolicyTagManagerSerializationClient.create()) {
-   *   ImportTaxonomiesRequest request =
-   *       ImportTaxonomiesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ImportTaxonomiesResponse response =
-   *       policyTagManagerSerializationClient.importTaxonomies(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 ImportTaxonomiesResponse importTaxonomies(ImportTaxonomiesRequest request) { - return importTaxonomiesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Imports all taxonomies and their policy tags to a project as new taxonomies. - * - *

This method provides a bulk taxonomy / policy tag creation using nested proto structure. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
-   *     PolicyTagManagerSerializationClient.create()) {
-   *   ImportTaxonomiesRequest request =
-   *       ImportTaxonomiesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerSerializationClient.importTaxonomiesCallable().futureCall(request);
-   *   // Do something.
-   *   ImportTaxonomiesResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - importTaxonomiesCallable() { - return stub.importTaxonomiesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports all taxonomies and their policy tags in a project. - * - *

This method generates SerializedTaxonomy protos with nested policy tags that can be used as - * an input for future ImportTaxonomies calls. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
-   *     PolicyTagManagerSerializationClient.create()) {
-   *   ExportTaxonomiesRequest request =
-   *       ExportTaxonomiesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .addAllTaxonomies(new ArrayList())
-   *           .build();
-   *   ExportTaxonomiesResponse response =
-   *       policyTagManagerSerializationClient.exportTaxonomies(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 ExportTaxonomiesResponse exportTaxonomies(ExportTaxonomiesRequest request) { - return exportTaxonomiesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Exports all taxonomies and their policy tags in a project. - * - *

This method generates SerializedTaxonomy protos with nested policy tags that can be used as - * an input for future ImportTaxonomies calls. - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
-   *     PolicyTagManagerSerializationClient.create()) {
-   *   ExportTaxonomiesRequest request =
-   *       ExportTaxonomiesRequest.newBuilder()
-   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
-   *           .addAllTaxonomies(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       policyTagManagerSerializationClient.exportTaxonomiesCallable().futureCall(request);
-   *   // Do something.
-   *   ExportTaxonomiesResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - exportTaxonomiesCallable() { - return stub.exportTaxonomiesCallable(); - } - - @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); - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java deleted file mode 100644 index df4309214f03..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationSettings.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.datacatalog.v1beta1.stub.PolicyTagManagerSerializationStubSettings; -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 PolicyTagManagerSerializationClient}. - * - *

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

    - *
  • The default service address (datacatalog.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 importTaxonomies: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerSerializationSettings.Builder policyTagManagerSerializationSettingsBuilder =
- *     PolicyTagManagerSerializationSettings.newBuilder();
- * policyTagManagerSerializationSettingsBuilder
- *     .importTaxonomiesSettings()
- *     .setRetrySettings(
- *         policyTagManagerSerializationSettingsBuilder
- *             .importTaxonomiesSettings()
- *             .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());
- * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
- *     policyTagManagerSerializationSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class PolicyTagManagerSerializationSettings - extends ClientSettings { - - /** Returns the object with the settings used for calls to importTaxonomies. */ - public UnaryCallSettings - importTaxonomiesSettings() { - return ((PolicyTagManagerSerializationStubSettings) getStubSettings()) - .importTaxonomiesSettings(); - } - - /** Returns the object with the settings used for calls to exportTaxonomies. */ - public UnaryCallSettings - exportTaxonomiesSettings() { - return ((PolicyTagManagerSerializationStubSettings) getStubSettings()) - .exportTaxonomiesSettings(); - } - - public static final PolicyTagManagerSerializationSettings create( - PolicyTagManagerSerializationStubSettings stub) throws IOException { - return new PolicyTagManagerSerializationSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return PolicyTagManagerSerializationStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return PolicyTagManagerSerializationStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return PolicyTagManagerSerializationStubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.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 PolicyTagManagerSerializationSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for PolicyTagManagerSerializationSettings. */ - public static class Builder - extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(PolicyTagManagerSerializationStubSettings.newBuilder(clientContext)); - } - - protected Builder(PolicyTagManagerSerializationSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(PolicyTagManagerSerializationStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(PolicyTagManagerSerializationStubSettings.newBuilder()); - } - - private static Builder createHttpJsonDefault() { - return new Builder(PolicyTagManagerSerializationStubSettings.newHttpJsonBuilder()); - } - - public PolicyTagManagerSerializationStubSettings.Builder getStubSettingsBuilder() { - return ((PolicyTagManagerSerializationStubSettings.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 importTaxonomies. */ - public UnaryCallSettings.Builder - importTaxonomiesSettings() { - return getStubSettingsBuilder().importTaxonomiesSettings(); - } - - /** Returns the builder for the settings used for calls to exportTaxonomies. */ - public UnaryCallSettings.Builder - exportTaxonomiesSettings() { - return getStubSettingsBuilder().exportTaxonomiesSettings(); - } - - @Override - public PolicyTagManagerSerializationSettings build() throws IOException { - return new PolicyTagManagerSerializationSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java deleted file mode 100644 index 4510b648c07d..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSettings.java +++ /dev/null @@ -1,359 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -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.PagedCallSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.datacatalog.v1beta1.stub.PolicyTagManagerStubSettings; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import 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 PolicyTagManagerClient}. - * - *

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

    - *
  • The default service address (datacatalog.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 createTaxonomy: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerSettings.Builder policyTagManagerSettingsBuilder =
- *     PolicyTagManagerSettings.newBuilder();
- * policyTagManagerSettingsBuilder
- *     .createTaxonomySettings()
- *     .setRetrySettings(
- *         policyTagManagerSettingsBuilder
- *             .createTaxonomySettings()
- *             .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());
- * PolicyTagManagerSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class PolicyTagManagerSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to createTaxonomy. */ - public UnaryCallSettings createTaxonomySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).createTaxonomySettings(); - } - - /** Returns the object with the settings used for calls to deleteTaxonomy. */ - public UnaryCallSettings deleteTaxonomySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).deleteTaxonomySettings(); - } - - /** Returns the object with the settings used for calls to updateTaxonomy. */ - public UnaryCallSettings updateTaxonomySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).updateTaxonomySettings(); - } - - /** Returns the object with the settings used for calls to listTaxonomies. */ - public PagedCallSettings< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).listTaxonomiesSettings(); - } - - /** Returns the object with the settings used for calls to getTaxonomy. */ - public UnaryCallSettings getTaxonomySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).getTaxonomySettings(); - } - - /** Returns the object with the settings used for calls to createPolicyTag. */ - public UnaryCallSettings createPolicyTagSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).createPolicyTagSettings(); - } - - /** Returns the object with the settings used for calls to deletePolicyTag. */ - public UnaryCallSettings deletePolicyTagSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).deletePolicyTagSettings(); - } - - /** Returns the object with the settings used for calls to updatePolicyTag. */ - public UnaryCallSettings updatePolicyTagSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).updatePolicyTagSettings(); - } - - /** Returns the object with the settings used for calls to listPolicyTags. */ - public PagedCallSettings< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).listPolicyTagsSettings(); - } - - /** Returns the object with the settings used for calls to getPolicyTag. */ - public UnaryCallSettings getPolicyTagSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).getPolicyTagSettings(); - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return ((PolicyTagManagerStubSettings) getStubSettings()).testIamPermissionsSettings(); - } - - public static final PolicyTagManagerSettings create(PolicyTagManagerStubSettings stub) - throws IOException { - return new PolicyTagManagerSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return PolicyTagManagerStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return PolicyTagManagerStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return PolicyTagManagerStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return PolicyTagManagerStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return PolicyTagManagerStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return PolicyTagManagerStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return PolicyTagManagerStubSettings.defaultTransportChannelProvider(); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return PolicyTagManagerStubSettings.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 PolicyTagManagerSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for PolicyTagManagerSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(PolicyTagManagerStubSettings.newBuilder(clientContext)); - } - - protected Builder(PolicyTagManagerSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(PolicyTagManagerStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(PolicyTagManagerStubSettings.newBuilder()); - } - - private static Builder createHttpJsonDefault() { - return new Builder(PolicyTagManagerStubSettings.newHttpJsonBuilder()); - } - - public PolicyTagManagerStubSettings.Builder getStubSettingsBuilder() { - return ((PolicyTagManagerStubSettings.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 createTaxonomy. */ - public UnaryCallSettings.Builder createTaxonomySettings() { - return getStubSettingsBuilder().createTaxonomySettings(); - } - - /** Returns the builder for the settings used for calls to deleteTaxonomy. */ - public UnaryCallSettings.Builder deleteTaxonomySettings() { - return getStubSettingsBuilder().deleteTaxonomySettings(); - } - - /** Returns the builder for the settings used for calls to updateTaxonomy. */ - public UnaryCallSettings.Builder updateTaxonomySettings() { - return getStubSettingsBuilder().updateTaxonomySettings(); - } - - /** Returns the builder for the settings used for calls to listTaxonomies. */ - public PagedCallSettings.Builder< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings() { - return getStubSettingsBuilder().listTaxonomiesSettings(); - } - - /** Returns the builder for the settings used for calls to getTaxonomy. */ - public UnaryCallSettings.Builder getTaxonomySettings() { - return getStubSettingsBuilder().getTaxonomySettings(); - } - - /** Returns the builder for the settings used for calls to createPolicyTag. */ - public UnaryCallSettings.Builder createPolicyTagSettings() { - return getStubSettingsBuilder().createPolicyTagSettings(); - } - - /** Returns the builder for the settings used for calls to deletePolicyTag. */ - public UnaryCallSettings.Builder deletePolicyTagSettings() { - return getStubSettingsBuilder().deletePolicyTagSettings(); - } - - /** Returns the builder for the settings used for calls to updatePolicyTag. */ - public UnaryCallSettings.Builder updatePolicyTagSettings() { - return getStubSettingsBuilder().updatePolicyTagSettings(); - } - - /** Returns the builder for the settings used for calls to listPolicyTags. */ - public PagedCallSettings.Builder< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings() { - return getStubSettingsBuilder().listPolicyTagsSettings(); - } - - /** Returns the builder for the settings used for calls to getPolicyTag. */ - public UnaryCallSettings.Builder getPolicyTagSettings() { - return getStubSettingsBuilder().getPolicyTagSettings(); - } - - /** 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 setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - @Override - public PolicyTagManagerSettings build() throws IOException { - return new PolicyTagManagerSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/gapic_metadata.json b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/gapic_metadata.json deleted file mode 100644 index fd14ec3f0206..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/gapic_metadata.json +++ /dev/null @@ -1,165 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.cloud.datacatalog.v1beta1", - "libraryPackage": "com.google.cloud.datacatalog.v1beta1", - "services": { - "DataCatalog": { - "clients": { - "grpc": { - "libraryClient": "DataCatalogClient", - "rpcs": { - "CreateEntry": { - "methods": ["createEntry", "createEntry", "createEntry", "createEntryCallable"] - }, - "CreateEntryGroup": { - "methods": ["createEntryGroup", "createEntryGroup", "createEntryGroup", "createEntryGroupCallable"] - }, - "CreateTag": { - "methods": ["createTag", "createTag", "createTag", "createTagCallable"] - }, - "CreateTagTemplate": { - "methods": ["createTagTemplate", "createTagTemplate", "createTagTemplate", "createTagTemplateCallable"] - }, - "CreateTagTemplateField": { - "methods": ["createTagTemplateField", "createTagTemplateField", "createTagTemplateField", "createTagTemplateFieldCallable"] - }, - "DeleteEntry": { - "methods": ["deleteEntry", "deleteEntry", "deleteEntry", "deleteEntryCallable"] - }, - "DeleteEntryGroup": { - "methods": ["deleteEntryGroup", "deleteEntryGroup", "deleteEntryGroup", "deleteEntryGroupCallable"] - }, - "DeleteTag": { - "methods": ["deleteTag", "deleteTag", "deleteTag", "deleteTagCallable"] - }, - "DeleteTagTemplate": { - "methods": ["deleteTagTemplate", "deleteTagTemplate", "deleteTagTemplate", "deleteTagTemplateCallable"] - }, - "DeleteTagTemplateField": { - "methods": ["deleteTagTemplateField", "deleteTagTemplateField", "deleteTagTemplateField", "deleteTagTemplateFieldCallable"] - }, - "GetEntry": { - "methods": ["getEntry", "getEntry", "getEntry", "getEntryCallable"] - }, - "GetEntryGroup": { - "methods": ["getEntryGroup", "getEntryGroup", "getEntryGroup", "getEntryGroup", "getEntryGroup", "getEntryGroupCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] - }, - "GetTagTemplate": { - "methods": ["getTagTemplate", "getTagTemplate", "getTagTemplate", "getTagTemplateCallable"] - }, - "ListEntries": { - "methods": ["listEntries", "listEntries", "listEntries", "listEntriesPagedCallable", "listEntriesCallable"] - }, - "ListEntryGroups": { - "methods": ["listEntryGroups", "listEntryGroups", "listEntryGroups", "listEntryGroupsPagedCallable", "listEntryGroupsCallable"] - }, - "ListTags": { - "methods": ["listTags", "listTags", "listTags", "listTagsPagedCallable", "listTagsCallable"] - }, - "LookupEntry": { - "methods": ["lookupEntry", "lookupEntryCallable"] - }, - "RenameTagTemplateField": { - "methods": ["renameTagTemplateField", "renameTagTemplateField", "renameTagTemplateField", "renameTagTemplateFieldCallable"] - }, - "RenameTagTemplateFieldEnumValue": { - "methods": ["renameTagTemplateFieldEnumValue", "renameTagTemplateFieldEnumValue", "renameTagTemplateFieldEnumValue", "renameTagTemplateFieldEnumValueCallable"] - }, - "SearchCatalog": { - "methods": ["searchCatalog", "searchCatalog", "searchCatalogPagedCallable", "searchCatalogCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissionsCallable"] - }, - "UpdateEntry": { - "methods": ["updateEntry", "updateEntry", "updateEntry", "updateEntryCallable"] - }, - "UpdateEntryGroup": { - "methods": ["updateEntryGroup", "updateEntryGroup", "updateEntryGroup", "updateEntryGroupCallable"] - }, - "UpdateTag": { - "methods": ["updateTag", "updateTag", "updateTag", "updateTagCallable"] - }, - "UpdateTagTemplate": { - "methods": ["updateTagTemplate", "updateTagTemplate", "updateTagTemplate", "updateTagTemplateCallable"] - }, - "UpdateTagTemplateField": { - "methods": ["updateTagTemplateField", "updateTagTemplateField", "updateTagTemplateField", "updateTagTemplateField", "updateTagTemplateField", "updateTagTemplateFieldCallable"] - } - } - } - } - }, - "PolicyTagManager": { - "clients": { - "grpc": { - "libraryClient": "PolicyTagManagerClient", - "rpcs": { - "CreatePolicyTag": { - "methods": ["createPolicyTag", "createPolicyTag", "createPolicyTag", "createPolicyTagCallable"] - }, - "CreateTaxonomy": { - "methods": ["createTaxonomy", "createTaxonomy", "createTaxonomy", "createTaxonomyCallable"] - }, - "DeletePolicyTag": { - "methods": ["deletePolicyTag", "deletePolicyTag", "deletePolicyTag", "deletePolicyTagCallable"] - }, - "DeleteTaxonomy": { - "methods": ["deleteTaxonomy", "deleteTaxonomy", "deleteTaxonomy", "deleteTaxonomyCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicyCallable"] - }, - "GetPolicyTag": { - "methods": ["getPolicyTag", "getPolicyTag", "getPolicyTag", "getPolicyTagCallable"] - }, - "GetTaxonomy": { - "methods": ["getTaxonomy", "getTaxonomy", "getTaxonomy", "getTaxonomyCallable"] - }, - "ListPolicyTags": { - "methods": ["listPolicyTags", "listPolicyTags", "listPolicyTags", "listPolicyTagsPagedCallable", "listPolicyTagsCallable"] - }, - "ListTaxonomies": { - "methods": ["listTaxonomies", "listTaxonomies", "listTaxonomies", "listTaxonomiesPagedCallable", "listTaxonomiesCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicyCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissionsCallable"] - }, - "UpdatePolicyTag": { - "methods": ["updatePolicyTag", "updatePolicyTag", "updatePolicyTagCallable"] - }, - "UpdateTaxonomy": { - "methods": ["updateTaxonomy", "updateTaxonomy", "updateTaxonomyCallable"] - } - } - } - } - }, - "PolicyTagManagerSerialization": { - "clients": { - "grpc": { - "libraryClient": "PolicyTagManagerSerializationClient", - "rpcs": { - "ExportTaxonomies": { - "methods": ["exportTaxonomies", "exportTaxonomiesCallable"] - }, - "ImportTaxonomies": { - "methods": ["importTaxonomies", "importTaxonomiesCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java deleted file mode 100644 index d3c6dcad5472..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/package-info.java +++ /dev/null @@ -1,91 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT 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 Google Cloud Data Catalog API - * - *

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

======================= DataCatalogClient ======================= - * - *

Service Description: Deprecated: Please use Dataplex Catalog instead. - * - *

Data Catalog API service allows clients to discover, understand, and manage their data. - * - *

Sample for DataCatalogClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) {
- *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
- *   String entryGroupId = "entryGroupId1228924712";
- *   EntryGroup entryGroup = EntryGroup.newBuilder().build();
- *   EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup);
- * }
- * }
- * - *

======================= PolicyTagManagerClient ======================= - * - *

Service Description: The policy tag manager API service allows clients to manage their - * taxonomies and policy tags. - * - *

Sample for PolicyTagManagerClient: - * - *

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

======================= PolicyTagManagerSerializationClient ======================= - * - *

Service Description: Policy tag manager serialization API service allows clients to manipulate - * their taxonomies and policy tags data with serialized format. - * - *

Sample for PolicyTagManagerSerializationClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
- *     PolicyTagManagerSerializationClient.create()) {
- *   ImportTaxonomiesRequest request =
- *       ImportTaxonomiesRequest.newBuilder()
- *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
- *           .build();
- *   ImportTaxonomiesResponse response =
- *       policyTagManagerSerializationClient.importTaxonomies(request);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.cloud.datacatalog.v1beta1; - -import javax.annotation.Generated; diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java deleted file mode 100644 index e925ca793db6..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java +++ /dev/null @@ -1,254 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.SearchCatalogPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.GetEntryRequest; -import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntriesRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntriesResponse; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse; -import com.google.cloud.datacatalog.v1beta1.ListTagsRequest; -import com.google.cloud.datacatalog.v1beta1.ListTagsResponse; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse; -import com.google.cloud.datacatalog.v1beta1.Tag; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the DataCatalog service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@BetaApi -@Deprecated -@Generated("by gapic-generator-java") -public abstract class DataCatalogStub implements BackgroundResource { - - @Deprecated - public UnaryCallable - searchCatalogPagedCallable() { - throw new UnsupportedOperationException("Not implemented: searchCatalogPagedCallable()"); - } - - @Deprecated - public UnaryCallable searchCatalogCallable() { - throw new UnsupportedOperationException("Not implemented: searchCatalogCallable()"); - } - - @Deprecated - public UnaryCallable createEntryGroupCallable() { - throw new UnsupportedOperationException("Not implemented: createEntryGroupCallable()"); - } - - @Deprecated - public UnaryCallable updateEntryGroupCallable() { - throw new UnsupportedOperationException("Not implemented: updateEntryGroupCallable()"); - } - - @Deprecated - public UnaryCallable getEntryGroupCallable() { - throw new UnsupportedOperationException("Not implemented: getEntryGroupCallable()"); - } - - @Deprecated - public UnaryCallable deleteEntryGroupCallable() { - throw new UnsupportedOperationException("Not implemented: deleteEntryGroupCallable()"); - } - - @Deprecated - public UnaryCallable - listEntryGroupsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listEntryGroupsPagedCallable()"); - } - - @Deprecated - public UnaryCallable listEntryGroupsCallable() { - throw new UnsupportedOperationException("Not implemented: listEntryGroupsCallable()"); - } - - @Deprecated - public UnaryCallable createEntryCallable() { - throw new UnsupportedOperationException("Not implemented: createEntryCallable()"); - } - - @Deprecated - public UnaryCallable updateEntryCallable() { - throw new UnsupportedOperationException("Not implemented: updateEntryCallable()"); - } - - @Deprecated - public UnaryCallable deleteEntryCallable() { - throw new UnsupportedOperationException("Not implemented: deleteEntryCallable()"); - } - - @Deprecated - public UnaryCallable getEntryCallable() { - throw new UnsupportedOperationException("Not implemented: getEntryCallable()"); - } - - @Deprecated - public UnaryCallable lookupEntryCallable() { - throw new UnsupportedOperationException("Not implemented: lookupEntryCallable()"); - } - - @Deprecated - public UnaryCallable listEntriesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listEntriesPagedCallable()"); - } - - @Deprecated - public UnaryCallable listEntriesCallable() { - throw new UnsupportedOperationException("Not implemented: listEntriesCallable()"); - } - - @Deprecated - public UnaryCallable createTagTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: createTagTemplateCallable()"); - } - - @Deprecated - public UnaryCallable getTagTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: getTagTemplateCallable()"); - } - - @Deprecated - public UnaryCallable updateTagTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: updateTagTemplateCallable()"); - } - - @Deprecated - public UnaryCallable deleteTagTemplateCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTagTemplateCallable()"); - } - - @Deprecated - public UnaryCallable - createTagTemplateFieldCallable() { - throw new UnsupportedOperationException("Not implemented: createTagTemplateFieldCallable()"); - } - - @Deprecated - public UnaryCallable - updateTagTemplateFieldCallable() { - throw new UnsupportedOperationException("Not implemented: updateTagTemplateFieldCallable()"); - } - - @Deprecated - public UnaryCallable - renameTagTemplateFieldCallable() { - throw new UnsupportedOperationException("Not implemented: renameTagTemplateFieldCallable()"); - } - - @Deprecated - public UnaryCallable - renameTagTemplateFieldEnumValueCallable() { - throw new UnsupportedOperationException( - "Not implemented: renameTagTemplateFieldEnumValueCallable()"); - } - - @Deprecated - public UnaryCallable deleteTagTemplateFieldCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTagTemplateFieldCallable()"); - } - - @Deprecated - public UnaryCallable createTagCallable() { - throw new UnsupportedOperationException("Not implemented: createTagCallable()"); - } - - @Deprecated - public UnaryCallable updateTagCallable() { - throw new UnsupportedOperationException("Not implemented: updateTagCallable()"); - } - - @Deprecated - public UnaryCallable deleteTagCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTagCallable()"); - } - - @Deprecated - public UnaryCallable listTagsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listTagsPagedCallable()"); - } - - @Deprecated - public UnaryCallable listTagsCallable() { - throw new UnsupportedOperationException("Not implemented: listTagsCallable()"); - } - - @Deprecated - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - @Deprecated - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - @Deprecated - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java deleted file mode 100644 index babcfe020123..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java +++ /dev/null @@ -1,1563 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.SearchCatalogPagedResponse; - -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.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.LibraryMetadata; -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.datacatalog.v1beta1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.GetEntryRequest; -import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntriesRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntriesResponse; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse; -import com.google.cloud.datacatalog.v1beta1.ListTagsRequest; -import com.google.cloud.datacatalog.v1beta1.ListTagsResponse; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult; -import com.google.cloud.datacatalog.v1beta1.Tag; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest; -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.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import 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 DataCatalogStub}. - * - *

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

    - *
  • The default service address (datacatalog.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 createEntryGroup: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataCatalogStubSettings.Builder dataCatalogSettingsBuilder =
- *     DataCatalogStubSettings.newBuilder();
- * dataCatalogSettingsBuilder
- *     .createEntryGroupSettings()
- *     .setRetrySettings(
- *         dataCatalogSettingsBuilder
- *             .createEntryGroupSettings()
- *             .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());
- * DataCatalogStubSettings dataCatalogSettings = dataCatalogSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@BetaApi -@Deprecated -@Generated("by gapic-generator-java") -@SuppressWarnings("CanonicalDuration") -public class DataCatalogStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - searchCatalogSettings; - private final UnaryCallSettings createEntryGroupSettings; - private final UnaryCallSettings updateEntryGroupSettings; - private final UnaryCallSettings getEntryGroupSettings; - private final UnaryCallSettings deleteEntryGroupSettings; - private final PagedCallSettings< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings; - private final UnaryCallSettings createEntrySettings; - private final UnaryCallSettings updateEntrySettings; - private final UnaryCallSettings deleteEntrySettings; - private final UnaryCallSettings getEntrySettings; - private final UnaryCallSettings lookupEntrySettings; - private final PagedCallSettings - listEntriesSettings; - private final UnaryCallSettings createTagTemplateSettings; - private final UnaryCallSettings getTagTemplateSettings; - private final UnaryCallSettings updateTagTemplateSettings; - private final UnaryCallSettings deleteTagTemplateSettings; - private final UnaryCallSettings - createTagTemplateFieldSettings; - private final UnaryCallSettings - updateTagTemplateFieldSettings; - private final UnaryCallSettings - renameTagTemplateFieldSettings; - private final UnaryCallSettings - renameTagTemplateFieldEnumValueSettings; - private final UnaryCallSettings - deleteTagTemplateFieldSettings; - private final UnaryCallSettings createTagSettings; - private final UnaryCallSettings updateTagSettings; - private final UnaryCallSettings deleteTagSettings; - private final PagedCallSettings - listTagsSettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; - - private static final PagedListDescriptor< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogResult> - SEARCH_CATALOG_PAGE_STR_DESC = - new PagedListDescriptor< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogResult>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public SearchCatalogRequest injectToken(SearchCatalogRequest payload, String token) { - return SearchCatalogRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public SearchCatalogRequest injectPageSize(SearchCatalogRequest payload, int pageSize) { - return SearchCatalogRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(SearchCatalogRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(SearchCatalogResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(SearchCatalogResponse payload) { - return payload.getResultsList(); - } - }; - - private static final PagedListDescriptor< - ListEntryGroupsRequest, ListEntryGroupsResponse, EntryGroup> - LIST_ENTRY_GROUPS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListEntryGroupsRequest injectToken( - ListEntryGroupsRequest payload, String token) { - return ListEntryGroupsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListEntryGroupsRequest injectPageSize( - ListEntryGroupsRequest payload, int pageSize) { - return ListEntryGroupsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListEntryGroupsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListEntryGroupsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListEntryGroupsResponse payload) { - return payload.getEntryGroupsList(); - } - }; - - private static final PagedListDescriptor - LIST_ENTRIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListEntriesRequest injectToken(ListEntriesRequest payload, String token) { - return ListEntriesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListEntriesRequest injectPageSize(ListEntriesRequest payload, int pageSize) { - return ListEntriesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListEntriesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListEntriesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListEntriesResponse payload) { - return payload.getEntriesList(); - } - }; - - private static final PagedListDescriptor - LIST_TAGS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListTagsRequest injectToken(ListTagsRequest payload, String token) { - return ListTagsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListTagsRequest injectPageSize(ListTagsRequest payload, int pageSize) { - return ListTagsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListTagsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListTagsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListTagsResponse payload) { - return payload.getTagsList(); - } - }; - - private static final PagedListResponseFactory< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - SEARCH_CATALOG_PAGE_STR_FACT = - new PagedListResponseFactory< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - SearchCatalogRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create(callable, SEARCH_CATALOG_PAGE_STR_DESC, request, context); - return SearchCatalogPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - LIST_ENTRY_GROUPS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListEntryGroupsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_ENTRY_GROUPS_PAGE_STR_DESC, request, context); - return ListEntryGroupsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> - LIST_ENTRIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListEntriesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_ENTRIES_PAGE_STR_DESC, request, context); - return ListEntriesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListTagsRequest, ListTagsResponse, ListTagsPagedResponse> - LIST_TAGS_PAGE_STR_FACT = - new PagedListResponseFactory() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListTagsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_TAGS_PAGE_STR_DESC, request, context); - return ListTagsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** - * Returns the object with the settings used for calls to searchCatalog. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - searchCatalogSettings() { - return searchCatalogSettings; - } - - /** - * Returns the object with the settings used for calls to createEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createEntryGroupSettings() { - return createEntryGroupSettings; - } - - /** - * Returns the object with the settings used for calls to updateEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateEntryGroupSettings() { - return updateEntryGroupSettings; - } - - /** - * Returns the object with the settings used for calls to getEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getEntryGroupSettings() { - return getEntryGroupSettings; - } - - /** - * Returns the object with the settings used for calls to deleteEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteEntryGroupSettings() { - return deleteEntryGroupSettings; - } - - /** - * Returns the object with the settings used for calls to listEntryGroups. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return listEntryGroupsSettings; - } - - /** - * Returns the object with the settings used for calls to createEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createEntrySettings() { - return createEntrySettings; - } - - /** - * Returns the object with the settings used for calls to updateEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateEntrySettings() { - return updateEntrySettings; - } - - /** - * Returns the object with the settings used for calls to deleteEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteEntrySettings() { - return deleteEntrySettings; - } - - /** - * Returns the object with the settings used for calls to getEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getEntrySettings() { - return getEntrySettings; - } - - /** - * Returns the object with the settings used for calls to lookupEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings lookupEntrySettings() { - return lookupEntrySettings; - } - - /** - * Returns the object with the settings used for calls to listEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - listEntriesSettings() { - return listEntriesSettings; - } - - /** - * Returns the object with the settings used for calls to createTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createTagTemplateSettings() { - return createTagTemplateSettings; - } - - /** - * Returns the object with the settings used for calls to getTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getTagTemplateSettings() { - return getTagTemplateSettings; - } - - /** - * Returns the object with the settings used for calls to updateTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateTagTemplateSettings() { - return updateTagTemplateSettings; - } - - /** - * Returns the object with the settings used for calls to deleteTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagTemplateSettings() { - return deleteTagTemplateSettings; - } - - /** - * Returns the object with the settings used for calls to createTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - createTagTemplateFieldSettings() { - return createTagTemplateFieldSettings; - } - - /** - * Returns the object with the settings used for calls to updateTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - updateTagTemplateFieldSettings() { - return updateTagTemplateFieldSettings; - } - - /** - * Returns the object with the settings used for calls to renameTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - renameTagTemplateFieldSettings() { - return renameTagTemplateFieldSettings; - } - - /** - * Returns the object with the settings used for calls to renameTagTemplateFieldEnumValue. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - renameTagTemplateFieldEnumValueSettings() { - return renameTagTemplateFieldEnumValueSettings; - } - - /** - * Returns the object with the settings used for calls to deleteTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagTemplateFieldSettings() { - return deleteTagTemplateFieldSettings; - } - - /** - * Returns the object with the settings used for calls to createTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings createTagSettings() { - return createTagSettings; - } - - /** - * Returns the object with the settings used for calls to updateTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings updateTagSettings() { - return updateTagSettings; - } - - /** - * Returns the object with the settings used for calls to deleteTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings deleteTagSettings() { - return deleteTagSettings; - } - - /** - * Returns the object with the settings used for calls to listTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings - listTagsSettings() { - return listTagsSettings; - } - - /** - * Returns the object with the settings used for calls to setIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** - * Returns the object with the settings used for calls to getIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - - /** - * Returns the object with the settings used for calls to testIamPermissions. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - public DataCatalogStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcDataCatalogStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonDataCatalogStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "datacatalog"; - } - - /** 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 "datacatalog.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "datacatalog.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(DataCatalogStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(DataCatalogStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataCatalogStubSettings.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 DataCatalogStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - searchCatalogSettings = settingsBuilder.searchCatalogSettings().build(); - createEntryGroupSettings = settingsBuilder.createEntryGroupSettings().build(); - updateEntryGroupSettings = settingsBuilder.updateEntryGroupSettings().build(); - getEntryGroupSettings = settingsBuilder.getEntryGroupSettings().build(); - deleteEntryGroupSettings = settingsBuilder.deleteEntryGroupSettings().build(); - listEntryGroupsSettings = settingsBuilder.listEntryGroupsSettings().build(); - createEntrySettings = settingsBuilder.createEntrySettings().build(); - updateEntrySettings = settingsBuilder.updateEntrySettings().build(); - deleteEntrySettings = settingsBuilder.deleteEntrySettings().build(); - getEntrySettings = settingsBuilder.getEntrySettings().build(); - lookupEntrySettings = settingsBuilder.lookupEntrySettings().build(); - listEntriesSettings = settingsBuilder.listEntriesSettings().build(); - createTagTemplateSettings = settingsBuilder.createTagTemplateSettings().build(); - getTagTemplateSettings = settingsBuilder.getTagTemplateSettings().build(); - updateTagTemplateSettings = settingsBuilder.updateTagTemplateSettings().build(); - deleteTagTemplateSettings = settingsBuilder.deleteTagTemplateSettings().build(); - createTagTemplateFieldSettings = settingsBuilder.createTagTemplateFieldSettings().build(); - updateTagTemplateFieldSettings = settingsBuilder.updateTagTemplateFieldSettings().build(); - renameTagTemplateFieldSettings = settingsBuilder.renameTagTemplateFieldSettings().build(); - renameTagTemplateFieldEnumValueSettings = - settingsBuilder.renameTagTemplateFieldEnumValueSettings().build(); - deleteTagTemplateFieldSettings = settingsBuilder.deleteTagTemplateFieldSettings().build(); - createTagSettings = settingsBuilder.createTagSettings().build(); - updateTagSettings = settingsBuilder.updateTagSettings().build(); - deleteTagSettings = settingsBuilder.deleteTagSettings().build(); - listTagsSettings = settingsBuilder.listTagsSettings().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-datacatalog") - .setRepository("googleapis/google-cloud-java") - .setVersion(Version.VERSION) - .build(); - } - - /** Builder for DataCatalogStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - searchCatalogSettings; - private final UnaryCallSettings.Builder - createEntryGroupSettings; - private final UnaryCallSettings.Builder - updateEntryGroupSettings; - private final UnaryCallSettings.Builder getEntryGroupSettings; - private final UnaryCallSettings.Builder - deleteEntryGroupSettings; - private final PagedCallSettings.Builder< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings; - private final UnaryCallSettings.Builder createEntrySettings; - private final UnaryCallSettings.Builder updateEntrySettings; - private final UnaryCallSettings.Builder deleteEntrySettings; - private final UnaryCallSettings.Builder getEntrySettings; - private final UnaryCallSettings.Builder lookupEntrySettings; - private final PagedCallSettings.Builder< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> - listEntriesSettings; - private final UnaryCallSettings.Builder - createTagTemplateSettings; - private final UnaryCallSettings.Builder - getTagTemplateSettings; - private final UnaryCallSettings.Builder - updateTagTemplateSettings; - private final UnaryCallSettings.Builder - deleteTagTemplateSettings; - private final UnaryCallSettings.Builder - createTagTemplateFieldSettings; - private final UnaryCallSettings.Builder - updateTagTemplateFieldSettings; - private final UnaryCallSettings.Builder - renameTagTemplateFieldSettings; - private final UnaryCallSettings.Builder< - RenameTagTemplateFieldEnumValueRequest, TagTemplateField> - renameTagTemplateFieldEnumValueSettings; - private final UnaryCallSettings.Builder - deleteTagTemplateFieldSettings; - private final UnaryCallSettings.Builder createTagSettings; - private final UnaryCallSettings.Builder updateTagSettings; - private final UnaryCallSettings.Builder deleteTagSettings; - private final PagedCallSettings.Builder< - ListTagsRequest, ListTagsResponse, ListTagsPagedResponse> - listTagsSettings; - 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, - StatusCode.Code.RESOURCE_EXHAUSTED, - StatusCode.Code.INTERNAL))); - 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(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelayDuration(Duration.ofMillis(60000L)) - .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setTotalTimeoutDuration(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(clientContext); - - searchCatalogSettings = PagedCallSettings.newBuilder(SEARCH_CATALOG_PAGE_STR_FACT); - createEntryGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateEntryGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getEntryGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteEntryGroupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listEntryGroupsSettings = PagedCallSettings.newBuilder(LIST_ENTRY_GROUPS_PAGE_STR_FACT); - createEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - lookupEntrySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listEntriesSettings = PagedCallSettings.newBuilder(LIST_ENTRIES_PAGE_STR_FACT); - createTagTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getTagTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateTagTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTagTemplateSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createTagTemplateFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateTagTemplateFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - renameTagTemplateFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - renameTagTemplateFieldEnumValueSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTagTemplateFieldSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listTagsSettings = PagedCallSettings.newBuilder(LIST_TAGS_PAGE_STR_FACT); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - searchCatalogSettings, - createEntryGroupSettings, - updateEntryGroupSettings, - getEntryGroupSettings, - deleteEntryGroupSettings, - listEntryGroupsSettings, - createEntrySettings, - updateEntrySettings, - deleteEntrySettings, - getEntrySettings, - lookupEntrySettings, - listEntriesSettings, - createTagTemplateSettings, - getTagTemplateSettings, - updateTagTemplateSettings, - deleteTagTemplateSettings, - createTagTemplateFieldSettings, - updateTagTemplateFieldSettings, - renameTagTemplateFieldSettings, - renameTagTemplateFieldEnumValueSettings, - deleteTagTemplateFieldSettings, - createTagSettings, - updateTagSettings, - deleteTagSettings, - listTagsSettings, - setIamPolicySettings, - getIamPolicySettings, - testIamPermissionsSettings); - initDefaults(this); - } - - protected Builder(DataCatalogStubSettings settings) { - super(settings); - - searchCatalogSettings = settings.searchCatalogSettings.toBuilder(); - createEntryGroupSettings = settings.createEntryGroupSettings.toBuilder(); - updateEntryGroupSettings = settings.updateEntryGroupSettings.toBuilder(); - getEntryGroupSettings = settings.getEntryGroupSettings.toBuilder(); - deleteEntryGroupSettings = settings.deleteEntryGroupSettings.toBuilder(); - listEntryGroupsSettings = settings.listEntryGroupsSettings.toBuilder(); - createEntrySettings = settings.createEntrySettings.toBuilder(); - updateEntrySettings = settings.updateEntrySettings.toBuilder(); - deleteEntrySettings = settings.deleteEntrySettings.toBuilder(); - getEntrySettings = settings.getEntrySettings.toBuilder(); - lookupEntrySettings = settings.lookupEntrySettings.toBuilder(); - listEntriesSettings = settings.listEntriesSettings.toBuilder(); - createTagTemplateSettings = settings.createTagTemplateSettings.toBuilder(); - getTagTemplateSettings = settings.getTagTemplateSettings.toBuilder(); - updateTagTemplateSettings = settings.updateTagTemplateSettings.toBuilder(); - deleteTagTemplateSettings = settings.deleteTagTemplateSettings.toBuilder(); - createTagTemplateFieldSettings = settings.createTagTemplateFieldSettings.toBuilder(); - updateTagTemplateFieldSettings = settings.updateTagTemplateFieldSettings.toBuilder(); - renameTagTemplateFieldSettings = settings.renameTagTemplateFieldSettings.toBuilder(); - renameTagTemplateFieldEnumValueSettings = - settings.renameTagTemplateFieldEnumValueSettings.toBuilder(); - deleteTagTemplateFieldSettings = settings.deleteTagTemplateFieldSettings.toBuilder(); - createTagSettings = settings.createTagSettings.toBuilder(); - updateTagSettings = settings.updateTagSettings.toBuilder(); - deleteTagSettings = settings.deleteTagSettings.toBuilder(); - listTagsSettings = settings.listTagsSettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - searchCatalogSettings, - createEntryGroupSettings, - updateEntryGroupSettings, - getEntryGroupSettings, - deleteEntryGroupSettings, - listEntryGroupsSettings, - createEntrySettings, - updateEntrySettings, - deleteEntrySettings, - getEntrySettings, - lookupEntrySettings, - listEntriesSettings, - createTagTemplateSettings, - getTagTemplateSettings, - updateTagTemplateSettings, - deleteTagTemplateSettings, - createTagTemplateFieldSettings, - updateTagTemplateFieldSettings, - renameTagTemplateFieldSettings, - renameTagTemplateFieldEnumValueSettings, - deleteTagTemplateFieldSettings, - createTagSettings, - updateTagSettings, - deleteTagSettings, - listTagsSettings, - 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 - .searchCatalogSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createEntryGroupSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateEntryGroupSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getEntryGroupSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteEntryGroupSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listEntryGroupsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .lookupEntrySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listEntriesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createTagTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getTagTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateTagTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteTagTemplateSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createTagTemplateFieldSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateTagTemplateFieldSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .renameTagTemplateFieldSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .renameTagTemplateFieldEnumValueSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteTagTemplateFieldSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .updateTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .deleteTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .listTagsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - 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 searchCatalog. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - SearchCatalogRequest, SearchCatalogResponse, SearchCatalogPagedResponse> - searchCatalogSettings() { - return searchCatalogSettings; - } - - /** - * Returns the builder for the settings used for calls to createEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createEntryGroupSettings() { - return createEntryGroupSettings; - } - - /** - * Returns the builder for the settings used for calls to updateEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateEntryGroupSettings() { - return updateEntryGroupSettings; - } - - /** - * Returns the builder for the settings used for calls to getEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getEntryGroupSettings() { - return getEntryGroupSettings; - } - - /** - * Returns the builder for the settings used for calls to deleteEntryGroup. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteEntryGroupSettings() { - return deleteEntryGroupSettings; - } - - /** - * Returns the builder for the settings used for calls to listEntryGroups. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - ListEntryGroupsRequest, ListEntryGroupsResponse, ListEntryGroupsPagedResponse> - listEntryGroupsSettings() { - return listEntryGroupsSettings; - } - - /** - * Returns the builder for the settings used for calls to createEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder createEntrySettings() { - return createEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to updateEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder updateEntrySettings() { - return updateEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to deleteEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteEntrySettings() { - return deleteEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to getEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getEntrySettings() { - return getEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to lookupEntry. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder lookupEntrySettings() { - return lookupEntrySettings; - } - - /** - * Returns the builder for the settings used for calls to listEntries. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder< - ListEntriesRequest, ListEntriesResponse, ListEntriesPagedResponse> - listEntriesSettings() { - return listEntriesSettings; - } - - /** - * Returns the builder for the settings used for calls to createTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createTagTemplateSettings() { - return createTagTemplateSettings; - } - - /** - * Returns the builder for the settings used for calls to getTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getTagTemplateSettings() { - return getTagTemplateSettings; - } - - /** - * Returns the builder for the settings used for calls to updateTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateTagTemplateSettings() { - return updateTagTemplateSettings; - } - - /** - * Returns the builder for the settings used for calls to deleteTagTemplate. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteTagTemplateSettings() { - return deleteTagTemplateSettings; - } - - /** - * Returns the builder for the settings used for calls to createTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - createTagTemplateFieldSettings() { - return createTagTemplateFieldSettings; - } - - /** - * Returns the builder for the settings used for calls to updateTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - updateTagTemplateFieldSettings() { - return updateTagTemplateFieldSettings; - } - - /** - * Returns the builder for the settings used for calls to renameTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - renameTagTemplateFieldSettings() { - return renameTagTemplateFieldSettings; - } - - /** - * Returns the builder for the settings used for calls to renameTagTemplateFieldEnumValue. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - renameTagTemplateFieldEnumValueSettings() { - return renameTagTemplateFieldEnumValueSettings; - } - - /** - * Returns the builder for the settings used for calls to deleteTagTemplateField. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - deleteTagTemplateFieldSettings() { - return deleteTagTemplateFieldSettings; - } - - /** - * Returns the builder for the settings used for calls to createTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder createTagSettings() { - return createTagSettings; - } - - /** - * Returns the builder for the settings used for calls to updateTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder updateTagSettings() { - return updateTagSettings; - } - - /** - * Returns the builder for the settings used for calls to deleteTag. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder deleteTagSettings() { - return deleteTagSettings; - } - - /** - * Returns the builder for the settings used for calls to listTags. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public PagedCallSettings.Builder - listTagsSettings() { - return listTagsSettings; - } - - /** - * Returns the builder for the settings used for calls to setIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder setIamPolicySettings() { - return setIamPolicySettings; - } - - /** - * Returns the builder for the settings used for calls to getIamPolicy. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - - /** - * Returns the builder for the settings used for calls to testIamPermissions. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - @Override - public DataCatalogStubSettings build() throws IOException { - return new DataCatalogStubSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogCallableFactory.java deleted file mode 100644 index 50690c1324ce..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogCallableFactory.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the DataCatalog service API. - * - *

This class is for advanced usage. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@BetaApi -@Deprecated -@Generated("by gapic-generator-java") -public class GrpcDataCatalogCallableFactory 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java deleted file mode 100644 index df58c761b544..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java +++ /dev/null @@ -1,1097 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.SearchCatalogPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.GetEntryRequest; -import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntriesRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntriesResponse; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse; -import com.google.cloud.datacatalog.v1beta1.ListTagsRequest; -import com.google.cloud.datacatalog.v1beta1.ListTagsResponse; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse; -import com.google.cloud.datacatalog.v1beta1.Tag; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest; -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.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 DataCatalog service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@BetaApi -@Deprecated -@Generated("by gapic-generator-java") -public class GrpcDataCatalogStub extends DataCatalogStub { - private static final MethodDescriptor - searchCatalogMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/SearchCatalog") - .setRequestMarshaller( - ProtoUtils.marshaller(SearchCatalogRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SearchCatalogResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createEntryGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/CreateEntryGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateEntryGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(EntryGroup.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updateEntryGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/UpdateEntryGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateEntryGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(EntryGroup.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - getEntryGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/GetEntryGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(GetEntryGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(EntryGroup.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteEntryGroupMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/DeleteEntryGroup") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteEntryGroupRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listEntryGroupsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/ListEntryGroups") - .setRequestMarshaller( - ProtoUtils.marshaller(ListEntryGroupsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListEntryGroupsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor createEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/CreateEntry") - .setRequestMarshaller(ProtoUtils.marshaller(CreateEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Entry.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor updateEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/UpdateEntry") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Entry.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor deleteEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/DeleteEntry") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/GetEntry") - .setRequestMarshaller(ProtoUtils.marshaller(GetEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Entry.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor lookupEntryMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/LookupEntry") - .setRequestMarshaller(ProtoUtils.marshaller(LookupEntryRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Entry.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listEntriesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/ListEntries") - .setRequestMarshaller(ProtoUtils.marshaller(ListEntriesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListEntriesResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createTagTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/CreateTagTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateTagTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplate.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - getTagTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/GetTagTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(GetTagTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplate.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updateTagTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/UpdateTagTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateTagTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplate.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteTagTemplateMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/DeleteTagTemplate") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteTagTemplateRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createTagTemplateFieldMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.DataCatalog/CreateTagTemplateField") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateTagTemplateFieldRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplateField.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updateTagTemplateFieldMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.DataCatalog/UpdateTagTemplateField") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateTagTemplateFieldRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplateField.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - renameTagTemplateFieldMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.DataCatalog/RenameTagTemplateField") - .setRequestMarshaller( - ProtoUtils.marshaller(RenameTagTemplateFieldRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplateField.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - renameTagTemplateFieldEnumValueMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.DataCatalog/RenameTagTemplateFieldEnumValue") - .setRequestMarshaller( - ProtoUtils.marshaller( - RenameTagTemplateFieldEnumValueRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(TagTemplateField.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteTagTemplateFieldMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.DataCatalog/DeleteTagTemplateField") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteTagTemplateFieldRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor createTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/CreateTag") - .setRequestMarshaller(ProtoUtils.marshaller(CreateTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Tag.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor updateTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/UpdateTag") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Tag.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor deleteTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/DeleteTag") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listTagsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/ListTags") - .setRequestMarshaller(ProtoUtils.marshaller(ListTagsRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListTagsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor setIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/SetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - testIamPermissionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/TestIamPermissions") - .setRequestMarshaller( - ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private final UnaryCallable searchCatalogCallable; - private final UnaryCallable - searchCatalogPagedCallable; - private final UnaryCallable createEntryGroupCallable; - private final UnaryCallable updateEntryGroupCallable; - private final UnaryCallable getEntryGroupCallable; - private final UnaryCallable deleteEntryGroupCallable; - private final UnaryCallable - listEntryGroupsCallable; - private final UnaryCallable - listEntryGroupsPagedCallable; - private final UnaryCallable createEntryCallable; - private final UnaryCallable updateEntryCallable; - private final UnaryCallable deleteEntryCallable; - private final UnaryCallable getEntryCallable; - private final UnaryCallable lookupEntryCallable; - private final UnaryCallable listEntriesCallable; - private final UnaryCallable - listEntriesPagedCallable; - private final UnaryCallable createTagTemplateCallable; - private final UnaryCallable getTagTemplateCallable; - private final UnaryCallable updateTagTemplateCallable; - private final UnaryCallable deleteTagTemplateCallable; - private final UnaryCallable - createTagTemplateFieldCallable; - private final UnaryCallable - updateTagTemplateFieldCallable; - private final UnaryCallable - renameTagTemplateFieldCallable; - private final UnaryCallable - renameTagTemplateFieldEnumValueCallable; - private final UnaryCallable deleteTagTemplateFieldCallable; - private final UnaryCallable createTagCallable; - private final UnaryCallable updateTagCallable; - private final UnaryCallable deleteTagCallable; - private final UnaryCallable listTagsCallable; - private final UnaryCallable listTagsPagedCallable; - 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 GrpcDataCatalogStub create(DataCatalogStubSettings settings) - throws IOException { - return new GrpcDataCatalogStub(settings, ClientContext.create(settings)); - } - - public static final GrpcDataCatalogStub create(ClientContext clientContext) throws IOException { - return new GrpcDataCatalogStub(DataCatalogStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcDataCatalogStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcDataCatalogStub( - DataCatalogStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcDataCatalogStub, 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 GrpcDataCatalogStub(DataCatalogStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcDataCatalogCallableFactory()); - } - - /** - * Constructs an instance of GrpcDataCatalogStub, 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 GrpcDataCatalogStub( - DataCatalogStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings searchCatalogTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(searchCatalogMethodDescriptor) - .build(); - GrpcCallSettings createEntryGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createEntryGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings updateEntryGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateEntryGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "entry_group.name", String.valueOf(request.getEntryGroup().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getEntryGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getEntryGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings deleteEntryGroupTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteEntryGroupMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings - listEntryGroupsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listEntryGroupsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings createEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings updateEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("entry.name", String.valueOf(request.getEntry().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings getEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getEntryMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings lookupEntryTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(lookupEntryMethodDescriptor) - .build(); - GrpcCallSettings listEntriesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listEntriesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings createTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings getTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings updateTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "tag_template.name", String.valueOf(request.getTagTemplate().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteTagTemplateTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTagTemplateMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings - createTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings - updateTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings - renameTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(renameTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings - renameTagTemplateFieldEnumValueTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(renameTagTemplateFieldEnumValueMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings deleteTagTemplateFieldTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTagTemplateFieldMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings createTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings updateTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("tag.name", String.valueOf(request.getTag().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings deleteTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings listTagsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listTagsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .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.searchCatalogCallable = - callableFactory.createUnaryCallable( - searchCatalogTransportSettings, settings.searchCatalogSettings(), clientContext); - this.searchCatalogPagedCallable = - callableFactory.createPagedCallable( - searchCatalogTransportSettings, settings.searchCatalogSettings(), clientContext); - this.createEntryGroupCallable = - callableFactory.createUnaryCallable( - createEntryGroupTransportSettings, settings.createEntryGroupSettings(), clientContext); - this.updateEntryGroupCallable = - callableFactory.createUnaryCallable( - updateEntryGroupTransportSettings, settings.updateEntryGroupSettings(), clientContext); - this.getEntryGroupCallable = - callableFactory.createUnaryCallable( - getEntryGroupTransportSettings, settings.getEntryGroupSettings(), clientContext); - this.deleteEntryGroupCallable = - callableFactory.createUnaryCallable( - deleteEntryGroupTransportSettings, settings.deleteEntryGroupSettings(), clientContext); - this.listEntryGroupsCallable = - callableFactory.createUnaryCallable( - listEntryGroupsTransportSettings, settings.listEntryGroupsSettings(), clientContext); - this.listEntryGroupsPagedCallable = - callableFactory.createPagedCallable( - listEntryGroupsTransportSettings, settings.listEntryGroupsSettings(), clientContext); - this.createEntryCallable = - callableFactory.createUnaryCallable( - createEntryTransportSettings, settings.createEntrySettings(), clientContext); - this.updateEntryCallable = - callableFactory.createUnaryCallable( - updateEntryTransportSettings, settings.updateEntrySettings(), clientContext); - this.deleteEntryCallable = - callableFactory.createUnaryCallable( - deleteEntryTransportSettings, settings.deleteEntrySettings(), clientContext); - this.getEntryCallable = - callableFactory.createUnaryCallable( - getEntryTransportSettings, settings.getEntrySettings(), clientContext); - this.lookupEntryCallable = - callableFactory.createUnaryCallable( - lookupEntryTransportSettings, settings.lookupEntrySettings(), clientContext); - this.listEntriesCallable = - callableFactory.createUnaryCallable( - listEntriesTransportSettings, settings.listEntriesSettings(), clientContext); - this.listEntriesPagedCallable = - callableFactory.createPagedCallable( - listEntriesTransportSettings, settings.listEntriesSettings(), clientContext); - this.createTagTemplateCallable = - callableFactory.createUnaryCallable( - createTagTemplateTransportSettings, - settings.createTagTemplateSettings(), - clientContext); - this.getTagTemplateCallable = - callableFactory.createUnaryCallable( - getTagTemplateTransportSettings, settings.getTagTemplateSettings(), clientContext); - this.updateTagTemplateCallable = - callableFactory.createUnaryCallable( - updateTagTemplateTransportSettings, - settings.updateTagTemplateSettings(), - clientContext); - this.deleteTagTemplateCallable = - callableFactory.createUnaryCallable( - deleteTagTemplateTransportSettings, - settings.deleteTagTemplateSettings(), - clientContext); - this.createTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - createTagTemplateFieldTransportSettings, - settings.createTagTemplateFieldSettings(), - clientContext); - this.updateTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - updateTagTemplateFieldTransportSettings, - settings.updateTagTemplateFieldSettings(), - clientContext); - this.renameTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - renameTagTemplateFieldTransportSettings, - settings.renameTagTemplateFieldSettings(), - clientContext); - this.renameTagTemplateFieldEnumValueCallable = - callableFactory.createUnaryCallable( - renameTagTemplateFieldEnumValueTransportSettings, - settings.renameTagTemplateFieldEnumValueSettings(), - clientContext); - this.deleteTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - deleteTagTemplateFieldTransportSettings, - settings.deleteTagTemplateFieldSettings(), - clientContext); - this.createTagCallable = - callableFactory.createUnaryCallable( - createTagTransportSettings, settings.createTagSettings(), clientContext); - this.updateTagCallable = - callableFactory.createUnaryCallable( - updateTagTransportSettings, settings.updateTagSettings(), clientContext); - this.deleteTagCallable = - callableFactory.createUnaryCallable( - deleteTagTransportSettings, settings.deleteTagSettings(), clientContext); - this.listTagsCallable = - callableFactory.createUnaryCallable( - listTagsTransportSettings, settings.listTagsSettings(), clientContext); - this.listTagsPagedCallable = - callableFactory.createPagedCallable( - listTagsTransportSettings, settings.listTagsSettings(), 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 searchCatalogCallable() { - return searchCatalogCallable; - } - - @Override - public UnaryCallable - searchCatalogPagedCallable() { - return searchCatalogPagedCallable; - } - - @Override - public UnaryCallable createEntryGroupCallable() { - return createEntryGroupCallable; - } - - @Override - public UnaryCallable updateEntryGroupCallable() { - return updateEntryGroupCallable; - } - - @Override - public UnaryCallable getEntryGroupCallable() { - return getEntryGroupCallable; - } - - @Override - public UnaryCallable deleteEntryGroupCallable() { - return deleteEntryGroupCallable; - } - - @Override - public UnaryCallable listEntryGroupsCallable() { - return listEntryGroupsCallable; - } - - @Override - public UnaryCallable - listEntryGroupsPagedCallable() { - return listEntryGroupsPagedCallable; - } - - @Override - public UnaryCallable createEntryCallable() { - return createEntryCallable; - } - - @Override - public UnaryCallable updateEntryCallable() { - return updateEntryCallable; - } - - @Override - public UnaryCallable deleteEntryCallable() { - return deleteEntryCallable; - } - - @Override - public UnaryCallable getEntryCallable() { - return getEntryCallable; - } - - @Override - public UnaryCallable lookupEntryCallable() { - return lookupEntryCallable; - } - - @Override - public UnaryCallable listEntriesCallable() { - return listEntriesCallable; - } - - @Override - public UnaryCallable listEntriesPagedCallable() { - return listEntriesPagedCallable; - } - - @Override - public UnaryCallable createTagTemplateCallable() { - return createTagTemplateCallable; - } - - @Override - public UnaryCallable getTagTemplateCallable() { - return getTagTemplateCallable; - } - - @Override - public UnaryCallable updateTagTemplateCallable() { - return updateTagTemplateCallable; - } - - @Override - public UnaryCallable deleteTagTemplateCallable() { - return deleteTagTemplateCallable; - } - - @Override - public UnaryCallable - createTagTemplateFieldCallable() { - return createTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - updateTagTemplateFieldCallable() { - return updateTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - renameTagTemplateFieldCallable() { - return renameTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - renameTagTemplateFieldEnumValueCallable() { - return renameTagTemplateFieldEnumValueCallable; - } - - @Override - public UnaryCallable deleteTagTemplateFieldCallable() { - return deleteTagTemplateFieldCallable; - } - - @Override - public UnaryCallable createTagCallable() { - return createTagCallable; - } - - @Override - public UnaryCallable updateTagCallable() { - return updateTagCallable; - } - - @Override - public UnaryCallable deleteTagCallable() { - return deleteTagCallable; - } - - @Override - public UnaryCallable listTagsCallable() { - return listTagsCallable; - } - - @Override - public UnaryCallable listTagsPagedCallable() { - return listTagsPagedCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerCallableFactory.java deleted file mode 100644 index 21b40158cf91..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerCallableFactory.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the PolicyTagManager service API. - * - *

This class is for advanced usage. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcPolicyTagManagerCallableFactory 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java deleted file mode 100644 index 53f38d187255..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationCallableFactory.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the PolicyTagManagerSerialization service API. - * - *

This class is for advanced usage. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcPolicyTagManagerSerializationCallableFactory 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationStub.java deleted file mode 100644 index 4ec246cd9c08..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerSerializationStub.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse; -import com.google.longrunning.stub.GrpcOperationsStub; -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 PolicyTagManagerSerialization service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcPolicyTagManagerSerializationStub extends PolicyTagManagerSerializationStub { - private static final MethodDescriptor - importTaxonomiesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization/ImportTaxonomies") - .setRequestMarshaller( - ProtoUtils.marshaller(ImportTaxonomiesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ImportTaxonomiesResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - exportTaxonomiesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization/ExportTaxonomies") - .setRequestMarshaller( - ProtoUtils.marshaller(ExportTaxonomiesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ExportTaxonomiesResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private final UnaryCallable - importTaxonomiesCallable; - private final UnaryCallable - exportTaxonomiesCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcPolicyTagManagerSerializationStub create( - PolicyTagManagerSerializationStubSettings settings) throws IOException { - return new GrpcPolicyTagManagerSerializationStub(settings, ClientContext.create(settings)); - } - - public static final GrpcPolicyTagManagerSerializationStub create(ClientContext clientContext) - throws IOException { - return new GrpcPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcPolicyTagManagerSerializationStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings.newBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of GrpcPolicyTagManagerSerializationStub, 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 GrpcPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcPolicyTagManagerSerializationCallableFactory()); - } - - /** - * Constructs an instance of GrpcPolicyTagManagerSerializationStub, 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 GrpcPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - importTaxonomiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(importTaxonomiesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings - exportTaxonomiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(exportTaxonomiesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - - this.importTaxonomiesCallable = - callableFactory.createUnaryCallable( - importTaxonomiesTransportSettings, settings.importTaxonomiesSettings(), clientContext); - this.exportTaxonomiesCallable = - callableFactory.createUnaryCallable( - exportTaxonomiesTransportSettings, settings.exportTaxonomiesSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable - importTaxonomiesCallable() { - return importTaxonomiesCallable; - } - - @Override - public UnaryCallable - exportTaxonomiesCallable() { - return exportTaxonomiesCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerStub.java deleted file mode 100644 index 21323599de8e..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerStub.java +++ /dev/null @@ -1,588 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse; -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest; -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.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 PolicyTagManager service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcPolicyTagManagerStub extends PolicyTagManagerStub { - private static final MethodDescriptor - createTaxonomyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/CreateTaxonomy") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateTaxonomyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Taxonomy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deleteTaxonomyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/DeleteTaxonomy") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteTaxonomyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updateTaxonomyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/UpdateTaxonomy") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateTaxonomyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Taxonomy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listTaxonomiesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/ListTaxonomies") - .setRequestMarshaller( - ProtoUtils.marshaller(ListTaxonomiesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListTaxonomiesResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getTaxonomyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/GetTaxonomy") - .setRequestMarshaller(ProtoUtils.marshaller(GetTaxonomyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Taxonomy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - createPolicyTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManager/CreatePolicyTag") - .setRequestMarshaller( - ProtoUtils.marshaller(CreatePolicyTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(PolicyTag.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - deletePolicyTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManager/DeletePolicyTag") - .setRequestMarshaller( - ProtoUtils.marshaller(DeletePolicyTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - updatePolicyTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManager/UpdatePolicyTag") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdatePolicyTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(PolicyTag.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listPolicyTagsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/ListPolicyTags") - .setRequestMarshaller( - ProtoUtils.marshaller(ListPolicyTagsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListPolicyTagsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - getPolicyTagMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/GetPolicyTag") - .setRequestMarshaller(ProtoUtils.marshaller(GetPolicyTagRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(PolicyTag.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor setIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/SetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - testIamPermissionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManager/TestIamPermissions") - .setRequestMarshaller( - ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private final UnaryCallable createTaxonomyCallable; - private final UnaryCallable deleteTaxonomyCallable; - private final UnaryCallable updateTaxonomyCallable; - private final UnaryCallable listTaxonomiesCallable; - private final UnaryCallable - listTaxonomiesPagedCallable; - private final UnaryCallable getTaxonomyCallable; - private final UnaryCallable createPolicyTagCallable; - private final UnaryCallable deletePolicyTagCallable; - private final UnaryCallable updatePolicyTagCallable; - private final UnaryCallable listPolicyTagsCallable; - private final UnaryCallable - listPolicyTagsPagedCallable; - private final UnaryCallable getPolicyTagCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcPolicyTagManagerStub create(PolicyTagManagerStubSettings settings) - throws IOException { - return new GrpcPolicyTagManagerStub(settings, ClientContext.create(settings)); - } - - public static final GrpcPolicyTagManagerStub create(ClientContext clientContext) - throws IOException { - return new GrpcPolicyTagManagerStub( - PolicyTagManagerStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcPolicyTagManagerStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcPolicyTagManagerStub( - PolicyTagManagerStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcPolicyTagManagerStub, 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 GrpcPolicyTagManagerStub( - PolicyTagManagerStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcPolicyTagManagerCallableFactory()); - } - - /** - * Constructs an instance of GrpcPolicyTagManagerStub, 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 GrpcPolicyTagManagerStub( - PolicyTagManagerStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings createTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings deleteTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings updateTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("taxonomy.name", String.valueOf(request.getTaxonomy().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listTaxonomiesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listTaxonomiesMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings getTaxonomyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getTaxonomyMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings createPolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createPolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings deletePolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deletePolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - GrpcCallSettings updatePolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updatePolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("policy_tag.name", String.valueOf(request.getPolicyTag().getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings - listPolicyTagsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listPolicyTagsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - GrpcCallSettings getPolicyTagTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getPolicyTagMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .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 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 - 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.createTaxonomyCallable = - callableFactory.createUnaryCallable( - createTaxonomyTransportSettings, settings.createTaxonomySettings(), clientContext); - this.deleteTaxonomyCallable = - callableFactory.createUnaryCallable( - deleteTaxonomyTransportSettings, settings.deleteTaxonomySettings(), clientContext); - this.updateTaxonomyCallable = - callableFactory.createUnaryCallable( - updateTaxonomyTransportSettings, settings.updateTaxonomySettings(), clientContext); - this.listTaxonomiesCallable = - callableFactory.createUnaryCallable( - listTaxonomiesTransportSettings, settings.listTaxonomiesSettings(), clientContext); - this.listTaxonomiesPagedCallable = - callableFactory.createPagedCallable( - listTaxonomiesTransportSettings, settings.listTaxonomiesSettings(), clientContext); - this.getTaxonomyCallable = - callableFactory.createUnaryCallable( - getTaxonomyTransportSettings, settings.getTaxonomySettings(), clientContext); - this.createPolicyTagCallable = - callableFactory.createUnaryCallable( - createPolicyTagTransportSettings, settings.createPolicyTagSettings(), clientContext); - this.deletePolicyTagCallable = - callableFactory.createUnaryCallable( - deletePolicyTagTransportSettings, settings.deletePolicyTagSettings(), clientContext); - this.updatePolicyTagCallable = - callableFactory.createUnaryCallable( - updatePolicyTagTransportSettings, settings.updatePolicyTagSettings(), clientContext); - this.listPolicyTagsCallable = - callableFactory.createUnaryCallable( - listPolicyTagsTransportSettings, settings.listPolicyTagsSettings(), clientContext); - this.listPolicyTagsPagedCallable = - callableFactory.createPagedCallable( - listPolicyTagsTransportSettings, settings.listPolicyTagsSettings(), clientContext); - this.getPolicyTagCallable = - callableFactory.createUnaryCallable( - getPolicyTagTransportSettings, settings.getPolicyTagSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable createTaxonomyCallable() { - return createTaxonomyCallable; - } - - @Override - public UnaryCallable deleteTaxonomyCallable() { - return deleteTaxonomyCallable; - } - - @Override - public UnaryCallable updateTaxonomyCallable() { - return updateTaxonomyCallable; - } - - @Override - public UnaryCallable listTaxonomiesCallable() { - return listTaxonomiesCallable; - } - - @Override - public UnaryCallable - listTaxonomiesPagedCallable() { - return listTaxonomiesPagedCallable; - } - - @Override - public UnaryCallable getTaxonomyCallable() { - return getTaxonomyCallable; - } - - @Override - public UnaryCallable createPolicyTagCallable() { - return createPolicyTagCallable; - } - - @Override - public UnaryCallable deletePolicyTagCallable() { - return deletePolicyTagCallable; - } - - @Override - public UnaryCallable updatePolicyTagCallable() { - return updatePolicyTagCallable; - } - - @Override - public UnaryCallable listPolicyTagsCallable() { - return listPolicyTagsCallable; - } - - @Override - public UnaryCallable - listPolicyTagsPagedCallable() { - return listPolicyTagsPagedCallable; - } - - @Override - public UnaryCallable getPolicyTagCallable() { - return getPolicyTagCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogCallableFactory.java deleted file mode 100644 index 73ce072302eb..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogCallableFactory.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the DataCatalog service API. - * - *

This class is for advanced usage. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@BetaApi -@Deprecated -@Generated("by gapic-generator-java") -public class HttpJsonDataCatalogCallableFactory - 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogStub.java deleted file mode 100644 index e7050be2e484..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonDataCatalogStub.java +++ /dev/null @@ -1,1876 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.SearchCatalogPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.GetEntryRequest; -import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntriesRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntriesResponse; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse; -import com.google.cloud.datacatalog.v1beta1.ListTagsRequest; -import com.google.cloud.datacatalog.v1beta1.ListTagsResponse; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse; -import com.google.cloud.datacatalog.v1beta1.Tag; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the DataCatalog service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - * - * @deprecated This class is deprecated and will be removed in the next major version update. - */ -@NullMarked -@BetaApi -@Deprecated -@Generated("by gapic-generator-java") -public class HttpJsonDataCatalogStub extends DataCatalogStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - searchCatalogMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/SearchCatalog") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/catalog:search", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SearchCatalogResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createEntryGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/CreateEntryGroup") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*}/entryGroups", - 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, "entryGroupId", request.getEntryGroupId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("entryGroup", request.getEntryGroup(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EntryGroup.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateEntryGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/UpdateEntryGroup") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{entryGroup.name=projects/*/locations/*/entryGroups/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "entryGroup.name", request.getEntryGroup().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("entryGroup", request.getEntryGroup(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EntryGroup.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getEntryGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/GetEntryGroup") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/entryGroups/*}", - 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, "readMask", request.getReadMask()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(EntryGroup.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteEntryGroupMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/DeleteEntryGroup") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/entryGroups/*}", - 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()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listEntryGroupsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/ListEntryGroups") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*}/entryGroups", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListEntryGroupsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor createEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/CreateEntry") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/entries", - 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, "entryId", request.getEntryId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("entry", request.getEntry(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Entry.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor updateEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/UpdateEntry") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{entry.name=projects/*/locations/*/entryGroups/*/entries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "entry.name", request.getEntry().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("entry", request.getEntry(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Entry.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/DeleteEntry") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor getEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/GetEntry") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Entry.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor lookupEntryMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/LookupEntry") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/entries:lookup", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam( - fields, "linkedResource", request.getLinkedResource()); - serializer.putQueryParam(fields, "sqlResource", request.getSqlResource()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Entry.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listEntriesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/ListEntries") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/entries", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - serializer.putQueryParam(fields, "readMask", request.getReadMask()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListEntriesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createTagTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/CreateTagTemplate") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*}/tagTemplates", - 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, "tagTemplateId", request.getTagTemplateId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("tagTemplate", request.getTagTemplate(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplate.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getTagTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/GetTagTemplate") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/tagTemplates/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplate.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateTagTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/UpdateTagTemplate") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{tagTemplate.name=projects/*/locations/*/tagTemplates/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "tagTemplate.name", request.getTagTemplate().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("tagTemplate", request.getTagTemplate(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplate.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteTagTemplateMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/DeleteTagTemplate") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/tagTemplates/*}", - 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()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createTagTemplateFieldMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.DataCatalog/CreateTagTemplateField") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*/tagTemplates/*}/fields", - 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, "tagTemplateFieldId", request.getTagTemplateFieldId()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("tagTemplateField", request.getTagTemplateField(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplateField.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateTagTemplateFieldMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.DataCatalog/UpdateTagTemplateField") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}", - 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, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("tagTemplateField", request.getTagTemplateField(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplateField.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - renameTagTemplateFieldMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.DataCatalog/RenameTagTemplateField") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}:rename", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplateField.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - renameTagTemplateFieldEnumValueMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.DataCatalog/RenameTagTemplateFieldEnumValue") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*/enumValues/*}:rename", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TagTemplateField.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteTagTemplateFieldMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.DataCatalog/DeleteTagTemplateField") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}", - 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()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor createTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/CreateTag") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths("/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/tags") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("tag", request.getTag(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Tag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor updateTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/UpdateTag") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "tag.name", request.getTag().getName()); - return fields; - }) - .setAdditionalPaths( - "/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/tags/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create().toBody("tag", request.getTag(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Tag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor deleteTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/DeleteTag") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setAdditionalPaths("/v1beta1/{name=projects/*/locations/*/entryGroups/*/tags/*}") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listTagsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/ListTags") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setAdditionalPaths( - "/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/tags") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListTagsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/SetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:setIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/GetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:getIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy", - "/v1beta1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:getIamPolicy") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.DataCatalog/TestIamPermissions") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:testIamPermissions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions", - "/v1beta1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:testIamPermissions") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable searchCatalogCallable; - private final UnaryCallable - searchCatalogPagedCallable; - private final UnaryCallable createEntryGroupCallable; - private final UnaryCallable updateEntryGroupCallable; - private final UnaryCallable getEntryGroupCallable; - private final UnaryCallable deleteEntryGroupCallable; - private final UnaryCallable - listEntryGroupsCallable; - private final UnaryCallable - listEntryGroupsPagedCallable; - private final UnaryCallable createEntryCallable; - private final UnaryCallable updateEntryCallable; - private final UnaryCallable deleteEntryCallable; - private final UnaryCallable getEntryCallable; - private final UnaryCallable lookupEntryCallable; - private final UnaryCallable listEntriesCallable; - private final UnaryCallable - listEntriesPagedCallable; - private final UnaryCallable createTagTemplateCallable; - private final UnaryCallable getTagTemplateCallable; - private final UnaryCallable updateTagTemplateCallable; - private final UnaryCallable deleteTagTemplateCallable; - private final UnaryCallable - createTagTemplateFieldCallable; - private final UnaryCallable - updateTagTemplateFieldCallable; - private final UnaryCallable - renameTagTemplateFieldCallable; - private final UnaryCallable - renameTagTemplateFieldEnumValueCallable; - private final UnaryCallable deleteTagTemplateFieldCallable; - private final UnaryCallable createTagCallable; - private final UnaryCallable updateTagCallable; - private final UnaryCallable deleteTagCallable; - private final UnaryCallable listTagsCallable; - private final UnaryCallable listTagsPagedCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonDataCatalogStub create(DataCatalogStubSettings settings) - throws IOException { - return new HttpJsonDataCatalogStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonDataCatalogStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonDataCatalogStub( - DataCatalogStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonDataCatalogStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonDataCatalogStub( - DataCatalogStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonDataCatalogStub, 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 HttpJsonDataCatalogStub(DataCatalogStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonDataCatalogCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonDataCatalogStub, 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 HttpJsonDataCatalogStub( - DataCatalogStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings - searchCatalogTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(searchCatalogMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings createEntryGroupTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createEntryGroupMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings updateEntryGroupTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateEntryGroupMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "entry_group.name", String.valueOf(request.getEntryGroup().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getEntryGroupTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getEntryGroupMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings deleteEntryGroupTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteEntryGroupMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - listEntryGroupsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listEntryGroupsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings createEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings updateEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("entry.name", String.valueOf(request.getEntry().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings getEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings lookupEntryTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(lookupEntryMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings listEntriesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listEntriesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings createTagTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings getTagTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getTagTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings updateTagTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateTagTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add( - "tag_template.name", String.valueOf(request.getTagTemplate().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteTagTemplateTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTagTemplateMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - createTagTemplateFieldTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTagTemplateFieldMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings - updateTagTemplateFieldTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateTagTemplateFieldMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - renameTagTemplateFieldTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(renameTagTemplateFieldMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - renameTagTemplateFieldEnumValueTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(renameTagTemplateFieldEnumValueMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings - deleteTagTemplateFieldTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTagTemplateFieldMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings createTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings updateTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("tag.name", String.valueOf(request.getTag().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings deleteTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings listTagsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listTagsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .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.searchCatalogCallable = - callableFactory.createUnaryCallable( - searchCatalogTransportSettings, settings.searchCatalogSettings(), clientContext); - this.searchCatalogPagedCallable = - callableFactory.createPagedCallable( - searchCatalogTransportSettings, settings.searchCatalogSettings(), clientContext); - this.createEntryGroupCallable = - callableFactory.createUnaryCallable( - createEntryGroupTransportSettings, settings.createEntryGroupSettings(), clientContext); - this.updateEntryGroupCallable = - callableFactory.createUnaryCallable( - updateEntryGroupTransportSettings, settings.updateEntryGroupSettings(), clientContext); - this.getEntryGroupCallable = - callableFactory.createUnaryCallable( - getEntryGroupTransportSettings, settings.getEntryGroupSettings(), clientContext); - this.deleteEntryGroupCallable = - callableFactory.createUnaryCallable( - deleteEntryGroupTransportSettings, settings.deleteEntryGroupSettings(), clientContext); - this.listEntryGroupsCallable = - callableFactory.createUnaryCallable( - listEntryGroupsTransportSettings, settings.listEntryGroupsSettings(), clientContext); - this.listEntryGroupsPagedCallable = - callableFactory.createPagedCallable( - listEntryGroupsTransportSettings, settings.listEntryGroupsSettings(), clientContext); - this.createEntryCallable = - callableFactory.createUnaryCallable( - createEntryTransportSettings, settings.createEntrySettings(), clientContext); - this.updateEntryCallable = - callableFactory.createUnaryCallable( - updateEntryTransportSettings, settings.updateEntrySettings(), clientContext); - this.deleteEntryCallable = - callableFactory.createUnaryCallable( - deleteEntryTransportSettings, settings.deleteEntrySettings(), clientContext); - this.getEntryCallable = - callableFactory.createUnaryCallable( - getEntryTransportSettings, settings.getEntrySettings(), clientContext); - this.lookupEntryCallable = - callableFactory.createUnaryCallable( - lookupEntryTransportSettings, settings.lookupEntrySettings(), clientContext); - this.listEntriesCallable = - callableFactory.createUnaryCallable( - listEntriesTransportSettings, settings.listEntriesSettings(), clientContext); - this.listEntriesPagedCallable = - callableFactory.createPagedCallable( - listEntriesTransportSettings, settings.listEntriesSettings(), clientContext); - this.createTagTemplateCallable = - callableFactory.createUnaryCallable( - createTagTemplateTransportSettings, - settings.createTagTemplateSettings(), - clientContext); - this.getTagTemplateCallable = - callableFactory.createUnaryCallable( - getTagTemplateTransportSettings, settings.getTagTemplateSettings(), clientContext); - this.updateTagTemplateCallable = - callableFactory.createUnaryCallable( - updateTagTemplateTransportSettings, - settings.updateTagTemplateSettings(), - clientContext); - this.deleteTagTemplateCallable = - callableFactory.createUnaryCallable( - deleteTagTemplateTransportSettings, - settings.deleteTagTemplateSettings(), - clientContext); - this.createTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - createTagTemplateFieldTransportSettings, - settings.createTagTemplateFieldSettings(), - clientContext); - this.updateTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - updateTagTemplateFieldTransportSettings, - settings.updateTagTemplateFieldSettings(), - clientContext); - this.renameTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - renameTagTemplateFieldTransportSettings, - settings.renameTagTemplateFieldSettings(), - clientContext); - this.renameTagTemplateFieldEnumValueCallable = - callableFactory.createUnaryCallable( - renameTagTemplateFieldEnumValueTransportSettings, - settings.renameTagTemplateFieldEnumValueSettings(), - clientContext); - this.deleteTagTemplateFieldCallable = - callableFactory.createUnaryCallable( - deleteTagTemplateFieldTransportSettings, - settings.deleteTagTemplateFieldSettings(), - clientContext); - this.createTagCallable = - callableFactory.createUnaryCallable( - createTagTransportSettings, settings.createTagSettings(), clientContext); - this.updateTagCallable = - callableFactory.createUnaryCallable( - updateTagTransportSettings, settings.updateTagSettings(), clientContext); - this.deleteTagCallable = - callableFactory.createUnaryCallable( - deleteTagTransportSettings, settings.deleteTagSettings(), clientContext); - this.listTagsCallable = - callableFactory.createUnaryCallable( - listTagsTransportSettings, settings.listTagsSettings(), clientContext); - this.listTagsPagedCallable = - callableFactory.createPagedCallable( - listTagsTransportSettings, settings.listTagsSettings(), 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(searchCatalogMethodDescriptor); - methodDescriptors.add(createEntryGroupMethodDescriptor); - methodDescriptors.add(updateEntryGroupMethodDescriptor); - methodDescriptors.add(getEntryGroupMethodDescriptor); - methodDescriptors.add(deleteEntryGroupMethodDescriptor); - methodDescriptors.add(listEntryGroupsMethodDescriptor); - methodDescriptors.add(createEntryMethodDescriptor); - methodDescriptors.add(updateEntryMethodDescriptor); - methodDescriptors.add(deleteEntryMethodDescriptor); - methodDescriptors.add(getEntryMethodDescriptor); - methodDescriptors.add(lookupEntryMethodDescriptor); - methodDescriptors.add(listEntriesMethodDescriptor); - methodDescriptors.add(createTagTemplateMethodDescriptor); - methodDescriptors.add(getTagTemplateMethodDescriptor); - methodDescriptors.add(updateTagTemplateMethodDescriptor); - methodDescriptors.add(deleteTagTemplateMethodDescriptor); - methodDescriptors.add(createTagTemplateFieldMethodDescriptor); - methodDescriptors.add(updateTagTemplateFieldMethodDescriptor); - methodDescriptors.add(renameTagTemplateFieldMethodDescriptor); - methodDescriptors.add(renameTagTemplateFieldEnumValueMethodDescriptor); - methodDescriptors.add(deleteTagTemplateFieldMethodDescriptor); - methodDescriptors.add(createTagMethodDescriptor); - methodDescriptors.add(updateTagMethodDescriptor); - methodDescriptors.add(deleteTagMethodDescriptor); - methodDescriptors.add(listTagsMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); - methodDescriptors.add(getIamPolicyMethodDescriptor); - methodDescriptors.add(testIamPermissionsMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable searchCatalogCallable() { - return searchCatalogCallable; - } - - @Override - public UnaryCallable - searchCatalogPagedCallable() { - return searchCatalogPagedCallable; - } - - @Override - public UnaryCallable createEntryGroupCallable() { - return createEntryGroupCallable; - } - - @Override - public UnaryCallable updateEntryGroupCallable() { - return updateEntryGroupCallable; - } - - @Override - public UnaryCallable getEntryGroupCallable() { - return getEntryGroupCallable; - } - - @Override - public UnaryCallable deleteEntryGroupCallable() { - return deleteEntryGroupCallable; - } - - @Override - public UnaryCallable listEntryGroupsCallable() { - return listEntryGroupsCallable; - } - - @Override - public UnaryCallable - listEntryGroupsPagedCallable() { - return listEntryGroupsPagedCallable; - } - - @Override - public UnaryCallable createEntryCallable() { - return createEntryCallable; - } - - @Override - public UnaryCallable updateEntryCallable() { - return updateEntryCallable; - } - - @Override - public UnaryCallable deleteEntryCallable() { - return deleteEntryCallable; - } - - @Override - public UnaryCallable getEntryCallable() { - return getEntryCallable; - } - - @Override - public UnaryCallable lookupEntryCallable() { - return lookupEntryCallable; - } - - @Override - public UnaryCallable listEntriesCallable() { - return listEntriesCallable; - } - - @Override - public UnaryCallable listEntriesPagedCallable() { - return listEntriesPagedCallable; - } - - @Override - public UnaryCallable createTagTemplateCallable() { - return createTagTemplateCallable; - } - - @Override - public UnaryCallable getTagTemplateCallable() { - return getTagTemplateCallable; - } - - @Override - public UnaryCallable updateTagTemplateCallable() { - return updateTagTemplateCallable; - } - - @Override - public UnaryCallable deleteTagTemplateCallable() { - return deleteTagTemplateCallable; - } - - @Override - public UnaryCallable - createTagTemplateFieldCallable() { - return createTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - updateTagTemplateFieldCallable() { - return updateTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - renameTagTemplateFieldCallable() { - return renameTagTemplateFieldCallable; - } - - @Override - public UnaryCallable - renameTagTemplateFieldEnumValueCallable() { - return renameTagTemplateFieldEnumValueCallable; - } - - @Override - public UnaryCallable deleteTagTemplateFieldCallable() { - return deleteTagTemplateFieldCallable; - } - - @Override - public UnaryCallable createTagCallable() { - return createTagCallable; - } - - @Override - public UnaryCallable updateTagCallable() { - return updateTagCallable; - } - - @Override - public UnaryCallable deleteTagCallable() { - return deleteTagCallable; - } - - @Override - public UnaryCallable listTagsCallable() { - return listTagsCallable; - } - - @Override - public UnaryCallable listTagsPagedCallable() { - return listTagsPagedCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerCallableFactory.java deleted file mode 100644 index af4cc9b7e222..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the PolicyTagManager service API. - * - *

This class is for advanced usage. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonPolicyTagManagerCallableFactory - 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java deleted file mode 100644 index 2af740c0db77..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the PolicyTagManagerSerialization service API. - * - *

This class is for advanced usage. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonPolicyTagManagerSerializationCallableFactory - 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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationStub.java deleted file mode 100644 index 92ad15657e4a..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerSerializationStub.java +++ /dev/null @@ -1,276 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse; -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 PolicyTagManagerSerialization service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonPolicyTagManagerSerializationStub extends PolicyTagManagerSerializationStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - importTaxonomiesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization/ImportTaxonomies") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*}/taxonomies:import", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ImportTaxonomiesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - exportTaxonomiesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization/ExportTaxonomies") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*}/taxonomies:export", - 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, "serializedTaxonomies", request.getSerializedTaxonomies()); - serializer.putQueryParam( - fields, "taxonomies", request.getTaxonomiesList()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ExportTaxonomiesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable - importTaxonomiesCallable; - private final UnaryCallable - exportTaxonomiesCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonPolicyTagManagerSerializationStub create( - PolicyTagManagerSerializationStubSettings settings) throws IOException { - return new HttpJsonPolicyTagManagerSerializationStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonPolicyTagManagerSerializationStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonPolicyTagManagerSerializationStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonPolicyTagManagerSerializationStub, 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 HttpJsonPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new HttpJsonPolicyTagManagerSerializationCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonPolicyTagManagerSerializationStub, 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 HttpJsonPolicyTagManagerSerializationStub( - PolicyTagManagerSerializationStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings - importTaxonomiesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(importTaxonomiesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings - exportTaxonomiesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(exportTaxonomiesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - - this.importTaxonomiesCallable = - callableFactory.createUnaryCallable( - importTaxonomiesTransportSettings, settings.importTaxonomiesSettings(), clientContext); - this.exportTaxonomiesCallable = - callableFactory.createUnaryCallable( - exportTaxonomiesTransportSettings, settings.exportTaxonomiesSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(importTaxonomiesMethodDescriptor); - methodDescriptors.add(exportTaxonomiesMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable - importTaxonomiesCallable() { - return importTaxonomiesCallable; - } - - @Override - public UnaryCallable - exportTaxonomiesCallable() { - return exportTaxonomiesCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerStub.java deleted file mode 100644 index 2f3593b38d97..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/HttpJsonPolicyTagManagerStub.java +++ /dev/null @@ -1,949 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.RequestParamsBuilder; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse; -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the PolicyTagManager service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonPolicyTagManagerStub extends PolicyTagManagerStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - createTaxonomyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/CreateTaxonomy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*}/taxonomies", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("taxonomy", request.getTaxonomy(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Taxonomy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deleteTaxonomyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/DeleteTaxonomy") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/taxonomies/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updateTaxonomyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/UpdateTaxonomy") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{taxonomy.name=projects/*/locations/*/taxonomies/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "taxonomy.name", request.getTaxonomy().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("taxonomy", request.getTaxonomy(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Taxonomy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listTaxonomiesMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/ListTaxonomies") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*}/taxonomies", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "filter", request.getFilter()); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListTaxonomiesResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getTaxonomyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/GetTaxonomy") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/taxonomies/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Taxonomy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - createPolicyTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManager/CreatePolicyTag") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*/taxonomies/*}/policyTags", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("policyTag", request.getPolicyTag(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(PolicyTag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - deletePolicyTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManager/DeletePolicyTag") - .setHttpMethod("DELETE") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Empty.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - updatePolicyTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManager/UpdatePolicyTag") - .setHttpMethod("PATCH") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{policyTag.name=projects/*/locations/*/taxonomies/*/policyTags/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam( - fields, "policyTag.name", request.getPolicyTag().getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("policyTag", request.getPolicyTag(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(PolicyTag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listPolicyTagsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/ListPolicyTags") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{parent=projects/*/locations/*/taxonomies/*}/policyTags", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "parent", request.getParent()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putQueryParam(fields, "pageSize", request.getPageSize()); - serializer.putQueryParam(fields, "pageToken", request.getPageToken()); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(ListPolicyTagsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getPolicyTagMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/GetPolicyTag") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(PolicyTag.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/GetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{resource=projects/*/locations/*/taxonomies/*}:getIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1beta1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:getIamPolicy") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - setIamPolicyMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.datacatalog.v1beta1.PolicyTagManager/SetIamPolicy") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{resource=projects/*/locations/*/taxonomies/*}:setIamPolicy", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1beta1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:setIamPolicy") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Policy.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - testIamPermissionsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.datacatalog.v1beta1.PolicyTagManager/TestIamPermissions") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta1/{resource=projects/*/locations/*/taxonomies/*}:testIamPermissions", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "resource", request.getResource()); - return fields; - }) - .setAdditionalPaths( - "/v1beta1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:testIamPermissions") - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable createTaxonomyCallable; - private final UnaryCallable deleteTaxonomyCallable; - private final UnaryCallable updateTaxonomyCallable; - private final UnaryCallable listTaxonomiesCallable; - private final UnaryCallable - listTaxonomiesPagedCallable; - private final UnaryCallable getTaxonomyCallable; - private final UnaryCallable createPolicyTagCallable; - private final UnaryCallable deletePolicyTagCallable; - private final UnaryCallable updatePolicyTagCallable; - private final UnaryCallable listPolicyTagsCallable; - private final UnaryCallable - listPolicyTagsPagedCallable; - private final UnaryCallable getPolicyTagCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonPolicyTagManagerStub create(PolicyTagManagerStubSettings settings) - throws IOException { - return new HttpJsonPolicyTagManagerStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonPolicyTagManagerStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonPolicyTagManagerStub( - PolicyTagManagerStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonPolicyTagManagerStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonPolicyTagManagerStub( - PolicyTagManagerStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonPolicyTagManagerStub, 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 HttpJsonPolicyTagManagerStub( - PolicyTagManagerStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonPolicyTagManagerCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonPolicyTagManagerStub, 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 HttpJsonPolicyTagManagerStub( - PolicyTagManagerStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings createTaxonomyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createTaxonomyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings deleteTaxonomyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deleteTaxonomyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings updateTaxonomyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updateTaxonomyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("taxonomy.name", String.valueOf(request.getTaxonomy().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listTaxonomiesTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listTaxonomiesMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings getTaxonomyTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getTaxonomyMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings createPolicyTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(createPolicyTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings deletePolicyTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(deletePolicyTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .build(); - HttpJsonCallSettings updatePolicyTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(updatePolicyTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("policy_tag.name", String.valueOf(request.getPolicyTag().getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listPolicyTagsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listPolicyTagsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("parent", String.valueOf(request.getParent())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getParent()) - .build(); - HttpJsonCallSettings getPolicyTagTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getPolicyTagMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .setResourceNameExtractor(request -> request.getName()) - .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 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 - 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.createTaxonomyCallable = - callableFactory.createUnaryCallable( - createTaxonomyTransportSettings, settings.createTaxonomySettings(), clientContext); - this.deleteTaxonomyCallable = - callableFactory.createUnaryCallable( - deleteTaxonomyTransportSettings, settings.deleteTaxonomySettings(), clientContext); - this.updateTaxonomyCallable = - callableFactory.createUnaryCallable( - updateTaxonomyTransportSettings, settings.updateTaxonomySettings(), clientContext); - this.listTaxonomiesCallable = - callableFactory.createUnaryCallable( - listTaxonomiesTransportSettings, settings.listTaxonomiesSettings(), clientContext); - this.listTaxonomiesPagedCallable = - callableFactory.createPagedCallable( - listTaxonomiesTransportSettings, settings.listTaxonomiesSettings(), clientContext); - this.getTaxonomyCallable = - callableFactory.createUnaryCallable( - getTaxonomyTransportSettings, settings.getTaxonomySettings(), clientContext); - this.createPolicyTagCallable = - callableFactory.createUnaryCallable( - createPolicyTagTransportSettings, settings.createPolicyTagSettings(), clientContext); - this.deletePolicyTagCallable = - callableFactory.createUnaryCallable( - deletePolicyTagTransportSettings, settings.deletePolicyTagSettings(), clientContext); - this.updatePolicyTagCallable = - callableFactory.createUnaryCallable( - updatePolicyTagTransportSettings, settings.updatePolicyTagSettings(), clientContext); - this.listPolicyTagsCallable = - callableFactory.createUnaryCallable( - listPolicyTagsTransportSettings, settings.listPolicyTagsSettings(), clientContext); - this.listPolicyTagsPagedCallable = - callableFactory.createPagedCallable( - listPolicyTagsTransportSettings, settings.listPolicyTagsSettings(), clientContext); - this.getPolicyTagCallable = - callableFactory.createUnaryCallable( - getPolicyTagTransportSettings, settings.getPolicyTagSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), 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(createTaxonomyMethodDescriptor); - methodDescriptors.add(deleteTaxonomyMethodDescriptor); - methodDescriptors.add(updateTaxonomyMethodDescriptor); - methodDescriptors.add(listTaxonomiesMethodDescriptor); - methodDescriptors.add(getTaxonomyMethodDescriptor); - methodDescriptors.add(createPolicyTagMethodDescriptor); - methodDescriptors.add(deletePolicyTagMethodDescriptor); - methodDescriptors.add(updatePolicyTagMethodDescriptor); - methodDescriptors.add(listPolicyTagsMethodDescriptor); - methodDescriptors.add(getPolicyTagMethodDescriptor); - methodDescriptors.add(getIamPolicyMethodDescriptor); - methodDescriptors.add(setIamPolicyMethodDescriptor); - methodDescriptors.add(testIamPermissionsMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable createTaxonomyCallable() { - return createTaxonomyCallable; - } - - @Override - public UnaryCallable deleteTaxonomyCallable() { - return deleteTaxonomyCallable; - } - - @Override - public UnaryCallable updateTaxonomyCallable() { - return updateTaxonomyCallable; - } - - @Override - public UnaryCallable listTaxonomiesCallable() { - return listTaxonomiesCallable; - } - - @Override - public UnaryCallable - listTaxonomiesPagedCallable() { - return listTaxonomiesPagedCallable; - } - - @Override - public UnaryCallable getTaxonomyCallable() { - return getTaxonomyCallable; - } - - @Override - public UnaryCallable createPolicyTagCallable() { - return createPolicyTagCallable; - } - - @Override - public UnaryCallable deletePolicyTagCallable() { - return deletePolicyTagCallable; - } - - @Override - public UnaryCallable updatePolicyTagCallable() { - return updatePolicyTagCallable; - } - - @Override - public UnaryCallable listPolicyTagsCallable() { - return listPolicyTagsCallable; - } - - @Override - public UnaryCallable - listPolicyTagsPagedCallable() { - return listPolicyTagsPagedCallable; - } - - @Override - public UnaryCallable getPolicyTagCallable() { - return getPolicyTagCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @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-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStub.java deleted file mode 100644 index ee495c767528..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStub.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the PolicyTagManagerSerialization service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public abstract class PolicyTagManagerSerializationStub implements BackgroundResource { - - public UnaryCallable - importTaxonomiesCallable() { - throw new UnsupportedOperationException("Not implemented: importTaxonomiesCallable()"); - } - - public UnaryCallable - exportTaxonomiesCallable() { - throw new UnsupportedOperationException("Not implemented: exportTaxonomiesCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java deleted file mode 100644 index 7627c226336f..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerSerializationStubSettings.java +++ /dev/null @@ -1,390 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.ApiFunction; -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.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.LibraryMetadata; -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.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse; -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 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 PolicyTagManagerSerializationStub}. - * - *

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

    - *
  • The default service address (datacatalog.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 importTaxonomies: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerSerializationStubSettings.Builder policyTagManagerSerializationSettingsBuilder =
- *     PolicyTagManagerSerializationStubSettings.newBuilder();
- * policyTagManagerSerializationSettingsBuilder
- *     .importTaxonomiesSettings()
- *     .setRetrySettings(
- *         policyTagManagerSerializationSettingsBuilder
- *             .importTaxonomiesSettings()
- *             .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());
- * PolicyTagManagerSerializationStubSettings policyTagManagerSerializationSettings =
- *     policyTagManagerSerializationSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -@SuppressWarnings("CanonicalDuration") -public class PolicyTagManagerSerializationStubSettings - 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 - importTaxonomiesSettings; - private final UnaryCallSettings - exportTaxonomiesSettings; - - /** Returns the object with the settings used for calls to importTaxonomies. */ - public UnaryCallSettings - importTaxonomiesSettings() { - return importTaxonomiesSettings; - } - - /** Returns the object with the settings used for calls to exportTaxonomies. */ - public UnaryCallSettings - exportTaxonomiesSettings() { - return exportTaxonomiesSettings; - } - - public PolicyTagManagerSerializationStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcPolicyTagManagerSerializationStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonPolicyTagManagerSerializationStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "datacatalog"; - } - - /** 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 "datacatalog.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "datacatalog.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(PolicyTagManagerSerializationStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", - GaxProperties.getLibraryVersion(PolicyTagManagerSerializationStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return PolicyTagManagerSerializationStubSettings.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 PolicyTagManagerSerializationStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - importTaxonomiesSettings = settingsBuilder.importTaxonomiesSettings().build(); - exportTaxonomiesSettings = settingsBuilder.exportTaxonomiesSettings().build(); - } - - @Override - protected LibraryMetadata getLibraryMetadata() { - return LibraryMetadata.newBuilder() - .setArtifactName("com.google.cloud:google-cloud-datacatalog") - .setRepository("googleapis/google-cloud-java") - .setVersion(Version.VERSION) - .build(); - } - - /** Builder for PolicyTagManagerSerializationStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - importTaxonomiesSettings; - private final UnaryCallSettings.Builder - exportTaxonomiesSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_2_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() - .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setTotalTimeoutDuration(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_2_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(clientContext); - - importTaxonomiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - exportTaxonomiesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - importTaxonomiesSettings, exportTaxonomiesSettings); - initDefaults(this); - } - - protected Builder(PolicyTagManagerSerializationStubSettings settings) { - super(settings); - - importTaxonomiesSettings = settings.importTaxonomiesSettings.toBuilder(); - exportTaxonomiesSettings = settings.exportTaxonomiesSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - importTaxonomiesSettings, exportTaxonomiesSettings); - } - - 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 - .importTaxonomiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); - - builder - .exportTaxonomiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_2_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_2_params")); - - 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 importTaxonomies. */ - public UnaryCallSettings.Builder - importTaxonomiesSettings() { - return importTaxonomiesSettings; - } - - /** Returns the builder for the settings used for calls to exportTaxonomies. */ - public UnaryCallSettings.Builder - exportTaxonomiesSettings() { - return exportTaxonomiesSettings; - } - - @Override - public PolicyTagManagerSerializationStubSettings build() throws IOException { - return new PolicyTagManagerSerializationStubSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStub.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStub.java deleted file mode 100644 index ff90c29fbed4..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStub.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse; -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the PolicyTagManager service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public abstract class PolicyTagManagerStub implements BackgroundResource { - - public UnaryCallable createTaxonomyCallable() { - throw new UnsupportedOperationException("Not implemented: createTaxonomyCallable()"); - } - - public UnaryCallable deleteTaxonomyCallable() { - throw new UnsupportedOperationException("Not implemented: deleteTaxonomyCallable()"); - } - - public UnaryCallable updateTaxonomyCallable() { - throw new UnsupportedOperationException("Not implemented: updateTaxonomyCallable()"); - } - - public UnaryCallable - listTaxonomiesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listTaxonomiesPagedCallable()"); - } - - public UnaryCallable listTaxonomiesCallable() { - throw new UnsupportedOperationException("Not implemented: listTaxonomiesCallable()"); - } - - public UnaryCallable getTaxonomyCallable() { - throw new UnsupportedOperationException("Not implemented: getTaxonomyCallable()"); - } - - public UnaryCallable createPolicyTagCallable() { - throw new UnsupportedOperationException("Not implemented: createPolicyTagCallable()"); - } - - public UnaryCallable deletePolicyTagCallable() { - throw new UnsupportedOperationException("Not implemented: deletePolicyTagCallable()"); - } - - public UnaryCallable updatePolicyTagCallable() { - throw new UnsupportedOperationException("Not implemented: updatePolicyTagCallable()"); - } - - public UnaryCallable - listPolicyTagsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listPolicyTagsPagedCallable()"); - } - - public UnaryCallable listPolicyTagsCallable() { - throw new UnsupportedOperationException("Not implemented: listPolicyTagsCallable()"); - } - - public UnaryCallable getPolicyTagCallable() { - throw new UnsupportedOperationException("Not implemented: getPolicyTagCallable()"); - } - - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java deleted file mode 100644 index a368b72d6042..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/PolicyTagManagerStubSettings.java +++ /dev/null @@ -1,773 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -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.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.LibraryMetadata; -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.datacatalog.v1beta1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse; -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest; -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.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import 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 PolicyTagManagerStub}. - * - *

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

    - *
  • The default service address (datacatalog.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 createTaxonomy: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * PolicyTagManagerStubSettings.Builder policyTagManagerSettingsBuilder =
- *     PolicyTagManagerStubSettings.newBuilder();
- * policyTagManagerSettingsBuilder
- *     .createTaxonomySettings()
- *     .setRetrySettings(
- *         policyTagManagerSettingsBuilder
- *             .createTaxonomySettings()
- *             .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());
- * PolicyTagManagerStubSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build();
- * }
- * - * Please refer to the [Client Side Retry - * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting - * retries. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -@SuppressWarnings("CanonicalDuration") -public class PolicyTagManagerStubSettings 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 createTaxonomySettings; - private final UnaryCallSettings deleteTaxonomySettings; - private final UnaryCallSettings updateTaxonomySettings; - private final PagedCallSettings< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings; - private final UnaryCallSettings getTaxonomySettings; - private final UnaryCallSettings createPolicyTagSettings; - private final UnaryCallSettings deletePolicyTagSettings; - private final UnaryCallSettings updatePolicyTagSettings; - private final PagedCallSettings< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings; - private final UnaryCallSettings getPolicyTagSettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; - - private static final PagedListDescriptor - LIST_TAXONOMIES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListTaxonomiesRequest injectToken(ListTaxonomiesRequest payload, String token) { - return ListTaxonomiesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListTaxonomiesRequest injectPageSize( - ListTaxonomiesRequest payload, int pageSize) { - return ListTaxonomiesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListTaxonomiesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListTaxonomiesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListTaxonomiesResponse payload) { - return payload.getTaxonomiesList(); - } - }; - - private static final PagedListDescriptor - LIST_POLICY_TAGS_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListPolicyTagsRequest injectToken(ListPolicyTagsRequest payload, String token) { - return ListPolicyTagsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListPolicyTagsRequest injectPageSize( - ListPolicyTagsRequest payload, int pageSize) { - return ListPolicyTagsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListPolicyTagsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListPolicyTagsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListPolicyTagsResponse payload) { - return payload.getPolicyTagsList(); - } - }; - - private static final PagedListResponseFactory< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - LIST_TAXONOMIES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListTaxonomiesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_TAXONOMIES_PAGE_STR_DESC, request, context); - return ListTaxonomiesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - LIST_POLICY_TAGS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListPolicyTagsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_POLICY_TAGS_PAGE_STR_DESC, request, context); - return ListPolicyTagsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to createTaxonomy. */ - public UnaryCallSettings createTaxonomySettings() { - return createTaxonomySettings; - } - - /** Returns the object with the settings used for calls to deleteTaxonomy. */ - public UnaryCallSettings deleteTaxonomySettings() { - return deleteTaxonomySettings; - } - - /** Returns the object with the settings used for calls to updateTaxonomy. */ - public UnaryCallSettings updateTaxonomySettings() { - return updateTaxonomySettings; - } - - /** Returns the object with the settings used for calls to listTaxonomies. */ - public PagedCallSettings< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings() { - return listTaxonomiesSettings; - } - - /** Returns the object with the settings used for calls to getTaxonomy. */ - public UnaryCallSettings getTaxonomySettings() { - return getTaxonomySettings; - } - - /** Returns the object with the settings used for calls to createPolicyTag. */ - public UnaryCallSettings createPolicyTagSettings() { - return createPolicyTagSettings; - } - - /** Returns the object with the settings used for calls to deletePolicyTag. */ - public UnaryCallSettings deletePolicyTagSettings() { - return deletePolicyTagSettings; - } - - /** Returns the object with the settings used for calls to updatePolicyTag. */ - public UnaryCallSettings updatePolicyTagSettings() { - return updatePolicyTagSettings; - } - - /** Returns the object with the settings used for calls to listPolicyTags. */ - public PagedCallSettings< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings() { - return listPolicyTagsSettings; - } - - /** Returns the object with the settings used for calls to getPolicyTag. */ - public UnaryCallSettings getPolicyTagSettings() { - return getPolicyTagSettings; - } - - /** 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 setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - public PolicyTagManagerStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcPolicyTagManagerStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonPolicyTagManagerStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns the default service name. */ - @Override - public String getServiceName() { - return "datacatalog"; - } - - /** 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 "datacatalog.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "datacatalog.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(PolicyTagManagerStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(PolicyTagManagerStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return PolicyTagManagerStubSettings.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 PolicyTagManagerStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - createTaxonomySettings = settingsBuilder.createTaxonomySettings().build(); - deleteTaxonomySettings = settingsBuilder.deleteTaxonomySettings().build(); - updateTaxonomySettings = settingsBuilder.updateTaxonomySettings().build(); - listTaxonomiesSettings = settingsBuilder.listTaxonomiesSettings().build(); - getTaxonomySettings = settingsBuilder.getTaxonomySettings().build(); - createPolicyTagSettings = settingsBuilder.createPolicyTagSettings().build(); - deletePolicyTagSettings = settingsBuilder.deletePolicyTagSettings().build(); - updatePolicyTagSettings = settingsBuilder.updatePolicyTagSettings().build(); - listPolicyTagsSettings = settingsBuilder.listPolicyTagsSettings().build(); - getPolicyTagSettings = settingsBuilder.getPolicyTagSettings().build(); - getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); - testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); - } - - @Override - protected LibraryMetadata getLibraryMetadata() { - return LibraryMetadata.newBuilder() - .setArtifactName("com.google.cloud:google-cloud-datacatalog") - .setRepository("googleapis/google-cloud-java") - .setVersion(Version.VERSION) - .build(); - } - - /** Builder for PolicyTagManagerStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder createTaxonomySettings; - private final UnaryCallSettings.Builder deleteTaxonomySettings; - private final UnaryCallSettings.Builder updateTaxonomySettings; - private final PagedCallSettings.Builder< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings; - private final UnaryCallSettings.Builder getTaxonomySettings; - private final UnaryCallSettings.Builder - createPolicyTagSettings; - private final UnaryCallSettings.Builder deletePolicyTagSettings; - private final UnaryCallSettings.Builder - updatePolicyTagSettings; - private final PagedCallSettings.Builder< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings; - private final UnaryCallSettings.Builder getPolicyTagSettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) - .setTotalTimeoutDuration(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(@Nullable ClientContext clientContext) { - super(clientContext); - - createTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listTaxonomiesSettings = PagedCallSettings.newBuilder(LIST_TAXONOMIES_PAGE_STR_FACT); - getTaxonomySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createPolicyTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deletePolicyTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updatePolicyTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listPolicyTagsSettings = PagedCallSettings.newBuilder(LIST_POLICY_TAGS_PAGE_STR_FACT); - getPolicyTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createTaxonomySettings, - deleteTaxonomySettings, - updateTaxonomySettings, - listTaxonomiesSettings, - getTaxonomySettings, - createPolicyTagSettings, - deletePolicyTagSettings, - updatePolicyTagSettings, - listPolicyTagsSettings, - getPolicyTagSettings, - getIamPolicySettings, - setIamPolicySettings, - testIamPermissionsSettings); - initDefaults(this); - } - - protected Builder(PolicyTagManagerStubSettings settings) { - super(settings); - - createTaxonomySettings = settings.createTaxonomySettings.toBuilder(); - deleteTaxonomySettings = settings.deleteTaxonomySettings.toBuilder(); - updateTaxonomySettings = settings.updateTaxonomySettings.toBuilder(); - listTaxonomiesSettings = settings.listTaxonomiesSettings.toBuilder(); - getTaxonomySettings = settings.getTaxonomySettings.toBuilder(); - createPolicyTagSettings = settings.createPolicyTagSettings.toBuilder(); - deletePolicyTagSettings = settings.deletePolicyTagSettings.toBuilder(); - updatePolicyTagSettings = settings.updatePolicyTagSettings.toBuilder(); - listPolicyTagsSettings = settings.listPolicyTagsSettings.toBuilder(); - getPolicyTagSettings = settings.getPolicyTagSettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - createTaxonomySettings, - deleteTaxonomySettings, - updateTaxonomySettings, - listTaxonomiesSettings, - getTaxonomySettings, - createPolicyTagSettings, - deletePolicyTagSettings, - updatePolicyTagSettings, - listPolicyTagsSettings, - getPolicyTagSettings, - getIamPolicySettings, - setIamPolicySettings, - 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 - .createTaxonomySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deleteTaxonomySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateTaxonomySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listTaxonomiesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getTaxonomySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .createPolicyTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .deletePolicyTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updatePolicyTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listPolicyTagsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getPolicyTagSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - 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 createTaxonomy. */ - public UnaryCallSettings.Builder createTaxonomySettings() { - return createTaxonomySettings; - } - - /** Returns the builder for the settings used for calls to deleteTaxonomy. */ - public UnaryCallSettings.Builder deleteTaxonomySettings() { - return deleteTaxonomySettings; - } - - /** Returns the builder for the settings used for calls to updateTaxonomy. */ - public UnaryCallSettings.Builder updateTaxonomySettings() { - return updateTaxonomySettings; - } - - /** Returns the builder for the settings used for calls to listTaxonomies. */ - public PagedCallSettings.Builder< - ListTaxonomiesRequest, ListTaxonomiesResponse, ListTaxonomiesPagedResponse> - listTaxonomiesSettings() { - return listTaxonomiesSettings; - } - - /** Returns the builder for the settings used for calls to getTaxonomy. */ - public UnaryCallSettings.Builder getTaxonomySettings() { - return getTaxonomySettings; - } - - /** Returns the builder for the settings used for calls to createPolicyTag. */ - public UnaryCallSettings.Builder createPolicyTagSettings() { - return createPolicyTagSettings; - } - - /** Returns the builder for the settings used for calls to deletePolicyTag. */ - public UnaryCallSettings.Builder deletePolicyTagSettings() { - return deletePolicyTagSettings; - } - - /** Returns the builder for the settings used for calls to updatePolicyTag. */ - public UnaryCallSettings.Builder updatePolicyTagSettings() { - return updatePolicyTagSettings; - } - - /** Returns the builder for the settings used for calls to listPolicyTags. */ - public PagedCallSettings.Builder< - ListPolicyTagsRequest, ListPolicyTagsResponse, ListPolicyTagsPagedResponse> - listPolicyTagsSettings() { - return listPolicyTagsSettings; - } - - /** Returns the builder for the settings used for calls to getPolicyTag. */ - public UnaryCallSettings.Builder getPolicyTagSettings() { - return getPolicyTagSettings; - } - - /** 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 setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - @Override - public PolicyTagManagerStubSettings build() throws IOException { - return new PolicyTagManagerStubSettings(this); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/Version.java b/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/Version.java deleted file mode 100644 index c16527bc24fd..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/Version.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub; - -import com.google.api.core.InternalApi; - -@InternalApi("For internal use only") -final class Version { - // {x-version-update-start:google-cloud-datacatalog:current} - static final String VERSION = "1.102.0"; - // {x-version-update-end} - -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json b/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json deleted file mode 100644 index 0a86626c3987..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1/reflect-config.json +++ /dev/null @@ -1,4466 +0,0 @@ -[ - { - "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.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.cloud.datacatalog.v1.BigQueryConnectionSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.BigQueryConnectionSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.BigQueryConnectionSpec$ConnectionType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.BigQueryRoutineSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.BigQueryRoutineSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.BigQueryTableSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.BigQueryTableSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.BusinessContext", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.BusinessContext$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CatalogUIExperience", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec$CloudBigtableClusterSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec$CloudBigtableClusterSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec$DatabaseType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ColumnSchema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ColumnSchema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ColumnSchema$FieldElementType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ColumnSchema$FieldElementType$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ColumnSchema$IndexingType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ColumnSchema$LookerColumnSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ColumnSchema$LookerColumnSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ColumnSchema$LookerColumnSpec$LookerColumnType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CommonUsageStats", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CommonUsageStats$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Contacts", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Contacts$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Contacts$Person", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Contacts$Person$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateEntryGroupRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateEntryGroupRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreatePolicyTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreatePolicyTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateTagTemplateRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateTagTemplateRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateTaxonomyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CreateTaxonomyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CrossRegionalSource", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.CrossRegionalSource$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataSource", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataSource$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataSource$Service", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataSourceConnectionSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataSourceConnectionSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DatabaseTableSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DatabaseTableSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DatabaseTableSpec$DatabaseViewSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DatabaseTableSpec$DatabaseViewSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DatabaseTableSpec$DatabaseViewSpec$ViewType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DatabaseTableSpec$TableType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataplexExternalTable", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataplexExternalTable$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataplexFilesetSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataplexFilesetSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataplexSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataplexSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataplexTableSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DataplexTableSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DatasetSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DatasetSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeletePolicyTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeletePolicyTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DumpItem", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.DumpItem$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Entry", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Entry$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.EntryGroup", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.EntryGroup$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.EntryOverview", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.EntryOverview$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.EntryType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec$StorageType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FieldType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FieldType$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FieldType$EnumType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FieldType$EnumType$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FieldType$EnumType$EnumValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FieldType$EnumType$EnumValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FieldType$PrimitiveType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FilesetSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.FilesetSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GcsFileSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GcsFileSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GcsFilesetSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GcsFilesetSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GetEntryGroupRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GetEntryGroupRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GetEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GetEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GetPolicyTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GetPolicyTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GetTagTemplateRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GetTagTemplateRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GetTaxonomyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.GetTaxonomyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportEntriesMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportEntriesMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportEntriesMetadata$ImportState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportEntriesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportEntriesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportEntriesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportEntriesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.InlineSource", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.InlineSource$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.IntegratedSystem", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListEntriesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListEntriesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListEntriesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListEntriesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListEntryGroupsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListEntryGroupsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListEntryGroupsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListEntryGroupsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListPolicyTagsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListPolicyTagsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListPolicyTagsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListPolicyTagsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListTagsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListTagsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListTagsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListTagsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListTaxonomiesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListTaxonomiesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListTaxonomiesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ListTaxonomiesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.LookerSystemSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.LookerSystemSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.LookupEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.LookupEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ManagingSystem", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.MigrationConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.MigrationConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ModelSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ModelSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.OrganizationConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.OrganizationConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PersonalDetails", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PersonalDetails$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$AvroSchema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$AvroSchema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$CsvSchema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$CsvSchema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$OrcSchema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$OrcSchema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$ParquetSchema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$ParquetSchema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$ProtobufSchema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$ProtobufSchema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$ThriftSchema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PhysicalSchema$ThriftSchema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PolicyTag", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.PolicyTag$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ReconcileTagsMetadata", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ReconcileTagsMetadata$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ReconcileTagsMetadata$ReconciliationState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ReconcileTagsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ReconcileTagsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ReconcileTagsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ReconcileTagsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RetrieveConfigRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RetrieveConfigRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RoutineSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RoutineSpec$Argument", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RoutineSpec$Argument$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RoutineSpec$Argument$Mode", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RoutineSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.RoutineSpec$RoutineType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Schema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Schema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SearchCatalogRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SearchCatalogRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SearchCatalogRequest$Scope", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SearchCatalogRequest$Scope$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SearchCatalogResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SearchCatalogResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SearchCatalogResult", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SearchCatalogResult$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SearchResultType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SerializedPolicyTag", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SerializedPolicyTag$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SerializedTaxonomy", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SerializedTaxonomy$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ServiceSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ServiceSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SetConfigRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SetConfigRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.StarEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.StarEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.StarEntryResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.StarEntryResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.StorageProperties", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.StorageProperties$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SystemTimestamps", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.SystemTimestamps$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TableSourceType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TableSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TableSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Tag", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Tag$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TagField", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TagField$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TagField$EnumValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TagField$EnumValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TagTemplate", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TagTemplate$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TagTemplate$DataplexTransferStatus", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TagTemplateField", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TagTemplateField$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TagTemplateMigration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TaggedEntry", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.TaggedEntry$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Taxonomy", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Taxonomy$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Taxonomy$PolicyType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Taxonomy$Service", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.Taxonomy$Service$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UnstarEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UnstarEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UnstarEntryResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UnstarEntryResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UsageSignal", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UsageSignal$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UsageStats", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.UsageStats$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.VertexDatasetSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.VertexDatasetSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.VertexDatasetSpec$DataType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.VertexModelSourceInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.VertexModelSourceInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.VertexModelSourceInfo$ModelSourceType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.VertexModelSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.VertexModelSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ViewSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1.ViewSpec$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.Timestamp", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.protobuf.Timestamp$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.rpc.Status$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "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-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json b/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json deleted file mode 100644 index e6299cc70d67..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/main/resources/META-INF/native-image/com.google.cloud.datacatalog.v1beta1/reflect-config.json +++ /dev/null @@ -1,3008 +0,0 @@ -[ - { - "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.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.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ColumnSchema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ColumnSchema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Entry", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Entry$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.EntryGroup", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.EntryGroup$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.EntryType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.FieldType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.FieldType$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.FieldType$EnumType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.FieldType$EnumType$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.FieldType$EnumType$EnumValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.FieldType$EnumType$EnumValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.FieldType$PrimitiveType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GcsFileSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GcsFileSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GetEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GetEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.InlineSource", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.InlineSource$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.IntegratedSystem", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListEntriesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListEntriesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListEntriesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListEntriesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListTagsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListTagsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListTagsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListTagsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.LookupEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.LookupEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ManagingSystem", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.PolicyTag", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.PolicyTag$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Schema", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Schema$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest$Scope", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest$Scope$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SearchCatalogResult", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SearchCatalogResult$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SearchResultType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SystemTimestamps", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.SystemTimestamps$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TableSourceType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TableSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TableSpec$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Tag", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Tag$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TagField", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TagField$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TagField$EnumValue", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TagField$EnumValue$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TagTemplate", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TagTemplate$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TagTemplate$DataplexTransferStatus", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TagTemplateField", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.TagTemplateField$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Taxonomy", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Taxonomy$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Taxonomy$PolicyType", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Taxonomy$Service", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.Taxonomy$Service$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateTagRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateTagRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UsageSignal", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UsageSignal$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UsageStats", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.UsageStats$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ViewSpec", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.datacatalog.v1beta1.ViewSpec$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.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.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.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-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientHttpJsonTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientHttpJsonTest.java deleted file mode 100644 index ab6909d56ac0..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientHttpJsonTest.java +++ /dev/null @@ -1,3669 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.SearchCatalogPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.datacatalog.v1.stub.HttpJsonDataCatalogStub; -import com.google.common.collect.Lists; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.Policy; -import com.google.iam.v1.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 DataCatalogClientHttpJsonTest { - private static MockHttpService mockService; - private static DataCatalogClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonDataCatalogStub.getMethodDescriptors(), - DataCatalogSettings.getDefaultEndpoint()); - DataCatalogSettings settings = - DataCatalogSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - DataCatalogSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataCatalogClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void searchCatalogTest() throws Exception { - SearchCatalogResult responsesElement = SearchCatalogResult.newBuilder().build(); - SearchCatalogResponse expectedResponse = - SearchCatalogResponse.newBuilder() - .setNextPageToken("") - .addAllResults(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build(); - String query = "query107944136"; - - SearchCatalogPagedResponse pagedListResponse = client.searchCatalog(scope, query); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getResultsList().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 searchCatalogExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build(); - String query = "query107944136"; - client.searchCatalog(scope, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - - EntryGroup actualResponse = client.createEntryGroup(parent, entryGroupId, entryGroup); - 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 createEntryGroupExceptionTest() 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 entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - - EntryGroup actualResponse = client.createEntryGroup(parent, entryGroupId, entryGroup); - 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 createEntryGroupExceptionTest2() 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 entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - EntryGroup actualResponse = client.getEntryGroup(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 getEntryGroupExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.getEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - - EntryGroup actualResponse = client.getEntryGroup(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 getEntryGroupExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - client.getEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest3() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - FieldMask readMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.getEntryGroup(name, readMask); - 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 getEntryGroupExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - FieldMask readMask = FieldMask.newBuilder().build(); - client.getEntryGroup(name, readMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest4() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - FieldMask readMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.getEntryGroup(name, readMask); - 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 getEntryGroupExceptionTest4() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - FieldMask readMask = FieldMask.newBuilder().build(); - client.getEntryGroup(name, readMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroup entryGroup = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - - EntryGroup actualResponse = client.updateEntryGroup(entryGroup); - 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 updateEntryGroupExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroup entryGroup = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - client.updateEntryGroup(entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroup entryGroup = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.updateEntryGroup(entryGroup, 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 updateEntryGroupExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroup entryGroup = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEntryGroup(entryGroup, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryGroupTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - client.deleteEntryGroup(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 deleteEntryGroupExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.deleteEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryGroupTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - - client.deleteEntryGroup(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 deleteEntryGroupExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - client.deleteEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntryGroupsTest() throws Exception { - EntryGroup responsesElement = EntryGroup.newBuilder().build(); - ListEntryGroupsResponse expectedResponse = - ListEntryGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllEntryGroups(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListEntryGroupsPagedResponse pagedListResponse = client.listEntryGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntryGroupsList().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 listEntryGroupsExceptionTest() 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.listEntryGroups(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntryGroupsTest2() throws Exception { - EntryGroup responsesElement = EntryGroup.newBuilder().build(); - ListEntryGroupsResponse expectedResponse = - ListEntryGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllEntryGroups(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListEntryGroupsPagedResponse pagedListResponse = client.listEntryGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntryGroupsList().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 listEntryGroupsExceptionTest2() 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.listEntryGroups(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - - Entry actualResponse = client.createEntry(parent, entryId, entry); - 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 createEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - client.createEntry(parent, entryId, entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-3515/locations/location-3515/entryGroups/entryGroup-3515"; - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - - Entry actualResponse = client.createEntry(parent, entryId, entry); - 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 createEntryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-3515/locations/location-3515/entryGroups/entryGroup-3515"; - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - client.createEntry(parent, entryId, entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Entry entry = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - - Entry actualResponse = client.updateEntry(entry); - 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 updateEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Entry entry = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - client.updateEntry(entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Entry entry = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Entry actualResponse = client.updateEntry(entry, 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 updateEntryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Entry entry = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEntry(entry, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - client.deleteEntry(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 deleteEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.deleteEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - - client.deleteEntry(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 deleteEntryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - client.deleteEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - Entry actualResponse = client.getEntry(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 getEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.getEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - - Entry actualResponse = client.getEntry(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 getEntryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - client.getEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void lookupEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LookupEntryRequest request = - LookupEntryRequest.newBuilder() - .setProject("project-309310695") - .setLocation("location1901043637") - .build(); - - Entry actualResponse = client.lookupEntry(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 lookupEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LookupEntryRequest request = - LookupEntryRequest.newBuilder() - .setProject("project-309310695") - .setLocation("location1901043637") - .build(); - client.lookupEntry(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntriesTest() throws Exception { - Entry responsesElement = Entry.newBuilder().build(); - ListEntriesResponse expectedResponse = - ListEntriesResponse.newBuilder() - .setNextPageToken("") - .addAllEntries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - ListEntriesPagedResponse pagedListResponse = client.listEntries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntriesList().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 listEntriesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.listEntries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntriesTest2() throws Exception { - Entry responsesElement = Entry.newBuilder().build(); - ListEntriesResponse expectedResponse = - ListEntriesResponse.newBuilder() - .setNextPageToken("") - .addAllEntries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-3515/locations/location-3515/entryGroups/entryGroup-3515"; - - ListEntriesPagedResponse pagedListResponse = client.listEntries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntriesList().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 listEntriesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-3515/locations/location-3515/entryGroups/entryGroup-3515"; - client.listEntries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void modifyEntryOverviewTest() throws Exception { - EntryOverview expectedResponse = - EntryOverview.newBuilder().setOverview("overview530115961").build(); - mockService.addResponse(expectedResponse); - - ModifyEntryOverviewRequest request = - ModifyEntryOverviewRequest.newBuilder() - .setName(EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setEntryOverview(EntryOverview.newBuilder().build()) - .build(); - - EntryOverview actualResponse = client.modifyEntryOverview(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 modifyEntryOverviewExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ModifyEntryOverviewRequest request = - ModifyEntryOverviewRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setEntryOverview(EntryOverview.newBuilder().build()) - .build(); - client.modifyEntryOverview(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void modifyEntryContactsTest() throws Exception { - Contacts expectedResponse = - Contacts.newBuilder().addAllPeople(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - ModifyEntryContactsRequest request = - ModifyEntryContactsRequest.newBuilder() - .setName(EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setContacts(Contacts.newBuilder().build()) - .build(); - - Contacts actualResponse = client.modifyEntryContacts(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 modifyEntryContactsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ModifyEntryContactsRequest request = - ModifyEntryContactsRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setContacts(Contacts.newBuilder().build()) - .build(); - client.modifyEntryContacts(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - - TagTemplate actualResponse = client.createTagTemplate(parent, tagTemplateId, tagTemplate); - 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 createTagTemplateExceptionTest() 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 tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - - TagTemplate actualResponse = client.createTagTemplate(parent, tagTemplateId, tagTemplate); - 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 createTagTemplateExceptionTest2() 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 tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - - TagTemplate actualResponse = client.getTagTemplate(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 getTagTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - client.getTagTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3087/locations/location-3087/tagTemplates/tagTemplate-3087"; - - TagTemplate actualResponse = client.getTagTemplate(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 getTagTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3087/locations/location-3087/tagTemplates/tagTemplate-3087"; - client.getTagTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - - TagTemplate actualResponse = client.updateTagTemplate(tagTemplate); - 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 updateTagTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - client.updateTagTemplate(tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplate actualResponse = client.updateTagTemplate(tagTemplate, 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 updateTagTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplate(tagTemplate, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - boolean force = true; - - client.deleteTagTemplate(name, force); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTagTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - boolean force = true; - client.deleteTagTemplate(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3087/locations/location-3087/tagTemplates/tagTemplate-3087"; - boolean force = true; - - client.deleteTagTemplate(name, force); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTagTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3087/locations/location-3087/tagTemplates/tagTemplate-3087"; - boolean force = true; - client.deleteTagTemplate(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - 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 createTagTemplateFieldExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-8912/locations/location-8912/tagTemplates/tagTemplate-8912"; - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - 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 createTagTemplateFieldExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-8912/locations/location-8912/tagTemplates/tagTemplate-8912"; - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = client.updateTagTemplateField(name, tagTemplateField); - 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 updateTagTemplateFieldExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = client.updateTagTemplateField(name, tagTemplateField); - 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 updateTagTemplateFieldExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest3() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplateField actualResponse = - client.updateTagTemplateField(name, tagTemplateField, 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 updateTagTemplateFieldExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest4() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplateField actualResponse = - client.updateTagTemplateField(name, tagTemplateField, 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 updateTagTemplateFieldExceptionTest4() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - - TagTemplateField actualResponse = client.renameTagTemplateField(name, newTagTemplateFieldId); - 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 renameTagTemplateFieldExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - - TagTemplateField actualResponse = client.renameTagTemplateField(name, newTagTemplateFieldId); - 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 renameTagTemplateFieldExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldEnumValueTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateFieldEnumValueName name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]"); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - - TagTemplateField actualResponse = - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - 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 renameTagTemplateFieldEnumValueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateFieldEnumValueName name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]"); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldEnumValueTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-9639/locations/location-9639/tagTemplates/tagTemplate-9639/fields/field-9639/enumValues/enumValue-9639"; - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - - TagTemplateField actualResponse = - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - 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 renameTagTemplateFieldEnumValueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-9639/locations/location-9639/tagTemplates/tagTemplate-9639/fields/field-9639/enumValues/enumValue-9639"; - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateFieldTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - boolean force = true; - - client.deleteTagTemplateField(name, force); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTagTemplateFieldExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - boolean force = true; - client.deleteTagTemplateField(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateFieldTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - boolean force = true; - - client.deleteTagTemplateField(name, force); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTagTemplateFieldExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - boolean force = true; - client.deleteTagTemplateField(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTest() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Tag tag = Tag.newBuilder().build(); - - Tag actualResponse = client.createTag(parent, tag); - 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 createTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Tag tag = Tag.newBuilder().build(); - client.createTag(parent, tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTest2() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = - "projects/project-6711/locations/location-6711/entryGroups/entryGroup-6711/entries/entrie-6711"; - Tag tag = Tag.newBuilder().build(); - - Tag actualResponse = client.createTag(parent, tag); - 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 createTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = - "projects/project-6711/locations/location-6711/entryGroups/entryGroup-6711/entries/entrie-6711"; - Tag tag = Tag.newBuilder().build(); - client.createTag(parent, tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTest() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - Tag tag = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - - Tag actualResponse = client.updateTag(tag); - 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 updateTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Tag tag = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - client.updateTag(tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTest2() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - Tag tag = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Tag actualResponse = client.updateTag(tag, 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 updateTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Tag tag = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTag(tag, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - client.deleteTag(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 deleteTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.deleteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-9589/locations/location-9589/entryGroups/entryGroup-9589/entries/entrie-9589/tags/tag-9589"; - - client.deleteTag(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 deleteTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-9589/locations/location-9589/entryGroups/entryGroup-9589/entries/entrie-9589/tags/tag-9589"; - client.deleteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTagsTest() throws Exception { - Tag responsesElement = Tag.newBuilder().build(); - ListTagsResponse expectedResponse = - ListTagsResponse.newBuilder() - .setNextPageToken("") - .addAllTags(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - ListTagsPagedResponse pagedListResponse = client.listTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTagsList().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 listTagsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.listTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTagsTest2() throws Exception { - Tag responsesElement = Tag.newBuilder().build(); - ListTagsResponse expectedResponse = - ListTagsResponse.newBuilder() - .setNextPageToken("") - .addAllTags(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = - "projects/project-6711/locations/location-6711/entryGroups/entryGroup-6711/entries/entrie-6711"; - - ListTagsPagedResponse pagedListResponse = client.listTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTagsList().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 listTagsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = - "projects/project-6711/locations/location-6711/entryGroups/entryGroup-6711/entries/entrie-6711"; - client.listTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void reconcileTagsTest() throws Exception { - ReconcileTagsResponse expectedResponse = - ReconcileTagsResponse.newBuilder() - .setCreatedTagsCount(-986601696) - .setUpdatedTagsCount(344847213) - .setDeletedTagsCount(59637071) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("reconcileTagsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - ReconcileTagsRequest request = - ReconcileTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTagTemplate( - TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForceDeleteMissing(true) - .addAllTags(new ArrayList()) - .build(); - - ReconcileTagsResponse actualResponse = client.reconcileTagsAsync(request).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 reconcileTagsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ReconcileTagsRequest request = - ReconcileTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTagTemplate( - TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForceDeleteMissing(true) - .addAllTags(new ArrayList()) - .build(); - client.reconcileTagsAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void starEntryTest() throws Exception { - StarEntryResponse expectedResponse = StarEntryResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - StarEntryResponse actualResponse = client.starEntry(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 starEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.starEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void starEntryTest2() throws Exception { - StarEntryResponse expectedResponse = StarEntryResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - - StarEntryResponse actualResponse = client.starEntry(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 starEntryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - client.starEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void unstarEntryTest() throws Exception { - UnstarEntryResponse expectedResponse = UnstarEntryResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - UnstarEntryResponse actualResponse = client.unstarEntry(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 unstarEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.unstarEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void unstarEntryTest2() throws Exception { - UnstarEntryResponse expectedResponse = UnstarEntryResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - - UnstarEntryResponse actualResponse = client.unstarEntry(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 unstarEntryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - client.unstarEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-4196/locations/location-4196/tagTemplates/tagTemplate-4196"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = - "projects/project-4196/locations/location-4196/tagTemplates/tagTemplate-4196"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-4196/locations/location-4196/tagTemplates/tagTemplate-4196"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = - "projects/project-4196/locations/location-4196/tagTemplates/tagTemplate-4196"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").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( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void importEntriesTest() throws Exception { - ImportEntriesResponse expectedResponse = - ImportEntriesResponse.newBuilder() - .setUpsertedEntriesCount(250168367) - .setDeletedEntriesCount(-167383302) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("importEntriesTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockService.addResponse(resultOperation); - - ImportEntriesRequest request = - ImportEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setJobId("jobId101296568") - .build(); - - ImportEntriesResponse actualResponse = client.importEntriesAsync(request).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 importEntriesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ImportEntriesRequest request = - ImportEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setJobId("jobId101296568") - .build(); - client.importEntriesAsync(request).get(); - Assert.fail("No exception raised"); - } catch (ExecutionException e) { - } - } - - @Test - public void setConfigTest() throws Exception { - MigrationConfig expectedResponse = - MigrationConfig.newBuilder() - .setTagTemplateMigration(TagTemplateMigration.forNumber(0)) - .setCatalogUiExperience(CatalogUIExperience.forNumber(0)) - .setTemplateMigrationEnabledTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - SetConfigRequest request = - SetConfigRequest.newBuilder() - .setName("organizations/organization-7066/locations/location-7066") - .build(); - - MigrationConfig actualResponse = client.setConfig(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 setConfigExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - SetConfigRequest request = - SetConfigRequest.newBuilder() - .setName("organizations/organization-7066/locations/location-7066") - .build(); - client.setConfig(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveConfigTest() throws Exception { - OrganizationConfig expectedResponse = - OrganizationConfig.newBuilder() - .putAllConfig(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - RetrieveConfigRequest request = - RetrieveConfigRequest.newBuilder() - .setName("organizations/organization-7066/locations/location-7066") - .build(); - - OrganizationConfig actualResponse = client.retrieveConfig(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 retrieveConfigExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RetrieveConfigRequest request = - RetrieveConfigRequest.newBuilder() - .setName("organizations/organization-7066/locations/location-7066") - .build(); - client.retrieveConfig(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveEffectiveConfigTest() throws Exception { - MigrationConfig expectedResponse = - MigrationConfig.newBuilder() - .setTagTemplateMigration(TagTemplateMigration.forNumber(0)) - .setCatalogUiExperience(CatalogUIExperience.forNumber(0)) - .setTemplateMigrationEnabledTime(Timestamp.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - RetrieveEffectiveConfigRequest request = - RetrieveEffectiveConfigRequest.newBuilder() - .setName("organizations/organization-7066/locations/location-7066") - .build(); - - MigrationConfig actualResponse = client.retrieveEffectiveConfig(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 retrieveEffectiveConfigExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RetrieveEffectiveConfigRequest request = - RetrieveEffectiveConfigRequest.newBuilder() - .setName("organizations/organization-7066/locations/location-7066") - .build(); - client.retrieveEffectiveConfig(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java deleted file mode 100644 index 15d880f5924d..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/DataCatalogClientTest.java +++ /dev/null @@ -1,3164 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.DataCatalogClient.SearchCatalogPagedResponse; - -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.api.resourcenames.ResourceName; -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.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 DataCatalogClientTest { - private static MockDataCatalog mockDataCatalog; - private static MockIAMPolicy mockIAMPolicy; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private DataCatalogClient client; - - @BeforeClass - public static void startStaticServer() { - mockDataCatalog = new MockDataCatalog(); - mockIAMPolicy = new MockIAMPolicy(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockDataCatalog, mockIAMPolicy)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - DataCatalogSettings settings = - DataCatalogSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataCatalogClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void searchCatalogTest() throws Exception { - SearchCatalogResult responsesElement = SearchCatalogResult.newBuilder().build(); - SearchCatalogResponse expectedResponse = - SearchCatalogResponse.newBuilder() - .setNextPageToken("") - .addAllResults(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build(); - String query = "query107944136"; - - SearchCatalogPagedResponse pagedListResponse = client.searchCatalog(scope, query); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchCatalogRequest actualRequest = ((SearchCatalogRequest) actualRequests.get(0)); - - Assert.assertEquals(scope, actualRequest.getScope()); - Assert.assertEquals(query, actualRequest.getQuery()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchCatalogExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build(); - String query = "query107944136"; - client.searchCatalog(scope, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - - EntryGroup actualResponse = client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateEntryGroupRequest actualRequest = ((CreateEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(entryGroupId, actualRequest.getEntryGroupId()); - Assert.assertEquals(entryGroup, actualRequest.getEntryGroup()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createEntryGroupExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - - EntryGroup actualResponse = client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateEntryGroupRequest actualRequest = ((CreateEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(entryGroupId, actualRequest.getEntryGroupId()); - Assert.assertEquals(entryGroup, actualRequest.getEntryGroup()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createEntryGroupExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - EntryGroup actualResponse = client.getEntryGroup(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryGroupRequest actualRequest = ((GetEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryGroupExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.getEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - EntryGroup actualResponse = client.getEntryGroup(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryGroupRequest actualRequest = ((GetEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryGroupExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.getEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest3() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - FieldMask readMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.getEntryGroup(name, readMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryGroupRequest actualRequest = ((GetEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(readMask, actualRequest.getReadMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryGroupExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - FieldMask readMask = FieldMask.newBuilder().build(); - client.getEntryGroup(name, readMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest4() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - FieldMask readMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.getEntryGroup(name, readMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryGroupRequest actualRequest = ((GetEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(readMask, actualRequest.getReadMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryGroupExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - FieldMask readMask = FieldMask.newBuilder().build(); - client.getEntryGroup(name, readMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - - EntryGroup actualResponse = client.updateEntryGroup(entryGroup); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateEntryGroupRequest actualRequest = ((UpdateEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(entryGroup, actualRequest.getEntryGroup()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateEntryGroupExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - client.updateEntryGroup(entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .setTransferredToDataplex(true) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.updateEntryGroup(entryGroup, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateEntryGroupRequest actualRequest = ((UpdateEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(entryGroup, actualRequest.getEntryGroup()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateEntryGroupExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEntryGroup(entryGroup, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryGroupTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - client.deleteEntryGroup(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteEntryGroupRequest actualRequest = ((DeleteEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteEntryGroupExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.deleteEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryGroupTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteEntryGroup(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteEntryGroupRequest actualRequest = ((DeleteEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteEntryGroupExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.deleteEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntryGroupsTest() throws Exception { - EntryGroup responsesElement = EntryGroup.newBuilder().build(); - ListEntryGroupsResponse expectedResponse = - ListEntryGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllEntryGroups(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListEntryGroupsPagedResponse pagedListResponse = client.listEntryGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntryGroupsList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListEntryGroupsRequest actualRequest = ((ListEntryGroupsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listEntryGroupsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listEntryGroups(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntryGroupsTest2() throws Exception { - EntryGroup responsesElement = EntryGroup.newBuilder().build(); - ListEntryGroupsResponse expectedResponse = - ListEntryGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllEntryGroups(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListEntryGroupsPagedResponse pagedListResponse = client.listEntryGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntryGroupsList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListEntryGroupsRequest actualRequest = ((ListEntryGroupsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listEntryGroupsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - client.listEntryGroups(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - - Entry actualResponse = client.createEntry(parent, entryId, entry); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateEntryRequest actualRequest = ((CreateEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(entryId, actualRequest.getEntryId()); - Assert.assertEquals(entry, actualRequest.getEntry()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - client.createEntry(parent, entryId, entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - - Entry actualResponse = client.createEntry(parent, entryId, entry); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateEntryRequest actualRequest = ((CreateEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(entryId, actualRequest.getEntryId()); - Assert.assertEquals(entry, actualRequest.getEntry()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createEntryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - client.createEntry(parent, entryId, entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - Entry entry = Entry.newBuilder().build(); - - Entry actualResponse = client.updateEntry(entry); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateEntryRequest actualRequest = ((UpdateEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(entry, actualRequest.getEntry()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - Entry entry = Entry.newBuilder().build(); - client.updateEntry(entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - Entry entry = Entry.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Entry actualResponse = client.updateEntry(entry, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateEntryRequest actualRequest = ((UpdateEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(entry, actualRequest.getEntry()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateEntryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - Entry entry = Entry.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEntry(entry, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - client.deleteEntry(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteEntryRequest actualRequest = ((DeleteEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.deleteEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteEntry(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteEntryRequest actualRequest = ((DeleteEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteEntryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.deleteEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - Entry actualResponse = client.getEntry(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryRequest actualRequest = ((GetEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.getEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - Entry actualResponse = client.getEntry(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryRequest actualRequest = ((GetEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.getEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void lookupEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setFullyQualifiedName("fullyQualifiedName288467357") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setBusinessContext(BusinessContext.newBuilder().build()) - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .putAllLabels(new HashMap()) - .setDataSource(DataSource.newBuilder().build()) - .setPersonalDetails(PersonalDetails.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - LookupEntryRequest request = - LookupEntryRequest.newBuilder() - .setProject("project-309310695") - .setLocation("location1901043637") - .build(); - - Entry actualResponse = client.lookupEntry(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - LookupEntryRequest actualRequest = ((LookupEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getLinkedResource(), actualRequest.getLinkedResource()); - Assert.assertEquals(request.getSqlResource(), actualRequest.getSqlResource()); - Assert.assertEquals(request.getFullyQualifiedName(), actualRequest.getFullyQualifiedName()); - Assert.assertEquals(request.getProject(), actualRequest.getProject()); - Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void lookupEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - LookupEntryRequest request = - LookupEntryRequest.newBuilder() - .setProject("project-309310695") - .setLocation("location1901043637") - .build(); - client.lookupEntry(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntriesTest() throws Exception { - Entry responsesElement = Entry.newBuilder().build(); - ListEntriesResponse expectedResponse = - ListEntriesResponse.newBuilder() - .setNextPageToken("") - .addAllEntries(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - ListEntriesPagedResponse pagedListResponse = client.listEntries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListEntriesRequest actualRequest = ((ListEntriesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listEntriesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.listEntries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntriesTest2() throws Exception { - Entry responsesElement = Entry.newBuilder().build(); - ListEntriesResponse expectedResponse = - ListEntriesResponse.newBuilder() - .setNextPageToken("") - .addAllEntries(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListEntriesPagedResponse pagedListResponse = client.listEntries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListEntriesRequest actualRequest = ((ListEntriesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listEntriesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - client.listEntries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void modifyEntryOverviewTest() throws Exception { - EntryOverview expectedResponse = - EntryOverview.newBuilder().setOverview("overview530115961").build(); - mockDataCatalog.addResponse(expectedResponse); - - ModifyEntryOverviewRequest request = - ModifyEntryOverviewRequest.newBuilder() - .setName(EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setEntryOverview(EntryOverview.newBuilder().build()) - .build(); - - EntryOverview actualResponse = client.modifyEntryOverview(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ModifyEntryOverviewRequest actualRequest = ((ModifyEntryOverviewRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getEntryOverview(), actualRequest.getEntryOverview()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void modifyEntryOverviewExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - ModifyEntryOverviewRequest request = - ModifyEntryOverviewRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setEntryOverview(EntryOverview.newBuilder().build()) - .build(); - client.modifyEntryOverview(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void modifyEntryContactsTest() throws Exception { - Contacts expectedResponse = - Contacts.newBuilder().addAllPeople(new ArrayList()).build(); - mockDataCatalog.addResponse(expectedResponse); - - ModifyEntryContactsRequest request = - ModifyEntryContactsRequest.newBuilder() - .setName(EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setContacts(Contacts.newBuilder().build()) - .build(); - - Contacts actualResponse = client.modifyEntryContacts(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ModifyEntryContactsRequest actualRequest = ((ModifyEntryContactsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getContacts(), actualRequest.getContacts()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void modifyEntryContactsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - ModifyEntryContactsRequest request = - ModifyEntryContactsRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setContacts(Contacts.newBuilder().build()) - .build(); - client.modifyEntryContacts(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - - TagTemplate actualResponse = client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagTemplateRequest actualRequest = ((CreateTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(tagTemplateId, actualRequest.getTagTemplateId()); - Assert.assertEquals(tagTemplate, actualRequest.getTagTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - - TagTemplate actualResponse = client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagTemplateRequest actualRequest = ((CreateTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(tagTemplateId, actualRequest.getTagTemplateId()); - Assert.assertEquals(tagTemplate, actualRequest.getTagTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - - TagTemplate actualResponse = client.getTagTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTagTemplateRequest actualRequest = ((GetTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTagTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - client.getTagTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - TagTemplate actualResponse = client.getTagTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTagTemplateRequest actualRequest = ((GetTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTagTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.getTagTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - - TagTemplate actualResponse = client.updateTagTemplate(tagTemplate); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateRequest actualRequest = ((UpdateTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(tagTemplate, actualRequest.getTagTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - client.updateTagTemplate(tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .setIsPubliclyReadable(true) - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplate actualResponse = client.updateTagTemplate(tagTemplate, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateRequest actualRequest = ((UpdateTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(tagTemplate, actualRequest.getTagTemplate()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplate(tagTemplate, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - boolean force = true; - - client.deleteTagTemplate(name, force); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagTemplateRequest actualRequest = ((DeleteTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(force, actualRequest.getForce()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - boolean force = true; - client.deleteTagTemplate(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - boolean force = true; - - client.deleteTagTemplate(name, force); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagTemplateRequest actualRequest = ((DeleteTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(force, actualRequest.getForce()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - boolean force = true; - client.deleteTagTemplate(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagTemplateFieldRequest actualRequest = - ((CreateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(tagTemplateFieldId, actualRequest.getTagTemplateFieldId()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagTemplateFieldExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagTemplateFieldRequest actualRequest = - ((CreateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(tagTemplateFieldId, actualRequest.getTagTemplateFieldId()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagTemplateFieldExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = client.updateTagTemplateField(name, tagTemplateField); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateFieldRequest actualRequest = - ((UpdateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateFieldExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = client.updateTagTemplateField(name, tagTemplateField); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateFieldRequest actualRequest = - ((UpdateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateFieldExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest3() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplateField actualResponse = - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateFieldRequest actualRequest = - ((UpdateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateFieldExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest4() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplateField actualResponse = - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateFieldRequest actualRequest = - ((UpdateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateFieldExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - - TagTemplateField actualResponse = client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RenameTagTemplateFieldRequest actualRequest = - ((RenameTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(newTagTemplateFieldId, actualRequest.getNewTagTemplateFieldId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void renameTagTemplateFieldExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - - TagTemplateField actualResponse = client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RenameTagTemplateFieldRequest actualRequest = - ((RenameTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(newTagTemplateFieldId, actualRequest.getNewTagTemplateFieldId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void renameTagTemplateFieldExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldEnumValueTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateFieldEnumValueName name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]"); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - - TagTemplateField actualResponse = - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RenameTagTemplateFieldEnumValueRequest actualRequest = - ((RenameTagTemplateFieldEnumValueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(newEnumValueDisplayName, actualRequest.getNewEnumValueDisplayName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void renameTagTemplateFieldEnumValueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateFieldEnumValueName name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]"); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldEnumValueTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - - TagTemplateField actualResponse = - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RenameTagTemplateFieldEnumValueRequest actualRequest = - ((RenameTagTemplateFieldEnumValueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(newEnumValueDisplayName, actualRequest.getNewEnumValueDisplayName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void renameTagTemplateFieldEnumValueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateFieldTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - boolean force = true; - - client.deleteTagTemplateField(name, force); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagTemplateFieldRequest actualRequest = - ((DeleteTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(force, actualRequest.getForce()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagTemplateFieldExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - boolean force = true; - client.deleteTagTemplateField(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateFieldTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - boolean force = true; - - client.deleteTagTemplateField(name, force); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagTemplateFieldRequest actualRequest = - ((DeleteTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(force, actualRequest.getForce()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagTemplateFieldExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - boolean force = true; - client.deleteTagTemplateField(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTest() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Tag tag = Tag.newBuilder().build(); - - Tag actualResponse = client.createTag(parent, tag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagRequest actualRequest = ((CreateTagRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(tag, actualRequest.getTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Tag tag = Tag.newBuilder().build(); - client.createTag(parent, tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTest2() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Tag tag = Tag.newBuilder().build(); - - Tag actualResponse = client.createTag(parent, tag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagRequest actualRequest = ((CreateTagRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(tag, actualRequest.getTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - Tag tag = Tag.newBuilder().build(); - client.createTag(parent, tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTest() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - Tag tag = Tag.newBuilder().build(); - - Tag actualResponse = client.updateTag(tag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagRequest actualRequest = ((UpdateTagRequest) actualRequests.get(0)); - - Assert.assertEquals(tag, actualRequest.getTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - Tag tag = Tag.newBuilder().build(); - client.updateTag(tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTest2() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - Tag tag = Tag.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Tag actualResponse = client.updateTag(tag, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagRequest actualRequest = ((UpdateTagRequest) actualRequests.get(0)); - - Assert.assertEquals(tag, actualRequest.getTag()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - Tag tag = Tag.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTag(tag, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - client.deleteTag(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagRequest actualRequest = ((DeleteTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.deleteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteTag(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagRequest actualRequest = ((DeleteTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.deleteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTagsTest() throws Exception { - Tag responsesElement = Tag.newBuilder().build(); - ListTagsResponse expectedResponse = - ListTagsResponse.newBuilder() - .setNextPageToken("") - .addAllTags(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - ListTagsPagedResponse pagedListResponse = client.listTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTagsList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTagsRequest actualRequest = ((ListTagsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTagsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.listTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTagsTest2() throws Exception { - Tag responsesElement = Tag.newBuilder().build(); - ListTagsResponse expectedResponse = - ListTagsResponse.newBuilder() - .setNextPageToken("") - .addAllTags(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListTagsPagedResponse pagedListResponse = client.listTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTagsList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTagsRequest actualRequest = ((ListTagsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTagsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - client.listTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void reconcileTagsTest() throws Exception { - ReconcileTagsResponse expectedResponse = - ReconcileTagsResponse.newBuilder() - .setCreatedTagsCount(-986601696) - .setUpdatedTagsCount(344847213) - .setDeletedTagsCount(59637071) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("reconcileTagsTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDataCatalog.addResponse(resultOperation); - - ReconcileTagsRequest request = - ReconcileTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTagTemplate( - TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForceDeleteMissing(true) - .addAllTags(new ArrayList()) - .build(); - - ReconcileTagsResponse actualResponse = client.reconcileTagsAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ReconcileTagsRequest actualRequest = ((ReconcileTagsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getTagTemplate(), actualRequest.getTagTemplate()); - Assert.assertEquals(request.getForceDeleteMissing(), actualRequest.getForceDeleteMissing()); - Assert.assertEquals(request.getTagsList(), actualRequest.getTagsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void reconcileTagsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - ReconcileTagsRequest request = - ReconcileTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTagTemplate( - TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForceDeleteMissing(true) - .addAllTags(new ArrayList()) - .build(); - client.reconcileTagsAsync(request).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 starEntryTest() throws Exception { - StarEntryResponse expectedResponse = StarEntryResponse.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - StarEntryResponse actualResponse = client.starEntry(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - StarEntryRequest actualRequest = ((StarEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void starEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.starEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void starEntryTest2() throws Exception { - StarEntryResponse expectedResponse = StarEntryResponse.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - StarEntryResponse actualResponse = client.starEntry(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - StarEntryRequest actualRequest = ((StarEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void starEntryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.starEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void unstarEntryTest() throws Exception { - UnstarEntryResponse expectedResponse = UnstarEntryResponse.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - UnstarEntryResponse actualResponse = client.unstarEntry(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UnstarEntryRequest actualRequest = ((UnstarEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void unstarEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.unstarEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void unstarEntryTest2() throws Exception { - UnstarEntryResponse expectedResponse = UnstarEntryResponse.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - UnstarEntryResponse actualResponse = client.unstarEntry(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UnstarEntryRequest actualRequest = ((UnstarEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void unstarEntryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.unstarEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String resource = "resource-341064690"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String resource = "resource-341064690"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockDataCatalog.addResponse(expectedResponse); - - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.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); - mockDataCatalog.addException(exception); - - try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void importEntriesTest() throws Exception { - ImportEntriesResponse expectedResponse = - ImportEntriesResponse.newBuilder() - .setUpsertedEntriesCount(250168367) - .setDeletedEntriesCount(-167383302) - .build(); - Operation resultOperation = - Operation.newBuilder() - .setName("importEntriesTest") - .setDone(true) - .setResponse(Any.pack(expectedResponse)) - .build(); - mockDataCatalog.addResponse(resultOperation); - - ImportEntriesRequest request = - ImportEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setJobId("jobId101296568") - .build(); - - ImportEntriesResponse actualResponse = client.importEntriesAsync(request).get(); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ImportEntriesRequest actualRequest = ((ImportEntriesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getGcsBucketPath(), actualRequest.getGcsBucketPath()); - Assert.assertEquals(request.getJobId(), actualRequest.getJobId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void importEntriesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - ImportEntriesRequest request = - ImportEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setJobId("jobId101296568") - .build(); - client.importEntriesAsync(request).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 setConfigTest() throws Exception { - MigrationConfig expectedResponse = - MigrationConfig.newBuilder() - .setTagTemplateMigration(TagTemplateMigration.forNumber(0)) - .setCatalogUiExperience(CatalogUIExperience.forNumber(0)) - .setTemplateMigrationEnabledTime(Timestamp.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build(); - - MigrationConfig actualResponse = client.setConfig(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetConfigRequest actualRequest = ((SetConfigRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getTagTemplateMigration(), actualRequest.getTagTemplateMigration()); - Assert.assertEquals(request.getCatalogUiExperience(), actualRequest.getCatalogUiExperience()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build(); - client.setConfig(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveConfigTest() throws Exception { - OrganizationConfig expectedResponse = - OrganizationConfig.newBuilder() - .putAllConfig(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - RetrieveConfigRequest request = - RetrieveConfigRequest.newBuilder().setName("name3373707").build(); - - OrganizationConfig actualResponse = client.retrieveConfig(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveConfigRequest actualRequest = ((RetrieveConfigRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - RetrieveConfigRequest request = - RetrieveConfigRequest.newBuilder().setName("name3373707").build(); - client.retrieveConfig(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void retrieveEffectiveConfigTest() throws Exception { - MigrationConfig expectedResponse = - MigrationConfig.newBuilder() - .setTagTemplateMigration(TagTemplateMigration.forNumber(0)) - .setCatalogUiExperience(CatalogUIExperience.forNumber(0)) - .setTemplateMigrationEnabledTime(Timestamp.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - RetrieveEffectiveConfigRequest request = - RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build(); - - MigrationConfig actualResponse = client.retrieveEffectiveConfig(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RetrieveEffectiveConfigRequest actualRequest = - ((RetrieveEffectiveConfigRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void retrieveEffectiveConfigExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - RetrieveEffectiveConfigRequest request = - RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build(); - client.retrieveEffectiveConfig(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalog.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalog.java deleted file mode 100644 index a8bc0b64f21a..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalog.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 MockDataCatalog implements MockGrpcService { - private final MockDataCatalogImpl serviceImpl; - - public MockDataCatalog() { - serviceImpl = new MockDataCatalogImpl(); - } - - @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-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalogImpl.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalogImpl.java deleted file mode 100644 index 1d7cced4802f..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockDataCatalogImpl.java +++ /dev/null @@ -1,841 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.datacatalog.v1.DataCatalogGrpc.DataCatalogImplBase; -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.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 MockDataCatalogImpl extends DataCatalogImplBase { - private List requests; - private Queue responses; - - public MockDataCatalogImpl() { - 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 searchCatalog( - SearchCatalogRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SearchCatalogResponse) { - requests.add(request); - responseObserver.onNext(((SearchCatalogResponse) 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 SearchCatalog, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SearchCatalogResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createEntryGroup( - CreateEntryGroupRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof EntryGroup) { - requests.add(request); - responseObserver.onNext(((EntryGroup) 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 CreateEntryGroup, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - EntryGroup.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getEntryGroup( - GetEntryGroupRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof EntryGroup) { - requests.add(request); - responseObserver.onNext(((EntryGroup) 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 GetEntryGroup, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - EntryGroup.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateEntryGroup( - UpdateEntryGroupRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof EntryGroup) { - requests.add(request); - responseObserver.onNext(((EntryGroup) 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 UpdateEntryGroup, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - EntryGroup.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteEntryGroup( - DeleteEntryGroupRequest 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 DeleteEntryGroup, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listEntryGroups( - ListEntryGroupsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListEntryGroupsResponse) { - requests.add(request); - responseObserver.onNext(((ListEntryGroupsResponse) 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 ListEntryGroups, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListEntryGroupsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createEntry(CreateEntryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Entry) { - requests.add(request); - responseObserver.onNext(((Entry) 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 CreateEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Entry.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateEntry(UpdateEntryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Entry) { - requests.add(request); - responseObserver.onNext(((Entry) 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 UpdateEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Entry.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteEntry(DeleteEntryRequest 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 DeleteEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getEntry(GetEntryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Entry) { - requests.add(request); - responseObserver.onNext(((Entry) 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 GetEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Entry.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void lookupEntry(LookupEntryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Entry) { - requests.add(request); - responseObserver.onNext(((Entry) 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 LookupEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Entry.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listEntries( - ListEntriesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListEntriesResponse) { - requests.add(request); - responseObserver.onNext(((ListEntriesResponse) 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 ListEntries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListEntriesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void modifyEntryOverview( - ModifyEntryOverviewRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof EntryOverview) { - requests.add(request); - responseObserver.onNext(((EntryOverview) 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 ModifyEntryOverview, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - EntryOverview.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void modifyEntryContacts( - ModifyEntryContactsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Contacts) { - requests.add(request); - responseObserver.onNext(((Contacts) 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 ModifyEntryContacts, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Contacts.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createTagTemplate( - CreateTagTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplate) { - requests.add(request); - responseObserver.onNext(((TagTemplate) 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 CreateTagTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TagTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTagTemplate( - GetTagTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplate) { - requests.add(request); - responseObserver.onNext(((TagTemplate) 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 GetTagTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TagTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateTagTemplate( - UpdateTagTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplate) { - requests.add(request); - responseObserver.onNext(((TagTemplate) 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 UpdateTagTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TagTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTagTemplate( - DeleteTagTemplateRequest 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 DeleteTagTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createTagTemplateField( - CreateTagTemplateFieldRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplateField) { - requests.add(request); - responseObserver.onNext(((TagTemplateField) 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 CreateTagTemplateField, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - TagTemplateField.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateTagTemplateField( - UpdateTagTemplateFieldRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplateField) { - requests.add(request); - responseObserver.onNext(((TagTemplateField) 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 UpdateTagTemplateField, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - TagTemplateField.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void renameTagTemplateField( - RenameTagTemplateFieldRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplateField) { - requests.add(request); - responseObserver.onNext(((TagTemplateField) 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 RenameTagTemplateField, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - TagTemplateField.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void renameTagTemplateFieldEnumValue( - RenameTagTemplateFieldEnumValueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplateField) { - requests.add(request); - responseObserver.onNext(((TagTemplateField) 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 RenameTagTemplateFieldEnumValue," - + " expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TagTemplateField.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTagTemplateField( - DeleteTagTemplateFieldRequest 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 DeleteTagTemplateField, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createTag(CreateTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Tag) { - requests.add(request); - responseObserver.onNext(((Tag) 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 CreateTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Tag.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateTag(UpdateTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Tag) { - requests.add(request); - responseObserver.onNext(((Tag) 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 UpdateTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Tag.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTag(DeleteTagRequest 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 DeleteTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTags(ListTagsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTagsResponse) { - requests.add(request); - responseObserver.onNext(((ListTagsResponse) 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 ListTags, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTagsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void reconcileTags( - ReconcileTagsRequest 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 ReconcileTags, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void starEntry( - StarEntryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof StarEntryResponse) { - requests.add(request); - responseObserver.onNext(((StarEntryResponse) 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 StarEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - StarEntryResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void unstarEntry( - UnstarEntryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof UnstarEntryResponse) { - requests.add(request); - responseObserver.onNext(((UnstarEntryResponse) 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 UnstarEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - UnstarEntryResponse.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()))); - } - } - - @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 importEntries( - ImportEntriesRequest 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 ImportEntries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Operation.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void setConfig( - SetConfigRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MigrationConfig) { - requests.add(request); - responseObserver.onNext(((MigrationConfig) 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 SetConfig, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - MigrationConfig.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveConfig( - RetrieveConfigRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof OrganizationConfig) { - requests.add(request); - responseObserver.onNext(((OrganizationConfig) 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 RetrieveConfig, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - OrganizationConfig.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void retrieveEffectiveConfig( - RetrieveEffectiveConfigRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof MigrationConfig) { - requests.add(request); - responseObserver.onNext(((MigrationConfig) 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 RetrieveEffectiveConfig, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - MigrationConfig.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicy.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicy.java deleted file mode 100644 index 825ce997f221..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicy.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicyImpl.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicyImpl.java deleted file mode 100644 index 68c7f34d53ba..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockIAMPolicyImpl.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import com.google.api.core.BetaApi; -import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; -import com.google.protobuf.AbstractMessage; -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<>(); - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManager.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManager.java deleted file mode 100644 index 676f4b748396..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManager.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 MockPolicyTagManager implements MockGrpcService { - private final MockPolicyTagManagerImpl serviceImpl; - - public MockPolicyTagManager() { - serviceImpl = new MockPolicyTagManagerImpl(); - } - - @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-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerImpl.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerImpl.java deleted file mode 100644 index fdfb5d5a39c8..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerImpl.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.datacatalog.v1.PolicyTagManagerGrpc.PolicyTagManagerImplBase; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.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 MockPolicyTagManagerImpl extends PolicyTagManagerImplBase { - private List requests; - private Queue responses; - - public MockPolicyTagManagerImpl() { - 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 createTaxonomy( - CreateTaxonomyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Taxonomy) { - requests.add(request); - responseObserver.onNext(((Taxonomy) 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 CreateTaxonomy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Taxonomy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTaxonomy( - DeleteTaxonomyRequest 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 DeleteTaxonomy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateTaxonomy( - UpdateTaxonomyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Taxonomy) { - requests.add(request); - responseObserver.onNext(((Taxonomy) 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 UpdateTaxonomy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Taxonomy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTaxonomies( - ListTaxonomiesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTaxonomiesResponse) { - requests.add(request); - responseObserver.onNext(((ListTaxonomiesResponse) 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 ListTaxonomies, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTaxonomiesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTaxonomy(GetTaxonomyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Taxonomy) { - requests.add(request); - responseObserver.onNext(((Taxonomy) 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 GetTaxonomy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Taxonomy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createPolicyTag( - CreatePolicyTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof PolicyTag) { - requests.add(request); - responseObserver.onNext(((PolicyTag) 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 CreatePolicyTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - PolicyTag.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deletePolicyTag( - DeletePolicyTagRequest 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 DeletePolicyTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updatePolicyTag( - UpdatePolicyTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof PolicyTag) { - requests.add(request); - responseObserver.onNext(((PolicyTag) 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 UpdatePolicyTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - PolicyTag.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listPolicyTags( - ListPolicyTagsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListPolicyTagsResponse) { - requests.add(request); - responseObserver.onNext(((ListPolicyTagsResponse) 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 ListPolicyTags, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListPolicyTagsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getPolicyTag( - GetPolicyTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof PolicyTag) { - requests.add(request); - responseObserver.onNext(((PolicyTag) 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 GetPolicyTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - PolicyTag.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()))); - } - } - - @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 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()))); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerialization.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerialization.java deleted file mode 100644 index c5a29e7ad559..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerialization.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 MockPolicyTagManagerSerialization implements MockGrpcService { - private final MockPolicyTagManagerSerializationImpl serviceImpl; - - public MockPolicyTagManagerSerialization() { - serviceImpl = new MockPolicyTagManagerSerializationImpl(); - } - - @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-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerializationImpl.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerializationImpl.java deleted file mode 100644 index 520d2de264f8..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/MockPolicyTagManagerSerializationImpl.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import com.google.api.core.BetaApi; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationGrpc.PolicyTagManagerSerializationImplBase; -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 MockPolicyTagManagerSerializationImpl extends PolicyTagManagerSerializationImplBase { - private List requests; - private Queue responses; - - public MockPolicyTagManagerSerializationImpl() { - 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 replaceTaxonomy( - ReplaceTaxonomyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Taxonomy) { - requests.add(request); - responseObserver.onNext(((Taxonomy) 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 ReplaceTaxonomy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Taxonomy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void importTaxonomies( - ImportTaxonomiesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ImportTaxonomiesResponse) { - requests.add(request); - responseObserver.onNext(((ImportTaxonomiesResponse) 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 ImportTaxonomies, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ImportTaxonomiesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void exportTaxonomies( - ExportTaxonomiesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ExportTaxonomiesResponse) { - requests.add(request); - responseObserver.onNext(((ExportTaxonomiesResponse) 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 ExportTaxonomies, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ExportTaxonomiesResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientHttpJsonTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientHttpJsonTest.java deleted file mode 100644 index 39ae9b8ba3ec..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientHttpJsonTest.java +++ /dev/null @@ -1,1174 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -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.datacatalog.v1.stub.HttpJsonPolicyTagManagerStub; -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.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class PolicyTagManagerClientHttpJsonTest { - private static MockHttpService mockService; - private static PolicyTagManagerClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonPolicyTagManagerStub.getMethodDescriptors(), - PolicyTagManagerSettings.getDefaultEndpoint()); - PolicyTagManagerSettings settings = - PolicyTagManagerSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - PolicyTagManagerSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PolicyTagManagerClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void createTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - - Taxonomy actualResponse = client.createTaxonomy(parent, taxonomy); - 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 createTaxonomyExceptionTest() 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]"); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - client.createTaxonomy(parent, taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaxonomyTest2() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - - Taxonomy actualResponse = client.createTaxonomy(parent, taxonomy); - 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 createTaxonomyExceptionTest2() 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"; - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - client.createTaxonomy(parent, taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaxonomyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - client.deleteTaxonomy(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 deleteTaxonomyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.deleteTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaxonomyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-9503/locations/location-9503/taxonomies/taxonomie-9503"; - - client.deleteTaxonomy(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 deleteTaxonomyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9503/locations/location-9503/taxonomies/taxonomie-9503"; - client.deleteTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Taxonomy taxonomy = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - - Taxonomy actualResponse = client.updateTaxonomy(taxonomy); - 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 updateTaxonomyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Taxonomy taxonomy = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - client.updateTaxonomy(taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTaxonomiesTest() throws Exception { - Taxonomy responsesElement = Taxonomy.newBuilder().build(); - ListTaxonomiesResponse expectedResponse = - ListTaxonomiesResponse.newBuilder() - .setNextPageToken("") - .addAllTaxonomies(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListTaxonomiesPagedResponse pagedListResponse = client.listTaxonomies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTaxonomiesList().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 listTaxonomiesExceptionTest() 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.listTaxonomies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTaxonomiesTest2() throws Exception { - Taxonomy responsesElement = Taxonomy.newBuilder().build(); - ListTaxonomiesResponse expectedResponse = - ListTaxonomiesResponse.newBuilder() - .setNextPageToken("") - .addAllTaxonomies(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListTaxonomiesPagedResponse pagedListResponse = client.listTaxonomies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTaxonomiesList().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 listTaxonomiesExceptionTest2() 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.listTaxonomies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - Taxonomy actualResponse = client.getTaxonomy(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 getTaxonomyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.getTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaxonomyTest2() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-9503/locations/location-9503/taxonomies/taxonomie-9503"; - - Taxonomy actualResponse = client.getTaxonomy(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 getTaxonomyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9503/locations/location-9503/taxonomies/taxonomie-9503"; - client.getTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - - PolicyTag actualResponse = client.createPolicyTag(parent, policyTag); - 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 createPolicyTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - client.createPolicyTag(parent, policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPolicyTagTest2() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-1472/locations/location-1472/taxonomies/taxonomie-1472"; - PolicyTag policyTag = PolicyTag.newBuilder().build(); - - PolicyTag actualResponse = client.createPolicyTag(parent, policyTag); - 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 createPolicyTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-1472/locations/location-1472/taxonomies/taxonomie-1472"; - PolicyTag policyTag = PolicyTag.newBuilder().build(); - client.createPolicyTag(parent, policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePolicyTagTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - PolicyTagName name = PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - - client.deletePolicyTag(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 deletePolicyTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - client.deletePolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePolicyTagTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-1130/locations/location-1130/taxonomies/taxonomie-1130/policyTags/policyTag-1130"; - - client.deletePolicyTag(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 deletePolicyTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-1130/locations/location-1130/taxonomies/taxonomie-1130/policyTags/policyTag-1130"; - client.deletePolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updatePolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - PolicyTag policyTag = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - - PolicyTag actualResponse = client.updatePolicyTag(policyTag); - 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 updatePolicyTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PolicyTag policyTag = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - client.updatePolicyTag(policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPolicyTagsTest() throws Exception { - PolicyTag responsesElement = PolicyTag.newBuilder().build(); - ListPolicyTagsResponse expectedResponse = - ListPolicyTagsResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyTags(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - ListPolicyTagsPagedResponse pagedListResponse = client.listPolicyTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyTagsList().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 listPolicyTagsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.listPolicyTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPolicyTagsTest2() throws Exception { - PolicyTag responsesElement = PolicyTag.newBuilder().build(); - ListPolicyTagsResponse expectedResponse = - ListPolicyTagsResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyTags(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-1472/locations/location-1472/taxonomies/taxonomie-1472"; - - ListPolicyTagsPagedResponse pagedListResponse = client.listPolicyTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyTagsList().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 listPolicyTagsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-1472/locations/location-1472/taxonomies/taxonomie-1472"; - client.listPolicyTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - PolicyTagName name = PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - - PolicyTag actualResponse = client.getPolicyTag(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 getPolicyTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - client.getPolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyTagTest2() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-1130/locations/location-1130/taxonomies/taxonomie-1130/policyTags/policyTag-1130"; - - PolicyTag actualResponse = client.getPolicyTag(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 getPolicyTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-1130/locations/location-1130/taxonomies/taxonomie-1130/policyTags/policyTag-1130"; - client.getPolicyTag(name); - 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( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .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( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - client.getIamPolicy(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( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .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( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .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 testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .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( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java deleted file mode 100644 index 60fc774c1598..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerClientTest.java +++ /dev/null @@ -1,1022 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -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.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.protobuf.AbstractMessage; -import com.google.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -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 PolicyTagManagerClientTest { - private static MockIAMPolicy mockIAMPolicy; - private static MockPolicyTagManager mockPolicyTagManager; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private PolicyTagManagerClient client; - - @BeforeClass - public static void startStaticServer() { - mockPolicyTagManager = new MockPolicyTagManager(); - mockIAMPolicy = new MockIAMPolicy(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockPolicyTagManager, mockIAMPolicy)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - PolicyTagManagerSettings settings = - PolicyTagManagerSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PolicyTagManagerClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - - Taxonomy actualResponse = client.createTaxonomy(parent, taxonomy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTaxonomyRequest actualRequest = ((CreateTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(taxonomy, actualRequest.getTaxonomy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTaxonomyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - client.createTaxonomy(parent, taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaxonomyTest2() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - - Taxonomy actualResponse = client.createTaxonomy(parent, taxonomy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTaxonomyRequest actualRequest = ((CreateTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(taxonomy, actualRequest.getTaxonomy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTaxonomyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String parent = "parent-995424086"; - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - client.createTaxonomy(parent, taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaxonomyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockPolicyTagManager.addResponse(expectedResponse); - - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - client.deleteTaxonomy(name); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTaxonomyRequest actualRequest = ((DeleteTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTaxonomyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.deleteTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaxonomyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteTaxonomy(name); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTaxonomyRequest actualRequest = ((DeleteTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTaxonomyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String name = "name3373707"; - client.deleteTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - - Taxonomy actualResponse = client.updateTaxonomy(taxonomy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTaxonomyRequest actualRequest = ((UpdateTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(taxonomy, actualRequest.getTaxonomy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTaxonomyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - client.updateTaxonomy(taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTaxonomiesTest() throws Exception { - Taxonomy responsesElement = Taxonomy.newBuilder().build(); - ListTaxonomiesResponse expectedResponse = - ListTaxonomiesResponse.newBuilder() - .setNextPageToken("") - .addAllTaxonomies(Arrays.asList(responsesElement)) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListTaxonomiesPagedResponse pagedListResponse = client.listTaxonomies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTaxonomiesList().get(0), resources.get(0)); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTaxonomiesRequest actualRequest = ((ListTaxonomiesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTaxonomiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listTaxonomies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTaxonomiesTest2() throws Exception { - Taxonomy responsesElement = Taxonomy.newBuilder().build(); - ListTaxonomiesResponse expectedResponse = - ListTaxonomiesResponse.newBuilder() - .setNextPageToken("") - .addAllTaxonomies(Arrays.asList(responsesElement)) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListTaxonomiesPagedResponse pagedListResponse = client.listTaxonomies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTaxonomiesList().get(0), resources.get(0)); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTaxonomiesRequest actualRequest = ((ListTaxonomiesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTaxonomiesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String parent = "parent-995424086"; - client.listTaxonomies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - Taxonomy actualResponse = client.getTaxonomy(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTaxonomyRequest actualRequest = ((GetTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTaxonomyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.getTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaxonomyTest2() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String name = "name3373707"; - - Taxonomy actualResponse = client.getTaxonomy(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTaxonomyRequest actualRequest = ((GetTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTaxonomyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String name = "name3373707"; - client.getTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - - PolicyTag actualResponse = client.createPolicyTag(parent, policyTag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreatePolicyTagRequest actualRequest = ((CreatePolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(policyTag, actualRequest.getPolicyTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createPolicyTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - client.createPolicyTag(parent, policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPolicyTagTest2() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - PolicyTag policyTag = PolicyTag.newBuilder().build(); - - PolicyTag actualResponse = client.createPolicyTag(parent, policyTag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreatePolicyTagRequest actualRequest = ((CreatePolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(policyTag, actualRequest.getPolicyTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createPolicyTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String parent = "parent-995424086"; - PolicyTag policyTag = PolicyTag.newBuilder().build(); - client.createPolicyTag(parent, policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePolicyTagTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockPolicyTagManager.addResponse(expectedResponse); - - PolicyTagName name = PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - - client.deletePolicyTag(name); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePolicyTagRequest actualRequest = ((DeletePolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePolicyTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - client.deletePolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePolicyTagTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deletePolicyTag(name); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePolicyTagRequest actualRequest = ((DeletePolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePolicyTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String name = "name3373707"; - client.deletePolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updatePolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - PolicyTag policyTag = PolicyTag.newBuilder().build(); - - PolicyTag actualResponse = client.updatePolicyTag(policyTag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdatePolicyTagRequest actualRequest = ((UpdatePolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(policyTag, actualRequest.getPolicyTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updatePolicyTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - PolicyTag policyTag = PolicyTag.newBuilder().build(); - client.updatePolicyTag(policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPolicyTagsTest() throws Exception { - PolicyTag responsesElement = PolicyTag.newBuilder().build(); - ListPolicyTagsResponse expectedResponse = - ListPolicyTagsResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyTags(Arrays.asList(responsesElement)) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - ListPolicyTagsPagedResponse pagedListResponse = client.listPolicyTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyTagsList().get(0), resources.get(0)); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPolicyTagsRequest actualRequest = ((ListPolicyTagsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPolicyTagsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.listPolicyTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPolicyTagsTest2() throws Exception { - PolicyTag responsesElement = PolicyTag.newBuilder().build(); - ListPolicyTagsResponse expectedResponse = - ListPolicyTagsResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyTags(Arrays.asList(responsesElement)) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListPolicyTagsPagedResponse pagedListResponse = client.listPolicyTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyTagsList().get(0), resources.get(0)); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPolicyTagsRequest actualRequest = ((ListPolicyTagsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPolicyTagsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String parent = "parent-995424086"; - client.listPolicyTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - PolicyTagName name = PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - - PolicyTag actualResponse = client.getPolicyTag(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPolicyTagRequest actualRequest = ((GetPolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPolicyTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - client.getPolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyTagTest2() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String name = "name3373707"; - - PolicyTag actualResponse = client.getPolicyTag(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPolicyTagRequest actualRequest = ((GetPolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPolicyTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String name = "name3373707"; - client.getPolicyTag(name); - 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(); - mockPolicyTagManager.addResponse(expectedResponse); - - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - - Policy actualResponse = client.getIamPolicy(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.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); - mockPolicyTagManager.addException(exception); - - try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - client.getIamPolicy(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(); - mockPolicyTagManager.addResponse(expectedResponse); - - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - Policy actualResponse = client.setIamPolicy(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.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); - mockPolicyTagManager.addException(exception); - - try { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .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 testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockPolicyTagManager.addResponse(expectedResponse); - - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.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); - mockPolicyTagManager.addException(exception); - - try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientHttpJsonTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientHttpJsonTest.java deleted file mode 100644 index c9d6e0d263ef..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientHttpJsonTest.java +++ /dev/null @@ -1,232 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -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.datacatalog.v1.stub.HttpJsonPolicyTagManagerSerializationStub; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class PolicyTagManagerSerializationClientHttpJsonTest { - private static MockHttpService mockService; - private static PolicyTagManagerSerializationClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonPolicyTagManagerSerializationStub.getMethodDescriptors(), - PolicyTagManagerSerializationSettings.getDefaultEndpoint()); - PolicyTagManagerSerializationSettings settings = - PolicyTagManagerSerializationSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - PolicyTagManagerSerializationSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PolicyTagManagerSerializationClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void replaceTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - ReplaceTaxonomyRequest request = - ReplaceTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build()) - .build(); - - Taxonomy actualResponse = client.replaceTaxonomy(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 replaceTaxonomyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ReplaceTaxonomyRequest request = - ReplaceTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build()) - .build(); - client.replaceTaxonomy(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void importTaxonomiesTest() throws Exception { - ImportTaxonomiesResponse expectedResponse = - ImportTaxonomiesResponse.newBuilder().addAllTaxonomies(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - - ImportTaxonomiesResponse actualResponse = client.importTaxonomies(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 importTaxonomiesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - client.importTaxonomies(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void exportTaxonomiesTest() throws Exception { - ExportTaxonomiesResponse expectedResponse = - ExportTaxonomiesResponse.newBuilder() - .addAllTaxonomies(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - - ExportTaxonomiesResponse actualResponse = client.exportTaxonomies(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 exportTaxonomiesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - client.exportTaxonomies(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java deleted file mode 100644 index a9782b97b9cb..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationClientTest.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1; - -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.protobuf.AbstractMessage; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -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 PolicyTagManagerSerializationClientTest { - private static MockIAMPolicy mockIAMPolicy; - private static MockPolicyTagManagerSerialization mockPolicyTagManagerSerialization; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private PolicyTagManagerSerializationClient client; - - @BeforeClass - public static void startStaticServer() { - mockPolicyTagManagerSerialization = new MockPolicyTagManagerSerialization(); - mockIAMPolicy = new MockIAMPolicy(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockPolicyTagManagerSerialization, mockIAMPolicy)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - PolicyTagManagerSerializationSettings settings = - PolicyTagManagerSerializationSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PolicyTagManagerSerializationClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void replaceTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManagerSerialization.addResponse(expectedResponse); - - ReplaceTaxonomyRequest request = - ReplaceTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build()) - .build(); - - Taxonomy actualResponse = client.replaceTaxonomy(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManagerSerialization.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ReplaceTaxonomyRequest actualRequest = ((ReplaceTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getSerializedTaxonomy(), actualRequest.getSerializedTaxonomy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void replaceTaxonomyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManagerSerialization.addException(exception); - - try { - ReplaceTaxonomyRequest request = - ReplaceTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build()) - .build(); - client.replaceTaxonomy(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void importTaxonomiesTest() throws Exception { - ImportTaxonomiesResponse expectedResponse = - ImportTaxonomiesResponse.newBuilder().addAllTaxonomies(new ArrayList()).build(); - mockPolicyTagManagerSerialization.addResponse(expectedResponse); - - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - - ImportTaxonomiesResponse actualResponse = client.importTaxonomies(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManagerSerialization.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ImportTaxonomiesRequest actualRequest = ((ImportTaxonomiesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); - Assert.assertEquals(request.getCrossRegionalSource(), actualRequest.getCrossRegionalSource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void importTaxonomiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManagerSerialization.addException(exception); - - try { - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - client.importTaxonomies(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void exportTaxonomiesTest() throws Exception { - ExportTaxonomiesResponse expectedResponse = - ExportTaxonomiesResponse.newBuilder() - .addAllTaxonomies(new ArrayList()) - .build(); - mockPolicyTagManagerSerialization.addResponse(expectedResponse); - - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - - ExportTaxonomiesResponse actualResponse = client.exportTaxonomies(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManagerSerialization.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ExportTaxonomiesRequest actualRequest = ((ExportTaxonomiesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getTaxonomiesList(), actualRequest.getTaxonomiesList()); - Assert.assertEquals(request.getSerializedTaxonomies(), actualRequest.getSerializedTaxonomies()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void exportTaxonomiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManagerSerialization.addException(exception); - - try { - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - client.exportTaxonomies(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientHttpJsonTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientHttpJsonTest.java deleted file mode 100644 index 7a123d8e50e6..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientHttpJsonTest.java +++ /dev/null @@ -1,3031 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.SearchCatalogPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.datacatalog.v1beta1.stub.HttpJsonDataCatalogStub; -import com.google.common.collect.Lists; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.Policy; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.HashMap; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class DataCatalogClientHttpJsonTest { - private static MockHttpService mockService; - private static DataCatalogClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonDataCatalogStub.getMethodDescriptors(), - DataCatalogSettings.getDefaultEndpoint()); - DataCatalogSettings settings = - DataCatalogSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - DataCatalogSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataCatalogClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void searchCatalogTest() throws Exception { - SearchCatalogResult responsesElement = SearchCatalogResult.newBuilder().build(); - SearchCatalogResponse expectedResponse = - SearchCatalogResponse.newBuilder() - .setNextPageToken("") - .addAllResults(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build(); - String query = "query107944136"; - - SearchCatalogPagedResponse pagedListResponse = client.searchCatalog(scope, query); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getResultsList().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 searchCatalogExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build(); - String query = "query107944136"; - client.searchCatalog(scope, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - - EntryGroup actualResponse = client.createEntryGroup(parent, entryGroupId, entryGroup); - 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 createEntryGroupExceptionTest() 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 entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - - EntryGroup actualResponse = client.createEntryGroup(parent, entryGroupId, entryGroup); - 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 createEntryGroupExceptionTest2() 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 entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroup entryGroup = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - - EntryGroup actualResponse = client.updateEntryGroup(entryGroup); - 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 updateEntryGroupExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroup entryGroup = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - client.updateEntryGroup(entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroup entryGroup = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.updateEntryGroup(entryGroup, 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 updateEntryGroupExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroup entryGroup = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEntryGroup(entryGroup, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - EntryGroup actualResponse = client.getEntryGroup(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 getEntryGroupExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.getEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - - EntryGroup actualResponse = client.getEntryGroup(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 getEntryGroupExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - client.getEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest3() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - FieldMask readMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.getEntryGroup(name, readMask); - 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 getEntryGroupExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - FieldMask readMask = FieldMask.newBuilder().build(); - client.getEntryGroup(name, readMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest4() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - FieldMask readMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.getEntryGroup(name, readMask); - 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 getEntryGroupExceptionTest4() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - FieldMask readMask = FieldMask.newBuilder().build(); - client.getEntryGroup(name, readMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryGroupTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - client.deleteEntryGroup(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 deleteEntryGroupExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.deleteEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryGroupTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - - client.deleteEntryGroup(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 deleteEntryGroupExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-4364/locations/location-4364/entryGroups/entryGroup-4364"; - client.deleteEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntryGroupsTest() throws Exception { - EntryGroup responsesElement = EntryGroup.newBuilder().build(); - ListEntryGroupsResponse expectedResponse = - ListEntryGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllEntryGroups(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListEntryGroupsPagedResponse pagedListResponse = client.listEntryGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntryGroupsList().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 listEntryGroupsExceptionTest() 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.listEntryGroups(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntryGroupsTest2() throws Exception { - EntryGroup responsesElement = EntryGroup.newBuilder().build(); - ListEntryGroupsResponse expectedResponse = - ListEntryGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllEntryGroups(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListEntryGroupsPagedResponse pagedListResponse = client.listEntryGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntryGroupsList().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 listEntryGroupsExceptionTest2() 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.listEntryGroups(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - - Entry actualResponse = client.createEntry(parent, entryId, entry); - 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 createEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - client.createEntry(parent, entryId, entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-3515/locations/location-3515/entryGroups/entryGroup-3515"; - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - - Entry actualResponse = client.createEntry(parent, entryId, entry); - 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 createEntryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-3515/locations/location-3515/entryGroups/entryGroup-3515"; - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - client.createEntry(parent, entryId, entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Entry entry = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - - Entry actualResponse = client.updateEntry(entry); - 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 updateEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Entry entry = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - client.updateEntry(entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Entry entry = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Entry actualResponse = client.updateEntry(entry, 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 updateEntryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Entry entry = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEntry(entry, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - client.deleteEntry(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 deleteEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.deleteEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - - client.deleteEntry(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 deleteEntryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - client.deleteEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - Entry actualResponse = client.getEntry(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 getEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.getEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - - Entry actualResponse = client.getEntry(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 getEntryExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-8024/locations/location-8024/entryGroups/entryGroup-8024/entries/entrie-8024"; - client.getEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void lookupEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LookupEntryRequest request = LookupEntryRequest.newBuilder().build(); - - Entry actualResponse = client.lookupEntry(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 lookupEntryExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - LookupEntryRequest request = LookupEntryRequest.newBuilder().build(); - client.lookupEntry(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntriesTest() throws Exception { - Entry responsesElement = Entry.newBuilder().build(); - ListEntriesResponse expectedResponse = - ListEntriesResponse.newBuilder() - .setNextPageToken("") - .addAllEntries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - ListEntriesPagedResponse pagedListResponse = client.listEntries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntriesList().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 listEntriesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.listEntries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntriesTest2() throws Exception { - Entry responsesElement = Entry.newBuilder().build(); - ListEntriesResponse expectedResponse = - ListEntriesResponse.newBuilder() - .setNextPageToken("") - .addAllEntries(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-3515/locations/location-3515/entryGroups/entryGroup-3515"; - - ListEntriesPagedResponse pagedListResponse = client.listEntries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntriesList().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 listEntriesExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-3515/locations/location-3515/entryGroups/entryGroup-3515"; - client.listEntries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - - TagTemplate actualResponse = client.createTagTemplate(parent, tagTemplateId, tagTemplate); - 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 createTagTemplateExceptionTest() 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 tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - - TagTemplate actualResponse = client.createTagTemplate(parent, tagTemplateId, tagTemplate); - 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 createTagTemplateExceptionTest2() 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 tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - - TagTemplate actualResponse = client.getTagTemplate(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 getTagTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - client.getTagTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3087/locations/location-3087/tagTemplates/tagTemplate-3087"; - - TagTemplate actualResponse = client.getTagTemplate(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 getTagTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3087/locations/location-3087/tagTemplates/tagTemplate-3087"; - client.getTagTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - - TagTemplate actualResponse = client.updateTagTemplate(tagTemplate); - 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 updateTagTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - client.updateTagTemplate(tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplate actualResponse = client.updateTagTemplate(tagTemplate, 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 updateTagTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplate tagTemplate = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplate(tagTemplate, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - boolean force = true; - - client.deleteTagTemplate(name, force); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTagTemplateExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - boolean force = true; - client.deleteTagTemplate(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-3087/locations/location-3087/tagTemplates/tagTemplate-3087"; - boolean force = true; - - client.deleteTagTemplate(name, force); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTagTemplateExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-3087/locations/location-3087/tagTemplates/tagTemplate-3087"; - boolean force = true; - client.deleteTagTemplate(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - 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 createTagTemplateFieldExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-8912/locations/location-8912/tagTemplates/tagTemplate-8912"; - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - 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 createTagTemplateFieldExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-8912/locations/location-8912/tagTemplates/tagTemplate-8912"; - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = client.updateTagTemplateField(name, tagTemplateField); - 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 updateTagTemplateFieldExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = client.updateTagTemplateField(name, tagTemplateField); - 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 updateTagTemplateFieldExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest3() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplateField actualResponse = - client.updateTagTemplateField(name, tagTemplateField, 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 updateTagTemplateFieldExceptionTest3() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest4() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplateField actualResponse = - client.updateTagTemplateField(name, tagTemplateField, 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 updateTagTemplateFieldExceptionTest4() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - - TagTemplateField actualResponse = client.renameTagTemplateField(name, newTagTemplateFieldId); - 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 renameTagTemplateFieldExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - - TagTemplateField actualResponse = client.renameTagTemplateField(name, newTagTemplateFieldId); - 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 renameTagTemplateFieldExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldEnumValueTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - TagTemplateFieldEnumValueName name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]"); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - - TagTemplateField actualResponse = - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - 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 renameTagTemplateFieldEnumValueExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateFieldEnumValueName name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]"); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldEnumValueTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-9639/locations/location-9639/tagTemplates/tagTemplate-9639/fields/field-9639/enumValues/enumValue-9639"; - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - - TagTemplateField actualResponse = - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - 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 renameTagTemplateFieldEnumValueExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-9639/locations/location-9639/tagTemplates/tagTemplate-9639/fields/field-9639/enumValues/enumValue-9639"; - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateFieldTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - boolean force = true; - - client.deleteTagTemplateField(name, force); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTagTemplateFieldExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - boolean force = true; - client.deleteTagTemplateField(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateFieldTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - boolean force = true; - - client.deleteTagTemplateField(name, force); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void deleteTagTemplateFieldExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-2324/locations/location-2324/tagTemplates/tagTemplate-2324/fields/field-2324"; - boolean force = true; - client.deleteTagTemplateField(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTest() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Tag tag = Tag.newBuilder().build(); - - Tag actualResponse = client.createTag(parent, tag); - 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 createTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Tag tag = Tag.newBuilder().build(); - client.createTag(parent, tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTest2() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = - "projects/project-6711/locations/location-6711/entryGroups/entryGroup-6711/entries/entrie-6711"; - Tag tag = Tag.newBuilder().build(); - - Tag actualResponse = client.createTag(parent, tag); - 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 createTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = - "projects/project-6711/locations/location-6711/entryGroups/entryGroup-6711/entries/entrie-6711"; - Tag tag = Tag.newBuilder().build(); - client.createTag(parent, tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTest() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - Tag tag = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - - Tag actualResponse = client.updateTag(tag); - 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 updateTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Tag tag = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - client.updateTag(tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTest2() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockService.addResponse(expectedResponse); - - Tag tag = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Tag actualResponse = client.updateTag(tag, 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 updateTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Tag tag = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTag(tag, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - client.deleteTag(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 deleteTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.deleteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-9589/locations/location-9589/entryGroups/entryGroup-9589/entries/entrie-9589/tags/tag-9589"; - - client.deleteTag(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 deleteTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-9589/locations/location-9589/entryGroups/entryGroup-9589/entries/entrie-9589/tags/tag-9589"; - client.deleteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTagsTest() throws Exception { - Tag responsesElement = Tag.newBuilder().build(); - ListTagsResponse expectedResponse = - ListTagsResponse.newBuilder() - .setNextPageToken("") - .addAllTags(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - ListTagsPagedResponse pagedListResponse = client.listTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTagsList().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 listTagsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.listTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTagsTest2() throws Exception { - Tag responsesElement = Tag.newBuilder().build(); - ListTagsResponse expectedResponse = - ListTagsResponse.newBuilder() - .setNextPageToken("") - .addAllTags(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = - "projects/project-6711/locations/location-6711/entryGroups/entryGroup-6711/entries/entrie-6711"; - - ListTagsPagedResponse pagedListResponse = client.listTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTagsList().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 listTagsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = - "projects/project-6711/locations/location-6711/entryGroups/entryGroup-6711/entries/entrie-6711"; - client.listTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-4196/locations/location-4196/tagTemplates/tagTemplate-4196"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = - "projects/project-4196/locations/location-4196/tagTemplates/tagTemplate-4196"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockService.addResponse(expectedResponse); - - String resource = "projects/project-4196/locations/location-4196/tagTemplates/tagTemplate-4196"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String resource = - "projects/project-4196/locations/location-4196/tagTemplates/tagTemplate-4196"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").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( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java deleted file mode 100644 index c8aabf2999d7..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/DataCatalogClientTest.java +++ /dev/null @@ -1,2618 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntriesPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListEntryGroupsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.ListTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.DataCatalogClient.SearchCatalogPagedResponse; - -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.resourcenames.ResourceName; -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.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 com.google.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -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 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 DataCatalogClientTest { - private static MockDataCatalog mockDataCatalog; - private static MockIAMPolicy mockIAMPolicy; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private DataCatalogClient client; - - @BeforeClass - public static void startStaticServer() { - mockDataCatalog = new MockDataCatalog(); - mockIAMPolicy = new MockIAMPolicy(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockDataCatalog, mockIAMPolicy)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - DataCatalogSettings settings = - DataCatalogSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataCatalogClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void searchCatalogTest() throws Exception { - SearchCatalogResult responsesElement = SearchCatalogResult.newBuilder().build(); - SearchCatalogResponse expectedResponse = - SearchCatalogResponse.newBuilder() - .setNextPageToken("") - .addAllResults(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build(); - String query = "query107944136"; - - SearchCatalogPagedResponse pagedListResponse = client.searchCatalog(scope, query); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getResultsList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SearchCatalogRequest actualRequest = ((SearchCatalogRequest) actualRequests.get(0)); - - Assert.assertEquals(scope, actualRequest.getScope()); - Assert.assertEquals(query, actualRequest.getQuery()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void searchCatalogExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build(); - String query = "query107944136"; - client.searchCatalog(scope, query); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - - EntryGroup actualResponse = client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateEntryGroupRequest actualRequest = ((CreateEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(entryGroupId, actualRequest.getEntryGroupId()); - Assert.assertEquals(entryGroup, actualRequest.getEntryGroup()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createEntryGroupExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - - EntryGroup actualResponse = client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateEntryGroupRequest actualRequest = ((CreateEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(entryGroupId, actualRequest.getEntryGroupId()); - Assert.assertEquals(entryGroup, actualRequest.getEntryGroup()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createEntryGroupExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - client.createEntryGroup(parent, entryGroupId, entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - - EntryGroup actualResponse = client.updateEntryGroup(entryGroup); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateEntryGroupRequest actualRequest = ((UpdateEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(entryGroup, actualRequest.getEntryGroup()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateEntryGroupExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - client.updateEntryGroup(entryGroup); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.updateEntryGroup(entryGroup, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateEntryGroupRequest actualRequest = ((UpdateEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(entryGroup, actualRequest.getEntryGroup()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateEntryGroupExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEntryGroup(entryGroup, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - EntryGroup actualResponse = client.getEntryGroup(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryGroupRequest actualRequest = ((GetEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryGroupExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.getEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest2() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - EntryGroup actualResponse = client.getEntryGroup(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryGroupRequest actualRequest = ((GetEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryGroupExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.getEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest3() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - FieldMask readMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.getEntryGroup(name, readMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryGroupRequest actualRequest = ((GetEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(readMask, actualRequest.getReadMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryGroupExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - FieldMask readMask = FieldMask.newBuilder().build(); - client.getEntryGroup(name, readMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryGroupTest4() throws Exception { - EntryGroup expectedResponse = - EntryGroup.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDataCatalogTimestamps(SystemTimestamps.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - FieldMask readMask = FieldMask.newBuilder().build(); - - EntryGroup actualResponse = client.getEntryGroup(name, readMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryGroupRequest actualRequest = ((GetEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(readMask, actualRequest.getReadMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryGroupExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - FieldMask readMask = FieldMask.newBuilder().build(); - client.getEntryGroup(name, readMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryGroupTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - client.deleteEntryGroup(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteEntryGroupRequest actualRequest = ((DeleteEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteEntryGroupExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.deleteEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryGroupTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteEntryGroup(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteEntryGroupRequest actualRequest = ((DeleteEntryGroupRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteEntryGroupExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.deleteEntryGroup(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntryGroupsTest() throws Exception { - EntryGroup responsesElement = EntryGroup.newBuilder().build(); - ListEntryGroupsResponse expectedResponse = - ListEntryGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllEntryGroups(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListEntryGroupsPagedResponse pagedListResponse = client.listEntryGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntryGroupsList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListEntryGroupsRequest actualRequest = ((ListEntryGroupsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listEntryGroupsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listEntryGroups(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntryGroupsTest2() throws Exception { - EntryGroup responsesElement = EntryGroup.newBuilder().build(); - ListEntryGroupsResponse expectedResponse = - ListEntryGroupsResponse.newBuilder() - .setNextPageToken("") - .addAllEntryGroups(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListEntryGroupsPagedResponse pagedListResponse = client.listEntryGroups(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntryGroupsList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListEntryGroupsRequest actualRequest = ((ListEntryGroupsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listEntryGroupsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - client.listEntryGroups(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - - Entry actualResponse = client.createEntry(parent, entryId, entry); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateEntryRequest actualRequest = ((CreateEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(entryId, actualRequest.getEntryId()); - Assert.assertEquals(entry, actualRequest.getEntry()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - client.createEntry(parent, entryId, entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - - Entry actualResponse = client.createEntry(parent, entryId, entry); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateEntryRequest actualRequest = ((CreateEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(entryId, actualRequest.getEntryId()); - Assert.assertEquals(entry, actualRequest.getEntry()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createEntryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - client.createEntry(parent, entryId, entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - Entry entry = Entry.newBuilder().build(); - - Entry actualResponse = client.updateEntry(entry); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateEntryRequest actualRequest = ((UpdateEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(entry, actualRequest.getEntry()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - Entry entry = Entry.newBuilder().build(); - client.updateEntry(entry); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - Entry entry = Entry.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Entry actualResponse = client.updateEntry(entry, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateEntryRequest actualRequest = ((UpdateEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(entry, actualRequest.getEntry()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateEntryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - Entry entry = Entry.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateEntry(entry, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - client.deleteEntry(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteEntryRequest actualRequest = ((DeleteEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.deleteEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteEntryTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteEntry(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteEntryRequest actualRequest = ((DeleteEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteEntryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.deleteEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - Entry actualResponse = client.getEntry(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryRequest actualRequest = ((GetEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.getEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getEntryTest2() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - Entry actualResponse = client.getEntry(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetEntryRequest actualRequest = ((GetEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getEntryExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.getEntry(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void lookupEntryTest() throws Exception { - Entry expectedResponse = - Entry.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setLinkedResource("linkedResource-495606457") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setSchema(Schema.newBuilder().build()) - .setSourceSystemTimestamps(SystemTimestamps.newBuilder().build()) - .setUsageSignal(UsageSignal.newBuilder().build()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - LookupEntryRequest request = LookupEntryRequest.newBuilder().build(); - - Entry actualResponse = client.lookupEntry(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - LookupEntryRequest actualRequest = ((LookupEntryRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getLinkedResource(), actualRequest.getLinkedResource()); - Assert.assertEquals(request.getSqlResource(), actualRequest.getSqlResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void lookupEntryExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - LookupEntryRequest request = LookupEntryRequest.newBuilder().build(); - client.lookupEntry(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntriesTest() throws Exception { - Entry responsesElement = Entry.newBuilder().build(); - ListEntriesResponse expectedResponse = - ListEntriesResponse.newBuilder() - .setNextPageToken("") - .addAllEntries(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - - ListEntriesPagedResponse pagedListResponse = client.listEntries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListEntriesRequest actualRequest = ((ListEntriesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listEntriesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - client.listEntries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listEntriesTest2() throws Exception { - Entry responsesElement = Entry.newBuilder().build(); - ListEntriesResponse expectedResponse = - ListEntriesResponse.newBuilder() - .setNextPageToken("") - .addAllEntries(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListEntriesPagedResponse pagedListResponse = client.listEntries(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getEntriesList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListEntriesRequest actualRequest = ((ListEntriesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listEntriesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - client.listEntries(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - - TagTemplate actualResponse = client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagTemplateRequest actualRequest = ((CreateTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(tagTemplateId, actualRequest.getTagTemplateId()); - Assert.assertEquals(tagTemplate, actualRequest.getTagTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - - TagTemplate actualResponse = client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagTemplateRequest actualRequest = ((CreateTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(tagTemplateId, actualRequest.getTagTemplateId()); - Assert.assertEquals(tagTemplate, actualRequest.getTagTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - client.createTagTemplate(parent, tagTemplateId, tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - - TagTemplate actualResponse = client.getTagTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTagTemplateRequest actualRequest = ((GetTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTagTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - client.getTagTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - TagTemplate actualResponse = client.getTagTemplate(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTagTemplateRequest actualRequest = ((GetTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTagTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.getTagTemplate(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateTest() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - - TagTemplate actualResponse = client.updateTagTemplate(tagTemplate); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateRequest actualRequest = ((UpdateTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(tagTemplate, actualRequest.getTagTemplate()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - client.updateTagTemplate(tagTemplate); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateTest2() throws Exception { - TagTemplate expectedResponse = - TagTemplate.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setDisplayName("displayName1714148973") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplate actualResponse = client.updateTagTemplate(tagTemplate, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateRequest actualRequest = ((UpdateTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(tagTemplate, actualRequest.getTagTemplate()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplate(tagTemplate, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - boolean force = true; - - client.deleteTagTemplate(name, force); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagTemplateRequest actualRequest = ((DeleteTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(force, actualRequest.getForce()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagTemplateExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - boolean force = true; - client.deleteTagTemplate(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - boolean force = true; - - client.deleteTagTemplate(name, force); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagTemplateRequest actualRequest = ((DeleteTagTemplateRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(force, actualRequest.getForce()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagTemplateExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - boolean force = true; - client.deleteTagTemplate(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagTemplateFieldRequest actualRequest = - ((CreateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(tagTemplateFieldId, actualRequest.getTagTemplateFieldId()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagTemplateFieldExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagTemplateFieldRequest actualRequest = - ((CreateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(tagTemplateFieldId, actualRequest.getTagTemplateFieldId()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagTemplateFieldExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = client.updateTagTemplateField(name, tagTemplateField); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateFieldRequest actualRequest = - ((UpdateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateFieldExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - - TagTemplateField actualResponse = client.updateTagTemplateField(name, tagTemplateField); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateFieldRequest actualRequest = - ((UpdateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateFieldExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest3() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplateField actualResponse = - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateFieldRequest actualRequest = - ((UpdateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateFieldExceptionTest3() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTemplateFieldTest4() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - TagTemplateField actualResponse = - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagTemplateFieldRequest actualRequest = - ((UpdateTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(tagTemplateField, actualRequest.getTagTemplateField()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagTemplateFieldExceptionTest4() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTagTemplateField(name, tagTemplateField, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - - TagTemplateField actualResponse = client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RenameTagTemplateFieldRequest actualRequest = - ((RenameTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(newTagTemplateFieldId, actualRequest.getNewTagTemplateFieldId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void renameTagTemplateFieldExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - - TagTemplateField actualResponse = client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RenameTagTemplateFieldRequest actualRequest = - ((RenameTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(newTagTemplateFieldId, actualRequest.getNewTagTemplateFieldId()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void renameTagTemplateFieldExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - client.renameTagTemplateField(name, newTagTemplateFieldId); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldEnumValueTest() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateFieldEnumValueName name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]"); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - - TagTemplateField actualResponse = - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RenameTagTemplateFieldEnumValueRequest actualRequest = - ((RenameTagTemplateFieldEnumValueRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(newEnumValueDisplayName, actualRequest.getNewEnumValueDisplayName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void renameTagTemplateFieldEnumValueExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateFieldEnumValueName name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]"); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void renameTagTemplateFieldEnumValueTest2() throws Exception { - TagTemplateField expectedResponse = - TagTemplateField.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setDisplayName("displayName1714148973") - .setType(FieldType.newBuilder().build()) - .setIsRequired(true) - .setDescription("description-1724546052") - .setOrder(106006350) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - - TagTemplateField actualResponse = - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RenameTagTemplateFieldEnumValueRequest actualRequest = - ((RenameTagTemplateFieldEnumValueRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(newEnumValueDisplayName, actualRequest.getNewEnumValueDisplayName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void renameTagTemplateFieldEnumValueExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - client.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateFieldTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - boolean force = true; - - client.deleteTagTemplateField(name, force); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagTemplateFieldRequest actualRequest = - ((DeleteTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(force, actualRequest.getForce()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagTemplateFieldExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - boolean force = true; - client.deleteTagTemplateField(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTemplateFieldTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - boolean force = true; - - client.deleteTagTemplateField(name, force); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagTemplateFieldRequest actualRequest = - ((DeleteTagTemplateFieldRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(force, actualRequest.getForce()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagTemplateFieldExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - boolean force = true; - client.deleteTagTemplateField(name, force); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTest() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Tag tag = Tag.newBuilder().build(); - - Tag actualResponse = client.createTag(parent, tag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagRequest actualRequest = ((CreateTagRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(tag, actualRequest.getTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Tag tag = Tag.newBuilder().build(); - client.createTag(parent, tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTagTest2() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Tag tag = Tag.newBuilder().build(); - - Tag actualResponse = client.createTag(parent, tag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTagRequest actualRequest = ((CreateTagRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(tag, actualRequest.getTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - Tag tag = Tag.newBuilder().build(); - client.createTag(parent, tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTest() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - Tag tag = Tag.newBuilder().build(); - - Tag actualResponse = client.updateTag(tag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagRequest actualRequest = ((UpdateTagRequest) actualRequests.get(0)); - - Assert.assertEquals(tag, actualRequest.getTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - Tag tag = Tag.newBuilder().build(); - client.updateTag(tag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTagTest2() throws Exception { - Tag expectedResponse = - Tag.newBuilder() - .setName( - TagName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]", "[TAG]") - .toString()) - .setTemplate("template-1321546630") - .setTemplateDisplayName("templateDisplayName713818515") - .putAllFields(new HashMap()) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - Tag tag = Tag.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - Tag actualResponse = client.updateTag(tag, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTagRequest actualRequest = ((UpdateTagRequest) actualRequests.get(0)); - - Assert.assertEquals(tag, actualRequest.getTag()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - Tag tag = Tag.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateTag(tag, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - client.deleteTag(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagRequest actualRequest = ((DeleteTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.deleteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTagTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockDataCatalog.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteTag(name); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTagRequest actualRequest = ((DeleteTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String name = "name3373707"; - client.deleteTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTagsTest() throws Exception { - Tag responsesElement = Tag.newBuilder().build(); - ListTagsResponse expectedResponse = - ListTagsResponse.newBuilder() - .setNextPageToken("") - .addAllTags(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - ListTagsPagedResponse pagedListResponse = client.listTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTagsList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTagsRequest actualRequest = ((ListTagsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTagsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.listTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTagsTest2() throws Exception { - Tag responsesElement = Tag.newBuilder().build(); - ListTagsResponse expectedResponse = - ListTagsResponse.newBuilder() - .setNextPageToken("") - .addAllTags(Arrays.asList(responsesElement)) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListTagsPagedResponse pagedListResponse = client.listTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTagsList().get(0), resources.get(0)); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTagsRequest actualRequest = ((ListTagsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTagsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String parent = "parent-995424086"; - client.listTags(parent); - 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(); - mockDataCatalog.addResponse(expectedResponse); - - ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockDataCatalog.addResponse(expectedResponse); - - String resource = "resource-341064690"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataCatalog.addException(exception); - - try { - String resource = "resource-341064690"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockDataCatalog.addResponse(expectedResponse); - - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataCatalog.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); - mockDataCatalog.addException(exception); - - try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalog.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalog.java deleted file mode 100644 index 957beb3d7d3f..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalog.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 MockDataCatalog implements MockGrpcService { - private final MockDataCatalogImpl serviceImpl; - - public MockDataCatalog() { - serviceImpl = new MockDataCatalogImpl(); - } - - @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-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalogImpl.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalogImpl.java deleted file mode 100644 index 18bb7fa9db0c..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockDataCatalogImpl.java +++ /dev/null @@ -1,650 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import com.google.api.core.BetaApi; -import com.google.cloud.datacatalog.v1beta1.DataCatalogGrpc.DataCatalogImplBase; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.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 MockDataCatalogImpl extends DataCatalogImplBase { - private List requests; - private Queue responses; - - public MockDataCatalogImpl() { - 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 searchCatalog( - SearchCatalogRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SearchCatalogResponse) { - requests.add(request); - responseObserver.onNext(((SearchCatalogResponse) 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 SearchCatalog, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SearchCatalogResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createEntryGroup( - CreateEntryGroupRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof EntryGroup) { - requests.add(request); - responseObserver.onNext(((EntryGroup) 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 CreateEntryGroup, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - EntryGroup.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateEntryGroup( - UpdateEntryGroupRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof EntryGroup) { - requests.add(request); - responseObserver.onNext(((EntryGroup) 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 UpdateEntryGroup, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - EntryGroup.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getEntryGroup( - GetEntryGroupRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof EntryGroup) { - requests.add(request); - responseObserver.onNext(((EntryGroup) 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 GetEntryGroup, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - EntryGroup.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteEntryGroup( - DeleteEntryGroupRequest 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 DeleteEntryGroup, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listEntryGroups( - ListEntryGroupsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListEntryGroupsResponse) { - requests.add(request); - responseObserver.onNext(((ListEntryGroupsResponse) 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 ListEntryGroups, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListEntryGroupsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createEntry(CreateEntryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Entry) { - requests.add(request); - responseObserver.onNext(((Entry) 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 CreateEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Entry.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateEntry(UpdateEntryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Entry) { - requests.add(request); - responseObserver.onNext(((Entry) 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 UpdateEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Entry.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteEntry(DeleteEntryRequest 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 DeleteEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getEntry(GetEntryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Entry) { - requests.add(request); - responseObserver.onNext(((Entry) 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 GetEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Entry.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void lookupEntry(LookupEntryRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Entry) { - requests.add(request); - responseObserver.onNext(((Entry) 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 LookupEntry, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Entry.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listEntries( - ListEntriesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListEntriesResponse) { - requests.add(request); - responseObserver.onNext(((ListEntriesResponse) 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 ListEntries, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListEntriesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createTagTemplate( - CreateTagTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplate) { - requests.add(request); - responseObserver.onNext(((TagTemplate) 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 CreateTagTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TagTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTagTemplate( - GetTagTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplate) { - requests.add(request); - responseObserver.onNext(((TagTemplate) 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 GetTagTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TagTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateTagTemplate( - UpdateTagTemplateRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplate) { - requests.add(request); - responseObserver.onNext(((TagTemplate) 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 UpdateTagTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TagTemplate.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTagTemplate( - DeleteTagTemplateRequest 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 DeleteTagTemplate, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createTagTemplateField( - CreateTagTemplateFieldRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplateField) { - requests.add(request); - responseObserver.onNext(((TagTemplateField) 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 CreateTagTemplateField, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - TagTemplateField.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateTagTemplateField( - UpdateTagTemplateFieldRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplateField) { - requests.add(request); - responseObserver.onNext(((TagTemplateField) 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 UpdateTagTemplateField, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - TagTemplateField.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void renameTagTemplateField( - RenameTagTemplateFieldRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplateField) { - requests.add(request); - responseObserver.onNext(((TagTemplateField) 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 RenameTagTemplateField, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - TagTemplateField.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void renameTagTemplateFieldEnumValue( - RenameTagTemplateFieldEnumValueRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TagTemplateField) { - requests.add(request); - responseObserver.onNext(((TagTemplateField) 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 RenameTagTemplateFieldEnumValue," - + " expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TagTemplateField.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTagTemplateField( - DeleteTagTemplateFieldRequest 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 DeleteTagTemplateField, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createTag(CreateTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Tag) { - requests.add(request); - responseObserver.onNext(((Tag) 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 CreateTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Tag.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateTag(UpdateTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Tag) { - requests.add(request); - responseObserver.onNext(((Tag) 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 UpdateTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Tag.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTag(DeleteTagRequest 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 DeleteTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTags(ListTagsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTagsResponse) { - requests.add(request); - responseObserver.onNext(((ListTagsResponse) 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 ListTags, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTagsResponse.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()))); - } - } - - @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()))); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicy.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicy.java deleted file mode 100644 index 5eb3e48293f9..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicy.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicyImpl.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicyImpl.java deleted file mode 100644 index 0af65ccb896e..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockIAMPolicyImpl.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import com.google.api.core.BetaApi; -import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; -import com.google.protobuf.AbstractMessage; -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<>(); - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManager.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManager.java deleted file mode 100644 index 42fb8a6c97f7..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManager.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 MockPolicyTagManager implements MockGrpcService { - private final MockPolicyTagManagerImpl serviceImpl; - - public MockPolicyTagManager() { - serviceImpl = new MockPolicyTagManagerImpl(); - } - - @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-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerImpl.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerImpl.java deleted file mode 100644 index dcd9043333ae..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerImpl.java +++ /dev/null @@ -1,337 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import com.google.api.core.BetaApi; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerGrpc.PolicyTagManagerImplBase; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.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 MockPolicyTagManagerImpl extends PolicyTagManagerImplBase { - private List requests; - private Queue responses; - - public MockPolicyTagManagerImpl() { - 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 createTaxonomy( - CreateTaxonomyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Taxonomy) { - requests.add(request); - responseObserver.onNext(((Taxonomy) 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 CreateTaxonomy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Taxonomy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteTaxonomy( - DeleteTaxonomyRequest 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 DeleteTaxonomy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateTaxonomy( - UpdateTaxonomyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Taxonomy) { - requests.add(request); - responseObserver.onNext(((Taxonomy) 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 UpdateTaxonomy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Taxonomy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listTaxonomies( - ListTaxonomiesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListTaxonomiesResponse) { - requests.add(request); - responseObserver.onNext(((ListTaxonomiesResponse) 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 ListTaxonomies, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListTaxonomiesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getTaxonomy(GetTaxonomyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Taxonomy) { - requests.add(request); - responseObserver.onNext(((Taxonomy) 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 GetTaxonomy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Taxonomy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createPolicyTag( - CreatePolicyTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof PolicyTag) { - requests.add(request); - responseObserver.onNext(((PolicyTag) 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 CreatePolicyTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - PolicyTag.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deletePolicyTag( - DeletePolicyTagRequest 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 DeletePolicyTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updatePolicyTag( - UpdatePolicyTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof PolicyTag) { - requests.add(request); - responseObserver.onNext(((PolicyTag) 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 UpdatePolicyTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - PolicyTag.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listPolicyTags( - ListPolicyTagsRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListPolicyTagsResponse) { - requests.add(request); - responseObserver.onNext(((ListPolicyTagsResponse) 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 ListPolicyTags, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListPolicyTagsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getPolicyTag( - GetPolicyTagRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof PolicyTag) { - requests.add(request); - responseObserver.onNext(((PolicyTag) 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 GetPolicyTag, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - PolicyTag.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()))); - } - } - - @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 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()))); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerialization.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerialization.java deleted file mode 100644 index 4322e7d5e936..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerialization.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 MockPolicyTagManagerSerialization implements MockGrpcService { - private final MockPolicyTagManagerSerializationImpl serviceImpl; - - public MockPolicyTagManagerSerialization() { - serviceImpl = new MockPolicyTagManagerSerializationImpl(); - } - - @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-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerializationImpl.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerializationImpl.java deleted file mode 100644 index 9c88e4ab015a..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/MockPolicyTagManagerSerializationImpl.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import com.google.api.core.BetaApi; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationGrpc.PolicyTagManagerSerializationImplBase; -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 MockPolicyTagManagerSerializationImpl extends PolicyTagManagerSerializationImplBase { - private List requests; - private Queue responses; - - public MockPolicyTagManagerSerializationImpl() { - 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 importTaxonomies( - ImportTaxonomiesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ImportTaxonomiesResponse) { - requests.add(request); - responseObserver.onNext(((ImportTaxonomiesResponse) 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 ImportTaxonomies, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ImportTaxonomiesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void exportTaxonomies( - ExportTaxonomiesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ExportTaxonomiesResponse) { - requests.add(request); - responseObserver.onNext(((ExportTaxonomiesResponse) 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 ExportTaxonomies, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ExportTaxonomiesResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientHttpJsonTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientHttpJsonTest.java deleted file mode 100644 index 078ba637fa21..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientHttpJsonTest.java +++ /dev/null @@ -1,1174 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -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.datacatalog.v1beta1.stub.HttpJsonPolicyTagManagerStub; -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.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class PolicyTagManagerClientHttpJsonTest { - private static MockHttpService mockService; - private static PolicyTagManagerClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonPolicyTagManagerStub.getMethodDescriptors(), - PolicyTagManagerSettings.getDefaultEndpoint()); - PolicyTagManagerSettings settings = - PolicyTagManagerSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - PolicyTagManagerSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PolicyTagManagerClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void createTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - - Taxonomy actualResponse = client.createTaxonomy(parent, taxonomy); - 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 createTaxonomyExceptionTest() 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]"); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - client.createTaxonomy(parent, taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaxonomyTest2() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - - Taxonomy actualResponse = client.createTaxonomy(parent, taxonomy); - 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 createTaxonomyExceptionTest2() 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"; - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - client.createTaxonomy(parent, taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaxonomyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - client.deleteTaxonomy(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 deleteTaxonomyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.deleteTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaxonomyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-9503/locations/location-9503/taxonomies/taxonomie-9503"; - - client.deleteTaxonomy(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 deleteTaxonomyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9503/locations/location-9503/taxonomies/taxonomie-9503"; - client.deleteTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - Taxonomy taxonomy = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - - Taxonomy actualResponse = client.updateTaxonomy(taxonomy); - 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 updateTaxonomyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - Taxonomy taxonomy = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - client.updateTaxonomy(taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTaxonomiesTest() throws Exception { - Taxonomy responsesElement = Taxonomy.newBuilder().build(); - ListTaxonomiesResponse expectedResponse = - ListTaxonomiesResponse.newBuilder() - .setNextPageToken("") - .addAllTaxonomies(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListTaxonomiesPagedResponse pagedListResponse = client.listTaxonomies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTaxonomiesList().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 listTaxonomiesExceptionTest() 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.listTaxonomies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTaxonomiesTest2() throws Exception { - Taxonomy responsesElement = Taxonomy.newBuilder().build(); - ListTaxonomiesResponse expectedResponse = - ListTaxonomiesResponse.newBuilder() - .setNextPageToken("") - .addAllTaxonomies(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-5833/locations/location-5833"; - - ListTaxonomiesPagedResponse pagedListResponse = client.listTaxonomies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTaxonomiesList().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 listTaxonomiesExceptionTest2() 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.listTaxonomies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - Taxonomy actualResponse = client.getTaxonomy(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 getTaxonomyExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.getTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaxonomyTest2() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - String name = "projects/project-9503/locations/location-9503/taxonomies/taxonomie-9503"; - - Taxonomy actualResponse = client.getTaxonomy(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 getTaxonomyExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "projects/project-9503/locations/location-9503/taxonomies/taxonomie-9503"; - client.getTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - - PolicyTag actualResponse = client.createPolicyTag(parent, policyTag); - 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 createPolicyTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - client.createPolicyTag(parent, policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPolicyTagTest2() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-1472/locations/location-1472/taxonomies/taxonomie-1472"; - PolicyTag policyTag = PolicyTag.newBuilder().build(); - - PolicyTag actualResponse = client.createPolicyTag(parent, policyTag); - 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 createPolicyTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-1472/locations/location-1472/taxonomies/taxonomie-1472"; - PolicyTag policyTag = PolicyTag.newBuilder().build(); - client.createPolicyTag(parent, policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePolicyTagTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - PolicyTagName name = PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - - client.deletePolicyTag(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 deletePolicyTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - client.deletePolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePolicyTagTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-1130/locations/location-1130/taxonomies/taxonomie-1130/policyTags/policyTag-1130"; - - client.deletePolicyTag(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 deletePolicyTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-1130/locations/location-1130/taxonomies/taxonomie-1130/policyTags/policyTag-1130"; - client.deletePolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updatePolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - PolicyTag policyTag = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - - PolicyTag actualResponse = client.updatePolicyTag(policyTag); - 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 updatePolicyTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PolicyTag policyTag = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - client.updatePolicyTag(policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPolicyTagsTest() throws Exception { - PolicyTag responsesElement = PolicyTag.newBuilder().build(); - ListPolicyTagsResponse expectedResponse = - ListPolicyTagsResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyTags(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - ListPolicyTagsPagedResponse pagedListResponse = client.listPolicyTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyTagsList().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 listPolicyTagsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.listPolicyTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPolicyTagsTest2() throws Exception { - PolicyTag responsesElement = PolicyTag.newBuilder().build(); - ListPolicyTagsResponse expectedResponse = - ListPolicyTagsResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyTags(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - String parent = "projects/project-1472/locations/location-1472/taxonomies/taxonomie-1472"; - - ListPolicyTagsPagedResponse pagedListResponse = client.listPolicyTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyTagsList().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 listPolicyTagsExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String parent = "projects/project-1472/locations/location-1472/taxonomies/taxonomie-1472"; - client.listPolicyTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - PolicyTagName name = PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - - PolicyTag actualResponse = client.getPolicyTag(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 getPolicyTagExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - client.getPolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyTagTest2() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - String name = - "projects/project-1130/locations/location-1130/taxonomies/taxonomie-1130/policyTags/policyTag-1130"; - - PolicyTag actualResponse = client.getPolicyTag(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 getPolicyTagExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = - "projects/project-1130/locations/location-1130/taxonomies/taxonomie-1130/policyTags/policyTag-1130"; - client.getPolicyTag(name); - 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( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .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( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - client.getIamPolicy(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( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .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( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .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 testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .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( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java deleted file mode 100644 index de626a1023e1..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClientTest.java +++ /dev/null @@ -1,1022 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListPolicyTagsPagedResponse; -import static com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient.ListTaxonomiesPagedResponse; - -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.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.protobuf.AbstractMessage; -import com.google.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -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 PolicyTagManagerClientTest { - private static MockIAMPolicy mockIAMPolicy; - private static MockPolicyTagManager mockPolicyTagManager; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private PolicyTagManagerClient client; - - @BeforeClass - public static void startStaticServer() { - mockPolicyTagManager = new MockPolicyTagManager(); - mockIAMPolicy = new MockIAMPolicy(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockPolicyTagManager, mockIAMPolicy)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - PolicyTagManagerSettings settings = - PolicyTagManagerSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PolicyTagManagerClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void createTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - - Taxonomy actualResponse = client.createTaxonomy(parent, taxonomy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTaxonomyRequest actualRequest = ((CreateTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(taxonomy, actualRequest.getTaxonomy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTaxonomyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - client.createTaxonomy(parent, taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createTaxonomyTest2() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - - Taxonomy actualResponse = client.createTaxonomy(parent, taxonomy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateTaxonomyRequest actualRequest = ((CreateTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(taxonomy, actualRequest.getTaxonomy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createTaxonomyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String parent = "parent-995424086"; - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - client.createTaxonomy(parent, taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaxonomyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockPolicyTagManager.addResponse(expectedResponse); - - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - client.deleteTaxonomy(name); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTaxonomyRequest actualRequest = ((DeleteTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTaxonomyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.deleteTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteTaxonomyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteTaxonomy(name); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteTaxonomyRequest actualRequest = ((DeleteTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteTaxonomyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String name = "name3373707"; - client.deleteTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - - Taxonomy actualResponse = client.updateTaxonomy(taxonomy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateTaxonomyRequest actualRequest = ((UpdateTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(taxonomy, actualRequest.getTaxonomy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateTaxonomyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - client.updateTaxonomy(taxonomy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTaxonomiesTest() throws Exception { - Taxonomy responsesElement = Taxonomy.newBuilder().build(); - ListTaxonomiesResponse expectedResponse = - ListTaxonomiesResponse.newBuilder() - .setNextPageToken("") - .addAllTaxonomies(Arrays.asList(responsesElement)) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - - ListTaxonomiesPagedResponse pagedListResponse = client.listTaxonomies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTaxonomiesList().get(0), resources.get(0)); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTaxonomiesRequest actualRequest = ((ListTaxonomiesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTaxonomiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - client.listTaxonomies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listTaxonomiesTest2() throws Exception { - Taxonomy responsesElement = Taxonomy.newBuilder().build(); - ListTaxonomiesResponse expectedResponse = - ListTaxonomiesResponse.newBuilder() - .setNextPageToken("") - .addAllTaxonomies(Arrays.asList(responsesElement)) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListTaxonomiesPagedResponse pagedListResponse = client.listTaxonomies(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getTaxonomiesList().get(0), resources.get(0)); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListTaxonomiesRequest actualRequest = ((ListTaxonomiesRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listTaxonomiesExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String parent = "parent-995424086"; - client.listTaxonomies(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaxonomyTest() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - Taxonomy actualResponse = client.getTaxonomy(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTaxonomyRequest actualRequest = ((GetTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTaxonomyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.getTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getTaxonomyTest2() throws Exception { - Taxonomy expectedResponse = - Taxonomy.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setPolicyTagCount(1074340189) - .setTaxonomyTimestamps(SystemTimestamps.newBuilder().build()) - .addAllActivatedPolicyTypes(new ArrayList()) - .setService(Taxonomy.Service.newBuilder().build()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String name = "name3373707"; - - Taxonomy actualResponse = client.getTaxonomy(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetTaxonomyRequest actualRequest = ((GetTaxonomyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getTaxonomyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String name = "name3373707"; - client.getTaxonomy(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - - PolicyTag actualResponse = client.createPolicyTag(parent, policyTag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreatePolicyTagRequest actualRequest = ((CreatePolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(policyTag, actualRequest.getPolicyTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createPolicyTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - client.createPolicyTag(parent, policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createPolicyTagTest2() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - PolicyTag policyTag = PolicyTag.newBuilder().build(); - - PolicyTag actualResponse = client.createPolicyTag(parent, policyTag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreatePolicyTagRequest actualRequest = ((CreatePolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(policyTag, actualRequest.getPolicyTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createPolicyTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String parent = "parent-995424086"; - PolicyTag policyTag = PolicyTag.newBuilder().build(); - client.createPolicyTag(parent, policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePolicyTagTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockPolicyTagManager.addResponse(expectedResponse); - - PolicyTagName name = PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - - client.deletePolicyTag(name); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePolicyTagRequest actualRequest = ((DeletePolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePolicyTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - client.deletePolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deletePolicyTagTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deletePolicyTag(name); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeletePolicyTagRequest actualRequest = ((DeletePolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deletePolicyTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String name = "name3373707"; - client.deletePolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updatePolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - PolicyTag policyTag = PolicyTag.newBuilder().build(); - - PolicyTag actualResponse = client.updatePolicyTag(policyTag); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdatePolicyTagRequest actualRequest = ((UpdatePolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(policyTag, actualRequest.getPolicyTag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updatePolicyTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - PolicyTag policyTag = PolicyTag.newBuilder().build(); - client.updatePolicyTag(policyTag); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPolicyTagsTest() throws Exception { - PolicyTag responsesElement = PolicyTag.newBuilder().build(); - ListPolicyTagsResponse expectedResponse = - ListPolicyTagsResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyTags(Arrays.asList(responsesElement)) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - - ListPolicyTagsPagedResponse pagedListResponse = client.listPolicyTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyTagsList().get(0), resources.get(0)); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPolicyTagsRequest actualRequest = ((ListPolicyTagsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPolicyTagsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - client.listPolicyTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listPolicyTagsTest2() throws Exception { - PolicyTag responsesElement = PolicyTag.newBuilder().build(); - ListPolicyTagsResponse expectedResponse = - ListPolicyTagsResponse.newBuilder() - .setNextPageToken("") - .addAllPolicyTags(Arrays.asList(responsesElement)) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String parent = "parent-995424086"; - - ListPolicyTagsPagedResponse pagedListResponse = client.listPolicyTags(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPolicyTagsList().get(0), resources.get(0)); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListPolicyTagsRequest actualRequest = ((ListPolicyTagsRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listPolicyTagsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String parent = "parent-995424086"; - client.listPolicyTags(parent); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyTagTest() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - PolicyTagName name = PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - - PolicyTag actualResponse = client.getPolicyTag(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPolicyTagRequest actualRequest = ((GetPolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPolicyTagExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - client.getPolicyTag(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getPolicyTagTest2() throws Exception { - PolicyTag expectedResponse = - PolicyTag.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setParentPolicyTag("parentPolicyTag973173630") - .addAllChildPolicyTags(new ArrayList()) - .build(); - mockPolicyTagManager.addResponse(expectedResponse); - - String name = "name3373707"; - - PolicyTag actualResponse = client.getPolicyTag(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetPolicyTagRequest actualRequest = ((GetPolicyTagRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getPolicyTagExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManager.addException(exception); - - try { - String name = "name3373707"; - client.getPolicyTag(name); - 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(); - mockPolicyTagManager.addResponse(expectedResponse); - - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - - Policy actualResponse = client.getIamPolicy(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.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); - mockPolicyTagManager.addException(exception); - - try { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - client.getIamPolicy(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(); - mockPolicyTagManager.addResponse(expectedResponse); - - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - Policy actualResponse = client.setIamPolicy(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.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); - mockPolicyTagManager.addException(exception); - - try { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .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 testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockPolicyTagManager.addResponse(expectedResponse); - - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManager.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); - mockPolicyTagManager.addException(exception); - - try { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - client.testIamPermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientHttpJsonTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientHttpJsonTest.java deleted file mode 100644 index c19f0ccbb1c8..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientHttpJsonTest.java +++ /dev/null @@ -1,174 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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.datacatalog.v1beta1.stub.HttpJsonPolicyTagManagerSerializationStub; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class PolicyTagManagerSerializationClientHttpJsonTest { - private static MockHttpService mockService; - private static PolicyTagManagerSerializationClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonPolicyTagManagerSerializationStub.getMethodDescriptors(), - PolicyTagManagerSerializationSettings.getDefaultEndpoint()); - PolicyTagManagerSerializationSettings settings = - PolicyTagManagerSerializationSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - PolicyTagManagerSerializationSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PolicyTagManagerSerializationClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void importTaxonomiesTest() throws Exception { - ImportTaxonomiesResponse expectedResponse = - ImportTaxonomiesResponse.newBuilder().addAllTaxonomies(new ArrayList()).build(); - mockService.addResponse(expectedResponse); - - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - - ImportTaxonomiesResponse actualResponse = client.importTaxonomies(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 importTaxonomiesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - client.importTaxonomies(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void exportTaxonomiesTest() throws Exception { - ExportTaxonomiesResponse expectedResponse = - ExportTaxonomiesResponse.newBuilder() - .addAllTaxonomies(new ArrayList()) - .build(); - mockService.addResponse(expectedResponse); - - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - - ExportTaxonomiesResponse actualResponse = client.exportTaxonomies(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 exportTaxonomiesExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - client.exportTaxonomies(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java deleted file mode 100644 index 671135097afb..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationClientTest.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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.protobuf.AbstractMessage; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -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 PolicyTagManagerSerializationClientTest { - private static MockIAMPolicy mockIAMPolicy; - private static MockPolicyTagManagerSerialization mockPolicyTagManagerSerialization; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private PolicyTagManagerSerializationClient client; - - @BeforeClass - public static void startStaticServer() { - mockPolicyTagManagerSerialization = new MockPolicyTagManagerSerialization(); - mockIAMPolicy = new MockIAMPolicy(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockPolicyTagManagerSerialization, mockIAMPolicy)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - PolicyTagManagerSerializationSettings settings = - PolicyTagManagerSerializationSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = PolicyTagManagerSerializationClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void importTaxonomiesTest() throws Exception { - ImportTaxonomiesResponse expectedResponse = - ImportTaxonomiesResponse.newBuilder().addAllTaxonomies(new ArrayList()).build(); - mockPolicyTagManagerSerialization.addResponse(expectedResponse); - - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - - ImportTaxonomiesResponse actualResponse = client.importTaxonomies(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManagerSerialization.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ImportTaxonomiesRequest actualRequest = ((ImportTaxonomiesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getInlineSource(), actualRequest.getInlineSource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void importTaxonomiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManagerSerialization.addException(exception); - - try { - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - client.importTaxonomies(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void exportTaxonomiesTest() throws Exception { - ExportTaxonomiesResponse expectedResponse = - ExportTaxonomiesResponse.newBuilder() - .addAllTaxonomies(new ArrayList()) - .build(); - mockPolicyTagManagerSerialization.addResponse(expectedResponse); - - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - - ExportTaxonomiesResponse actualResponse = client.exportTaxonomies(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockPolicyTagManagerSerialization.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ExportTaxonomiesRequest actualRequest = ((ExportTaxonomiesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getTaxonomiesList(), actualRequest.getTaxonomiesList()); - Assert.assertEquals(request.getSerializedTaxonomies(), actualRequest.getSerializedTaxonomies()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void exportTaxonomiesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockPolicyTagManagerSerialization.addException(exception); - - try { - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - client.exportTaxonomies(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/it/ITSystemTest.java b/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/it/ITSystemTest.java deleted file mode 100644 index 4975cfc9057b..000000000000 --- a/java-datacatalog/google-cloud-datacatalog/src/test/java/com/google/cloud/datacatalog/v1beta1/it/ITSystemTest.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2019 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.datacatalog.v1beta1.it; - -import static org.junit.Assert.assertEquals; - -import com.google.cloud.ServiceOptions; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.cloud.datacatalog.v1beta1.FieldName; -import com.google.cloud.datacatalog.v1beta1.FieldType; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; -import com.google.iam.v1.Policy; -import com.google.protobuf.FieldMask; -import java.util.UUID; -import org.junit.AfterClass; -import org.junit.BeforeClass; -import org.junit.Test; - -public class ITSystemTest { - private static DataCatalogClient client; - - private static final String PROJECT_ID = ServiceOptions.getDefaultProjectId(); - private static final String TAG_TEMPLATE_ID = - "test_tag_template_id_" + UUID.randomUUID().toString().substring(0, 8); - private static final String TAG_TEMPLATE_FIELD_ID = - "test_tag_template_field_id_" + UUID.randomUUID().toString().substring(0, 8); - private static final String ENTRY_GROUP_ID = - "test_entry_group_id_" + UUID.randomUUID().toString().substring(0, 8); - private static final String TAG_TEMPLATE_DISPLAY_NAME = "test-tag-template-display"; - private static final String ENTRY_GROUP_DISPLAY_NAME = "test-entry-group-display"; - private static final String DESCRIPTION = "test-description"; - private static final String LOCATION = "us-central1"; - private static final String PII = "PII"; - private static final boolean FORCE = true; - private static final String PARENT = LocationName.format(PROJECT_ID, LOCATION); - private static final String TAG_TEMPLATE_NAME = - TagTemplateName.format(PROJECT_ID, LOCATION, TAG_TEMPLATE_ID); - private static final String ENTRY_GROUP_NAME = - EntryGroupName.format(PROJECT_ID, LOCATION, ENTRY_GROUP_ID); - private static final String FIELD_NAME = - FieldName.format(PROJECT_ID, LOCATION, TAG_TEMPLATE_ID, TAG_TEMPLATE_FIELD_ID); - - private static final TagTemplateField SOURCE_FIELD = - TagTemplateField.newBuilder() - .setDisplayName("Source of data asset") - .setType(FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.STRING).build()) - .build(); - - private static final TagTemplateField NUM_ROWS_FIELD = - TagTemplateField.newBuilder() - .setDisplayName("Number of rows in data asset") - .setType(FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.DOUBLE).build()) - .build(); - - private static final TagTemplateField PII_FIELD = - TagTemplateField.newBuilder() - .setDisplayName(PII) - .setType(FieldType.newBuilder().setPrimitiveType(FieldType.PrimitiveType.BOOL).build()) - .build(); - - private static final TagTemplate TAG_TEMPLATE = - TagTemplate.newBuilder() - .setName(TAG_TEMPLATE_ID) - .setDisplayName(TAG_TEMPLATE_DISPLAY_NAME) - .putFields("source", SOURCE_FIELD) - .putFields("num_rows", NUM_ROWS_FIELD) - .build(); - - private static final EntryGroup ENTRY_GROUP = - EntryGroup.newBuilder() - .setName(ENTRY_GROUP_ID) - .setDisplayName(ENTRY_GROUP_DISPLAY_NAME) - .setDescription(DESCRIPTION) - .build(); - - @BeforeClass - public static void beforeClass() throws Exception { - client = DataCatalogClient.create(); - client.createTagTemplate(PARENT, TAG_TEMPLATE_ID, TAG_TEMPLATE); - client.createEntryGroup(PARENT, ENTRY_GROUP_ID, ENTRY_GROUP); - } - - @AfterClass - public static void afterClass() { - client.deleteEntryGroup(ENTRY_GROUP_NAME); - client.deleteTagTemplateField(FIELD_NAME, FORCE); - client.deleteTagTemplate(TAG_TEMPLATE_NAME, FORCE); - client.close(); - } - - @Test - public void getTagTemplateTest() { - TagTemplate response = client.getTagTemplate(TAG_TEMPLATE_NAME); - assertEquals(TAG_TEMPLATE_NAME, response.getName()); - assertEquals(TAG_TEMPLATE_DISPLAY_NAME, response.getDisplayName()); - } - - @Test - public void createTagTemplateFieldTest() { - TagTemplateField response = - client.createTagTemplateField(TAG_TEMPLATE_NAME, TAG_TEMPLATE_FIELD_ID, PII_FIELD); - assertEquals(PII, response.getDisplayName()); - } - - @Test - public void getEntryGroupTest() { - FieldMask readMask = FieldMask.newBuilder().build(); - EntryGroup response = client.getEntryGroup(ENTRY_GROUP_NAME, readMask); - assertEquals(ENTRY_GROUP_NAME, response.getName()); - assertEquals(ENTRY_GROUP_DISPLAY_NAME, response.getDisplayName()); - } - - @Test - public void setIamPolicyTest() { - Policy policy = Policy.newBuilder().setVersion(1).build(); - Policy response = client.setIamPolicy(TAG_TEMPLATE_NAME, policy); - assertEquals(1, response.getVersion()); - } - - @Test - public void getIamPolicyTest() { - Policy response = client.getIamPolicy(TAG_TEMPLATE_NAME); - assertEquals(1, response.getVersion()); - } -} diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml deleted file mode 100644 index 451b590d683c..000000000000 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-datacatalog-v1 - 1.102.0 - grpc-google-cloud-datacatalog-v1 - GRPC library for grpc-google-cloud-datacatalog-v1 - - com.google.cloud - google-cloud-datacatalog-parent - 1.102.0 - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-datacatalog-v1 - - - com.google.api.grpc - proto-google-iam-v1 - - - com.google.guava - guava - - - \ No newline at end of file diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java deleted file mode 100644 index ac5b8d908890..000000000000 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataCatalogGrpc.java +++ /dev/null @@ -1,6153 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.datacatalog.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Deprecated: Please use Dataplex Catalog instead.
- * Data Catalog API service allows you to discover, understand, and manage
- * your data.
- * 
- */ -@io.grpc.stub.annotations.GrpcGenerated -@java.lang.Deprecated -public final class DataCatalogGrpc { - - private DataCatalogGrpc() {} - - public static final java.lang.String SERVICE_NAME = "google.cloud.datacatalog.v1.DataCatalog"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.SearchCatalogRequest, - com.google.cloud.datacatalog.v1.SearchCatalogResponse> - getSearchCatalogMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchCatalog", - requestType = com.google.cloud.datacatalog.v1.SearchCatalogRequest.class, - responseType = com.google.cloud.datacatalog.v1.SearchCatalogResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.SearchCatalogRequest, - com.google.cloud.datacatalog.v1.SearchCatalogResponse> - getSearchCatalogMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.SearchCatalogRequest, - com.google.cloud.datacatalog.v1.SearchCatalogResponse> - getSearchCatalogMethod; - if ((getSearchCatalogMethod = DataCatalogGrpc.getSearchCatalogMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getSearchCatalogMethod = DataCatalogGrpc.getSearchCatalogMethod) == null) { - DataCatalogGrpc.getSearchCatalogMethod = - getSearchCatalogMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchCatalog")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.SearchCatalogRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.SearchCatalogResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("SearchCatalog")) - .build(); - } - } - } - return getSearchCatalogMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup> - getCreateEntryGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEntryGroup", - requestType = com.google.cloud.datacatalog.v1.CreateEntryGroupRequest.class, - responseType = com.google.cloud.datacatalog.v1.EntryGroup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup> - getCreateEntryGroupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup> - getCreateEntryGroupMethod; - if ((getCreateEntryGroupMethod = DataCatalogGrpc.getCreateEntryGroupMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getCreateEntryGroupMethod = DataCatalogGrpc.getCreateEntryGroupMethod) == null) { - DataCatalogGrpc.getCreateEntryGroupMethod = - getCreateEntryGroupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEntryGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("CreateEntryGroup")) - .build(); - } - } - } - return getCreateEntryGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup> - getGetEntryGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEntryGroup", - requestType = com.google.cloud.datacatalog.v1.GetEntryGroupRequest.class, - responseType = com.google.cloud.datacatalog.v1.EntryGroup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup> - getGetEntryGroupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup> - getGetEntryGroupMethod; - if ((getGetEntryGroupMethod = DataCatalogGrpc.getGetEntryGroupMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getGetEntryGroupMethod = DataCatalogGrpc.getGetEntryGroupMethod) == null) { - DataCatalogGrpc.getGetEntryGroupMethod = - getGetEntryGroupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntryGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.GetEntryGroupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("GetEntryGroup")) - .build(); - } - } - } - return getGetEntryGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup> - getUpdateEntryGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEntryGroup", - requestType = com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest.class, - responseType = com.google.cloud.datacatalog.v1.EntryGroup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup> - getUpdateEntryGroupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup> - getUpdateEntryGroupMethod; - if ((getUpdateEntryGroupMethod = DataCatalogGrpc.getUpdateEntryGroupMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUpdateEntryGroupMethod = DataCatalogGrpc.getUpdateEntryGroupMethod) == null) { - DataCatalogGrpc.getUpdateEntryGroupMethod = - getUpdateEntryGroupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEntryGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("UpdateEntryGroup")) - .build(); - } - } - } - return getUpdateEntryGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest, com.google.protobuf.Empty> - getDeleteEntryGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEntryGroup", - requestType = com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest, com.google.protobuf.Empty> - getDeleteEntryGroupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest, com.google.protobuf.Empty> - getDeleteEntryGroupMethod; - if ((getDeleteEntryGroupMethod = DataCatalogGrpc.getDeleteEntryGroupMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getDeleteEntryGroupMethod = DataCatalogGrpc.getDeleteEntryGroupMethod) == null) { - DataCatalogGrpc.getDeleteEntryGroupMethod = - getDeleteEntryGroupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEntryGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("DeleteEntryGroup")) - .build(); - } - } - } - return getDeleteEntryGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest, - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse> - getListEntryGroupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEntryGroups", - requestType = com.google.cloud.datacatalog.v1.ListEntryGroupsRequest.class, - responseType = com.google.cloud.datacatalog.v1.ListEntryGroupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest, - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse> - getListEntryGroupsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest, - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse> - getListEntryGroupsMethod; - if ((getListEntryGroupsMethod = DataCatalogGrpc.getListEntryGroupsMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getListEntryGroupsMethod = DataCatalogGrpc.getListEntryGroupsMethod) == null) { - DataCatalogGrpc.getListEntryGroupsMethod = - getListEntryGroupsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEntryGroups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("ListEntryGroups")) - .build(); - } - } - } - return getListEntryGroupsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateEntryRequest, com.google.cloud.datacatalog.v1.Entry> - getCreateEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEntry", - requestType = com.google.cloud.datacatalog.v1.CreateEntryRequest.class, - responseType = com.google.cloud.datacatalog.v1.Entry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateEntryRequest, com.google.cloud.datacatalog.v1.Entry> - getCreateEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateEntryRequest, - com.google.cloud.datacatalog.v1.Entry> - getCreateEntryMethod; - if ((getCreateEntryMethod = DataCatalogGrpc.getCreateEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getCreateEntryMethod = DataCatalogGrpc.getCreateEntryMethod) == null) { - DataCatalogGrpc.getCreateEntryMethod = - getCreateEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.CreateEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Entry.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("CreateEntry")) - .build(); - } - } - } - return getCreateEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateEntryRequest, com.google.cloud.datacatalog.v1.Entry> - getUpdateEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEntry", - requestType = com.google.cloud.datacatalog.v1.UpdateEntryRequest.class, - responseType = com.google.cloud.datacatalog.v1.Entry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateEntryRequest, com.google.cloud.datacatalog.v1.Entry> - getUpdateEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateEntryRequest, - com.google.cloud.datacatalog.v1.Entry> - getUpdateEntryMethod; - if ((getUpdateEntryMethod = DataCatalogGrpc.getUpdateEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUpdateEntryMethod = DataCatalogGrpc.getUpdateEntryMethod) == null) { - DataCatalogGrpc.getUpdateEntryMethod = - getUpdateEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.UpdateEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Entry.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("UpdateEntry")) - .build(); - } - } - } - return getUpdateEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteEntryRequest, com.google.protobuf.Empty> - getDeleteEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEntry", - requestType = com.google.cloud.datacatalog.v1.DeleteEntryRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteEntryRequest, com.google.protobuf.Empty> - getDeleteEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteEntryRequest, com.google.protobuf.Empty> - getDeleteEntryMethod; - if ((getDeleteEntryMethod = DataCatalogGrpc.getDeleteEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getDeleteEntryMethod = DataCatalogGrpc.getDeleteEntryMethod) == null) { - DataCatalogGrpc.getDeleteEntryMethod = - getDeleteEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.DeleteEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("DeleteEntry")) - .build(); - } - } - } - return getDeleteEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetEntryRequest, com.google.cloud.datacatalog.v1.Entry> - getGetEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEntry", - requestType = com.google.cloud.datacatalog.v1.GetEntryRequest.class, - responseType = com.google.cloud.datacatalog.v1.Entry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetEntryRequest, com.google.cloud.datacatalog.v1.Entry> - getGetEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetEntryRequest, com.google.cloud.datacatalog.v1.Entry> - getGetEntryMethod; - if ((getGetEntryMethod = DataCatalogGrpc.getGetEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getGetEntryMethod = DataCatalogGrpc.getGetEntryMethod) == null) { - DataCatalogGrpc.getGetEntryMethod = - getGetEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.GetEntryRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Entry.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("GetEntry")) - .build(); - } - } - } - return getGetEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.LookupEntryRequest, com.google.cloud.datacatalog.v1.Entry> - getLookupEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LookupEntry", - requestType = com.google.cloud.datacatalog.v1.LookupEntryRequest.class, - responseType = com.google.cloud.datacatalog.v1.Entry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.LookupEntryRequest, com.google.cloud.datacatalog.v1.Entry> - getLookupEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.LookupEntryRequest, - com.google.cloud.datacatalog.v1.Entry> - getLookupEntryMethod; - if ((getLookupEntryMethod = DataCatalogGrpc.getLookupEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getLookupEntryMethod = DataCatalogGrpc.getLookupEntryMethod) == null) { - DataCatalogGrpc.getLookupEntryMethod = - getLookupEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.LookupEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Entry.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("LookupEntry")) - .build(); - } - } - } - return getLookupEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListEntriesRequest, - com.google.cloud.datacatalog.v1.ListEntriesResponse> - getListEntriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEntries", - requestType = com.google.cloud.datacatalog.v1.ListEntriesRequest.class, - responseType = com.google.cloud.datacatalog.v1.ListEntriesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListEntriesRequest, - com.google.cloud.datacatalog.v1.ListEntriesResponse> - getListEntriesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListEntriesRequest, - com.google.cloud.datacatalog.v1.ListEntriesResponse> - getListEntriesMethod; - if ((getListEntriesMethod = DataCatalogGrpc.getListEntriesMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getListEntriesMethod = DataCatalogGrpc.getListEntriesMethod) == null) { - DataCatalogGrpc.getListEntriesMethod = - getListEntriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ListEntriesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ListEntriesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("ListEntries")) - .build(); - } - } - } - return getListEntriesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest, - com.google.cloud.datacatalog.v1.EntryOverview> - getModifyEntryOverviewMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ModifyEntryOverview", - requestType = com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest.class, - responseType = com.google.cloud.datacatalog.v1.EntryOverview.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest, - com.google.cloud.datacatalog.v1.EntryOverview> - getModifyEntryOverviewMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest, - com.google.cloud.datacatalog.v1.EntryOverview> - getModifyEntryOverviewMethod; - if ((getModifyEntryOverviewMethod = DataCatalogGrpc.getModifyEntryOverviewMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getModifyEntryOverviewMethod = DataCatalogGrpc.getModifyEntryOverviewMethod) == null) { - DataCatalogGrpc.getModifyEntryOverviewMethod = - getModifyEntryOverviewMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ModifyEntryOverview")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("ModifyEntryOverview")) - .build(); - } - } - } - return getModifyEntryOverviewMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest, - com.google.cloud.datacatalog.v1.Contacts> - getModifyEntryContactsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ModifyEntryContacts", - requestType = com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest.class, - responseType = com.google.cloud.datacatalog.v1.Contacts.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest, - com.google.cloud.datacatalog.v1.Contacts> - getModifyEntryContactsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest, - com.google.cloud.datacatalog.v1.Contacts> - getModifyEntryContactsMethod; - if ((getModifyEntryContactsMethod = DataCatalogGrpc.getModifyEntryContactsMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getModifyEntryContactsMethod = DataCatalogGrpc.getModifyEntryContactsMethod) == null) { - DataCatalogGrpc.getModifyEntryContactsMethod = - getModifyEntryContactsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ModifyEntryContacts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("ModifyEntryContacts")) - .build(); - } - } - } - return getModifyEntryContactsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate> - getCreateTagTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTagTemplate", - requestType = com.google.cloud.datacatalog.v1.CreateTagTemplateRequest.class, - responseType = com.google.cloud.datacatalog.v1.TagTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate> - getCreateTagTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate> - getCreateTagTemplateMethod; - if ((getCreateTagTemplateMethod = DataCatalogGrpc.getCreateTagTemplateMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getCreateTagTemplateMethod = DataCatalogGrpc.getCreateTagTemplateMethod) == null) { - DataCatalogGrpc.getCreateTagTemplateMethod = - getCreateTagTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTagTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("CreateTagTemplate")) - .build(); - } - } - } - return getCreateTagTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate> - getGetTagTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTagTemplate", - requestType = com.google.cloud.datacatalog.v1.GetTagTemplateRequest.class, - responseType = com.google.cloud.datacatalog.v1.TagTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate> - getGetTagTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate> - getGetTagTemplateMethod; - if ((getGetTagTemplateMethod = DataCatalogGrpc.getGetTagTemplateMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getGetTagTemplateMethod = DataCatalogGrpc.getGetTagTemplateMethod) == null) { - DataCatalogGrpc.getGetTagTemplateMethod = - getGetTagTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTagTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.GetTagTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("GetTagTemplate")) - .build(); - } - } - } - return getGetTagTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate> - getUpdateTagTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTagTemplate", - requestType = com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest.class, - responseType = com.google.cloud.datacatalog.v1.TagTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate> - getUpdateTagTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate> - getUpdateTagTemplateMethod; - if ((getUpdateTagTemplateMethod = DataCatalogGrpc.getUpdateTagTemplateMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUpdateTagTemplateMethod = DataCatalogGrpc.getUpdateTagTemplateMethod) == null) { - DataCatalogGrpc.getUpdateTagTemplateMethod = - getUpdateTagTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTagTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("UpdateTagTemplate")) - .build(); - } - } - } - return getUpdateTagTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest, com.google.protobuf.Empty> - getDeleteTagTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTagTemplate", - requestType = com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest, com.google.protobuf.Empty> - getDeleteTagTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest, com.google.protobuf.Empty> - getDeleteTagTemplateMethod; - if ((getDeleteTagTemplateMethod = DataCatalogGrpc.getDeleteTagTemplateMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getDeleteTagTemplateMethod = DataCatalogGrpc.getDeleteTagTemplateMethod) == null) { - DataCatalogGrpc.getDeleteTagTemplateMethod = - getDeleteTagTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTagTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("DeleteTagTemplate")) - .build(); - } - } - } - return getDeleteTagTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getCreateTagTemplateFieldMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTagTemplateField", - requestType = com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest.class, - responseType = com.google.cloud.datacatalog.v1.TagTemplateField.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getCreateTagTemplateFieldMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getCreateTagTemplateFieldMethod; - if ((getCreateTagTemplateFieldMethod = DataCatalogGrpc.getCreateTagTemplateFieldMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getCreateTagTemplateFieldMethod = DataCatalogGrpc.getCreateTagTemplateFieldMethod) - == null) { - DataCatalogGrpc.getCreateTagTemplateFieldMethod = - getCreateTagTemplateFieldMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateTagTemplateField")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.TagTemplateField - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("CreateTagTemplateField")) - .build(); - } - } - } - return getCreateTagTemplateFieldMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getUpdateTagTemplateFieldMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTagTemplateField", - requestType = com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest.class, - responseType = com.google.cloud.datacatalog.v1.TagTemplateField.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getUpdateTagTemplateFieldMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getUpdateTagTemplateFieldMethod; - if ((getUpdateTagTemplateFieldMethod = DataCatalogGrpc.getUpdateTagTemplateFieldMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUpdateTagTemplateFieldMethod = DataCatalogGrpc.getUpdateTagTemplateFieldMethod) - == null) { - DataCatalogGrpc.getUpdateTagTemplateFieldMethod = - getUpdateTagTemplateFieldMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateTagTemplateField")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.TagTemplateField - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("UpdateTagTemplateField")) - .build(); - } - } - } - return getUpdateTagTemplateFieldMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getRenameTagTemplateFieldMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RenameTagTemplateField", - requestType = com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest.class, - responseType = com.google.cloud.datacatalog.v1.TagTemplateField.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getRenameTagTemplateFieldMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getRenameTagTemplateFieldMethod; - if ((getRenameTagTemplateFieldMethod = DataCatalogGrpc.getRenameTagTemplateFieldMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getRenameTagTemplateFieldMethod = DataCatalogGrpc.getRenameTagTemplateFieldMethod) - == null) { - DataCatalogGrpc.getRenameTagTemplateFieldMethod = - getRenameTagTemplateFieldMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RenameTagTemplateField")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.TagTemplateField - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("RenameTagTemplateField")) - .build(); - } - } - } - return getRenameTagTemplateFieldMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getRenameTagTemplateFieldEnumValueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RenameTagTemplateFieldEnumValue", - requestType = com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest.class, - responseType = com.google.cloud.datacatalog.v1.TagTemplateField.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getRenameTagTemplateFieldEnumValueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest, - com.google.cloud.datacatalog.v1.TagTemplateField> - getRenameTagTemplateFieldEnumValueMethod; - if ((getRenameTagTemplateFieldEnumValueMethod = - DataCatalogGrpc.getRenameTagTemplateFieldEnumValueMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getRenameTagTemplateFieldEnumValueMethod = - DataCatalogGrpc.getRenameTagTemplateFieldEnumValueMethod) - == null) { - DataCatalogGrpc.getRenameTagTemplateFieldEnumValueMethod = - getRenameTagTemplateFieldEnumValueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RenameTagTemplateFieldEnumValue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.TagTemplateField - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier( - "RenameTagTemplateFieldEnumValue")) - .build(); - } - } - } - return getRenameTagTemplateFieldEnumValueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest, com.google.protobuf.Empty> - getDeleteTagTemplateFieldMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTagTemplateField", - requestType = com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest, com.google.protobuf.Empty> - getDeleteTagTemplateFieldMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest, - com.google.protobuf.Empty> - getDeleteTagTemplateFieldMethod; - if ((getDeleteTagTemplateFieldMethod = DataCatalogGrpc.getDeleteTagTemplateFieldMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getDeleteTagTemplateFieldMethod = DataCatalogGrpc.getDeleteTagTemplateFieldMethod) - == null) { - DataCatalogGrpc.getDeleteTagTemplateFieldMethod = - getDeleteTagTemplateFieldMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteTagTemplateField")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("DeleteTagTemplateField")) - .build(); - } - } - } - return getDeleteTagTemplateFieldMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTagRequest, com.google.cloud.datacatalog.v1.Tag> - getCreateTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTag", - requestType = com.google.cloud.datacatalog.v1.CreateTagRequest.class, - responseType = com.google.cloud.datacatalog.v1.Tag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTagRequest, com.google.cloud.datacatalog.v1.Tag> - getCreateTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTagRequest, com.google.cloud.datacatalog.v1.Tag> - getCreateTagMethod; - if ((getCreateTagMethod = DataCatalogGrpc.getCreateTagMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getCreateTagMethod = DataCatalogGrpc.getCreateTagMethod) == null) { - DataCatalogGrpc.getCreateTagMethod = - getCreateTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.CreateTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Tag.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("CreateTag")) - .build(); - } - } - } - return getCreateTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTagRequest, com.google.cloud.datacatalog.v1.Tag> - getUpdateTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTag", - requestType = com.google.cloud.datacatalog.v1.UpdateTagRequest.class, - responseType = com.google.cloud.datacatalog.v1.Tag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTagRequest, com.google.cloud.datacatalog.v1.Tag> - getUpdateTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTagRequest, com.google.cloud.datacatalog.v1.Tag> - getUpdateTagMethod; - if ((getUpdateTagMethod = DataCatalogGrpc.getUpdateTagMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUpdateTagMethod = DataCatalogGrpc.getUpdateTagMethod) == null) { - DataCatalogGrpc.getUpdateTagMethod = - getUpdateTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.UpdateTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Tag.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("UpdateTag")) - .build(); - } - } - } - return getUpdateTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTagRequest, com.google.protobuf.Empty> - getDeleteTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTag", - requestType = com.google.cloud.datacatalog.v1.DeleteTagRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTagRequest, com.google.protobuf.Empty> - getDeleteTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTagRequest, com.google.protobuf.Empty> - getDeleteTagMethod; - if ((getDeleteTagMethod = DataCatalogGrpc.getDeleteTagMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getDeleteTagMethod = DataCatalogGrpc.getDeleteTagMethod) == null) { - DataCatalogGrpc.getDeleteTagMethod = - getDeleteTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.DeleteTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("DeleteTag")) - .build(); - } - } - } - return getDeleteTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListTagsRequest, - com.google.cloud.datacatalog.v1.ListTagsResponse> - getListTagsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTags", - requestType = com.google.cloud.datacatalog.v1.ListTagsRequest.class, - responseType = com.google.cloud.datacatalog.v1.ListTagsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListTagsRequest, - com.google.cloud.datacatalog.v1.ListTagsResponse> - getListTagsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListTagsRequest, - com.google.cloud.datacatalog.v1.ListTagsResponse> - getListTagsMethod; - if ((getListTagsMethod = DataCatalogGrpc.getListTagsMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getListTagsMethod = DataCatalogGrpc.getListTagsMethod) == null) { - DataCatalogGrpc.getListTagsMethod = - getListTagsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTags")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ListTagsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ListTagsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("ListTags")) - .build(); - } - } - } - return getListTagsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ReconcileTagsRequest, com.google.longrunning.Operation> - getReconcileTagsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ReconcileTags", - requestType = com.google.cloud.datacatalog.v1.ReconcileTagsRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ReconcileTagsRequest, com.google.longrunning.Operation> - getReconcileTagsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ReconcileTagsRequest, com.google.longrunning.Operation> - getReconcileTagsMethod; - if ((getReconcileTagsMethod = DataCatalogGrpc.getReconcileTagsMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getReconcileTagsMethod = DataCatalogGrpc.getReconcileTagsMethod) == null) { - DataCatalogGrpc.getReconcileTagsMethod = - getReconcileTagsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReconcileTags")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ReconcileTagsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("ReconcileTags")) - .build(); - } - } - } - return getReconcileTagsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.StarEntryRequest, - com.google.cloud.datacatalog.v1.StarEntryResponse> - getStarEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "StarEntry", - requestType = com.google.cloud.datacatalog.v1.StarEntryRequest.class, - responseType = com.google.cloud.datacatalog.v1.StarEntryResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.StarEntryRequest, - com.google.cloud.datacatalog.v1.StarEntryResponse> - getStarEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.StarEntryRequest, - com.google.cloud.datacatalog.v1.StarEntryResponse> - getStarEntryMethod; - if ((getStarEntryMethod = DataCatalogGrpc.getStarEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getStarEntryMethod = DataCatalogGrpc.getStarEntryMethod) == null) { - DataCatalogGrpc.getStarEntryMethod = - getStarEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StarEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.StarEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.StarEntryResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("StarEntry")) - .build(); - } - } - } - return getStarEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UnstarEntryRequest, - com.google.cloud.datacatalog.v1.UnstarEntryResponse> - getUnstarEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UnstarEntry", - requestType = com.google.cloud.datacatalog.v1.UnstarEntryRequest.class, - responseType = com.google.cloud.datacatalog.v1.UnstarEntryResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UnstarEntryRequest, - com.google.cloud.datacatalog.v1.UnstarEntryResponse> - getUnstarEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UnstarEntryRequest, - com.google.cloud.datacatalog.v1.UnstarEntryResponse> - getUnstarEntryMethod; - if ((getUnstarEntryMethod = DataCatalogGrpc.getUnstarEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUnstarEntryMethod = DataCatalogGrpc.getUnstarEntryMethod) == null) { - DataCatalogGrpc.getUnstarEntryMethod = - getUnstarEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UnstarEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.UnstarEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.UnstarEntryResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("UnstarEntry")) - .build(); - } - } - } - return getUnstarEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = DataCatalogGrpc.getSetIamPolicyMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getSetIamPolicyMethod = DataCatalogGrpc.getSetIamPolicyMethod) == null) { - DataCatalogGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = DataCatalogGrpc.getGetIamPolicyMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getGetIamPolicyMethod = DataCatalogGrpc.getGetIamPolicyMethod) == null) { - DataCatalogGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = DataCatalogGrpc.getTestIamPermissionsMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getTestIamPermissionsMethod = DataCatalogGrpc.getTestIamPermissionsMethod) == null) { - DataCatalogGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ImportEntriesRequest, com.google.longrunning.Operation> - getImportEntriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportEntries", - requestType = com.google.cloud.datacatalog.v1.ImportEntriesRequest.class, - responseType = com.google.longrunning.Operation.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ImportEntriesRequest, com.google.longrunning.Operation> - getImportEntriesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ImportEntriesRequest, com.google.longrunning.Operation> - getImportEntriesMethod; - if ((getImportEntriesMethod = DataCatalogGrpc.getImportEntriesMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getImportEntriesMethod = DataCatalogGrpc.getImportEntriesMethod) == null) { - DataCatalogGrpc.getImportEntriesMethod = - getImportEntriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ImportEntriesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.longrunning.Operation.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("ImportEntries")) - .build(); - } - } - } - return getImportEntriesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.SetConfigRequest, - com.google.cloud.datacatalog.v1.MigrationConfig> - getSetConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetConfig", - requestType = com.google.cloud.datacatalog.v1.SetConfigRequest.class, - responseType = com.google.cloud.datacatalog.v1.MigrationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.SetConfigRequest, - com.google.cloud.datacatalog.v1.MigrationConfig> - getSetConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.SetConfigRequest, - com.google.cloud.datacatalog.v1.MigrationConfig> - getSetConfigMethod; - if ((getSetConfigMethod = DataCatalogGrpc.getSetConfigMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getSetConfigMethod = DataCatalogGrpc.getSetConfigMethod) == null) { - DataCatalogGrpc.getSetConfigMethod = - getSetConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.SetConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.MigrationConfig.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("SetConfig")) - .build(); - } - } - } - return getSetConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RetrieveConfigRequest, - com.google.cloud.datacatalog.v1.OrganizationConfig> - getRetrieveConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveConfig", - requestType = com.google.cloud.datacatalog.v1.RetrieveConfigRequest.class, - responseType = com.google.cloud.datacatalog.v1.OrganizationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RetrieveConfigRequest, - com.google.cloud.datacatalog.v1.OrganizationConfig> - getRetrieveConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RetrieveConfigRequest, - com.google.cloud.datacatalog.v1.OrganizationConfig> - getRetrieveConfigMethod; - if ((getRetrieveConfigMethod = DataCatalogGrpc.getRetrieveConfigMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getRetrieveConfigMethod = DataCatalogGrpc.getRetrieveConfigMethod) == null) { - DataCatalogGrpc.getRetrieveConfigMethod = - getRetrieveConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.RetrieveConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.OrganizationConfig - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("RetrieveConfig")) - .build(); - } - } - } - return getRetrieveConfigMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest, - com.google.cloud.datacatalog.v1.MigrationConfig> - getRetrieveEffectiveConfigMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RetrieveEffectiveConfig", - requestType = com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.class, - responseType = com.google.cloud.datacatalog.v1.MigrationConfig.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest, - com.google.cloud.datacatalog.v1.MigrationConfig> - getRetrieveEffectiveConfigMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest, - com.google.cloud.datacatalog.v1.MigrationConfig> - getRetrieveEffectiveConfigMethod; - if ((getRetrieveEffectiveConfigMethod = DataCatalogGrpc.getRetrieveEffectiveConfigMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getRetrieveEffectiveConfigMethod = DataCatalogGrpc.getRetrieveEffectiveConfigMethod) - == null) { - DataCatalogGrpc.getRetrieveEffectiveConfigMethod = - getRetrieveEffectiveConfigMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RetrieveEffectiveConfig")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.MigrationConfig.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("RetrieveEffectiveConfig")) - .build(); - } - } - } - return getRetrieveEffectiveConfigMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DataCatalogStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataCatalogStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogStub(channel, callOptions); - } - }; - return DataCatalogStub.newStub(factory, channel); - } - - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static DataCatalogBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataCatalogBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogBlockingV2Stub(channel, callOptions); - } - }; - return DataCatalogBlockingV2Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataCatalogBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataCatalogBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogBlockingStub(channel, callOptions); - } - }; - return DataCatalogBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataCatalogFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataCatalogFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogFutureStub(channel, callOptions); - } - }; - return DataCatalogFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - @java.lang.Deprecated - public interface AsyncService { - - /** - * - * - *
-     * Searches Data Catalog for multiple resources like entries and tags that
-     * match a query.
-     * This is a [Custom Method]
-     * (https://cloud.google.com/apis/design/custom_methods) that doesn't return
-     * all information on a resource, only its ID and high level fields. To get
-     * more information, you can subsequently call specific get methods.
-     * Note: Data Catalog search queries don't guarantee full recall. Results
-     * that match your query might not be returned, even in subsequent
-     * result pages. Additionally, returned (and not returned) results can vary
-     * if you repeat search queries.
-     * For more information, see [Data Catalog search syntax]
-     * (https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-     * 
- */ - @java.lang.Deprecated - default void searchCatalog( - com.google.cloud.datacatalog.v1.SearchCatalogRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchCatalogMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an entry group.
-     * An entry group contains logically related entries together with [Cloud
-     * Identity and Access Management](/data-catalog/docs/concepts/iam) policies.
-     * These policies specify users who can create, edit, and view entries
-     * within entry groups.
-     * Data Catalog automatically creates entry groups with names that start with
-     * the `@` symbol for the following resources:
-     * * BigQuery entries (`@bigquery`)
-     * * Pub/Sub topics (`@pubsub`)
-     * * Dataproc Metastore services (`@dataproc_metastore_{SERVICE_NAME_HASH}`)
-     * You can create your own entry groups for Cloud Storage fileset entries
-     * and custom entries together with the corresponding IAM policies.
-     * User-created entry groups can't contain the `@` symbol, it is reserved
-     * for automatically created groups.
-     * Entry groups, like entries, can be searched.
-     * A maximum of 10,000 entry groups may be created per organization across all
-     * locations.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void createEntryGroup( - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEntryGroupMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an entry group.
-     * 
- */ - @java.lang.Deprecated - default void getEntryGroup( - com.google.cloud.datacatalog.v1.GetEntryGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEntryGroupMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an entry group.
-     * You must enable the Data Catalog API in the project identified by
-     * the `entry_group.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void updateEntryGroup( - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEntryGroupMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an entry group.
-     * You must enable the Data Catalog API in the project
-     * identified by the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void deleteEntryGroup( - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEntryGroupMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists entry groups.
-     * 
- */ - @java.lang.Deprecated - default void listEntryGroups( - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEntryGroupsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an entry.
-     * You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM',
-     * or custom types. Data Catalog automatically creates entries with other
-     * types during metadata ingestion from integrated systems.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * An entry group can have a maximum of 100,000 entries.
-     * 
- */ - @java.lang.Deprecated - default void createEntry( - com.google.cloud.datacatalog.v1.CreateEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing entry.
-     * You must enable the Data Catalog API in the project identified by
-     * the `entry.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void updateEntry( - com.google.cloud.datacatalog.v1.UpdateEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing entry.
-     * You can delete only the entries created by the
-     * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry]
-     * method.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void deleteEntry( - com.google.cloud.datacatalog.v1.DeleteEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an entry.
-     * 
- */ - @java.lang.Deprecated - default void getEntry( - com.google.cloud.datacatalog.v1.GetEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an entry by its target resource name.
-     * The resource name comes from the source Google Cloud Platform service.
-     * 
- */ - @java.lang.Deprecated - default void lookupEntry( - com.google.cloud.datacatalog.v1.LookupEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getLookupEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists entries.
-     * Note: Currently, this method can list only custom entries.
-     * To get a list of both custom and automatically created entries, use
-     * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
-     * 
- */ - @java.lang.Deprecated - default void listEntries( - com.google.cloud.datacatalog.v1.ListEntriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEntriesMethod(), responseObserver); - } - - /** - * - * - *
-     * Modifies entry overview, part of the business context of an
-     * [Entry][google.cloud.datacatalog.v1.Entry].
-     * To call this method, you must have the `datacatalog.entries.updateOverview`
-     * IAM permission on the corresponding project.
-     * 
- */ - @java.lang.Deprecated - default void modifyEntryOverview( - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getModifyEntryOverviewMethod(), responseObserver); - } - - /** - * - * - *
-     * Modifies contacts, part of the business context of an
-     * [Entry][google.cloud.datacatalog.v1.Entry].
-     * To call this method, you must have the `datacatalog.entries.updateContacts`
-     * IAM permission on the corresponding project.
-     * 
- */ - @java.lang.Deprecated - default void modifyEntryContacts( - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getModifyEntryContactsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a tag template.
-     * You must enable the Data Catalog API in the project identified by the
-     * `parent` parameter.
-     * For more information, see [Data Catalog resource project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void createTagTemplate( - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTagTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a tag template.
-     * 
- */ - @java.lang.Deprecated - default void getTagTemplate( - com.google.cloud.datacatalog.v1.GetTagTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetTagTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a tag template.
-     * You can't update template fields with this method. These fields are
-     * separate resources with their own create, update, and delete methods.
-     * You must enable the Data Catalog API in the project identified by
-     * the `tag_template.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void updateTagTemplate( - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTagTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a tag template and all tags that use it.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void deleteTagTemplate( - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTagTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a field in a tag template.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void createTagTemplateField( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTagTemplateFieldMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a field in a tag template.
-     * You can't update the field type with this method.
-     * You must enable the Data Catalog API in the project
-     * identified by the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void updateTagTemplateField( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTagTemplateFieldMethod(), responseObserver); - } - - /** - * - * - *
-     * Renames a field in a tag template.
-     * You must enable the Data Catalog API in the project identified by the
-     * `name` parameter. For more information, see [Data Catalog resource project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void renameTagTemplateField( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRenameTagTemplateFieldMethod(), responseObserver); - } - - /** - * - * - *
-     * Renames an enum value in a tag template.
-     * Within a single enum field, enum values must be unique.
-     * 
- */ - @java.lang.Deprecated - default void renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRenameTagTemplateFieldEnumValueMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a field in a tag template and all uses of this field from the tags
-     * based on this template.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - default void deleteTagTemplateField( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTagTemplateFieldMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a tag and assigns it to:
-     * * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is
-     *   `projects.locations.entryGroups.entries.tags.create`.
-     * * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method
-     *   name is `projects.locations.entryGroups.tags.create`.
-     * Note: The project identified by the `parent` parameter for the [tag]
-     * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
-     * and the [tag template]
-     * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
-     * used to create the tag must be in the same organization.
-     * 
- */ - @java.lang.Deprecated - default void createTag( - com.google.cloud.datacatalog.v1.CreateTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing tag.
-     * 
- */ - @java.lang.Deprecated - default void updateTag( - com.google.cloud.datacatalog.v1.UpdateTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a tag.
-     * 
- */ - @java.lang.Deprecated - default void deleteTag( - com.google.cloud.datacatalog.v1.DeleteTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry].
-     * The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are
-     * lowercased.
-     * 
- */ - @java.lang.Deprecated - default void listTags( - com.google.cloud.datacatalog.v1.ListTagsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTagsMethod(), responseObserver); - } - - /** - * - * - *
-     * `ReconcileTags` creates or updates a list of tags on the entry.
-     * If the
-     * [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing]
-     * parameter is set, the operation deletes tags not included in the input tag
-     * list.
-     * `ReconcileTags` returns a [long-running operation]
-     * [google.longrunning.Operation] resource that can be queried with
-     * [Operations.GetOperation][google.longrunning.Operations.GetOperation]
-     * to return [ReconcileTagsMetadata]
-     * [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and
-     * a [ReconcileTagsResponse]
-     * [google.cloud.datacatalog.v1.ReconcileTagsResponse] message.
-     * 
- */ - @java.lang.Deprecated - default void reconcileTags( - com.google.cloud.datacatalog.v1.ReconcileTagsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getReconcileTagsMethod(), responseObserver); - } - - /** - * - * - *
-     * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by
-     * the current user. Starring information is private to each user.
-     * 
- */ - @java.lang.Deprecated - default void starEntry( - com.google.cloud.datacatalog.v1.StarEntryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStarEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by
-     * the current user. Starring information is private to each user.
-     * 
- */ - @java.lang.Deprecated - default void unstarEntry( - com.google.cloud.datacatalog.v1.UnstarEntryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUnstarEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets an access control policy for a resource. Replaces any existing
-     * policy.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method sets policies only within Data Catalog and can't be
-     * used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any
-     * external Google Cloud Platform resources synced with the Data Catalog.
-     * To call this method, you must have the following Google IAM permissions:
-     * - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
-     *   templates.
-     * - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - default void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * May return:
-     * * A`NOT_FOUND` error if the resource doesn't exist or you don't have the
-     *   permission to view it.
-     * * An empty policy if the resource exists but doesn't have a set policy.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method doesn't get policies from Google Cloud Platform
-     * resources ingested into Data Catalog.
-     * To call this method, you must have the following Google IAM permissions:
-     * - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
-     *   templates.
-     * - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - default void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets your permissions on a resource.
-     * Returns an empty set of permissions if the resource doesn't exist.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method gets policies only within Data Catalog and can't be
-     * used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any
-     * external Google Cloud Platform resources ingested into Data Catalog.
-     * No Google IAM permissions are required to call this method.
-     * 
- */ - @java.lang.Deprecated - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - - /** - * - * - *
-     * Imports entries from a source, such as data previously dumped into a
-     * Cloud Storage bucket, into Data Catalog. Import of entries
-     * is a sync operation that reconciles the state of the third-party system
-     * with the Data Catalog.
-     * `ImportEntries` accepts source data snapshots of a third-party system.
-     * Snapshot should be delivered as a .wire or base65-encoded .txt file
-     * containing a sequence of Protocol Buffer messages of
-     * [DumpItem][google.cloud.datacatalog.v1.DumpItem] type.
-     * `ImportEntries` returns a [long-running operation]
-     * [google.longrunning.Operation] resource that can be queried with
-     * [Operations.GetOperation][google.longrunning.Operations.GetOperation]
-     * to return
-     * [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata]
-     * and an
-     * [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse]
-     * message.
-     * 
- */ - @java.lang.Deprecated - default void importEntries( - com.google.cloud.datacatalog.v1.ImportEntriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportEntriesMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the configuration related to the migration to Dataplex for an
-     * organization or project.
-     * 
- */ - @java.lang.Deprecated - default void setConfig( - com.google.cloud.datacatalog.v1.SetConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the configuration related to the migration from Data Catalog to
-     * Dataplex for a specific organization, including all the projects under it
-     * which have a separate configuration set.
-     * 
- */ - @java.lang.Deprecated - default void retrieveConfig( - com.google.cloud.datacatalog.v1.RetrieveConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveConfigMethod(), responseObserver); - } - - /** - * - * - *
-     * Retrieves the effective configuration related to the migration from Data
-     * Catalog to Dataplex for a specific organization or project. If there is no
-     * specific configuration set for the resource, the setting is checked
-     * hierarchicahlly through the ancestors of the resource, starting from the
-     * resource itself.
-     * 
- */ - @java.lang.Deprecated - default void retrieveEffectiveConfig( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRetrieveEffectiveConfigMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DataCatalog. - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - @java.lang.Deprecated - public abstract static class DataCatalogImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DataCatalogGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service DataCatalog. - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - @java.lang.Deprecated - public static final class DataCatalogStub - extends io.grpc.stub.AbstractAsyncStub { - private DataCatalogStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataCatalogStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches Data Catalog for multiple resources like entries and tags that
-     * match a query.
-     * This is a [Custom Method]
-     * (https://cloud.google.com/apis/design/custom_methods) that doesn't return
-     * all information on a resource, only its ID and high level fields. To get
-     * more information, you can subsequently call specific get methods.
-     * Note: Data Catalog search queries don't guarantee full recall. Results
-     * that match your query might not be returned, even in subsequent
-     * result pages. Additionally, returned (and not returned) results can vary
-     * if you repeat search queries.
-     * For more information, see [Data Catalog search syntax]
-     * (https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-     * 
- */ - @java.lang.Deprecated - public void searchCatalog( - com.google.cloud.datacatalog.v1.SearchCatalogRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchCatalogMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an entry group.
-     * An entry group contains logically related entries together with [Cloud
-     * Identity and Access Management](/data-catalog/docs/concepts/iam) policies.
-     * These policies specify users who can create, edit, and view entries
-     * within entry groups.
-     * Data Catalog automatically creates entry groups with names that start with
-     * the `@` symbol for the following resources:
-     * * BigQuery entries (`@bigquery`)
-     * * Pub/Sub topics (`@pubsub`)
-     * * Dataproc Metastore services (`@dataproc_metastore_{SERVICE_NAME_HASH}`)
-     * You can create your own entry groups for Cloud Storage fileset entries
-     * and custom entries together with the corresponding IAM policies.
-     * User-created entry groups can't contain the `@` symbol, it is reserved
-     * for automatically created groups.
-     * Entry groups, like entries, can be searched.
-     * A maximum of 10,000 entry groups may be created per organization across all
-     * locations.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void createEntryGroup( - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEntryGroupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an entry group.
-     * 
- */ - @java.lang.Deprecated - public void getEntryGroup( - com.google.cloud.datacatalog.v1.GetEntryGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEntryGroupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an entry group.
-     * You must enable the Data Catalog API in the project identified by
-     * the `entry_group.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void updateEntryGroup( - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEntryGroupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an entry group.
-     * You must enable the Data Catalog API in the project
-     * identified by the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void deleteEntryGroup( - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEntryGroupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists entry groups.
-     * 
- */ - @java.lang.Deprecated - public void listEntryGroups( - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEntryGroupsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an entry.
-     * You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM',
-     * or custom types. Data Catalog automatically creates entries with other
-     * types during metadata ingestion from integrated systems.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * An entry group can have a maximum of 100,000 entries.
-     * 
- */ - @java.lang.Deprecated - public void createEntry( - com.google.cloud.datacatalog.v1.CreateEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing entry.
-     * You must enable the Data Catalog API in the project identified by
-     * the `entry.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void updateEntry( - com.google.cloud.datacatalog.v1.UpdateEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing entry.
-     * You can delete only the entries created by the
-     * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry]
-     * method.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void deleteEntry( - com.google.cloud.datacatalog.v1.DeleteEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an entry.
-     * 
- */ - @java.lang.Deprecated - public void getEntry( - com.google.cloud.datacatalog.v1.GetEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEntryMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Gets an entry by its target resource name.
-     * The resource name comes from the source Google Cloud Platform service.
-     * 
- */ - @java.lang.Deprecated - public void lookupEntry( - com.google.cloud.datacatalog.v1.LookupEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLookupEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists entries.
-     * Note: Currently, this method can list only custom entries.
-     * To get a list of both custom and automatically created entries, use
-     * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
-     * 
- */ - @java.lang.Deprecated - public void listEntries( - com.google.cloud.datacatalog.v1.ListEntriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEntriesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Modifies entry overview, part of the business context of an
-     * [Entry][google.cloud.datacatalog.v1.Entry].
-     * To call this method, you must have the `datacatalog.entries.updateOverview`
-     * IAM permission on the corresponding project.
-     * 
- */ - @java.lang.Deprecated - public void modifyEntryOverview( - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getModifyEntryOverviewMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Modifies contacts, part of the business context of an
-     * [Entry][google.cloud.datacatalog.v1.Entry].
-     * To call this method, you must have the `datacatalog.entries.updateContacts`
-     * IAM permission on the corresponding project.
-     * 
- */ - @java.lang.Deprecated - public void modifyEntryContacts( - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getModifyEntryContactsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a tag template.
-     * You must enable the Data Catalog API in the project identified by the
-     * `parent` parameter.
-     * For more information, see [Data Catalog resource project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void createTagTemplate( - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTagTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a tag template.
-     * 
- */ - @java.lang.Deprecated - public void getTagTemplate( - com.google.cloud.datacatalog.v1.GetTagTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTagTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a tag template.
-     * You can't update template fields with this method. These fields are
-     * separate resources with their own create, update, and delete methods.
-     * You must enable the Data Catalog API in the project identified by
-     * the `tag_template.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void updateTagTemplate( - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTagTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a tag template and all tags that use it.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void deleteTagTemplate( - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTagTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a field in a tag template.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void createTagTemplateField( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTagTemplateFieldMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a field in a tag template.
-     * You can't update the field type with this method.
-     * You must enable the Data Catalog API in the project
-     * identified by the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void updateTagTemplateField( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTagTemplateFieldMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Renames a field in a tag template.
-     * You must enable the Data Catalog API in the project identified by the
-     * `name` parameter. For more information, see [Data Catalog resource project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void renameTagTemplateField( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRenameTagTemplateFieldMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Renames an enum value in a tag template.
-     * Within a single enum field, enum values must be unique.
-     * 
- */ - @java.lang.Deprecated - public void renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRenameTagTemplateFieldEnumValueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a field in a tag template and all uses of this field from the tags
-     * based on this template.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public void deleteTagTemplateField( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTagTemplateFieldMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a tag and assigns it to:
-     * * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is
-     *   `projects.locations.entryGroups.entries.tags.create`.
-     * * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method
-     *   name is `projects.locations.entryGroups.tags.create`.
-     * Note: The project identified by the `parent` parameter for the [tag]
-     * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
-     * and the [tag template]
-     * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
-     * used to create the tag must be in the same organization.
-     * 
- */ - @java.lang.Deprecated - public void createTag( - com.google.cloud.datacatalog.v1.CreateTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTagMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates an existing tag.
-     * 
- */ - @java.lang.Deprecated - public void updateTag( - com.google.cloud.datacatalog.v1.UpdateTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTagMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a tag.
-     * 
- */ - @java.lang.Deprecated - public void deleteTag( - com.google.cloud.datacatalog.v1.DeleteTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTagMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry].
-     * The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are
-     * lowercased.
-     * 
- */ - @java.lang.Deprecated - public void listTags( - com.google.cloud.datacatalog.v1.ListTagsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTagsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * `ReconcileTags` creates or updates a list of tags on the entry.
-     * If the
-     * [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing]
-     * parameter is set, the operation deletes tags not included in the input tag
-     * list.
-     * `ReconcileTags` returns a [long-running operation]
-     * [google.longrunning.Operation] resource that can be queried with
-     * [Operations.GetOperation][google.longrunning.Operations.GetOperation]
-     * to return [ReconcileTagsMetadata]
-     * [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and
-     * a [ReconcileTagsResponse]
-     * [google.cloud.datacatalog.v1.ReconcileTagsResponse] message.
-     * 
- */ - @java.lang.Deprecated - public void reconcileTags( - com.google.cloud.datacatalog.v1.ReconcileTagsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReconcileTagsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by
-     * the current user. Starring information is private to each user.
-     * 
- */ - @java.lang.Deprecated - public void starEntry( - com.google.cloud.datacatalog.v1.StarEntryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getStarEntryMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by
-     * the current user. Starring information is private to each user.
-     * 
- */ - @java.lang.Deprecated - public void unstarEntry( - com.google.cloud.datacatalog.v1.UnstarEntryRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUnstarEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets an access control policy for a resource. Replaces any existing
-     * policy.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method sets policies only within Data Catalog and can't be
-     * used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any
-     * external Google Cloud Platform resources synced with the Data Catalog.
-     * To call this method, you must have the following Google IAM permissions:
-     * - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
-     *   templates.
-     * - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * May return:
-     * * A`NOT_FOUND` error if the resource doesn't exist or you don't have the
-     *   permission to view it.
-     * * An empty policy if the resource exists but doesn't have a set policy.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method doesn't get policies from Google Cloud Platform
-     * resources ingested into Data Catalog.
-     * To call this method, you must have the following Google IAM permissions:
-     * - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
-     *   templates.
-     * - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets your permissions on a resource.
-     * Returns an empty set of permissions if the resource doesn't exist.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method gets policies only within Data Catalog and can't be
-     * used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any
-     * external Google Cloud Platform resources ingested into Data Catalog.
-     * No Google IAM permissions are required to call this method.
-     * 
- */ - @java.lang.Deprecated - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Imports entries from a source, such as data previously dumped into a
-     * Cloud Storage bucket, into Data Catalog. Import of entries
-     * is a sync operation that reconciles the state of the third-party system
-     * with the Data Catalog.
-     * `ImportEntries` accepts source data snapshots of a third-party system.
-     * Snapshot should be delivered as a .wire or base65-encoded .txt file
-     * containing a sequence of Protocol Buffer messages of
-     * [DumpItem][google.cloud.datacatalog.v1.DumpItem] type.
-     * `ImportEntries` returns a [long-running operation]
-     * [google.longrunning.Operation] resource that can be queried with
-     * [Operations.GetOperation][google.longrunning.Operations.GetOperation]
-     * to return
-     * [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata]
-     * and an
-     * [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse]
-     * message.
-     * 
- */ - @java.lang.Deprecated - public void importEntries( - com.google.cloud.datacatalog.v1.ImportEntriesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportEntriesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the configuration related to the migration to Dataplex for an
-     * organization or project.
-     * 
- */ - @java.lang.Deprecated - public void setConfig( - com.google.cloud.datacatalog.v1.SetConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetConfigMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Retrieves the configuration related to the migration from Data Catalog to
-     * Dataplex for a specific organization, including all the projects under it
-     * which have a separate configuration set.
-     * 
- */ - @java.lang.Deprecated - public void retrieveConfig( - com.google.cloud.datacatalog.v1.RetrieveConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveConfigMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Retrieves the effective configuration related to the migration from Data
-     * Catalog to Dataplex for a specific organization or project. If there is no
-     * specific configuration set for the resource, the setting is checked
-     * hierarchicahlly through the ancestors of the resource, starting from the
-     * resource itself.
-     * 
- */ - @java.lang.Deprecated - public void retrieveEffectiveConfig( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRetrieveEffectiveConfigMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DataCatalog. - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - @java.lang.Deprecated - public static final class DataCatalogBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private DataCatalogBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataCatalogBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogBlockingV2Stub(channel, callOptions); - } - - /** - * - * - *
-     * Searches Data Catalog for multiple resources like entries and tags that
-     * match a query.
-     * This is a [Custom Method]
-     * (https://cloud.google.com/apis/design/custom_methods) that doesn't return
-     * all information on a resource, only its ID and high level fields. To get
-     * more information, you can subsequently call specific get methods.
-     * Note: Data Catalog search queries don't guarantee full recall. Results
-     * that match your query might not be returned, even in subsequent
-     * result pages. Additionally, returned (and not returned) results can vary
-     * if you repeat search queries.
-     * For more information, see [Data Catalog search syntax]
-     * (https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.SearchCatalogResponse searchCatalog( - com.google.cloud.datacatalog.v1.SearchCatalogRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSearchCatalogMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an entry group.
-     * An entry group contains logically related entries together with [Cloud
-     * Identity and Access Management](/data-catalog/docs/concepts/iam) policies.
-     * These policies specify users who can create, edit, and view entries
-     * within entry groups.
-     * Data Catalog automatically creates entry groups with names that start with
-     * the `@` symbol for the following resources:
-     * * BigQuery entries (`@bigquery`)
-     * * Pub/Sub topics (`@pubsub`)
-     * * Dataproc Metastore services (`@dataproc_metastore_{SERVICE_NAME_HASH}`)
-     * You can create your own entry groups for Cloud Storage fileset entries
-     * and custom entries together with the corresponding IAM policies.
-     * User-created entry groups can't contain the `@` symbol, it is reserved
-     * for automatically created groups.
-     * Entry groups, like entries, can be searched.
-     * A maximum of 10,000 entry groups may be created per organization across all
-     * locations.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.EntryGroup createEntryGroup( - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an entry group.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.EntryGroup getEntryGroup( - com.google.cloud.datacatalog.v1.GetEntryGroupRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an entry group.
-     * You must enable the Data Catalog API in the project identified by
-     * the `entry_group.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.EntryGroup updateEntryGroup( - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an entry group.
-     * You must enable the Data Catalog API in the project
-     * identified by the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteEntryGroup( - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.ListEntryGroupsResponse listEntryGroups( - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListEntryGroupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an entry.
-     * You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM',
-     * or custom types. Data Catalog automatically creates entries with other
-     * types during metadata ingestion from integrated systems.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * An entry group can have a maximum of 100,000 entries.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Entry createEntry( - com.google.cloud.datacatalog.v1.CreateEntryRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing entry.
-     * You must enable the Data Catalog API in the project identified by
-     * the `entry.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Entry updateEntry( - com.google.cloud.datacatalog.v1.UpdateEntryRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing entry.
-     * You can delete only the entries created by the
-     * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry]
-     * method.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteEntry( - com.google.cloud.datacatalog.v1.DeleteEntryRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an entry.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Entry getEntry( - com.google.cloud.datacatalog.v1.GetEntryRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an entry by its target resource name.
-     * The resource name comes from the source Google Cloud Platform service.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Entry lookupEntry( - com.google.cloud.datacatalog.v1.LookupEntryRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getLookupEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists entries.
-     * Note: Currently, this method can list only custom entries.
-     * To get a list of both custom and automatically created entries, use
-     * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.ListEntriesResponse listEntries( - com.google.cloud.datacatalog.v1.ListEntriesRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListEntriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Modifies entry overview, part of the business context of an
-     * [Entry][google.cloud.datacatalog.v1.Entry].
-     * To call this method, you must have the `datacatalog.entries.updateOverview`
-     * IAM permission on the corresponding project.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.EntryOverview modifyEntryOverview( - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getModifyEntryOverviewMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Modifies contacts, part of the business context of an
-     * [Entry][google.cloud.datacatalog.v1.Entry].
-     * To call this method, you must have the `datacatalog.entries.updateContacts`
-     * IAM permission on the corresponding project.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Contacts modifyEntryContacts( - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getModifyEntryContactsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a tag template.
-     * You must enable the Data Catalog API in the project identified by the
-     * `parent` parameter.
-     * For more information, see [Data Catalog resource project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplate createTagTemplate( - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a tag template.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplate getTagTemplate( - com.google.cloud.datacatalog.v1.GetTagTemplateRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a tag template.
-     * You can't update template fields with this method. These fields are
-     * separate resources with their own create, update, and delete methods.
-     * You must enable the Data Catalog API in the project identified by
-     * the `tag_template.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplate updateTagTemplate( - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a tag template and all tags that use it.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTagTemplate( - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a field in a tag template.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplateField createTagTemplateField( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a field in a tag template.
-     * You can't update the field type with this method.
-     * You must enable the Data Catalog API in the project
-     * identified by the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplateField updateTagTemplateField( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renames a field in a tag template.
-     * You must enable the Data Catalog API in the project identified by the
-     * `name` parameter. For more information, see [Data Catalog resource project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplateField renameTagTemplateField( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getRenameTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renames an enum value in a tag template.
-     * Within a single enum field, enum values must be unique.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplateField renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getRenameTagTemplateFieldEnumValueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a field in a tag template and all uses of this field from the tags
-     * based on this template.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTagTemplateField( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a tag and assigns it to:
-     * * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is
-     *   `projects.locations.entryGroups.entries.tags.create`.
-     * * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method
-     *   name is `projects.locations.entryGroups.tags.create`.
-     * Note: The project identified by the `parent` parameter for the [tag]
-     * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
-     * and the [tag template]
-     * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
-     * used to create the tag must be in the same organization.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Tag createTag( - com.google.cloud.datacatalog.v1.CreateTagRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Tag updateTag( - com.google.cloud.datacatalog.v1.UpdateTagRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTag( - com.google.cloud.datacatalog.v1.DeleteTagRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry].
-     * The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are
-     * lowercased.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.ListTagsResponse listTags( - com.google.cloud.datacatalog.v1.ListTagsRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListTagsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * `ReconcileTags` creates or updates a list of tags on the entry.
-     * If the
-     * [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing]
-     * parameter is set, the operation deletes tags not included in the input tag
-     * list.
-     * `ReconcileTags` returns a [long-running operation]
-     * [google.longrunning.Operation] resource that can be queried with
-     * [Operations.GetOperation][google.longrunning.Operations.GetOperation]
-     * to return [ReconcileTagsMetadata]
-     * [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and
-     * a [ReconcileTagsResponse]
-     * [google.cloud.datacatalog.v1.ReconcileTagsResponse] message.
-     * 
- */ - @java.lang.Deprecated - public com.google.longrunning.Operation reconcileTags( - com.google.cloud.datacatalog.v1.ReconcileTagsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getReconcileTagsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by
-     * the current user. Starring information is private to each user.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.StarEntryResponse starEntry( - com.google.cloud.datacatalog.v1.StarEntryRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getStarEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by
-     * the current user. Starring information is private to each user.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.UnstarEntryResponse unstarEntry( - com.google.cloud.datacatalog.v1.UnstarEntryRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUnstarEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets an access control policy for a resource. Replaces any existing
-     * policy.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method sets policies only within Data Catalog and can't be
-     * used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any
-     * external Google Cloud Platform resources synced with the Data Catalog.
-     * To call this method, you must have the following Google IAM permissions:
-     * - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
-     *   templates.
-     * - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * May return:
-     * * A`NOT_FOUND` error if the resource doesn't exist or you don't have the
-     *   permission to view it.
-     * * An empty policy if the resource exists but doesn't have a set policy.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method doesn't get policies from Google Cloud Platform
-     * resources ingested into Data Catalog.
-     * To call this method, you must have the following Google IAM permissions:
-     * - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
-     *   templates.
-     * - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets your permissions on a resource.
-     * Returns an empty set of permissions if the resource doesn't exist.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method gets policies only within Data Catalog and can't be
-     * used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any
-     * external Google Cloud Platform resources ingested into Data Catalog.
-     * No Google IAM permissions are required to call this method.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Imports entries from a source, such as data previously dumped into a
-     * Cloud Storage bucket, into Data Catalog. Import of entries
-     * is a sync operation that reconciles the state of the third-party system
-     * with the Data Catalog.
-     * `ImportEntries` accepts source data snapshots of a third-party system.
-     * Snapshot should be delivered as a .wire or base65-encoded .txt file
-     * containing a sequence of Protocol Buffer messages of
-     * [DumpItem][google.cloud.datacatalog.v1.DumpItem] type.
-     * `ImportEntries` returns a [long-running operation]
-     * [google.longrunning.Operation] resource that can be queried with
-     * [Operations.GetOperation][google.longrunning.Operations.GetOperation]
-     * to return
-     * [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata]
-     * and an
-     * [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse]
-     * message.
-     * 
- */ - @java.lang.Deprecated - public com.google.longrunning.Operation importEntries( - com.google.cloud.datacatalog.v1.ImportEntriesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getImportEntriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the configuration related to the migration to Dataplex for an
-     * organization or project.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.MigrationConfig setConfig( - com.google.cloud.datacatalog.v1.SetConfigRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSetConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the configuration related to the migration from Data Catalog to
-     * Dataplex for a specific organization, including all the projects under it
-     * which have a separate configuration set.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.OrganizationConfig retrieveConfig( - com.google.cloud.datacatalog.v1.RetrieveConfigRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getRetrieveConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the effective configuration related to the migration from Data
-     * Catalog to Dataplex for a specific organization or project. If there is no
-     * specific configuration set for the resource, the setting is checked
-     * hierarchicahlly through the ancestors of the resource, starting from the
-     * resource itself.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.MigrationConfig retrieveEffectiveConfig( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getRetrieveEffectiveConfigMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service DataCatalog. - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - @java.lang.Deprecated - public static final class DataCatalogBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DataCatalogBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataCatalogBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches Data Catalog for multiple resources like entries and tags that
-     * match a query.
-     * This is a [Custom Method]
-     * (https://cloud.google.com/apis/design/custom_methods) that doesn't return
-     * all information on a resource, only its ID and high level fields. To get
-     * more information, you can subsequently call specific get methods.
-     * Note: Data Catalog search queries don't guarantee full recall. Results
-     * that match your query might not be returned, even in subsequent
-     * result pages. Additionally, returned (and not returned) results can vary
-     * if you repeat search queries.
-     * For more information, see [Data Catalog search syntax]
-     * (https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.SearchCatalogResponse searchCatalog( - com.google.cloud.datacatalog.v1.SearchCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchCatalogMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an entry group.
-     * An entry group contains logically related entries together with [Cloud
-     * Identity and Access Management](/data-catalog/docs/concepts/iam) policies.
-     * These policies specify users who can create, edit, and view entries
-     * within entry groups.
-     * Data Catalog automatically creates entry groups with names that start with
-     * the `@` symbol for the following resources:
-     * * BigQuery entries (`@bigquery`)
-     * * Pub/Sub topics (`@pubsub`)
-     * * Dataproc Metastore services (`@dataproc_metastore_{SERVICE_NAME_HASH}`)
-     * You can create your own entry groups for Cloud Storage fileset entries
-     * and custom entries together with the corresponding IAM policies.
-     * User-created entry groups can't contain the `@` symbol, it is reserved
-     * for automatically created groups.
-     * Entry groups, like entries, can be searched.
-     * A maximum of 10,000 entry groups may be created per organization across all
-     * locations.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.EntryGroup createEntryGroup( - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an entry group.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.EntryGroup getEntryGroup( - com.google.cloud.datacatalog.v1.GetEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an entry group.
-     * You must enable the Data Catalog API in the project identified by
-     * the `entry_group.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.EntryGroup updateEntryGroup( - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an entry group.
-     * You must enable the Data Catalog API in the project
-     * identified by the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteEntryGroup( - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.ListEntryGroupsResponse listEntryGroups( - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEntryGroupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an entry.
-     * You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM',
-     * or custom types. Data Catalog automatically creates entries with other
-     * types during metadata ingestion from integrated systems.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * An entry group can have a maximum of 100,000 entries.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Entry createEntry( - com.google.cloud.datacatalog.v1.CreateEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing entry.
-     * You must enable the Data Catalog API in the project identified by
-     * the `entry.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Entry updateEntry( - com.google.cloud.datacatalog.v1.UpdateEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing entry.
-     * You can delete only the entries created by the
-     * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry]
-     * method.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteEntry( - com.google.cloud.datacatalog.v1.DeleteEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an entry.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Entry getEntry( - com.google.cloud.datacatalog.v1.GetEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an entry by its target resource name.
-     * The resource name comes from the source Google Cloud Platform service.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Entry lookupEntry( - com.google.cloud.datacatalog.v1.LookupEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLookupEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists entries.
-     * Note: Currently, this method can list only custom entries.
-     * To get a list of both custom and automatically created entries, use
-     * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.ListEntriesResponse listEntries( - com.google.cloud.datacatalog.v1.ListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEntriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Modifies entry overview, part of the business context of an
-     * [Entry][google.cloud.datacatalog.v1.Entry].
-     * To call this method, you must have the `datacatalog.entries.updateOverview`
-     * IAM permission on the corresponding project.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.EntryOverview modifyEntryOverview( - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getModifyEntryOverviewMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Modifies contacts, part of the business context of an
-     * [Entry][google.cloud.datacatalog.v1.Entry].
-     * To call this method, you must have the `datacatalog.entries.updateContacts`
-     * IAM permission on the corresponding project.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Contacts modifyEntryContacts( - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getModifyEntryContactsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a tag template.
-     * You must enable the Data Catalog API in the project identified by the
-     * `parent` parameter.
-     * For more information, see [Data Catalog resource project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplate createTagTemplate( - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a tag template.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplate getTagTemplate( - com.google.cloud.datacatalog.v1.GetTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a tag template.
-     * You can't update template fields with this method. These fields are
-     * separate resources with their own create, update, and delete methods.
-     * You must enable the Data Catalog API in the project identified by
-     * the `tag_template.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplate updateTagTemplate( - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a tag template and all tags that use it.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTagTemplate( - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a field in a tag template.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplateField createTagTemplateField( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a field in a tag template.
-     * You can't update the field type with this method.
-     * You must enable the Data Catalog API in the project
-     * identified by the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplateField updateTagTemplateField( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renames a field in a tag template.
-     * You must enable the Data Catalog API in the project identified by the
-     * `name` parameter. For more information, see [Data Catalog resource project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplateField renameTagTemplateField( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRenameTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renames an enum value in a tag template.
-     * Within a single enum field, enum values must be unique.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.TagTemplateField renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRenameTagTemplateFieldEnumValueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a field in a tag template and all uses of this field from the tags
-     * based on this template.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTagTemplateField( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a tag and assigns it to:
-     * * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is
-     *   `projects.locations.entryGroups.entries.tags.create`.
-     * * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method
-     *   name is `projects.locations.entryGroups.tags.create`.
-     * Note: The project identified by the `parent` parameter for the [tag]
-     * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
-     * and the [tag template]
-     * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
-     * used to create the tag must be in the same organization.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Tag createTag( - com.google.cloud.datacatalog.v1.CreateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.Tag updateTag( - com.google.cloud.datacatalog.v1.UpdateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTag( - com.google.cloud.datacatalog.v1.DeleteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry].
-     * The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are
-     * lowercased.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.ListTagsResponse listTags( - com.google.cloud.datacatalog.v1.ListTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTagsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * `ReconcileTags` creates or updates a list of tags on the entry.
-     * If the
-     * [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing]
-     * parameter is set, the operation deletes tags not included in the input tag
-     * list.
-     * `ReconcileTags` returns a [long-running operation]
-     * [google.longrunning.Operation] resource that can be queried with
-     * [Operations.GetOperation][google.longrunning.Operations.GetOperation]
-     * to return [ReconcileTagsMetadata]
-     * [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and
-     * a [ReconcileTagsResponse]
-     * [google.cloud.datacatalog.v1.ReconcileTagsResponse] message.
-     * 
- */ - @java.lang.Deprecated - public com.google.longrunning.Operation reconcileTags( - com.google.cloud.datacatalog.v1.ReconcileTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReconcileTagsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by
-     * the current user. Starring information is private to each user.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.StarEntryResponse starEntry( - com.google.cloud.datacatalog.v1.StarEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getStarEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by
-     * the current user. Starring information is private to each user.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.UnstarEntryResponse unstarEntry( - com.google.cloud.datacatalog.v1.UnstarEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUnstarEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets an access control policy for a resource. Replaces any existing
-     * policy.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method sets policies only within Data Catalog and can't be
-     * used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any
-     * external Google Cloud Platform resources synced with the Data Catalog.
-     * To call this method, you must have the following Google IAM permissions:
-     * - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
-     *   templates.
-     * - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * May return:
-     * * A`NOT_FOUND` error if the resource doesn't exist or you don't have the
-     *   permission to view it.
-     * * An empty policy if the resource exists but doesn't have a set policy.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method doesn't get policies from Google Cloud Platform
-     * resources ingested into Data Catalog.
-     * To call this method, you must have the following Google IAM permissions:
-     * - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
-     *   templates.
-     * - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets your permissions on a resource.
-     * Returns an empty set of permissions if the resource doesn't exist.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method gets policies only within Data Catalog and can't be
-     * used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any
-     * external Google Cloud Platform resources ingested into Data Catalog.
-     * No Google IAM permissions are required to call this method.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Imports entries from a source, such as data previously dumped into a
-     * Cloud Storage bucket, into Data Catalog. Import of entries
-     * is a sync operation that reconciles the state of the third-party system
-     * with the Data Catalog.
-     * `ImportEntries` accepts source data snapshots of a third-party system.
-     * Snapshot should be delivered as a .wire or base65-encoded .txt file
-     * containing a sequence of Protocol Buffer messages of
-     * [DumpItem][google.cloud.datacatalog.v1.DumpItem] type.
-     * `ImportEntries` returns a [long-running operation]
-     * [google.longrunning.Operation] resource that can be queried with
-     * [Operations.GetOperation][google.longrunning.Operations.GetOperation]
-     * to return
-     * [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata]
-     * and an
-     * [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse]
-     * message.
-     * 
- */ - @java.lang.Deprecated - public com.google.longrunning.Operation importEntries( - com.google.cloud.datacatalog.v1.ImportEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportEntriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the configuration related to the migration to Dataplex for an
-     * organization or project.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.MigrationConfig setConfig( - com.google.cloud.datacatalog.v1.SetConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the configuration related to the migration from Data Catalog to
-     * Dataplex for a specific organization, including all the projects under it
-     * which have a separate configuration set.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.OrganizationConfig retrieveConfig( - com.google.cloud.datacatalog.v1.RetrieveConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveConfigMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Retrieves the effective configuration related to the migration from Data
-     * Catalog to Dataplex for a specific organization or project. If there is no
-     * specific configuration set for the resource, the setting is checked
-     * hierarchicahlly through the ancestors of the resource, starting from the
-     * resource itself.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1.MigrationConfig retrieveEffectiveConfig( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRetrieveEffectiveConfigMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DataCatalog. - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows you to discover, understand, and manage
-   * your data.
-   * 
- */ - @java.lang.Deprecated - public static final class DataCatalogFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataCatalogFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataCatalogFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches Data Catalog for multiple resources like entries and tags that
-     * match a query.
-     * This is a [Custom Method]
-     * (https://cloud.google.com/apis/design/custom_methods) that doesn't return
-     * all information on a resource, only its ID and high level fields. To get
-     * more information, you can subsequently call specific get methods.
-     * Note: Data Catalog search queries don't guarantee full recall. Results
-     * that match your query might not be returned, even in subsequent
-     * result pages. Additionally, returned (and not returned) results can vary
-     * if you repeat search queries.
-     * For more information, see [Data Catalog search syntax]
-     * (https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.SearchCatalogResponse> - searchCatalog(com.google.cloud.datacatalog.v1.SearchCatalogRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchCatalogMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an entry group.
-     * An entry group contains logically related entries together with [Cloud
-     * Identity and Access Management](/data-catalog/docs/concepts/iam) policies.
-     * These policies specify users who can create, edit, and view entries
-     * within entry groups.
-     * Data Catalog automatically creates entry groups with names that start with
-     * the `@` symbol for the following resources:
-     * * BigQuery entries (`@bigquery`)
-     * * Pub/Sub topics (`@pubsub`)
-     * * Dataproc Metastore services (`@dataproc_metastore_{SERVICE_NAME_HASH}`)
-     * You can create your own entry groups for Cloud Storage fileset entries
-     * and custom entries together with the corresponding IAM policies.
-     * User-created entry groups can't contain the `@` symbol, it is reserved
-     * for automatically created groups.
-     * Entry groups, like entries, can be searched.
-     * A maximum of 10,000 entry groups may be created per organization across all
-     * locations.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.EntryGroup> - createEntryGroup(com.google.cloud.datacatalog.v1.CreateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEntryGroupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an entry group.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.EntryGroup> - getEntryGroup(com.google.cloud.datacatalog.v1.GetEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEntryGroupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an entry group.
-     * You must enable the Data Catalog API in the project identified by
-     * the `entry_group.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.EntryGroup> - updateEntryGroup(com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEntryGroupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an entry group.
-     * You must enable the Data Catalog API in the project
-     * identified by the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - deleteEntryGroup(com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEntryGroupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse> - listEntryGroups(com.google.cloud.datacatalog.v1.ListEntryGroupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEntryGroupsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an entry.
-     * You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM',
-     * or custom types. Data Catalog automatically creates entries with other
-     * types during metadata ingestion from integrated systems.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * An entry group can have a maximum of 100,000 entries.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - createEntry(com.google.cloud.datacatalog.v1.CreateEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing entry.
-     * You must enable the Data Catalog API in the project identified by
-     * the `entry.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - updateEntry(com.google.cloud.datacatalog.v1.UpdateEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing entry.
-     * You can delete only the entries created by the
-     * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry]
-     * method.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - deleteEntry(com.google.cloud.datacatalog.v1.DeleteEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an entry.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - getEntry(com.google.cloud.datacatalog.v1.GetEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an entry by its target resource name.
-     * The resource name comes from the source Google Cloud Platform service.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - lookupEntry(com.google.cloud.datacatalog.v1.LookupEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLookupEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists entries.
-     * Note: Currently, this method can list only custom entries.
-     * To get a list of both custom and automatically created entries, use
-     * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.ListEntriesResponse> - listEntries(com.google.cloud.datacatalog.v1.ListEntriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEntriesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Modifies entry overview, part of the business context of an
-     * [Entry][google.cloud.datacatalog.v1.Entry].
-     * To call this method, you must have the `datacatalog.entries.updateOverview`
-     * IAM permission on the corresponding project.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.EntryOverview> - modifyEntryOverview(com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getModifyEntryOverviewMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Modifies contacts, part of the business context of an
-     * [Entry][google.cloud.datacatalog.v1.Entry].
-     * To call this method, you must have the `datacatalog.entries.updateContacts`
-     * IAM permission on the corresponding project.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.Contacts> - modifyEntryContacts(com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getModifyEntryContactsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a tag template.
-     * You must enable the Data Catalog API in the project identified by the
-     * `parent` parameter.
-     * For more information, see [Data Catalog resource project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.TagTemplate> - createTagTemplate(com.google.cloud.datacatalog.v1.CreateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTagTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a tag template.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.TagTemplate> - getTagTemplate(com.google.cloud.datacatalog.v1.GetTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTagTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a tag template.
-     * You can't update template fields with this method. These fields are
-     * separate resources with their own create, update, and delete methods.
-     * You must enable the Data Catalog API in the project identified by
-     * the `tag_template.name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.TagTemplate> - updateTagTemplate(com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTagTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a tag template and all tags that use it.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - deleteTagTemplate(com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTagTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a field in a tag template.
-     * You must enable the Data Catalog API in the project identified by
-     * the `parent` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.TagTemplateField> - createTagTemplateField( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTagTemplateFieldMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a field in a tag template.
-     * You can't update the field type with this method.
-     * You must enable the Data Catalog API in the project
-     * identified by the `name` parameter. For more information, see [Data Catalog
-     * resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.TagTemplateField> - updateTagTemplateField( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTagTemplateFieldMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Renames a field in a tag template.
-     * You must enable the Data Catalog API in the project identified by the
-     * `name` parameter. For more information, see [Data Catalog resource project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.TagTemplateField> - renameTagTemplateField( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRenameTagTemplateFieldMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Renames an enum value in a tag template.
-     * Within a single enum field, enum values must be unique.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.TagTemplateField> - renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRenameTagTemplateFieldEnumValueMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Deletes a field in a tag template and all uses of this field from the tags
-     * based on this template.
-     * You must enable the Data Catalog API in the project identified by
-     * the `name` parameter. For more information, see [Data Catalog resource
-     * project](https://cloud.google.com/data-catalog/docs/concepts/resource-project).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - deleteTagTemplateField( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTagTemplateFieldMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a tag and assigns it to:
-     * * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is
-     *   `projects.locations.entryGroups.entries.tags.create`.
-     * * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method
-     *   name is `projects.locations.entryGroups.tags.create`.
-     * Note: The project identified by the `parent` parameter for the [tag]
-     * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
-     * and the [tag template]
-     * (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
-     * used to create the tag must be in the same organization.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - createTag(com.google.cloud.datacatalog.v1.CreateTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - updateTag(com.google.cloud.datacatalog.v1.UpdateTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture deleteTag( - com.google.cloud.datacatalog.v1.DeleteTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry].
-     * The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are
-     * lowercased.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.ListTagsResponse> - listTags(com.google.cloud.datacatalog.v1.ListTagsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTagsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * `ReconcileTags` creates or updates a list of tags on the entry.
-     * If the
-     * [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing]
-     * parameter is set, the operation deletes tags not included in the input tag
-     * list.
-     * `ReconcileTags` returns a [long-running operation]
-     * [google.longrunning.Operation] resource that can be queried with
-     * [Operations.GetOperation][google.longrunning.Operations.GetOperation]
-     * to return [ReconcileTagsMetadata]
-     * [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and
-     * a [ReconcileTagsResponse]
-     * [google.cloud.datacatalog.v1.ReconcileTagsResponse] message.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - reconcileTags(com.google.cloud.datacatalog.v1.ReconcileTagsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReconcileTagsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by
-     * the current user. Starring information is private to each user.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.StarEntryResponse> - starEntry(com.google.cloud.datacatalog.v1.StarEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getStarEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by
-     * the current user. Starring information is private to each user.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.UnstarEntryResponse> - unstarEntry(com.google.cloud.datacatalog.v1.UnstarEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUnstarEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets an access control policy for a resource. Replaces any existing
-     * policy.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method sets policies only within Data Catalog and can't be
-     * used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any
-     * external Google Cloud Platform resources synced with the Data Catalog.
-     * To call this method, you must have the following Google IAM permissions:
-     * - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
-     *   templates.
-     * - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource.
-     * May return:
-     * * A`NOT_FOUND` error if the resource doesn't exist or you don't have the
-     *   permission to view it.
-     * * An empty policy if the resource exists but doesn't have a set policy.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method doesn't get policies from Google Cloud Platform
-     * resources ingested into Data Catalog.
-     * To call this method, you must have the following Google IAM permissions:
-     * - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
-     *   templates.
-     * - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets your permissions on a resource.
-     * Returns an empty set of permissions if the resource doesn't exist.
-     * Supported resources are:
-     * - Tag templates
-     * - Entry groups
-     * Note: This method gets policies only within Data Catalog and can't be
-     * used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any
-     * external Google Cloud Platform resources ingested into Data Catalog.
-     * No Google IAM permissions are required to call this method.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Imports entries from a source, such as data previously dumped into a
-     * Cloud Storage bucket, into Data Catalog. Import of entries
-     * is a sync operation that reconciles the state of the third-party system
-     * with the Data Catalog.
-     * `ImportEntries` accepts source data snapshots of a third-party system.
-     * Snapshot should be delivered as a .wire or base65-encoded .txt file
-     * containing a sequence of Protocol Buffer messages of
-     * [DumpItem][google.cloud.datacatalog.v1.DumpItem] type.
-     * `ImportEntries` returns a [long-running operation]
-     * [google.longrunning.Operation] resource that can be queried with
-     * [Operations.GetOperation][google.longrunning.Operations.GetOperation]
-     * to return
-     * [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata]
-     * and an
-     * [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse]
-     * message.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - importEntries(com.google.cloud.datacatalog.v1.ImportEntriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportEntriesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the configuration related to the migration to Dataplex for an
-     * organization or project.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.MigrationConfig> - setConfig(com.google.cloud.datacatalog.v1.SetConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the configuration related to the migration from Data Catalog to
-     * Dataplex for a specific organization, including all the projects under it
-     * which have a separate configuration set.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.OrganizationConfig> - retrieveConfig(com.google.cloud.datacatalog.v1.RetrieveConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveConfigMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Retrieves the effective configuration related to the migration from Data
-     * Catalog to Dataplex for a specific organization or project. If there is no
-     * specific configuration set for the resource, the setting is checked
-     * hierarchicahlly through the ancestors of the resource, starting from the
-     * resource itself.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.MigrationConfig> - retrieveEffectiveConfig( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRetrieveEffectiveConfigMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SEARCH_CATALOG = 0; - private static final int METHODID_CREATE_ENTRY_GROUP = 1; - private static final int METHODID_GET_ENTRY_GROUP = 2; - private static final int METHODID_UPDATE_ENTRY_GROUP = 3; - private static final int METHODID_DELETE_ENTRY_GROUP = 4; - private static final int METHODID_LIST_ENTRY_GROUPS = 5; - private static final int METHODID_CREATE_ENTRY = 6; - private static final int METHODID_UPDATE_ENTRY = 7; - private static final int METHODID_DELETE_ENTRY = 8; - private static final int METHODID_GET_ENTRY = 9; - private static final int METHODID_LOOKUP_ENTRY = 10; - private static final int METHODID_LIST_ENTRIES = 11; - private static final int METHODID_MODIFY_ENTRY_OVERVIEW = 12; - private static final int METHODID_MODIFY_ENTRY_CONTACTS = 13; - private static final int METHODID_CREATE_TAG_TEMPLATE = 14; - private static final int METHODID_GET_TAG_TEMPLATE = 15; - private static final int METHODID_UPDATE_TAG_TEMPLATE = 16; - private static final int METHODID_DELETE_TAG_TEMPLATE = 17; - private static final int METHODID_CREATE_TAG_TEMPLATE_FIELD = 18; - private static final int METHODID_UPDATE_TAG_TEMPLATE_FIELD = 19; - private static final int METHODID_RENAME_TAG_TEMPLATE_FIELD = 20; - private static final int METHODID_RENAME_TAG_TEMPLATE_FIELD_ENUM_VALUE = 21; - private static final int METHODID_DELETE_TAG_TEMPLATE_FIELD = 22; - private static final int METHODID_CREATE_TAG = 23; - private static final int METHODID_UPDATE_TAG = 24; - private static final int METHODID_DELETE_TAG = 25; - private static final int METHODID_LIST_TAGS = 26; - private static final int METHODID_RECONCILE_TAGS = 27; - private static final int METHODID_STAR_ENTRY = 28; - private static final int METHODID_UNSTAR_ENTRY = 29; - private static final int METHODID_SET_IAM_POLICY = 30; - private static final int METHODID_GET_IAM_POLICY = 31; - private static final int METHODID_TEST_IAM_PERMISSIONS = 32; - private static final int METHODID_IMPORT_ENTRIES = 33; - private static final int METHODID_SET_CONFIG = 34; - private static final int METHODID_RETRIEVE_CONFIG = 35; - private static final int METHODID_RETRIEVE_EFFECTIVE_CONFIG = 36; - - 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_SEARCH_CATALOG: - serviceImpl.searchCatalog( - (com.google.cloud.datacatalog.v1.SearchCatalogRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_ENTRY_GROUP: - serviceImpl.createEntryGroup( - (com.google.cloud.datacatalog.v1.CreateEntryGroupRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_ENTRY_GROUP: - serviceImpl.getEntryGroup( - (com.google.cloud.datacatalog.v1.GetEntryGroupRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_ENTRY_GROUP: - serviceImpl.updateEntryGroup( - (com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_ENTRY_GROUP: - serviceImpl.deleteEntryGroup( - (com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ENTRY_GROUPS: - serviceImpl.listEntryGroups( - (com.google.cloud.datacatalog.v1.ListEntryGroupsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_ENTRY: - serviceImpl.createEntry( - (com.google.cloud.datacatalog.v1.CreateEntryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_ENTRY: - serviceImpl.updateEntry( - (com.google.cloud.datacatalog.v1.UpdateEntryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_ENTRY: - serviceImpl.deleteEntry( - (com.google.cloud.datacatalog.v1.DeleteEntryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ENTRY: - serviceImpl.getEntry( - (com.google.cloud.datacatalog.v1.GetEntryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LOOKUP_ENTRY: - serviceImpl.lookupEntry( - (com.google.cloud.datacatalog.v1.LookupEntryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_ENTRIES: - serviceImpl.listEntries( - (com.google.cloud.datacatalog.v1.ListEntriesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_MODIFY_ENTRY_OVERVIEW: - serviceImpl.modifyEntryOverview( - (com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_MODIFY_ENTRY_CONTACTS: - serviceImpl.modifyEntryContacts( - (com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_TAG_TEMPLATE: - serviceImpl.createTagTemplate( - (com.google.cloud.datacatalog.v1.CreateTagTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TAG_TEMPLATE: - serviceImpl.getTagTemplate( - (com.google.cloud.datacatalog.v1.GetTagTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_TAG_TEMPLATE: - serviceImpl.updateTagTemplate( - (com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_TAG_TEMPLATE: - serviceImpl.deleteTagTemplate( - (com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TAG_TEMPLATE_FIELD: - serviceImpl.createTagTemplateField( - (com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_TAG_TEMPLATE_FIELD: - serviceImpl.updateTagTemplateField( - (com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RENAME_TAG_TEMPLATE_FIELD: - serviceImpl.renameTagTemplateField( - (com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RENAME_TAG_TEMPLATE_FIELD_ENUM_VALUE: - serviceImpl.renameTagTemplateFieldEnumValue( - (com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_TAG_TEMPLATE_FIELD: - serviceImpl.deleteTagTemplateField( - (com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TAG: - serviceImpl.createTag( - (com.google.cloud.datacatalog.v1.CreateTagRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_TAG: - serviceImpl.updateTag( - (com.google.cloud.datacatalog.v1.UpdateTagRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_TAG: - serviceImpl.deleteTag( - (com.google.cloud.datacatalog.v1.DeleteTagRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TAGS: - serviceImpl.listTags( - (com.google.cloud.datacatalog.v1.ListTagsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RECONCILE_TAGS: - serviceImpl.reconcileTags( - (com.google.cloud.datacatalog.v1.ReconcileTagsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_STAR_ENTRY: - serviceImpl.starEntry( - (com.google.cloud.datacatalog.v1.StarEntryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UNSTAR_ENTRY: - serviceImpl.unstarEntry( - (com.google.cloud.datacatalog.v1.UnstarEntryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_IMPORT_ENTRIES: - serviceImpl.importEntries( - (com.google.cloud.datacatalog.v1.ImportEntriesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_CONFIG: - serviceImpl.setConfig( - (com.google.cloud.datacatalog.v1.SetConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RETRIEVE_CONFIG: - serviceImpl.retrieveConfig( - (com.google.cloud.datacatalog.v1.RetrieveConfigRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RETRIEVE_EFFECTIVE_CONFIG: - serviceImpl.retrieveEffectiveConfig( - (com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) 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( - getSearchCatalogMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.SearchCatalogRequest, - com.google.cloud.datacatalog.v1.SearchCatalogResponse>( - service, METHODID_SEARCH_CATALOG))) - .addMethod( - getCreateEntryGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup>( - service, METHODID_CREATE_ENTRY_GROUP))) - .addMethod( - getGetEntryGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.GetEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup>(service, METHODID_GET_ENTRY_GROUP))) - .addMethod( - getUpdateEntryGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest, - com.google.cloud.datacatalog.v1.EntryGroup>( - service, METHODID_UPDATE_ENTRY_GROUP))) - .addMethod( - getDeleteEntryGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_ENTRY_GROUP))) - .addMethod( - getListEntryGroupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest, - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse>( - service, METHODID_LIST_ENTRY_GROUPS))) - .addMethod( - getCreateEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.CreateEntryRequest, - com.google.cloud.datacatalog.v1.Entry>(service, METHODID_CREATE_ENTRY))) - .addMethod( - getUpdateEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.UpdateEntryRequest, - com.google.cloud.datacatalog.v1.Entry>(service, METHODID_UPDATE_ENTRY))) - .addMethod( - getDeleteEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.DeleteEntryRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_ENTRY))) - .addMethod( - getGetEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.GetEntryRequest, - com.google.cloud.datacatalog.v1.Entry>(service, METHODID_GET_ENTRY))) - .addMethod( - getLookupEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.LookupEntryRequest, - com.google.cloud.datacatalog.v1.Entry>(service, METHODID_LOOKUP_ENTRY))) - .addMethod( - getListEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ListEntriesRequest, - com.google.cloud.datacatalog.v1.ListEntriesResponse>( - service, METHODID_LIST_ENTRIES))) - .addMethod( - getModifyEntryOverviewMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest, - com.google.cloud.datacatalog.v1.EntryOverview>( - service, METHODID_MODIFY_ENTRY_OVERVIEW))) - .addMethod( - getModifyEntryContactsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest, - com.google.cloud.datacatalog.v1.Contacts>( - service, METHODID_MODIFY_ENTRY_CONTACTS))) - .addMethod( - getCreateTagTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate>( - service, METHODID_CREATE_TAG_TEMPLATE))) - .addMethod( - getGetTagTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.GetTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate>( - service, METHODID_GET_TAG_TEMPLATE))) - .addMethod( - getUpdateTagTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest, - com.google.cloud.datacatalog.v1.TagTemplate>( - service, METHODID_UPDATE_TAG_TEMPLATE))) - .addMethod( - getDeleteTagTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_TAG_TEMPLATE))) - .addMethod( - getCreateTagTemplateFieldMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField>( - service, METHODID_CREATE_TAG_TEMPLATE_FIELD))) - .addMethod( - getUpdateTagTemplateFieldMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField>( - service, METHODID_UPDATE_TAG_TEMPLATE_FIELD))) - .addMethod( - getRenameTagTemplateFieldMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1.TagTemplateField>( - service, METHODID_RENAME_TAG_TEMPLATE_FIELD))) - .addMethod( - getRenameTagTemplateFieldEnumValueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest, - com.google.cloud.datacatalog.v1.TagTemplateField>( - service, METHODID_RENAME_TAG_TEMPLATE_FIELD_ENUM_VALUE))) - .addMethod( - getDeleteTagTemplateFieldMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_TAG_TEMPLATE_FIELD))) - .addMethod( - getCreateTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.CreateTagRequest, - com.google.cloud.datacatalog.v1.Tag>(service, METHODID_CREATE_TAG))) - .addMethod( - getUpdateTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.UpdateTagRequest, - com.google.cloud.datacatalog.v1.Tag>(service, METHODID_UPDATE_TAG))) - .addMethod( - getDeleteTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.DeleteTagRequest, com.google.protobuf.Empty>( - service, METHODID_DELETE_TAG))) - .addMethod( - getListTagsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ListTagsRequest, - com.google.cloud.datacatalog.v1.ListTagsResponse>(service, METHODID_LIST_TAGS))) - .addMethod( - getReconcileTagsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ReconcileTagsRequest, - com.google.longrunning.Operation>(service, METHODID_RECONCILE_TAGS))) - .addMethod( - getStarEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.StarEntryRequest, - com.google.cloud.datacatalog.v1.StarEntryResponse>( - service, METHODID_STAR_ENTRY))) - .addMethod( - getUnstarEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.UnstarEntryRequest, - com.google.cloud.datacatalog.v1.UnstarEntryResponse>( - service, METHODID_UNSTAR_ENTRY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_SET_IAM_POLICY))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_GET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - service, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getImportEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ImportEntriesRequest, - com.google.longrunning.Operation>(service, METHODID_IMPORT_ENTRIES))) - .addMethod( - getSetConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.SetConfigRequest, - com.google.cloud.datacatalog.v1.MigrationConfig>(service, METHODID_SET_CONFIG))) - .addMethod( - getRetrieveConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.RetrieveConfigRequest, - com.google.cloud.datacatalog.v1.OrganizationConfig>( - service, METHODID_RETRIEVE_CONFIG))) - .addMethod( - getRetrieveEffectiveConfigMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest, - com.google.cloud.datacatalog.v1.MigrationConfig>( - service, METHODID_RETRIEVE_EFFECTIVE_CONFIG))) - .build(); - } - - private abstract static class DataCatalogBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DataCatalogBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DataCatalog"); - } - } - - private static final class DataCatalogFileDescriptorSupplier - extends DataCatalogBaseDescriptorSupplier { - DataCatalogFileDescriptorSupplier() {} - } - - private static final class DataCatalogMethodDescriptorSupplier - extends DataCatalogBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - DataCatalogMethodDescriptorSupplier(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 (DataCatalogGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DataCatalogFileDescriptorSupplier()) - .addMethod(getSearchCatalogMethod()) - .addMethod(getCreateEntryGroupMethod()) - .addMethod(getGetEntryGroupMethod()) - .addMethod(getUpdateEntryGroupMethod()) - .addMethod(getDeleteEntryGroupMethod()) - .addMethod(getListEntryGroupsMethod()) - .addMethod(getCreateEntryMethod()) - .addMethod(getUpdateEntryMethod()) - .addMethod(getDeleteEntryMethod()) - .addMethod(getGetEntryMethod()) - .addMethod(getLookupEntryMethod()) - .addMethod(getListEntriesMethod()) - .addMethod(getModifyEntryOverviewMethod()) - .addMethod(getModifyEntryContactsMethod()) - .addMethod(getCreateTagTemplateMethod()) - .addMethod(getGetTagTemplateMethod()) - .addMethod(getUpdateTagTemplateMethod()) - .addMethod(getDeleteTagTemplateMethod()) - .addMethod(getCreateTagTemplateFieldMethod()) - .addMethod(getUpdateTagTemplateFieldMethod()) - .addMethod(getRenameTagTemplateFieldMethod()) - .addMethod(getRenameTagTemplateFieldEnumValueMethod()) - .addMethod(getDeleteTagTemplateFieldMethod()) - .addMethod(getCreateTagMethod()) - .addMethod(getUpdateTagMethod()) - .addMethod(getDeleteTagMethod()) - .addMethod(getListTagsMethod()) - .addMethod(getReconcileTagsMethod()) - .addMethod(getStarEntryMethod()) - .addMethod(getUnstarEntryMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getImportEntriesMethod()) - .addMethod(getSetConfigMethod()) - .addMethod(getRetrieveConfigMethod()) - .addMethod(getRetrieveEffectiveConfigMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java deleted file mode 100644 index af985172ab69..000000000000 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerGrpc.java +++ /dev/null @@ -1,2050 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.datacatalog.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Policy Tag Manager API service allows you to manage your policy tags and
- * taxonomies.
- * Policy tags are used to tag BigQuery columns and apply additional access
- * control policies. A taxonomy is a hierarchical grouping of policy tags that
- * classify data along a common axis.
- * 
- */ -@io.grpc.stub.annotations.GrpcGenerated -public final class PolicyTagManagerGrpc { - - private PolicyTagManagerGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.datacatalog.v1.PolicyTagManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getCreateTaxonomyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTaxonomy", - requestType = com.google.cloud.datacatalog.v1.CreateTaxonomyRequest.class, - responseType = com.google.cloud.datacatalog.v1.Taxonomy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getCreateTaxonomyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getCreateTaxonomyMethod; - if ((getCreateTaxonomyMethod = PolicyTagManagerGrpc.getCreateTaxonomyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getCreateTaxonomyMethod = PolicyTagManagerGrpc.getCreateTaxonomyMethod) == null) { - PolicyTagManagerGrpc.getCreateTaxonomyMethod = - getCreateTaxonomyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTaxonomy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("CreateTaxonomy")) - .build(); - } - } - } - return getCreateTaxonomyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest, com.google.protobuf.Empty> - getDeleteTaxonomyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTaxonomy", - requestType = com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest, com.google.protobuf.Empty> - getDeleteTaxonomyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest, com.google.protobuf.Empty> - getDeleteTaxonomyMethod; - if ((getDeleteTaxonomyMethod = PolicyTagManagerGrpc.getDeleteTaxonomyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getDeleteTaxonomyMethod = PolicyTagManagerGrpc.getDeleteTaxonomyMethod) == null) { - PolicyTagManagerGrpc.getDeleteTaxonomyMethod = - getDeleteTaxonomyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTaxonomy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("DeleteTaxonomy")) - .build(); - } - } - } - return getDeleteTaxonomyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getUpdateTaxonomyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTaxonomy", - requestType = com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest.class, - responseType = com.google.cloud.datacatalog.v1.Taxonomy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getUpdateTaxonomyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getUpdateTaxonomyMethod; - if ((getUpdateTaxonomyMethod = PolicyTagManagerGrpc.getUpdateTaxonomyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getUpdateTaxonomyMethod = PolicyTagManagerGrpc.getUpdateTaxonomyMethod) == null) { - PolicyTagManagerGrpc.getUpdateTaxonomyMethod = - getUpdateTaxonomyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTaxonomy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("UpdateTaxonomy")) - .build(); - } - } - } - return getUpdateTaxonomyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse> - getListTaxonomiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTaxonomies", - requestType = com.google.cloud.datacatalog.v1.ListTaxonomiesRequest.class, - responseType = com.google.cloud.datacatalog.v1.ListTaxonomiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse> - getListTaxonomiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse> - getListTaxonomiesMethod; - if ((getListTaxonomiesMethod = PolicyTagManagerGrpc.getListTaxonomiesMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getListTaxonomiesMethod = PolicyTagManagerGrpc.getListTaxonomiesMethod) == null) { - PolicyTagManagerGrpc.getListTaxonomiesMethod = - getListTaxonomiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTaxonomies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("ListTaxonomies")) - .build(); - } - } - } - return getListTaxonomiesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getGetTaxonomyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTaxonomy", - requestType = com.google.cloud.datacatalog.v1.GetTaxonomyRequest.class, - responseType = com.google.cloud.datacatalog.v1.Taxonomy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getGetTaxonomyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getGetTaxonomyMethod; - if ((getGetTaxonomyMethod = PolicyTagManagerGrpc.getGetTaxonomyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getGetTaxonomyMethod = PolicyTagManagerGrpc.getGetTaxonomyMethod) == null) { - PolicyTagManagerGrpc.getGetTaxonomyMethod = - getGetTaxonomyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTaxonomy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.GetTaxonomyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("GetTaxonomy")) - .build(); - } - } - } - return getGetTaxonomyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag> - getCreatePolicyTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePolicyTag", - requestType = com.google.cloud.datacatalog.v1.CreatePolicyTagRequest.class, - responseType = com.google.cloud.datacatalog.v1.PolicyTag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag> - getCreatePolicyTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag> - getCreatePolicyTagMethod; - if ((getCreatePolicyTagMethod = PolicyTagManagerGrpc.getCreatePolicyTagMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getCreatePolicyTagMethod = PolicyTagManagerGrpc.getCreatePolicyTagMethod) == null) { - PolicyTagManagerGrpc.getCreatePolicyTagMethod = - getCreatePolicyTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicyTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("CreatePolicyTag")) - .build(); - } - } - } - return getCreatePolicyTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest, com.google.protobuf.Empty> - getDeletePolicyTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePolicyTag", - requestType = com.google.cloud.datacatalog.v1.DeletePolicyTagRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest, com.google.protobuf.Empty> - getDeletePolicyTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest, com.google.protobuf.Empty> - getDeletePolicyTagMethod; - if ((getDeletePolicyTagMethod = PolicyTagManagerGrpc.getDeletePolicyTagMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getDeletePolicyTagMethod = PolicyTagManagerGrpc.getDeletePolicyTagMethod) == null) { - PolicyTagManagerGrpc.getDeletePolicyTagMethod = - getDeletePolicyTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicyTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("DeletePolicyTag")) - .build(); - } - } - } - return getDeletePolicyTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag> - getUpdatePolicyTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePolicyTag", - requestType = com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest.class, - responseType = com.google.cloud.datacatalog.v1.PolicyTag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag> - getUpdatePolicyTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag> - getUpdatePolicyTagMethod; - if ((getUpdatePolicyTagMethod = PolicyTagManagerGrpc.getUpdatePolicyTagMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getUpdatePolicyTagMethod = PolicyTagManagerGrpc.getUpdatePolicyTagMethod) == null) { - PolicyTagManagerGrpc.getUpdatePolicyTagMethod = - getUpdatePolicyTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicyTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("UpdatePolicyTag")) - .build(); - } - } - } - return getUpdatePolicyTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest, - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse> - getListPolicyTagsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPolicyTags", - requestType = com.google.cloud.datacatalog.v1.ListPolicyTagsRequest.class, - responseType = com.google.cloud.datacatalog.v1.ListPolicyTagsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest, - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse> - getListPolicyTagsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest, - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse> - getListPolicyTagsMethod; - if ((getListPolicyTagsMethod = PolicyTagManagerGrpc.getListPolicyTagsMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getListPolicyTagsMethod = PolicyTagManagerGrpc.getListPolicyTagsMethod) == null) { - PolicyTagManagerGrpc.getListPolicyTagsMethod = - getListPolicyTagsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicyTags")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("ListPolicyTags")) - .build(); - } - } - } - return getListPolicyTagsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetPolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag> - getGetPolicyTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicyTag", - requestType = com.google.cloud.datacatalog.v1.GetPolicyTagRequest.class, - responseType = com.google.cloud.datacatalog.v1.PolicyTag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetPolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag> - getGetPolicyTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.GetPolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag> - getGetPolicyTagMethod; - if ((getGetPolicyTagMethod = PolicyTagManagerGrpc.getGetPolicyTagMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getGetPolicyTagMethod = PolicyTagManagerGrpc.getGetPolicyTagMethod) == null) { - PolicyTagManagerGrpc.getGetPolicyTagMethod = - getGetPolicyTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicyTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.GetPolicyTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("GetPolicyTag")) - .build(); - } - } - } - return getGetPolicyTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = PolicyTagManagerGrpc.getGetIamPolicyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getGetIamPolicyMethod = PolicyTagManagerGrpc.getGetIamPolicyMethod) == null) { - PolicyTagManagerGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = PolicyTagManagerGrpc.getSetIamPolicyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getSetIamPolicyMethod = PolicyTagManagerGrpc.getSetIamPolicyMethod) == null) { - PolicyTagManagerGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = PolicyTagManagerGrpc.getTestIamPermissionsMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getTestIamPermissionsMethod = PolicyTagManagerGrpc.getTestIamPermissionsMethod) - == null) { - PolicyTagManagerGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static PolicyTagManagerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerStub(channel, callOptions); - } - }; - return PolicyTagManagerStub.newStub(factory, channel); - } - - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static PolicyTagManagerBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerBlockingV2Stub(channel, callOptions); - } - }; - return PolicyTagManagerBlockingV2Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PolicyTagManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerBlockingStub(channel, callOptions); - } - }; - return PolicyTagManagerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PolicyTagManagerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerFutureStub(channel, callOptions); - } - }; - return PolicyTagManagerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Policy Tag Manager API service allows you to manage your policy tags and
-   * taxonomies.
-   * Policy tags are used to tag BigQuery columns and apply additional access
-   * control policies. A taxonomy is a hierarchical grouping of policy tags that
-   * classify data along a common axis.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a taxonomy in a specified project.
-     * The taxonomy is initially empty, that is, it doesn't contain policy tags.
-     * 
- */ - default void createTaxonomy( - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTaxonomyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a taxonomy, including all policy tags in this
-     * taxonomy, their associated policies, and the policy tags references from
-     * BigQuery columns.
-     * 
- */ - default void deleteTaxonomy( - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTaxonomyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a taxonomy, including its display name,
-     * description, and activated policy types.
-     * 
- */ - default void updateTaxonomy( - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTaxonomyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all taxonomies in a project in a particular location that you
-     * have a permission to view.
-     * 
- */ - default void listTaxonomies( - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTaxonomiesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a taxonomy.
-     * 
- */ - default void getTaxonomy( - com.google.cloud.datacatalog.v1.GetTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetTaxonomyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a policy tag in a taxonomy.
-     * 
- */ - default void createPolicyTag( - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePolicyTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a policy tag together with the following:
-     * * All of its descendant policy tags, if any
-     * * Policies associated with the policy tag and its descendants
-     * * References from BigQuery table schema of the policy tag and its
-     *   descendants
-     * 
- */ - default void deletePolicyTag( - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePolicyTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a policy tag, including its display
-     * name, description, and parent policy tag.
-     * 
- */ - default void updatePolicyTag( - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePolicyTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all policy tags in a taxonomy.
-     * 
- */ - default void listPolicyTags( - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPolicyTagsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a policy tag.
-     * 
- */ - default void getPolicyTag( - com.google.cloud.datacatalog.v1.GetPolicyTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPolicyTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the IAM policy for a policy tag or a taxonomy.
-     * 
- */ - default void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the IAM policy for a policy tag or a taxonomy.
-     * 
- */ - default void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns your permissions on a specified policy tag or
-     * taxonomy.
-     * 
- */ - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service PolicyTagManager. - * - *
-   * Policy Tag Manager API service allows you to manage your policy tags and
-   * taxonomies.
-   * Policy tags are used to tag BigQuery columns and apply additional access
-   * control policies. A taxonomy is a hierarchical grouping of policy tags that
-   * classify data along a common axis.
-   * 
- */ - public abstract static class PolicyTagManagerImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return PolicyTagManagerGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service PolicyTagManager. - * - *
-   * Policy Tag Manager API service allows you to manage your policy tags and
-   * taxonomies.
-   * Policy tags are used to tag BigQuery columns and apply additional access
-   * control policies. A taxonomy is a hierarchical grouping of policy tags that
-   * classify data along a common axis.
-   * 
- */ - public static final class PolicyTagManagerStub - extends io.grpc.stub.AbstractAsyncStub { - private PolicyTagManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a taxonomy in a specified project.
-     * The taxonomy is initially empty, that is, it doesn't contain policy tags.
-     * 
- */ - public void createTaxonomy( - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTaxonomyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a taxonomy, including all policy tags in this
-     * taxonomy, their associated policies, and the policy tags references from
-     * BigQuery columns.
-     * 
- */ - public void deleteTaxonomy( - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTaxonomyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a taxonomy, including its display name,
-     * description, and activated policy types.
-     * 
- */ - public void updateTaxonomy( - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTaxonomyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all taxonomies in a project in a particular location that you
-     * have a permission to view.
-     * 
- */ - public void listTaxonomies( - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTaxonomiesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a taxonomy.
-     * 
- */ - public void getTaxonomy( - com.google.cloud.datacatalog.v1.GetTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTaxonomyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a policy tag in a taxonomy.
-     * 
- */ - public void createPolicyTag( - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePolicyTagMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a policy tag together with the following:
-     * * All of its descendant policy tags, if any
-     * * Policies associated with the policy tag and its descendants
-     * * References from BigQuery table schema of the policy tag and its
-     *   descendants
-     * 
- */ - public void deletePolicyTag( - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePolicyTagMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a policy tag, including its display
-     * name, description, and parent policy tag.
-     * 
- */ - public void updatePolicyTag( - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePolicyTagMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all policy tags in a taxonomy.
-     * 
- */ - public void listPolicyTags( - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPolicyTagsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a policy tag.
-     * 
- */ - public void getPolicyTag( - com.google.cloud.datacatalog.v1.GetPolicyTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyTagMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the IAM policy for a policy tag or a taxonomy.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the IAM policy for a policy tag or a taxonomy.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns your permissions on a specified policy tag or
-     * taxonomy.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service PolicyTagManager. - * - *
-   * Policy Tag Manager API service allows you to manage your policy tags and
-   * taxonomies.
-   * Policy tags are used to tag BigQuery columns and apply additional access
-   * control policies. A taxonomy is a hierarchical grouping of policy tags that
-   * classify data along a common axis.
-   * 
- */ - public static final class PolicyTagManagerBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private PolicyTagManagerBlockingV2Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerBlockingV2Stub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a taxonomy in a specified project.
-     * The taxonomy is initially empty, that is, it doesn't contain policy tags.
-     * 
- */ - public com.google.cloud.datacatalog.v1.Taxonomy createTaxonomy( - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a taxonomy, including all policy tags in this
-     * taxonomy, their associated policies, and the policy tags references from
-     * BigQuery columns.
-     * 
- */ - public com.google.protobuf.Empty deleteTaxonomy( - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a taxonomy, including its display name,
-     * description, and activated policy types.
-     * 
- */ - public com.google.cloud.datacatalog.v1.Taxonomy updateTaxonomy( - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all taxonomies in a project in a particular location that you
-     * have a permission to view.
-     * 
- */ - public com.google.cloud.datacatalog.v1.ListTaxonomiesResponse listTaxonomies( - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListTaxonomiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomy( - com.google.cloud.datacatalog.v1.GetTaxonomyRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a policy tag in a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1.PolicyTag createPolicyTag( - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreatePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a policy tag together with the following:
-     * * All of its descendant policy tags, if any
-     * * Policies associated with the policy tag and its descendants
-     * * References from BigQuery table schema of the policy tag and its
-     *   descendants
-     * 
- */ - public com.google.protobuf.Empty deletePolicyTag( - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeletePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a policy tag, including its display
-     * name, description, and parent policy tag.
-     * 
- */ - public com.google.cloud.datacatalog.v1.PolicyTag updatePolicyTag( - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdatePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all policy tags in a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1.ListPolicyTagsResponse listPolicyTags( - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListPolicyTagsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a policy tag.
-     * 
- */ - public com.google.cloud.datacatalog.v1.PolicyTag getPolicyTag( - com.google.cloud.datacatalog.v1.GetPolicyTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetPolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the IAM policy for a policy tag or a taxonomy.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the IAM policy for a policy tag or a taxonomy.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns your permissions on a specified policy tag or
-     * taxonomy.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service PolicyTagManager. - * - *
-   * Policy Tag Manager API service allows you to manage your policy tags and
-   * taxonomies.
-   * Policy tags are used to tag BigQuery columns and apply additional access
-   * control policies. A taxonomy is a hierarchical grouping of policy tags that
-   * classify data along a common axis.
-   * 
- */ - public static final class PolicyTagManagerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PolicyTagManagerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a taxonomy in a specified project.
-     * The taxonomy is initially empty, that is, it doesn't contain policy tags.
-     * 
- */ - public com.google.cloud.datacatalog.v1.Taxonomy createTaxonomy( - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a taxonomy, including all policy tags in this
-     * taxonomy, their associated policies, and the policy tags references from
-     * BigQuery columns.
-     * 
- */ - public com.google.protobuf.Empty deleteTaxonomy( - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a taxonomy, including its display name,
-     * description, and activated policy types.
-     * 
- */ - public com.google.cloud.datacatalog.v1.Taxonomy updateTaxonomy( - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all taxonomies in a project in a particular location that you
-     * have a permission to view.
-     * 
- */ - public com.google.cloud.datacatalog.v1.ListTaxonomiesResponse listTaxonomies( - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTaxonomiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomy( - com.google.cloud.datacatalog.v1.GetTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a policy tag in a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1.PolicyTag createPolicyTag( - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a policy tag together with the following:
-     * * All of its descendant policy tags, if any
-     * * Policies associated with the policy tag and its descendants
-     * * References from BigQuery table schema of the policy tag and its
-     *   descendants
-     * 
- */ - public com.google.protobuf.Empty deletePolicyTag( - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a policy tag, including its display
-     * name, description, and parent policy tag.
-     * 
- */ - public com.google.cloud.datacatalog.v1.PolicyTag updatePolicyTag( - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all policy tags in a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1.ListPolicyTagsResponse listPolicyTags( - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPolicyTagsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a policy tag.
-     * 
- */ - public com.google.cloud.datacatalog.v1.PolicyTag getPolicyTag( - com.google.cloud.datacatalog.v1.GetPolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the IAM policy for a policy tag or a taxonomy.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the IAM policy for a policy tag or a taxonomy.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns your permissions on a specified policy tag or
-     * taxonomy.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service PolicyTagManager. - * - *
-   * Policy Tag Manager API service allows you to manage your policy tags and
-   * taxonomies.
-   * Policy tags are used to tag BigQuery columns and apply additional access
-   * control policies. A taxonomy is a hierarchical grouping of policy tags that
-   * classify data along a common axis.
-   * 
- */ - public static final class PolicyTagManagerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PolicyTagManagerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a taxonomy in a specified project.
-     * The taxonomy is initially empty, that is, it doesn't contain policy tags.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.Taxonomy> - createTaxonomy(com.google.cloud.datacatalog.v1.CreateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTaxonomyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a taxonomy, including all policy tags in this
-     * taxonomy, their associated policies, and the policy tags references from
-     * BigQuery columns.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteTaxonomy(com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTaxonomyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a taxonomy, including its display name,
-     * description, and activated policy types.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.Taxonomy> - updateTaxonomy(com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTaxonomyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all taxonomies in a project in a particular location that you
-     * have a permission to view.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse> - listTaxonomies(com.google.cloud.datacatalog.v1.ListTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTaxonomiesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a taxonomy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.Taxonomy> - getTaxonomy(com.google.cloud.datacatalog.v1.GetTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTaxonomyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a policy tag in a taxonomy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.PolicyTag> - createPolicyTag(com.google.cloud.datacatalog.v1.CreatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePolicyTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a policy tag together with the following:
-     * * All of its descendant policy tags, if any
-     * * Policies associated with the policy tag and its descendants
-     * * References from BigQuery table schema of the policy tag and its
-     *   descendants
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePolicyTag(com.google.cloud.datacatalog.v1.DeletePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePolicyTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a policy tag, including its display
-     * name, description, and parent policy tag.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.PolicyTag> - updatePolicyTag(com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePolicyTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all policy tags in a taxonomy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse> - listPolicyTags(com.google.cloud.datacatalog.v1.ListPolicyTagsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPolicyTagsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a policy tag.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.PolicyTag> - getPolicyTag(com.google.cloud.datacatalog.v1.GetPolicyTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the IAM policy for a policy tag or a taxonomy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the IAM policy for a policy tag or a taxonomy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns your permissions on a specified policy tag or
-     * taxonomy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_TAXONOMY = 0; - private static final int METHODID_DELETE_TAXONOMY = 1; - private static final int METHODID_UPDATE_TAXONOMY = 2; - private static final int METHODID_LIST_TAXONOMIES = 3; - private static final int METHODID_GET_TAXONOMY = 4; - private static final int METHODID_CREATE_POLICY_TAG = 5; - private static final int METHODID_DELETE_POLICY_TAG = 6; - private static final int METHODID_UPDATE_POLICY_TAG = 7; - private static final int METHODID_LIST_POLICY_TAGS = 8; - private static final int METHODID_GET_POLICY_TAG = 9; - private static final int METHODID_GET_IAM_POLICY = 10; - private static final int METHODID_SET_IAM_POLICY = 11; - private static final int METHODID_TEST_IAM_PERMISSIONS = 12; - - 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_CREATE_TAXONOMY: - serviceImpl.createTaxonomy( - (com.google.cloud.datacatalog.v1.CreateTaxonomyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_TAXONOMY: - serviceImpl.deleteTaxonomy( - (com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_TAXONOMY: - serviceImpl.updateTaxonomy( - (com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_TAXONOMIES: - serviceImpl.listTaxonomies( - (com.google.cloud.datacatalog.v1.ListTaxonomiesRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TAXONOMY: - serviceImpl.getTaxonomy( - (com.google.cloud.datacatalog.v1.GetTaxonomyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_POLICY_TAG: - serviceImpl.createPolicyTag( - (com.google.cloud.datacatalog.v1.CreatePolicyTagRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_POLICY_TAG: - serviceImpl.deletePolicyTag( - (com.google.cloud.datacatalog.v1.DeletePolicyTagRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_POLICY_TAG: - serviceImpl.updatePolicyTag( - (com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_POLICY_TAGS: - serviceImpl.listPolicyTags( - (com.google.cloud.datacatalog.v1.ListPolicyTagsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_POLICY_TAG: - serviceImpl.getPolicyTag( - (com.google.cloud.datacatalog.v1.GetPolicyTagRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - 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( - getCreateTaxonomyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy>(service, METHODID_CREATE_TAXONOMY))) - .addMethod( - getDeleteTaxonomyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_TAXONOMY))) - .addMethod( - getUpdateTaxonomyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy>(service, METHODID_UPDATE_TAXONOMY))) - .addMethod( - getListTaxonomiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse>( - service, METHODID_LIST_TAXONOMIES))) - .addMethod( - getGetTaxonomyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.GetTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy>(service, METHODID_GET_TAXONOMY))) - .addMethod( - getCreatePolicyTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag>( - service, METHODID_CREATE_POLICY_TAG))) - .addMethod( - getDeletePolicyTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_POLICY_TAG))) - .addMethod( - getUpdatePolicyTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag>( - service, METHODID_UPDATE_POLICY_TAG))) - .addMethod( - getListPolicyTagsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest, - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse>( - service, METHODID_LIST_POLICY_TAGS))) - .addMethod( - getGetPolicyTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.GetPolicyTagRequest, - com.google.cloud.datacatalog.v1.PolicyTag>(service, METHODID_GET_POLICY_TAG))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - service, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - - private abstract static class PolicyTagManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PolicyTagManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("PolicyTagManager"); - } - } - - private static final class PolicyTagManagerFileDescriptorSupplier - extends PolicyTagManagerBaseDescriptorSupplier { - PolicyTagManagerFileDescriptorSupplier() {} - } - - private static final class PolicyTagManagerMethodDescriptorSupplier - extends PolicyTagManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - PolicyTagManagerMethodDescriptorSupplier(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 (PolicyTagManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PolicyTagManagerFileDescriptorSupplier()) - .addMethod(getCreateTaxonomyMethod()) - .addMethod(getDeleteTaxonomyMethod()) - .addMethod(getUpdateTaxonomyMethod()) - .addMethod(getListTaxonomiesMethod()) - .addMethod(getGetTaxonomyMethod()) - .addMethod(getCreatePolicyTagMethod()) - .addMethod(getDeletePolicyTagMethod()) - .addMethod(getUpdatePolicyTagMethod()) - .addMethod(getListPolicyTagsMethod()) - .addMethod(getGetPolicyTagMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java deleted file mode 100644 index 01a4bbd32a6d..000000000000 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationGrpc.java +++ /dev/null @@ -1,815 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.datacatalog.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Policy Tag Manager Serialization API service allows you to manipulate
- * your policy tags and taxonomies in a serialized format.
- * Taxonomy is a hierarchical group of policy tags.
- * 
- */ -@io.grpc.stub.annotations.GrpcGenerated -public final class PolicyTagManagerSerializationGrpc { - - private PolicyTagManagerSerializationGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.datacatalog.v1.PolicyTagManagerSerialization"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getReplaceTaxonomyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ReplaceTaxonomy", - requestType = com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest.class, - responseType = com.google.cloud.datacatalog.v1.Taxonomy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getReplaceTaxonomyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy> - getReplaceTaxonomyMethod; - if ((getReplaceTaxonomyMethod = PolicyTagManagerSerializationGrpc.getReplaceTaxonomyMethod) - == null) { - synchronized (PolicyTagManagerSerializationGrpc.class) { - if ((getReplaceTaxonomyMethod = PolicyTagManagerSerializationGrpc.getReplaceTaxonomyMethod) - == null) { - PolicyTagManagerSerializationGrpc.getReplaceTaxonomyMethod = - getReplaceTaxonomyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReplaceTaxonomy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerSerializationMethodDescriptorSupplier( - "ReplaceTaxonomy")) - .build(); - } - } - } - return getReplaceTaxonomyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse> - getImportTaxonomiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportTaxonomies", - requestType = com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest.class, - responseType = com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse> - getImportTaxonomiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse> - getImportTaxonomiesMethod; - if ((getImportTaxonomiesMethod = PolicyTagManagerSerializationGrpc.getImportTaxonomiesMethod) - == null) { - synchronized (PolicyTagManagerSerializationGrpc.class) { - if ((getImportTaxonomiesMethod = - PolicyTagManagerSerializationGrpc.getImportTaxonomiesMethod) - == null) { - PolicyTagManagerSerializationGrpc.getImportTaxonomiesMethod = - getImportTaxonomiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportTaxonomies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerSerializationMethodDescriptorSupplier( - "ImportTaxonomies")) - .build(); - } - } - } - return getImportTaxonomiesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse> - getExportTaxonomiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportTaxonomies", - requestType = com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest.class, - responseType = com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse> - getExportTaxonomiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse> - getExportTaxonomiesMethod; - if ((getExportTaxonomiesMethod = PolicyTagManagerSerializationGrpc.getExportTaxonomiesMethod) - == null) { - synchronized (PolicyTagManagerSerializationGrpc.class) { - if ((getExportTaxonomiesMethod = - PolicyTagManagerSerializationGrpc.getExportTaxonomiesMethod) - == null) { - PolicyTagManagerSerializationGrpc.getExportTaxonomiesMethod = - getExportTaxonomiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportTaxonomies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerSerializationMethodDescriptorSupplier( - "ExportTaxonomies")) - .build(); - } - } - } - return getExportTaxonomiesMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static PolicyTagManagerSerializationStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerSerializationStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationStub(channel, callOptions); - } - }; - return PolicyTagManagerSerializationStub.newStub(factory, channel); - } - - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static PolicyTagManagerSerializationBlockingV2Stub newBlockingV2Stub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerSerializationBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationBlockingV2Stub(channel, callOptions); - } - }; - return PolicyTagManagerSerializationBlockingV2Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PolicyTagManagerSerializationBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerSerializationBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationBlockingStub(channel, callOptions); - } - }; - return PolicyTagManagerSerializationBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PolicyTagManagerSerializationFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerSerializationFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationFutureStub(channel, callOptions); - } - }; - return PolicyTagManagerSerializationFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Policy Tag Manager Serialization API service allows you to manipulate
-   * your policy tags and taxonomies in a serialized format.
-   * Taxonomy is a hierarchical group of policy tags.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Replaces (updates) a taxonomy and all its policy tags.
-     * The taxonomy and its entire hierarchy of policy tags must be
-     * represented literally by `SerializedTaxonomy` and the nested
-     * `SerializedPolicyTag` messages.
-     * This operation automatically does the following:
-     * - Deletes the existing policy tags that are missing from the
-     *   `SerializedPolicyTag`.
-     * - Creates policy tags that don't have resource names. They are considered
-     *   new.
-     * - Updates policy tags with valid resources names accordingly.
-     * 
- */ - default void replaceTaxonomy( - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getReplaceTaxonomyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates new taxonomies (including their policy tags) in a given project
-     * by importing from inlined or cross-regional sources.
-     * For a cross-regional source, new taxonomies are created by copying
-     * from a source in another region.
-     * For an inlined source, taxonomies and policy tags are created in bulk using
-     * nested protocol buffer structures.
-     * 
- */ - default void importTaxonomies( - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportTaxonomiesMethod(), responseObserver); - } - - /** - * - * - *
-     * Exports taxonomies in the requested type and returns them,
-     * including their policy tags. The requested taxonomies must belong to the
-     * same project.
-     * This method generates `SerializedTaxonomy` protocol buffers with nested
-     * policy tags that can be used as input for `ImportTaxonomies` calls.
-     * 
- */ - default void exportTaxonomies( - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportTaxonomiesMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service PolicyTagManagerSerialization. - * - *
-   * Policy Tag Manager Serialization API service allows you to manipulate
-   * your policy tags and taxonomies in a serialized format.
-   * Taxonomy is a hierarchical group of policy tags.
-   * 
- */ - public abstract static class PolicyTagManagerSerializationImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return PolicyTagManagerSerializationGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service PolicyTagManagerSerialization. - * - *
-   * Policy Tag Manager Serialization API service allows you to manipulate
-   * your policy tags and taxonomies in a serialized format.
-   * Taxonomy is a hierarchical group of policy tags.
-   * 
- */ - public static final class PolicyTagManagerSerializationStub - extends io.grpc.stub.AbstractAsyncStub { - private PolicyTagManagerSerializationStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerSerializationStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationStub(channel, callOptions); - } - - /** - * - * - *
-     * Replaces (updates) a taxonomy and all its policy tags.
-     * The taxonomy and its entire hierarchy of policy tags must be
-     * represented literally by `SerializedTaxonomy` and the nested
-     * `SerializedPolicyTag` messages.
-     * This operation automatically does the following:
-     * - Deletes the existing policy tags that are missing from the
-     *   `SerializedPolicyTag`.
-     * - Creates policy tags that don't have resource names. They are considered
-     *   new.
-     * - Updates policy tags with valid resources names accordingly.
-     * 
- */ - public void replaceTaxonomy( - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getReplaceTaxonomyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates new taxonomies (including their policy tags) in a given project
-     * by importing from inlined or cross-regional sources.
-     * For a cross-regional source, new taxonomies are created by copying
-     * from a source in another region.
-     * For an inlined source, taxonomies and policy tags are created in bulk using
-     * nested protocol buffer structures.
-     * 
- */ - public void importTaxonomies( - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportTaxonomiesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Exports taxonomies in the requested type and returns them,
-     * including their policy tags. The requested taxonomies must belong to the
-     * same project.
-     * This method generates `SerializedTaxonomy` protocol buffers with nested
-     * policy tags that can be used as input for `ImportTaxonomies` calls.
-     * 
- */ - public void exportTaxonomies( - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportTaxonomiesMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service PolicyTagManagerSerialization. - * - *
-   * Policy Tag Manager Serialization API service allows you to manipulate
-   * your policy tags and taxonomies in a serialized format.
-   * Taxonomy is a hierarchical group of policy tags.
-   * 
- */ - public static final class PolicyTagManagerSerializationBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private PolicyTagManagerSerializationBlockingV2Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerSerializationBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationBlockingV2Stub(channel, callOptions); - } - - /** - * - * - *
-     * Replaces (updates) a taxonomy and all its policy tags.
-     * The taxonomy and its entire hierarchy of policy tags must be
-     * represented literally by `SerializedTaxonomy` and the nested
-     * `SerializedPolicyTag` messages.
-     * This operation automatically does the following:
-     * - Deletes the existing policy tags that are missing from the
-     *   `SerializedPolicyTag`.
-     * - Creates policy tags that don't have resource names. They are considered
-     *   new.
-     * - Updates policy tags with valid resources names accordingly.
-     * 
- */ - public com.google.cloud.datacatalog.v1.Taxonomy replaceTaxonomy( - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getReplaceTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates new taxonomies (including their policy tags) in a given project
-     * by importing from inlined or cross-regional sources.
-     * For a cross-regional source, new taxonomies are created by copying
-     * from a source in another region.
-     * For an inlined source, taxonomies and policy tags are created in bulk using
-     * nested protocol buffer structures.
-     * 
- */ - public com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse importTaxonomies( - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getImportTaxonomiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Exports taxonomies in the requested type and returns them,
-     * including their policy tags. The requested taxonomies must belong to the
-     * same project.
-     * This method generates `SerializedTaxonomy` protocol buffers with nested
-     * policy tags that can be used as input for `ImportTaxonomies` calls.
-     * 
- */ - public com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse exportTaxonomies( - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getExportTaxonomiesMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service - * PolicyTagManagerSerialization. - * - *
-   * Policy Tag Manager Serialization API service allows you to manipulate
-   * your policy tags and taxonomies in a serialized format.
-   * Taxonomy is a hierarchical group of policy tags.
-   * 
- */ - public static final class PolicyTagManagerSerializationBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PolicyTagManagerSerializationBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerSerializationBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Replaces (updates) a taxonomy and all its policy tags.
-     * The taxonomy and its entire hierarchy of policy tags must be
-     * represented literally by `SerializedTaxonomy` and the nested
-     * `SerializedPolicyTag` messages.
-     * This operation automatically does the following:
-     * - Deletes the existing policy tags that are missing from the
-     *   `SerializedPolicyTag`.
-     * - Creates policy tags that don't have resource names. They are considered
-     *   new.
-     * - Updates policy tags with valid resources names accordingly.
-     * 
- */ - public com.google.cloud.datacatalog.v1.Taxonomy replaceTaxonomy( - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getReplaceTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates new taxonomies (including their policy tags) in a given project
-     * by importing from inlined or cross-regional sources.
-     * For a cross-regional source, new taxonomies are created by copying
-     * from a source in another region.
-     * For an inlined source, taxonomies and policy tags are created in bulk using
-     * nested protocol buffer structures.
-     * 
- */ - public com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse importTaxonomies( - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportTaxonomiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Exports taxonomies in the requested type and returns them,
-     * including their policy tags. The requested taxonomies must belong to the
-     * same project.
-     * This method generates `SerializedTaxonomy` protocol buffers with nested
-     * policy tags that can be used as input for `ImportTaxonomies` calls.
-     * 
- */ - public com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse exportTaxonomies( - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportTaxonomiesMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * PolicyTagManagerSerialization. - * - *
-   * Policy Tag Manager Serialization API service allows you to manipulate
-   * your policy tags and taxonomies in a serialized format.
-   * Taxonomy is a hierarchical group of policy tags.
-   * 
- */ - public static final class PolicyTagManagerSerializationFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PolicyTagManagerSerializationFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerSerializationFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Replaces (updates) a taxonomy and all its policy tags.
-     * The taxonomy and its entire hierarchy of policy tags must be
-     * represented literally by `SerializedTaxonomy` and the nested
-     * `SerializedPolicyTag` messages.
-     * This operation automatically does the following:
-     * - Deletes the existing policy tags that are missing from the
-     *   `SerializedPolicyTag`.
-     * - Creates policy tags that don't have resource names. They are considered
-     *   new.
-     * - Updates policy tags with valid resources names accordingly.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.Taxonomy> - replaceTaxonomy(com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getReplaceTaxonomyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates new taxonomies (including their policy tags) in a given project
-     * by importing from inlined or cross-regional sources.
-     * For a cross-regional source, new taxonomies are created by copying
-     * from a source in another region.
-     * For an inlined source, taxonomies and policy tags are created in bulk using
-     * nested protocol buffer structures.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse> - importTaxonomies(com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportTaxonomiesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Exports taxonomies in the requested type and returns them,
-     * including their policy tags. The requested taxonomies must belong to the
-     * same project.
-     * This method generates `SerializedTaxonomy` protocol buffers with nested
-     * policy tags that can be used as input for `ImportTaxonomies` calls.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse> - exportTaxonomies(com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportTaxonomiesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_REPLACE_TAXONOMY = 0; - private static final int METHODID_IMPORT_TAXONOMIES = 1; - private static final int METHODID_EXPORT_TAXONOMIES = 2; - - 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_REPLACE_TAXONOMY: - serviceImpl.replaceTaxonomy( - (com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_IMPORT_TAXONOMIES: - serviceImpl.importTaxonomies( - (com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse>) - responseObserver); - break; - case METHODID_EXPORT_TAXONOMIES: - serviceImpl.exportTaxonomies( - (com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse>) - 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( - getReplaceTaxonomyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest, - com.google.cloud.datacatalog.v1.Taxonomy>(service, METHODID_REPLACE_TAXONOMY))) - .addMethod( - getImportTaxonomiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse>( - service, METHODID_IMPORT_TAXONOMIES))) - .addMethod( - getExportTaxonomiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest, - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse>( - service, METHODID_EXPORT_TAXONOMIES))) - .build(); - } - - private abstract static class PolicyTagManagerSerializationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PolicyTagManagerSerializationBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("PolicyTagManagerSerialization"); - } - } - - private static final class PolicyTagManagerSerializationFileDescriptorSupplier - extends PolicyTagManagerSerializationBaseDescriptorSupplier { - PolicyTagManagerSerializationFileDescriptorSupplier() {} - } - - private static final class PolicyTagManagerSerializationMethodDescriptorSupplier - extends PolicyTagManagerSerializationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - PolicyTagManagerSerializationMethodDescriptorSupplier(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 (PolicyTagManagerSerializationGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor( - new PolicyTagManagerSerializationFileDescriptorSupplier()) - .addMethod(getReplaceTaxonomyMethod()) - .addMethod(getImportTaxonomiesMethod()) - .addMethod(getExportTaxonomiesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml deleted file mode 100644 index 0514a3ba3bb2..000000000000 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/pom.xml +++ /dev/null @@ -1,45 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-cloud-datacatalog-v1beta1 - 1.102.0 - grpc-google-cloud-datacatalog-v1beta1 - GRPC library for grpc-google-cloud-datacatalog-v1beta1 - - com.google.cloud - google-cloud-datacatalog-parent - 1.102.0 - - - - io.grpc - grpc-api - - - io.grpc - grpc-stub - - - io.grpc - grpc-protobuf - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-cloud-datacatalog-v1beta1 - - - com.google.api.grpc - proto-google-iam-v1 - - - com.google.guava - guava - - - \ No newline at end of file diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java deleted file mode 100644 index edf4d37e87c2..000000000000 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogGrpc.java +++ /dev/null @@ -1,4712 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.datacatalog.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Deprecated: Please use Dataplex Catalog instead.
- * Data Catalog API service allows clients to discover, understand, and manage
- * their data.
- * 
- */ -@io.grpc.stub.annotations.GrpcGenerated -@java.lang.Deprecated -public final class DataCatalogGrpc { - - private DataCatalogGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.datacatalog.v1beta1.DataCatalog"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse> - getSearchCatalogMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SearchCatalog", - requestType = com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse> - getSearchCatalogMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse> - getSearchCatalogMethod; - if ((getSearchCatalogMethod = DataCatalogGrpc.getSearchCatalogMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getSearchCatalogMethod = DataCatalogGrpc.getSearchCatalogMethod) == null) { - DataCatalogGrpc.getSearchCatalogMethod = - getSearchCatalogMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SearchCatalog")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("SearchCatalog")) - .build(); - } - } - } - return getSearchCatalogMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup> - getCreateEntryGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEntryGroup", - requestType = com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.EntryGroup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup> - getCreateEntryGroupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup> - getCreateEntryGroupMethod; - if ((getCreateEntryGroupMethod = DataCatalogGrpc.getCreateEntryGroupMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getCreateEntryGroupMethod = DataCatalogGrpc.getCreateEntryGroupMethod) == null) { - DataCatalogGrpc.getCreateEntryGroupMethod = - getCreateEntryGroupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEntryGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("CreateEntryGroup")) - .build(); - } - } - } - return getCreateEntryGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup> - getUpdateEntryGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEntryGroup", - requestType = com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.EntryGroup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup> - getUpdateEntryGroupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup> - getUpdateEntryGroupMethod; - if ((getUpdateEntryGroupMethod = DataCatalogGrpc.getUpdateEntryGroupMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUpdateEntryGroupMethod = DataCatalogGrpc.getUpdateEntryGroupMethod) == null) { - DataCatalogGrpc.getUpdateEntryGroupMethod = - getUpdateEntryGroupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEntryGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("UpdateEntryGroup")) - .build(); - } - } - } - return getUpdateEntryGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup> - getGetEntryGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEntryGroup", - requestType = com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.EntryGroup.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup> - getGetEntryGroupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup> - getGetEntryGroupMethod; - if ((getGetEntryGroupMethod = DataCatalogGrpc.getGetEntryGroupMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getGetEntryGroupMethod = DataCatalogGrpc.getGetEntryGroupMethod) == null) { - DataCatalogGrpc.getGetEntryGroupMethod = - getGetEntryGroupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntryGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("GetEntryGroup")) - .build(); - } - } - } - return getGetEntryGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest, com.google.protobuf.Empty> - getDeleteEntryGroupMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEntryGroup", - requestType = com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest, com.google.protobuf.Empty> - getDeleteEntryGroupMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest, com.google.protobuf.Empty> - getDeleteEntryGroupMethod; - if ((getDeleteEntryGroupMethod = DataCatalogGrpc.getDeleteEntryGroupMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getDeleteEntryGroupMethod = DataCatalogGrpc.getDeleteEntryGroupMethod) == null) { - DataCatalogGrpc.getDeleteEntryGroupMethod = - getDeleteEntryGroupMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEntryGroup")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("DeleteEntryGroup")) - .build(); - } - } - } - return getDeleteEntryGroupMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest, - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse> - getListEntryGroupsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEntryGroups", - requestType = com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest, - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse> - getListEntryGroupsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest, - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse> - getListEntryGroupsMethod; - if ((getListEntryGroupsMethod = DataCatalogGrpc.getListEntryGroupsMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getListEntryGroupsMethod = DataCatalogGrpc.getListEntryGroupsMethod) == null) { - DataCatalogGrpc.getListEntryGroupsMethod = - getListEntryGroupsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEntryGroups")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("ListEntryGroups")) - .build(); - } - } - } - return getListEntryGroupsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getCreateEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateEntry", - requestType = com.google.cloud.datacatalog.v1beta1.CreateEntryRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.Entry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getCreateEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getCreateEntryMethod; - if ((getCreateEntryMethod = DataCatalogGrpc.getCreateEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getCreateEntryMethod = DataCatalogGrpc.getCreateEntryMethod) == null) { - DataCatalogGrpc.getCreateEntryMethod = - getCreateEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("CreateEntry")) - .build(); - } - } - } - return getCreateEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getUpdateEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateEntry", - requestType = com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.Entry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getUpdateEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getUpdateEntryMethod; - if ((getUpdateEntryMethod = DataCatalogGrpc.getUpdateEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUpdateEntryMethod = DataCatalogGrpc.getUpdateEntryMethod) == null) { - DataCatalogGrpc.getUpdateEntryMethod = - getUpdateEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("UpdateEntry")) - .build(); - } - } - } - return getUpdateEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest, com.google.protobuf.Empty> - getDeleteEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteEntry", - requestType = com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest, com.google.protobuf.Empty> - getDeleteEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest, com.google.protobuf.Empty> - getDeleteEntryMethod; - if ((getDeleteEntryMethod = DataCatalogGrpc.getDeleteEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getDeleteEntryMethod = DataCatalogGrpc.getDeleteEntryMethod) == null) { - DataCatalogGrpc.getDeleteEntryMethod = - getDeleteEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("DeleteEntry")) - .build(); - } - } - } - return getDeleteEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getGetEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetEntry", - requestType = com.google.cloud.datacatalog.v1beta1.GetEntryRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.Entry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getGetEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getGetEntryMethod; - if ((getGetEntryMethod = DataCatalogGrpc.getGetEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getGetEntryMethod = DataCatalogGrpc.getGetEntryMethod) == null) { - DataCatalogGrpc.getGetEntryMethod = - getGetEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.GetEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("GetEntry")) - .build(); - } - } - } - return getGetEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getLookupEntryMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LookupEntry", - requestType = com.google.cloud.datacatalog.v1beta1.LookupEntryRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.Entry.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getLookupEntryMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry> - getLookupEntryMethod; - if ((getLookupEntryMethod = DataCatalogGrpc.getLookupEntryMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getLookupEntryMethod = DataCatalogGrpc.getLookupEntryMethod) == null) { - DataCatalogGrpc.getLookupEntryMethod = - getLookupEntryMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LookupEntry")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("LookupEntry")) - .build(); - } - } - } - return getLookupEntryMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest, - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse> - getListEntriesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListEntries", - requestType = com.google.cloud.datacatalog.v1beta1.ListEntriesRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.ListEntriesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest, - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse> - getListEntriesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest, - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse> - getListEntriesMethod; - if ((getListEntriesMethod = DataCatalogGrpc.getListEntriesMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getListEntriesMethod = DataCatalogGrpc.getListEntriesMethod) == null) { - DataCatalogGrpc.getListEntriesMethod = - getListEntriesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListEntries")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("ListEntries")) - .build(); - } - } - } - return getListEntriesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate> - getCreateTagTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTagTemplate", - requestType = com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.TagTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate> - getCreateTagTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate> - getCreateTagTemplateMethod; - if ((getCreateTagTemplateMethod = DataCatalogGrpc.getCreateTagTemplateMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getCreateTagTemplateMethod = DataCatalogGrpc.getCreateTagTemplateMethod) == null) { - DataCatalogGrpc.getCreateTagTemplateMethod = - getCreateTagTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTagTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.TagTemplate - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("CreateTagTemplate")) - .build(); - } - } - } - return getCreateTagTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate> - getGetTagTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTagTemplate", - requestType = com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.TagTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate> - getGetTagTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate> - getGetTagTemplateMethod; - if ((getGetTagTemplateMethod = DataCatalogGrpc.getGetTagTemplateMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getGetTagTemplateMethod = DataCatalogGrpc.getGetTagTemplateMethod) == null) { - DataCatalogGrpc.getGetTagTemplateMethod = - getGetTagTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTagTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.TagTemplate - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("GetTagTemplate")) - .build(); - } - } - } - return getGetTagTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate> - getUpdateTagTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTagTemplate", - requestType = com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.TagTemplate.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate> - getUpdateTagTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate> - getUpdateTagTemplateMethod; - if ((getUpdateTagTemplateMethod = DataCatalogGrpc.getUpdateTagTemplateMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUpdateTagTemplateMethod = DataCatalogGrpc.getUpdateTagTemplateMethod) == null) { - DataCatalogGrpc.getUpdateTagTemplateMethod = - getUpdateTagTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTagTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.TagTemplate - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("UpdateTagTemplate")) - .build(); - } - } - } - return getUpdateTagTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest, com.google.protobuf.Empty> - getDeleteTagTemplateMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTagTemplate", - requestType = com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest, com.google.protobuf.Empty> - getDeleteTagTemplateMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest, - com.google.protobuf.Empty> - getDeleteTagTemplateMethod; - if ((getDeleteTagTemplateMethod = DataCatalogGrpc.getDeleteTagTemplateMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getDeleteTagTemplateMethod = DataCatalogGrpc.getDeleteTagTemplateMethod) == null) { - DataCatalogGrpc.getDeleteTagTemplateMethod = - getDeleteTagTemplateMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTagTemplate")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("DeleteTagTemplate")) - .build(); - } - } - } - return getDeleteTagTemplateMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getCreateTagTemplateFieldMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTagTemplateField", - requestType = com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.TagTemplateField.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getCreateTagTemplateFieldMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getCreateTagTemplateFieldMethod; - if ((getCreateTagTemplateFieldMethod = DataCatalogGrpc.getCreateTagTemplateFieldMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getCreateTagTemplateFieldMethod = DataCatalogGrpc.getCreateTagTemplateFieldMethod) - == null) { - DataCatalogGrpc.getCreateTagTemplateFieldMethod = - getCreateTagTemplateFieldMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateTagTemplateField")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.TagTemplateField - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("CreateTagTemplateField")) - .build(); - } - } - } - return getCreateTagTemplateFieldMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getUpdateTagTemplateFieldMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTagTemplateField", - requestType = com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.TagTemplateField.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getUpdateTagTemplateFieldMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getUpdateTagTemplateFieldMethod; - if ((getUpdateTagTemplateFieldMethod = DataCatalogGrpc.getUpdateTagTemplateFieldMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUpdateTagTemplateFieldMethod = DataCatalogGrpc.getUpdateTagTemplateFieldMethod) - == null) { - DataCatalogGrpc.getUpdateTagTemplateFieldMethod = - getUpdateTagTemplateFieldMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateTagTemplateField")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.TagTemplateField - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("UpdateTagTemplateField")) - .build(); - } - } - } - return getUpdateTagTemplateFieldMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getRenameTagTemplateFieldMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RenameTagTemplateField", - requestType = com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.TagTemplateField.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getRenameTagTemplateFieldMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getRenameTagTemplateFieldMethod; - if ((getRenameTagTemplateFieldMethod = DataCatalogGrpc.getRenameTagTemplateFieldMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getRenameTagTemplateFieldMethod = DataCatalogGrpc.getRenameTagTemplateFieldMethod) - == null) { - DataCatalogGrpc.getRenameTagTemplateFieldMethod = - getRenameTagTemplateFieldMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RenameTagTemplateField")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.TagTemplateField - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("RenameTagTemplateField")) - .build(); - } - } - } - return getRenameTagTemplateFieldMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getRenameTagTemplateFieldEnumValueMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RenameTagTemplateFieldEnumValue", - requestType = - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.TagTemplateField.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getRenameTagTemplateFieldEnumValueMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - getRenameTagTemplateFieldEnumValueMethod; - if ((getRenameTagTemplateFieldEnumValueMethod = - DataCatalogGrpc.getRenameTagTemplateFieldEnumValueMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getRenameTagTemplateFieldEnumValueMethod = - DataCatalogGrpc.getRenameTagTemplateFieldEnumValueMethod) - == null) { - DataCatalogGrpc.getRenameTagTemplateFieldEnumValueMethod = - getRenameTagTemplateFieldEnumValueMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "RenameTagTemplateFieldEnumValue")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1 - .RenameTagTemplateFieldEnumValueRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.TagTemplateField - .getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier( - "RenameTagTemplateFieldEnumValue")) - .build(); - } - } - } - return getRenameTagTemplateFieldEnumValueMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest, - com.google.protobuf.Empty> - getDeleteTagTemplateFieldMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTagTemplateField", - requestType = com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest, - com.google.protobuf.Empty> - getDeleteTagTemplateFieldMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest, - com.google.protobuf.Empty> - getDeleteTagTemplateFieldMethod; - if ((getDeleteTagTemplateFieldMethod = DataCatalogGrpc.getDeleteTagTemplateFieldMethod) - == null) { - synchronized (DataCatalogGrpc.class) { - if ((getDeleteTagTemplateFieldMethod = DataCatalogGrpc.getDeleteTagTemplateFieldMethod) - == null) { - DataCatalogGrpc.getDeleteTagTemplateFieldMethod = - getDeleteTagTemplateFieldMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "DeleteTagTemplateField")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("DeleteTagTemplateField")) - .build(); - } - } - } - return getDeleteTagTemplateFieldMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTagRequest, - com.google.cloud.datacatalog.v1beta1.Tag> - getCreateTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTag", - requestType = com.google.cloud.datacatalog.v1beta1.CreateTagRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.Tag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTagRequest, - com.google.cloud.datacatalog.v1beta1.Tag> - getCreateTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTagRequest, - com.google.cloud.datacatalog.v1beta1.Tag> - getCreateTagMethod; - if ((getCreateTagMethod = DataCatalogGrpc.getCreateTagMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getCreateTagMethod = DataCatalogGrpc.getCreateTagMethod) == null) { - DataCatalogGrpc.getCreateTagMethod = - getCreateTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.CreateTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("CreateTag")) - .build(); - } - } - } - return getCreateTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest, - com.google.cloud.datacatalog.v1beta1.Tag> - getUpdateTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTag", - requestType = com.google.cloud.datacatalog.v1beta1.UpdateTagRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.Tag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest, - com.google.cloud.datacatalog.v1beta1.Tag> - getUpdateTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest, - com.google.cloud.datacatalog.v1beta1.Tag> - getUpdateTagMethod; - if ((getUpdateTagMethod = DataCatalogGrpc.getUpdateTagMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getUpdateTagMethod = DataCatalogGrpc.getUpdateTagMethod) == null) { - DataCatalogGrpc.getUpdateTagMethod = - getUpdateTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("UpdateTag")) - .build(); - } - } - } - return getUpdateTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest, com.google.protobuf.Empty> - getDeleteTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTag", - requestType = com.google.cloud.datacatalog.v1beta1.DeleteTagRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest, com.google.protobuf.Empty> - getDeleteTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest, com.google.protobuf.Empty> - getDeleteTagMethod; - if ((getDeleteTagMethod = DataCatalogGrpc.getDeleteTagMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getDeleteTagMethod = DataCatalogGrpc.getDeleteTagMethod) == null) { - DataCatalogGrpc.getDeleteTagMethod = - getDeleteTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("DeleteTag")) - .build(); - } - } - } - return getDeleteTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListTagsRequest, - com.google.cloud.datacatalog.v1beta1.ListTagsResponse> - getListTagsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTags", - requestType = com.google.cloud.datacatalog.v1beta1.ListTagsRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.ListTagsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListTagsRequest, - com.google.cloud.datacatalog.v1beta1.ListTagsResponse> - getListTagsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListTagsRequest, - com.google.cloud.datacatalog.v1beta1.ListTagsResponse> - getListTagsMethod; - if ((getListTagsMethod = DataCatalogGrpc.getListTagsMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getListTagsMethod = DataCatalogGrpc.getListTagsMethod) == null) { - DataCatalogGrpc.getListTagsMethod = - getListTagsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTags")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ListTagsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ListTagsResponse - .getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("ListTags")) - .build(); - } - } - } - return getListTagsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = DataCatalogGrpc.getSetIamPolicyMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getSetIamPolicyMethod = DataCatalogGrpc.getSetIamPolicyMethod) == null) { - DataCatalogGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = DataCatalogGrpc.getGetIamPolicyMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getGetIamPolicyMethod = DataCatalogGrpc.getGetIamPolicyMethod) == null) { - DataCatalogGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new DataCatalogMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = DataCatalogGrpc.getTestIamPermissionsMethod) == null) { - synchronized (DataCatalogGrpc.class) { - if ((getTestIamPermissionsMethod = DataCatalogGrpc.getTestIamPermissionsMethod) == null) { - DataCatalogGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new DataCatalogMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DataCatalogStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataCatalogStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogStub(channel, callOptions); - } - }; - return DataCatalogStub.newStub(factory, channel); - } - - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static DataCatalogBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataCatalogBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogBlockingV2Stub(channel, callOptions); - } - }; - return DataCatalogBlockingV2Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataCatalogBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataCatalogBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogBlockingStub(channel, callOptions); - } - }; - return DataCatalogBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataCatalogFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataCatalogFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogFutureStub(channel, callOptions); - } - }; - return DataCatalogFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - @java.lang.Deprecated - public interface AsyncService { - - /** - * - * - *
-     * Searches Data Catalog for multiple resources like entries, tags that
-     * match a query.
-     * This is a custom method
-     * (https://cloud.google.com/apis/design/custom_methods) and does not return
-     * the complete resource, only the resource identifier and high level
-     * fields. Clients can subsequently call `Get` methods.
-     * Note that Data Catalog search queries do not guarantee full recall. Query
-     * results that match your query may not be returned, even in subsequent
-     * result pages. Also note that results returned (and not returned) can vary
-     * across repeated search queries.
-     * See [Data Catalog Search
-     * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-     * for more information.
-     * 
- */ - @java.lang.Deprecated - default void searchCatalog( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchCatalogMethod(), responseObserver); - } - - /** - * - * - *
-     * A maximum of 10,000 entry groups may be created per organization across all
-     * locations.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `parent` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - default void createEntryGroup( - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEntryGroupMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an EntryGroup. The user should enable the Data Catalog API in the
-     * project identified by the `entry_group.name` parameter (see [Data Catalog
-     * Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - default void updateEntryGroup( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEntryGroupMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an EntryGroup.
-     * 
- */ - @java.lang.Deprecated - default void getEntryGroup( - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEntryGroupMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an EntryGroup. Only entry groups that do not contain entries can be
-     * deleted. Users should enable the Data Catalog API in the project
-     * identified by the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - default void deleteEntryGroup( - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEntryGroupMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists entry groups.
-     * 
- */ - @java.lang.Deprecated - default void listEntryGroups( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEntryGroupsMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates an entry. Only entries of 'FILESET' type or user-specified type can
-     * be created.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `parent` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * A maximum of 100,000 entries may be created per entry group.
-     * 
- */ - @java.lang.Deprecated - default void createEntry( - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing entry.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `entry.name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - default void updateEntry( - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes an existing entry. Only entries created through
-     * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry]
-     * method can be deleted.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - default void deleteEntry( - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets an entry.
-     * 
- */ - @java.lang.Deprecated - default void getEntry( - com.google.cloud.datacatalog.v1beta1.GetEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Get an entry by target resource name. This method allows clients to use
-     * the resource name from the source Google Cloud Platform service to get the
-     * Data Catalog Entry.
-     * 
- */ - @java.lang.Deprecated - default void lookupEntry( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getLookupEntryMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists entries.
-     * 
- */ - @java.lang.Deprecated - default void listEntries( - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListEntriesMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a tag template. The user should enable the Data Catalog API in
-     * the project identified by the `parent` parameter (see [Data Catalog
-     * Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - default void createTagTemplate( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTagTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a tag template.
-     * 
- */ - @java.lang.Deprecated - default void getTagTemplate( - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetTagTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a tag template. This method cannot be used to update the fields of
-     * a template. The tag template fields are represented as separate resources
-     * and should be updated using their own create/update/delete methods.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `tag_template.name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - default void updateTagTemplate( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTagTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a tag template and all tags using the template.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - default void deleteTagTemplate( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTagTemplateMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a field in a tag template. The user should enable the Data Catalog
-     * API in the project identified by the `parent` parameter (see
-     * [Data Catalog Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - default void createTagTemplateField( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTagTemplateFieldMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a field in a tag template. This method cannot be used to update the
-     * field type. Users should enable the Data Catalog API in the project
-     * identified by the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - default void updateTagTemplateField( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTagTemplateFieldMethod(), responseObserver); - } - - /** - * - * - *
-     * Renames a field in a tag template. The user should enable the Data Catalog
-     * API in the project identified by the `name` parameter (see [Data Catalog
-     * Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - default void renameTagTemplateField( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRenameTagTemplateFieldMethod(), responseObserver); - } - - /** - * - * - *
-     * Renames an enum value in a tag template. The enum values have to be unique
-     * within one enum field. Thus, an enum value cannot be renamed with a name
-     * used in any other enum value within the same enum field.
-     * 
- */ - @java.lang.Deprecated - default void renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRenameTagTemplateFieldEnumValueMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a field in a tag template and all uses of that field.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - default void deleteTagTemplateField( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTagTemplateFieldMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry].
-     * Note: The project identified by the `parent` parameter for the
-     * [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters)
-     * and the
-     * [tag
-     * template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters)
-     * used to create the tag must be from the same organization.
-     * 
- */ - @java.lang.Deprecated - default void createTag( - com.google.cloud.datacatalog.v1beta1.CreateTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates an existing tag.
-     * 
- */ - @java.lang.Deprecated - default void updateTag( - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a tag.
-     * 
- */ - @java.lang.Deprecated - default void deleteTag( - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry].
-     * The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response
-     * are lowercased.
-     * 
- */ - @java.lang.Deprecated - default void listTags( - com.google.cloud.datacatalog.v1beta1.ListTagsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListTagsMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * Callers must have following Google IAM permission
-     *   - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
-     *     templates.
-     *   - `datacatalog.entries.setIamPolicy` to set policies on entries.
-     *   - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - default void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource. A `NOT_FOUND` error
-     * is returned if the resource does not exist. An empty policy is returned
-     * if the resource exists but does not have a policy set on it.
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * Callers must have following Google IAM permission
-     *   - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
-     *     templates.
-     *   - `datacatalog.entries.getIamPolicy` to get policies on entries.
-     *   - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - default void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the caller's permissions on a resource.
-     * If the resource does not exist, an empty set of permissions is returned
-     * (We don't return a `NOT_FOUND` error).
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * A caller is not required to have Google IAM permission to make this
-     * request.
-     * 
- */ - @java.lang.Deprecated - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DataCatalog. - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - @java.lang.Deprecated - public abstract static class DataCatalogImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DataCatalogGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service DataCatalog. - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - @java.lang.Deprecated - public static final class DataCatalogStub - extends io.grpc.stub.AbstractAsyncStub { - private DataCatalogStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataCatalogStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches Data Catalog for multiple resources like entries, tags that
-     * match a query.
-     * This is a custom method
-     * (https://cloud.google.com/apis/design/custom_methods) and does not return
-     * the complete resource, only the resource identifier and high level
-     * fields. Clients can subsequently call `Get` methods.
-     * Note that Data Catalog search queries do not guarantee full recall. Query
-     * results that match your query may not be returned, even in subsequent
-     * result pages. Also note that results returned (and not returned) can vary
-     * across repeated search queries.
-     * See [Data Catalog Search
-     * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-     * for more information.
-     * 
- */ - @java.lang.Deprecated - public void searchCatalog( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchCatalogMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * A maximum of 10,000 entry groups may be created per organization across all
-     * locations.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `parent` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public void createEntryGroup( - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEntryGroupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an EntryGroup. The user should enable the Data Catalog API in the
-     * project identified by the `entry_group.name` parameter (see [Data Catalog
-     * Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public void updateEntryGroup( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEntryGroupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an EntryGroup.
-     * 
- */ - @java.lang.Deprecated - public void getEntryGroup( - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEntryGroupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an EntryGroup. Only entry groups that do not contain entries can be
-     * deleted. Users should enable the Data Catalog API in the project
-     * identified by the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public void deleteEntryGroup( - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEntryGroupMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists entry groups.
-     * 
- */ - @java.lang.Deprecated - public void listEntryGroups( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEntryGroupsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates an entry. Only entries of 'FILESET' type or user-specified type can
-     * be created.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `parent` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * A maximum of 100,000 entries may be created per entry group.
-     * 
- */ - @java.lang.Deprecated - public void createEntry( - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates an existing entry.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `entry.name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public void updateEntry( - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes an existing entry. Only entries created through
-     * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry]
-     * method can be deleted.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public void deleteEntry( - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets an entry.
-     * 
- */ - @java.lang.Deprecated - public void getEntry( - com.google.cloud.datacatalog.v1beta1.GetEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEntryMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Get an entry by target resource name. This method allows clients to use
-     * the resource name from the source Google Cloud Platform service to get the
-     * Data Catalog Entry.
-     * 
- */ - @java.lang.Deprecated - public void lookupEntry( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLookupEntryMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists entries.
-     * 
- */ - @java.lang.Deprecated - public void listEntries( - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListEntriesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a tag template. The user should enable the Data Catalog API in
-     * the project identified by the `parent` parameter (see [Data Catalog
-     * Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public void createTagTemplate( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTagTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a tag template.
-     * 
- */ - @java.lang.Deprecated - public void getTagTemplate( - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTagTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a tag template. This method cannot be used to update the fields of
-     * a template. The tag template fields are represented as separate resources
-     * and should be updated using their own create/update/delete methods.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `tag_template.name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public void updateTagTemplate( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTagTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a tag template and all tags using the template.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public void deleteTagTemplate( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTagTemplateMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a field in a tag template. The user should enable the Data Catalog
-     * API in the project identified by the `parent` parameter (see
-     * [Data Catalog Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public void createTagTemplateField( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTagTemplateFieldMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a field in a tag template. This method cannot be used to update the
-     * field type. Users should enable the Data Catalog API in the project
-     * identified by the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public void updateTagTemplateField( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTagTemplateFieldMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Renames a field in a tag template. The user should enable the Data Catalog
-     * API in the project identified by the `name` parameter (see [Data Catalog
-     * Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public void renameTagTemplateField( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRenameTagTemplateFieldMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Renames an enum value in a tag template. The enum values have to be unique
-     * within one enum field. Thus, an enum value cannot be renamed with a name
-     * used in any other enum value within the same enum field.
-     * 
- */ - @java.lang.Deprecated - public void renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRenameTagTemplateFieldEnumValueMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a field in a tag template and all uses of that field.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public void deleteTagTemplateField( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTagTemplateFieldMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry].
-     * Note: The project identified by the `parent` parameter for the
-     * [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters)
-     * and the
-     * [tag
-     * template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters)
-     * used to create the tag must be from the same organization.
-     * 
- */ - @java.lang.Deprecated - public void createTag( - com.google.cloud.datacatalog.v1beta1.CreateTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTagMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Updates an existing tag.
-     * 
- */ - @java.lang.Deprecated - public void updateTag( - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTagMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Deletes a tag.
-     * 
- */ - @java.lang.Deprecated - public void deleteTag( - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTagMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry].
-     * The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response
-     * are lowercased.
-     * 
- */ - @java.lang.Deprecated - public void listTags( - com.google.cloud.datacatalog.v1beta1.ListTagsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTagsMethod(), getCallOptions()), request, responseObserver); - } - - /** - * - * - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * Callers must have following Google IAM permission
-     *   - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
-     *     templates.
-     *   - `datacatalog.entries.setIamPolicy` to set policies on entries.
-     *   - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the access control policy for a resource. A `NOT_FOUND` error
-     * is returned if the resource does not exist. An empty policy is returned
-     * if the resource exists but does not have a policy set on it.
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * Callers must have following Google IAM permission
-     *   - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
-     *     templates.
-     *   - `datacatalog.entries.getIamPolicy` to get policies on entries.
-     *   - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the caller's permissions on a resource.
-     * If the resource does not exist, an empty set of permissions is returned
-     * (We don't return a `NOT_FOUND` error).
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * A caller is not required to have Google IAM permission to make this
-     * request.
-     * 
- */ - @java.lang.Deprecated - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DataCatalog. - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - @java.lang.Deprecated - public static final class DataCatalogBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private DataCatalogBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataCatalogBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogBlockingV2Stub(channel, callOptions); - } - - /** - * - * - *
-     * Searches Data Catalog for multiple resources like entries, tags that
-     * match a query.
-     * This is a custom method
-     * (https://cloud.google.com/apis/design/custom_methods) and does not return
-     * the complete resource, only the resource identifier and high level
-     * fields. Clients can subsequently call `Get` methods.
-     * Note that Data Catalog search queries do not guarantee full recall. Query
-     * results that match your query may not be returned, even in subsequent
-     * result pages. Also note that results returned (and not returned) can vary
-     * across repeated search queries.
-     * See [Data Catalog Search
-     * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-     * for more information.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse searchCatalog( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSearchCatalogMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * A maximum of 10,000 entry groups may be created per organization across all
-     * locations.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `parent` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.EntryGroup createEntryGroup( - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an EntryGroup. The user should enable the Data Catalog API in the
-     * project identified by the `entry_group.name` parameter (see [Data Catalog
-     * Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.EntryGroup updateEntryGroup( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an EntryGroup.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroup( - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an EntryGroup. Only entry groups that do not contain entries can be
-     * deleted. Users should enable the Data Catalog API in the project
-     * identified by the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteEntryGroup( - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse listEntryGroups( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListEntryGroupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an entry. Only entries of 'FILESET' type or user-specified type can
-     * be created.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `parent` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * A maximum of 100,000 entries may be created per entry group.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Entry createEntry( - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing entry.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `entry.name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Entry updateEntry( - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing entry. Only entries created through
-     * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry]
-     * method can be deleted.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteEntry( - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an entry.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Entry getEntry( - com.google.cloud.datacatalog.v1beta1.GetEntryRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get an entry by target resource name. This method allows clients to use
-     * the resource name from the source Google Cloud Platform service to get the
-     * Data Catalog Entry.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Entry lookupEntry( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getLookupEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists entries.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.ListEntriesResponse listEntries( - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListEntriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a tag template. The user should enable the Data Catalog API in
-     * the project identified by the `parent` parameter (see [Data Catalog
-     * Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplate createTagTemplate( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a tag template.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplate getTagTemplate( - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a tag template. This method cannot be used to update the fields of
-     * a template. The tag template fields are represented as separate resources
-     * and should be updated using their own create/update/delete methods.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `tag_template.name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplate updateTagTemplate( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a tag template and all tags using the template.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTagTemplate( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a field in a tag template. The user should enable the Data Catalog
-     * API in the project identified by the `parent` parameter (see
-     * [Data Catalog Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplateField createTagTemplateField( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a field in a tag template. This method cannot be used to update the
-     * field type. Users should enable the Data Catalog API in the project
-     * identified by the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplateField updateTagTemplateField( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renames a field in a tag template. The user should enable the Data Catalog
-     * API in the project identified by the `name` parameter (see [Data Catalog
-     * Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplateField renameTagTemplateField( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getRenameTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renames an enum value in a tag template. The enum values have to be unique
-     * within one enum field. Thus, an enum value cannot be renamed with a name
-     * used in any other enum value within the same enum field.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplateField renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getRenameTagTemplateFieldEnumValueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a field in a tag template and all uses of that field.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTagTemplateField( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry].
-     * Note: The project identified by the `parent` parameter for the
-     * [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters)
-     * and the
-     * [tag
-     * template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters)
-     * used to create the tag must be from the same organization.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Tag createTag( - com.google.cloud.datacatalog.v1beta1.CreateTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Tag updateTag( - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTag( - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry].
-     * The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response
-     * are lowercased.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.ListTagsResponse listTags( - com.google.cloud.datacatalog.v1beta1.ListTagsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListTagsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * Callers must have following Google IAM permission
-     *   - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
-     *     templates.
-     *   - `datacatalog.entries.setIamPolicy` to set policies on entries.
-     *   - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource. A `NOT_FOUND` error
-     * is returned if the resource does not exist. An empty policy is returned
-     * if the resource exists but does not have a policy set on it.
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * Callers must have following Google IAM permission
-     *   - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
-     *     templates.
-     *   - `datacatalog.entries.getIamPolicy` to get policies on entries.
-     *   - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the caller's permissions on a resource.
-     * If the resource does not exist, an empty set of permissions is returned
-     * (We don't return a `NOT_FOUND` error).
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * A caller is not required to have Google IAM permission to make this
-     * request.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service DataCatalog. - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - @java.lang.Deprecated - public static final class DataCatalogBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DataCatalogBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataCatalogBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches Data Catalog for multiple resources like entries, tags that
-     * match a query.
-     * This is a custom method
-     * (https://cloud.google.com/apis/design/custom_methods) and does not return
-     * the complete resource, only the resource identifier and high level
-     * fields. Clients can subsequently call `Get` methods.
-     * Note that Data Catalog search queries do not guarantee full recall. Query
-     * results that match your query may not be returned, even in subsequent
-     * result pages. Also note that results returned (and not returned) can vary
-     * across repeated search queries.
-     * See [Data Catalog Search
-     * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-     * for more information.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse searchCatalog( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchCatalogMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * A maximum of 10,000 entry groups may be created per organization across all
-     * locations.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `parent` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.EntryGroup createEntryGroup( - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an EntryGroup. The user should enable the Data Catalog API in the
-     * project identified by the `entry_group.name` parameter (see [Data Catalog
-     * Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.EntryGroup updateEntryGroup( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an EntryGroup.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroup( - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an EntryGroup. Only entry groups that do not contain entries can be
-     * deleted. Users should enable the Data Catalog API in the project
-     * identified by the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteEntryGroup( - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEntryGroupMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse listEntryGroups( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEntryGroupsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates an entry. Only entries of 'FILESET' type or user-specified type can
-     * be created.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `parent` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * A maximum of 100,000 entries may be created per entry group.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Entry createEntry( - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing entry.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `entry.name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Entry updateEntry( - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes an existing entry. Only entries created through
-     * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry]
-     * method can be deleted.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteEntry( - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets an entry.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Entry getEntry( - com.google.cloud.datacatalog.v1beta1.GetEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Get an entry by target resource name. This method allows clients to use
-     * the resource name from the source Google Cloud Platform service to get the
-     * Data Catalog Entry.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Entry lookupEntry( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLookupEntryMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists entries.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.ListEntriesResponse listEntries( - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListEntriesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a tag template. The user should enable the Data Catalog API in
-     * the project identified by the `parent` parameter (see [Data Catalog
-     * Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplate createTagTemplate( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a tag template.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplate getTagTemplate( - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a tag template. This method cannot be used to update the fields of
-     * a template. The tag template fields are represented as separate resources
-     * and should be updated using their own create/update/delete methods.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `tag_template.name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplate updateTagTemplate( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a tag template and all tags using the template.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTagTemplate( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTagTemplateMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a field in a tag template. The user should enable the Data Catalog
-     * API in the project identified by the `parent` parameter (see
-     * [Data Catalog Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplateField createTagTemplateField( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a field in a tag template. This method cannot be used to update the
-     * field type. Users should enable the Data Catalog API in the project
-     * identified by the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplateField updateTagTemplateField( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renames a field in a tag template. The user should enable the Data Catalog
-     * API in the project identified by the `name` parameter (see [Data Catalog
-     * Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplateField renameTagTemplateField( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRenameTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Renames an enum value in a tag template. The enum values have to be unique
-     * within one enum field. Thus, an enum value cannot be renamed with a name
-     * used in any other enum value within the same enum field.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.TagTemplateField renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRenameTagTemplateFieldEnumValueMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a field in a tag template and all uses of that field.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTagTemplateField( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTagTemplateFieldMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry].
-     * Note: The project identified by the `parent` parameter for the
-     * [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters)
-     * and the
-     * [tag
-     * template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters)
-     * used to create the tag must be from the same organization.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Tag createTag( - com.google.cloud.datacatalog.v1beta1.CreateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates an existing tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.Tag updateTag( - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.protobuf.Empty deleteTag( - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry].
-     * The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response
-     * are lowercased.
-     * 
- */ - @java.lang.Deprecated - public com.google.cloud.datacatalog.v1beta1.ListTagsResponse listTags( - com.google.cloud.datacatalog.v1beta1.ListTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTagsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * Callers must have following Google IAM permission
-     *   - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
-     *     templates.
-     *   - `datacatalog.entries.setIamPolicy` to set policies on entries.
-     *   - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource. A `NOT_FOUND` error
-     * is returned if the resource does not exist. An empty policy is returned
-     * if the resource exists but does not have a policy set on it.
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * Callers must have following Google IAM permission
-     *   - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
-     *     templates.
-     *   - `datacatalog.entries.getIamPolicy` to get policies on entries.
-     *   - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the caller's permissions on a resource.
-     * If the resource does not exist, an empty set of permissions is returned
-     * (We don't return a `NOT_FOUND` error).
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * A caller is not required to have Google IAM permission to make this
-     * request.
-     * 
- */ - @java.lang.Deprecated - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DataCatalog. - * - *
-   * Deprecated: Please use Dataplex Catalog instead.
-   * Data Catalog API service allows clients to discover, understand, and manage
-   * their data.
-   * 
- */ - @java.lang.Deprecated - public static final class DataCatalogFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataCatalogFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataCatalogFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataCatalogFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Searches Data Catalog for multiple resources like entries, tags that
-     * match a query.
-     * This is a custom method
-     * (https://cloud.google.com/apis/design/custom_methods) and does not return
-     * the complete resource, only the resource identifier and high level
-     * fields. Clients can subsequently call `Get` methods.
-     * Note that Data Catalog search queries do not guarantee full recall. Query
-     * results that match your query may not be returned, even in subsequent
-     * result pages. Also note that results returned (and not returned) can vary
-     * across repeated search queries.
-     * See [Data Catalog Search
-     * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-     * for more information.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse> - searchCatalog(com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchCatalogMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * A maximum of 10,000 entry groups may be created per organization across all
-     * locations.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `parent` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.EntryGroup> - createEntryGroup(com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEntryGroupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an EntryGroup. The user should enable the Data Catalog API in the
-     * project identified by the `entry_group.name` parameter (see [Data Catalog
-     * Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.EntryGroup> - updateEntryGroup(com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEntryGroupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an EntryGroup.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.EntryGroup> - getEntryGroup(com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEntryGroupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an EntryGroup. Only entry groups that do not contain entries can be
-     * deleted. Users should enable the Data Catalog API in the project
-     * identified by the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - deleteEntryGroup(com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEntryGroupMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse> - listEntryGroups(com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEntryGroupsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates an entry. Only entries of 'FILESET' type or user-specified type can
-     * be created.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `parent` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * A maximum of 100,000 entries may be created per entry group.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.Entry> - createEntry(com.google.cloud.datacatalog.v1beta1.CreateEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing entry.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `entry.name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.Entry> - updateEntry(com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes an existing entry. Only entries created through
-     * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry]
-     * method can be deleted.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - deleteEntry(com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets an entry.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.Entry> - getEntry(com.google.cloud.datacatalog.v1beta1.GetEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Get an entry by target resource name. This method allows clients to use
-     * the resource name from the source Google Cloud Platform service to get the
-     * Data Catalog Entry.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.Entry> - lookupEntry(com.google.cloud.datacatalog.v1beta1.LookupEntryRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLookupEntryMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists entries.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse> - listEntries(com.google.cloud.datacatalog.v1beta1.ListEntriesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListEntriesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a tag template. The user should enable the Data Catalog API in
-     * the project identified by the `parent` parameter (see [Data Catalog
-     * Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.TagTemplate> - createTagTemplate(com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTagTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a tag template.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.TagTemplate> - getTagTemplate(com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTagTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a tag template. This method cannot be used to update the fields of
-     * a template. The tag template fields are represented as separate resources
-     * and should be updated using their own create/update/delete methods.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `tag_template.name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.TagTemplate> - updateTagTemplate(com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTagTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a tag template and all tags using the template.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - deleteTagTemplate(com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTagTemplateMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a field in a tag template. The user should enable the Data Catalog
-     * API in the project identified by the `parent` parameter (see
-     * [Data Catalog Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - createTagTemplateField( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTagTemplateFieldMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a field in a tag template. This method cannot be used to update the
-     * field type. Users should enable the Data Catalog API in the project
-     * identified by the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - updateTagTemplateField( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTagTemplateFieldMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Renames a field in a tag template. The user should enable the Data Catalog
-     * API in the project identified by the `name` parameter (see [Data Catalog
-     * Resource
-     * Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
-     * for more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - renameTagTemplateField( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRenameTagTemplateFieldMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Renames an enum value in a tag template. The enum values have to be unique
-     * within one enum field. Thus, an enum value cannot be renamed with a name
-     * used in any other enum value within the same enum field.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.TagTemplateField> - renameTagTemplateFieldEnumValue( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRenameTagTemplateFieldEnumValueMethod(), getCallOptions()), - request); - } - - /** - * - * - *
-     * Deletes a field in a tag template and all uses of that field.
-     * Users should enable the Data Catalog API in the project identified by
-     * the `name` parameter (see [Data Catalog Resource Project]
-     * (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
-     * more information).
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - deleteTagTemplateField( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTagTemplateFieldMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry].
-     * Note: The project identified by the `parent` parameter for the
-     * [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters)
-     * and the
-     * [tag
-     * template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters)
-     * used to create the tag must be from the same organization.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.Tag> - createTag(com.google.cloud.datacatalog.v1beta1.CreateTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates an existing tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.Tag> - updateTag(com.google.cloud.datacatalog.v1beta1.UpdateTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a tag.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture deleteTag( - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry].
-     * The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response
-     * are lowercased.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.ListTagsResponse> - listTags(com.google.cloud.datacatalog.v1beta1.ListTagsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTagsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the access control policy for a resource. Replaces any existing
-     * policy.
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * Callers must have following Google IAM permission
-     *   - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag
-     *     templates.
-     *   - `datacatalog.entries.setIamPolicy` to set policies on entries.
-     *   - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the access control policy for a resource. A `NOT_FOUND` error
-     * is returned if the resource does not exist. An empty policy is returned
-     * if the resource exists but does not have a policy set on it.
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * Callers must have following Google IAM permission
-     *   - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag
-     *     templates.
-     *   - `datacatalog.entries.getIamPolicy` to get policies on entries.
-     *   - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the caller's permissions on a resource.
-     * If the resource does not exist, an empty set of permissions is returned
-     * (We don't return a `NOT_FOUND` error).
-     * Supported resources are:
-     *   - Tag templates.
-     *   - Entries.
-     *   - Entry groups.
-     * Note, this method cannot be used to manage policies for BigQuery, Pub/Sub
-     * and any external Google Cloud Platform resources synced to Data Catalog.
-     * A caller is not required to have Google IAM permission to make this
-     * request.
-     * 
- */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SEARCH_CATALOG = 0; - private static final int METHODID_CREATE_ENTRY_GROUP = 1; - private static final int METHODID_UPDATE_ENTRY_GROUP = 2; - private static final int METHODID_GET_ENTRY_GROUP = 3; - private static final int METHODID_DELETE_ENTRY_GROUP = 4; - private static final int METHODID_LIST_ENTRY_GROUPS = 5; - private static final int METHODID_CREATE_ENTRY = 6; - private static final int METHODID_UPDATE_ENTRY = 7; - private static final int METHODID_DELETE_ENTRY = 8; - private static final int METHODID_GET_ENTRY = 9; - private static final int METHODID_LOOKUP_ENTRY = 10; - private static final int METHODID_LIST_ENTRIES = 11; - private static final int METHODID_CREATE_TAG_TEMPLATE = 12; - private static final int METHODID_GET_TAG_TEMPLATE = 13; - private static final int METHODID_UPDATE_TAG_TEMPLATE = 14; - private static final int METHODID_DELETE_TAG_TEMPLATE = 15; - private static final int METHODID_CREATE_TAG_TEMPLATE_FIELD = 16; - private static final int METHODID_UPDATE_TAG_TEMPLATE_FIELD = 17; - private static final int METHODID_RENAME_TAG_TEMPLATE_FIELD = 18; - private static final int METHODID_RENAME_TAG_TEMPLATE_FIELD_ENUM_VALUE = 19; - private static final int METHODID_DELETE_TAG_TEMPLATE_FIELD = 20; - private static final int METHODID_CREATE_TAG = 21; - private static final int METHODID_UPDATE_TAG = 22; - private static final int METHODID_DELETE_TAG = 23; - private static final int METHODID_LIST_TAGS = 24; - private static final int METHODID_SET_IAM_POLICY = 25; - private static final int METHODID_GET_IAM_POLICY = 26; - private static final int METHODID_TEST_IAM_PERMISSIONS = 27; - - 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_SEARCH_CATALOG: - serviceImpl.searchCatalog( - (com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse>) - responseObserver); - break; - case METHODID_CREATE_ENTRY_GROUP: - serviceImpl.createEntryGroup( - (com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_ENTRY_GROUP: - serviceImpl.updateEntryGroup( - (com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_ENTRY_GROUP: - serviceImpl.getEntryGroup( - (com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_ENTRY_GROUP: - serviceImpl.deleteEntryGroup( - (com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ENTRY_GROUPS: - serviceImpl.listEntryGroups( - (com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse>) - responseObserver); - break; - case METHODID_CREATE_ENTRY: - serviceImpl.createEntry( - (com.google.cloud.datacatalog.v1beta1.CreateEntryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_ENTRY: - serviceImpl.updateEntry( - (com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_ENTRY: - serviceImpl.deleteEntry( - (com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ENTRY: - serviceImpl.getEntry( - (com.google.cloud.datacatalog.v1beta1.GetEntryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LOOKUP_ENTRY: - serviceImpl.lookupEntry( - (com.google.cloud.datacatalog.v1beta1.LookupEntryRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_ENTRIES: - serviceImpl.listEntries( - (com.google.cloud.datacatalog.v1beta1.ListEntriesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse>) - responseObserver); - break; - case METHODID_CREATE_TAG_TEMPLATE: - serviceImpl.createTagTemplate( - (com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_TAG_TEMPLATE: - serviceImpl.getTagTemplate( - (com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_TAG_TEMPLATE: - serviceImpl.updateTagTemplate( - (com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_TAG_TEMPLATE: - serviceImpl.deleteTagTemplate( - (com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TAG_TEMPLATE_FIELD: - serviceImpl.createTagTemplateField( - (com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_TAG_TEMPLATE_FIELD: - serviceImpl.updateTagTemplateField( - (com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RENAME_TAG_TEMPLATE_FIELD: - serviceImpl.renameTagTemplateField( - (com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RENAME_TAG_TEMPLATE_FIELD_ENUM_VALUE: - serviceImpl.renameTagTemplateFieldEnumValue( - (com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_TAG_TEMPLATE_FIELD: - serviceImpl.deleteTagTemplateField( - (com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_TAG: - serviceImpl.createTag( - (com.google.cloud.datacatalog.v1beta1.CreateTagRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_UPDATE_TAG: - serviceImpl.updateTag( - (com.google.cloud.datacatalog.v1beta1.UpdateTagRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_TAG: - serviceImpl.deleteTag( - (com.google.cloud.datacatalog.v1beta1.DeleteTagRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_TAGS: - serviceImpl.listTags( - (com.google.cloud.datacatalog.v1beta1.ListTagsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - 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( - getSearchCatalogMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse>( - service, METHODID_SEARCH_CATALOG))) - .addMethod( - getCreateEntryGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup>( - service, METHODID_CREATE_ENTRY_GROUP))) - .addMethod( - getUpdateEntryGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup>( - service, METHODID_UPDATE_ENTRY_GROUP))) - .addMethod( - getGetEntryGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest, - com.google.cloud.datacatalog.v1beta1.EntryGroup>( - service, METHODID_GET_ENTRY_GROUP))) - .addMethod( - getDeleteEntryGroupMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_ENTRY_GROUP))) - .addMethod( - getListEntryGroupsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest, - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse>( - service, METHODID_LIST_ENTRY_GROUPS))) - .addMethod( - getCreateEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry>(service, METHODID_CREATE_ENTRY))) - .addMethod( - getUpdateEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry>(service, METHODID_UPDATE_ENTRY))) - .addMethod( - getDeleteEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_ENTRY))) - .addMethod( - getGetEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.GetEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry>(service, METHODID_GET_ENTRY))) - .addMethod( - getLookupEntryMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest, - com.google.cloud.datacatalog.v1beta1.Entry>(service, METHODID_LOOKUP_ENTRY))) - .addMethod( - getListEntriesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest, - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse>( - service, METHODID_LIST_ENTRIES))) - .addMethod( - getCreateTagTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate>( - service, METHODID_CREATE_TAG_TEMPLATE))) - .addMethod( - getGetTagTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate>( - service, METHODID_GET_TAG_TEMPLATE))) - .addMethod( - getUpdateTagTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplate>( - service, METHODID_UPDATE_TAG_TEMPLATE))) - .addMethod( - getDeleteTagTemplateMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_TAG_TEMPLATE))) - .addMethod( - getCreateTagTemplateFieldMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField>( - service, METHODID_CREATE_TAG_TEMPLATE_FIELD))) - .addMethod( - getUpdateTagTemplateFieldMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField>( - service, METHODID_UPDATE_TAG_TEMPLATE_FIELD))) - .addMethod( - getRenameTagTemplateFieldMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField>( - service, METHODID_RENAME_TAG_TEMPLATE_FIELD))) - .addMethod( - getRenameTagTemplateFieldEnumValueMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest, - com.google.cloud.datacatalog.v1beta1.TagTemplateField>( - service, METHODID_RENAME_TAG_TEMPLATE_FIELD_ENUM_VALUE))) - .addMethod( - getDeleteTagTemplateFieldMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_TAG_TEMPLATE_FIELD))) - .addMethod( - getCreateTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.CreateTagRequest, - com.google.cloud.datacatalog.v1beta1.Tag>(service, METHODID_CREATE_TAG))) - .addMethod( - getUpdateTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest, - com.google.cloud.datacatalog.v1beta1.Tag>(service, METHODID_UPDATE_TAG))) - .addMethod( - getDeleteTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_TAG))) - .addMethod( - getListTagsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.ListTagsRequest, - com.google.cloud.datacatalog.v1beta1.ListTagsResponse>( - service, METHODID_LIST_TAGS))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_SET_IAM_POLICY))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_GET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - service, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - - private abstract static class DataCatalogBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DataCatalogBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DataCatalog"); - } - } - - private static final class DataCatalogFileDescriptorSupplier - extends DataCatalogBaseDescriptorSupplier { - DataCatalogFileDescriptorSupplier() {} - } - - private static final class DataCatalogMethodDescriptorSupplier - extends DataCatalogBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - DataCatalogMethodDescriptorSupplier(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 (DataCatalogGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DataCatalogFileDescriptorSupplier()) - .addMethod(getSearchCatalogMethod()) - .addMethod(getCreateEntryGroupMethod()) - .addMethod(getUpdateEntryGroupMethod()) - .addMethod(getGetEntryGroupMethod()) - .addMethod(getDeleteEntryGroupMethod()) - .addMethod(getListEntryGroupsMethod()) - .addMethod(getCreateEntryMethod()) - .addMethod(getUpdateEntryMethod()) - .addMethod(getDeleteEntryMethod()) - .addMethod(getGetEntryMethod()) - .addMethod(getLookupEntryMethod()) - .addMethod(getListEntriesMethod()) - .addMethod(getCreateTagTemplateMethod()) - .addMethod(getGetTagTemplateMethod()) - .addMethod(getUpdateTagTemplateMethod()) - .addMethod(getDeleteTagTemplateMethod()) - .addMethod(getCreateTagTemplateFieldMethod()) - .addMethod(getUpdateTagTemplateFieldMethod()) - .addMethod(getRenameTagTemplateFieldMethod()) - .addMethod(getRenameTagTemplateFieldEnumValueMethod()) - .addMethod(getDeleteTagTemplateFieldMethod()) - .addMethod(getCreateTagMethod()) - .addMethod(getUpdateTagMethod()) - .addMethod(getDeleteTagMethod()) - .addMethod(getListTagsMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java deleted file mode 100644 index be4fdf7e1eea..000000000000 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerGrpc.java +++ /dev/null @@ -1,2007 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.datacatalog.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * The policy tag manager API service allows clients to manage their taxonomies
- * and policy tags.
- * 
- */ -@io.grpc.stub.annotations.GrpcGenerated -public final class PolicyTagManagerGrpc { - - private PolicyTagManagerGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.datacatalog.v1beta1.PolicyTagManager"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy> - getCreateTaxonomyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateTaxonomy", - requestType = com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.Taxonomy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy> - getCreateTaxonomyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy> - getCreateTaxonomyMethod; - if ((getCreateTaxonomyMethod = PolicyTagManagerGrpc.getCreateTaxonomyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getCreateTaxonomyMethod = PolicyTagManagerGrpc.getCreateTaxonomyMethod) == null) { - PolicyTagManagerGrpc.getCreateTaxonomyMethod = - getCreateTaxonomyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateTaxonomy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("CreateTaxonomy")) - .build(); - } - } - } - return getCreateTaxonomyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest, com.google.protobuf.Empty> - getDeleteTaxonomyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteTaxonomy", - requestType = com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest, com.google.protobuf.Empty> - getDeleteTaxonomyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest, com.google.protobuf.Empty> - getDeleteTaxonomyMethod; - if ((getDeleteTaxonomyMethod = PolicyTagManagerGrpc.getDeleteTaxonomyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getDeleteTaxonomyMethod = PolicyTagManagerGrpc.getDeleteTaxonomyMethod) == null) { - PolicyTagManagerGrpc.getDeleteTaxonomyMethod = - getDeleteTaxonomyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteTaxonomy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("DeleteTaxonomy")) - .build(); - } - } - } - return getDeleteTaxonomyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy> - getUpdateTaxonomyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateTaxonomy", - requestType = com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.Taxonomy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy> - getUpdateTaxonomyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy> - getUpdateTaxonomyMethod; - if ((getUpdateTaxonomyMethod = PolicyTagManagerGrpc.getUpdateTaxonomyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getUpdateTaxonomyMethod = PolicyTagManagerGrpc.getUpdateTaxonomyMethod) == null) { - PolicyTagManagerGrpc.getUpdateTaxonomyMethod = - getUpdateTaxonomyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateTaxonomy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("UpdateTaxonomy")) - .build(); - } - } - } - return getUpdateTaxonomyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse> - getListTaxonomiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListTaxonomies", - requestType = com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse> - getListTaxonomiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse> - getListTaxonomiesMethod; - if ((getListTaxonomiesMethod = PolicyTagManagerGrpc.getListTaxonomiesMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getListTaxonomiesMethod = PolicyTagManagerGrpc.getListTaxonomiesMethod) == null) { - PolicyTagManagerGrpc.getListTaxonomiesMethod = - getListTaxonomiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTaxonomies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("ListTaxonomies")) - .build(); - } - } - } - return getListTaxonomiesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy> - getGetTaxonomyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetTaxonomy", - requestType = com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.Taxonomy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy> - getGetTaxonomyMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy> - getGetTaxonomyMethod; - if ((getGetTaxonomyMethod = PolicyTagManagerGrpc.getGetTaxonomyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getGetTaxonomyMethod = PolicyTagManagerGrpc.getGetTaxonomyMethod) == null) { - PolicyTagManagerGrpc.getGetTaxonomyMethod = - getGetTaxonomyMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTaxonomy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("GetTaxonomy")) - .build(); - } - } - } - return getGetTaxonomyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag> - getCreatePolicyTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreatePolicyTag", - requestType = com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.PolicyTag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag> - getCreatePolicyTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag> - getCreatePolicyTagMethod; - if ((getCreatePolicyTagMethod = PolicyTagManagerGrpc.getCreatePolicyTagMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getCreatePolicyTagMethod = PolicyTagManagerGrpc.getCreatePolicyTagMethod) == null) { - PolicyTagManagerGrpc.getCreatePolicyTagMethod = - getCreatePolicyTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreatePolicyTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("CreatePolicyTag")) - .build(); - } - } - } - return getCreatePolicyTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest, com.google.protobuf.Empty> - getDeletePolicyTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeletePolicyTag", - requestType = com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest, com.google.protobuf.Empty> - getDeletePolicyTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest, com.google.protobuf.Empty> - getDeletePolicyTagMethod; - if ((getDeletePolicyTagMethod = PolicyTagManagerGrpc.getDeletePolicyTagMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getDeletePolicyTagMethod = PolicyTagManagerGrpc.getDeletePolicyTagMethod) == null) { - PolicyTagManagerGrpc.getDeletePolicyTagMethod = - getDeletePolicyTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeletePolicyTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("DeletePolicyTag")) - .build(); - } - } - } - return getDeletePolicyTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag> - getUpdatePolicyTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdatePolicyTag", - requestType = com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.PolicyTag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag> - getUpdatePolicyTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag> - getUpdatePolicyTagMethod; - if ((getUpdatePolicyTagMethod = PolicyTagManagerGrpc.getUpdatePolicyTagMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getUpdatePolicyTagMethod = PolicyTagManagerGrpc.getUpdatePolicyTagMethod) == null) { - PolicyTagManagerGrpc.getUpdatePolicyTagMethod = - getUpdatePolicyTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdatePolicyTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("UpdatePolicyTag")) - .build(); - } - } - } - return getUpdatePolicyTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest, - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse> - getListPolicyTagsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListPolicyTags", - requestType = com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest, - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse> - getListPolicyTagsMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest, - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse> - getListPolicyTagsMethod; - if ((getListPolicyTagsMethod = PolicyTagManagerGrpc.getListPolicyTagsMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getListPolicyTagsMethod = PolicyTagManagerGrpc.getListPolicyTagsMethod) == null) { - PolicyTagManagerGrpc.getListPolicyTagsMethod = - getListPolicyTagsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListPolicyTags")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("ListPolicyTags")) - .build(); - } - } - } - return getListPolicyTagsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag> - getGetPolicyTagMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetPolicyTag", - requestType = com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.PolicyTag.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag> - getGetPolicyTagMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag> - getGetPolicyTagMethod; - if ((getGetPolicyTagMethod = PolicyTagManagerGrpc.getGetPolicyTagMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getGetPolicyTagMethod = PolicyTagManagerGrpc.getGetPolicyTagMethod) == null) { - PolicyTagManagerGrpc.getGetPolicyTagMethod = - getGetPolicyTagMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetPolicyTag")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("GetPolicyTag")) - .build(); - } - } - } - return getGetPolicyTagMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> - getGetIamPolicyMethod() { - io.grpc.MethodDescriptor - getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = PolicyTagManagerGrpc.getGetIamPolicyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getGetIamPolicyMethod = PolicyTagManagerGrpc.getGetIamPolicyMethod) == null) { - PolicyTagManagerGrpc.getGetIamPolicyMethod = - getGetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.SetIamPolicyRequest, com.google.iam.v1.Policy> - getSetIamPolicyMethod() { - io.grpc.MethodDescriptor - getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = PolicyTagManagerGrpc.getSetIamPolicyMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getSetIamPolicyMethod = PolicyTagManagerGrpc.getSetIamPolicyMethod) == null) { - PolicyTagManagerGrpc.getSetIamPolicyMethod = - getSetIamPolicyMethod = - io.grpc.MethodDescriptor - .newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse> - getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = PolicyTagManagerGrpc.getTestIamPermissionsMethod) == null) { - synchronized (PolicyTagManagerGrpc.class) { - if ((getTestIamPermissionsMethod = PolicyTagManagerGrpc.getTestIamPermissionsMethod) - == null) { - PolicyTagManagerGrpc.getTestIamPermissionsMethod = - getTestIamPermissionsMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static PolicyTagManagerStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerStub(channel, callOptions); - } - }; - return PolicyTagManagerStub.newStub(factory, channel); - } - - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static PolicyTagManagerBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerBlockingV2Stub(channel, callOptions); - } - }; - return PolicyTagManagerBlockingV2Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PolicyTagManagerBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerBlockingStub(channel, callOptions); - } - }; - return PolicyTagManagerBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PolicyTagManagerFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerFutureStub(channel, callOptions); - } - }; - return PolicyTagManagerFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * The policy tag manager API service allows clients to manage their taxonomies
-   * and policy tags.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Creates a taxonomy in the specified project.
-     * 
- */ - default void createTaxonomy( - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateTaxonomyMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a taxonomy. This operation will also delete all
-     * policy tags in this taxonomy along with their associated policies.
-     * 
- */ - default void deleteTaxonomy( - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteTaxonomyMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a taxonomy.
-     * 
- */ - default void updateTaxonomy( - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateTaxonomyMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all taxonomies in a project in a particular location that the caller
-     * has permission to view.
-     * 
- */ - default void listTaxonomies( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListTaxonomiesMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a taxonomy.
-     * 
- */ - default void getTaxonomy( - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetTaxonomyMethod(), responseObserver); - } - - /** - * - * - *
-     * Creates a policy tag in the specified taxonomy.
-     * 
- */ - default void createPolicyTag( - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePolicyTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Deletes a policy tag. Also deletes all of its descendant policy tags.
-     * 
- */ - default void deletePolicyTag( - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePolicyTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Updates a policy tag.
-     * 
- */ - default void updatePolicyTag( - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePolicyTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Lists all policy tags in a taxonomy.
-     * 
- */ - default void listPolicyTags( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPolicyTagsMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets a policy tag.
-     * 
- */ - default void getPolicyTag( - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPolicyTagMethod(), responseObserver); - } - - /** - * - * - *
-     * Gets the IAM policy for a taxonomy or a policy tag.
-     * 
- */ - default void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Sets the IAM policy for a taxonomy or a policy tag.
-     * 
- */ - default void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSetIamPolicyMethod(), responseObserver); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified taxonomy or
-     * policy tag.
-     * 
- */ - default void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getTestIamPermissionsMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service PolicyTagManager. - * - *
-   * The policy tag manager API service allows clients to manage their taxonomies
-   * and policy tags.
-   * 
- */ - public abstract static class PolicyTagManagerImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return PolicyTagManagerGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service PolicyTagManager. - * - *
-   * The policy tag manager API service allows clients to manage their taxonomies
-   * and policy tags.
-   * 
- */ - public static final class PolicyTagManagerStub - extends io.grpc.stub.AbstractAsyncStub { - private PolicyTagManagerStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a taxonomy in the specified project.
-     * 
- */ - public void createTaxonomy( - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateTaxonomyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a taxonomy. This operation will also delete all
-     * policy tags in this taxonomy along with their associated policies.
-     * 
- */ - public void deleteTaxonomy( - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteTaxonomyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a taxonomy.
-     * 
- */ - public void updateTaxonomy( - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateTaxonomyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all taxonomies in a project in a particular location that the caller
-     * has permission to view.
-     * 
- */ - public void listTaxonomies( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListTaxonomiesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a taxonomy.
-     * 
- */ - public void getTaxonomy( - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetTaxonomyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a policy tag in the specified taxonomy.
-     * 
- */ - public void createPolicyTag( - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePolicyTagMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Deletes a policy tag. Also deletes all of its descendant policy tags.
-     * 
- */ - public void deletePolicyTag( - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePolicyTagMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a policy tag.
-     * 
- */ - public void updatePolicyTag( - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePolicyTagMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists all policy tags in a taxonomy.
-     * 
- */ - public void listPolicyTags( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPolicyTagsMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets a policy tag.
-     * 
- */ - public void getPolicyTag( - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPolicyTagMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Gets the IAM policy for a taxonomy or a policy tag.
-     * 
- */ - public void getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Sets the IAM policy for a taxonomy or a policy tag.
-     * 
- */ - public void setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified taxonomy or
-     * policy tag.
-     * 
- */ - public void testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service PolicyTagManager. - * - *
-   * The policy tag manager API service allows clients to manage their taxonomies
-   * and policy tags.
-   * 
- */ - public static final class PolicyTagManagerBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private PolicyTagManagerBlockingV2Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerBlockingV2Stub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a taxonomy in the specified project.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy createTaxonomy( - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreateTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a taxonomy. This operation will also delete all
-     * policy tags in this taxonomy along with their associated policies.
-     * 
- */ - public com.google.protobuf.Empty deleteTaxonomy( - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeleteTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy updateTaxonomy( - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdateTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all taxonomies in a project in a particular location that the caller
-     * has permission to view.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse listTaxonomies( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListTaxonomiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomy( - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a policy tag in the specified taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag createPolicyTag( - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getCreatePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a policy tag. Also deletes all of its descendant policy tags.
-     * 
- */ - public com.google.protobuf.Empty deletePolicyTag( - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getDeletePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a policy tag.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag updatePolicyTag( - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getUpdatePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all policy tags in a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse listPolicyTags( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getListPolicyTagsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a policy tag.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTag( - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetPolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the IAM policy for a taxonomy or a policy tag.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the IAM policy for a taxonomy or a policy tag.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified taxonomy or
-     * policy tag.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service PolicyTagManager. - * - *
-   * The policy tag manager API service allows clients to manage their taxonomies
-   * and policy tags.
-   * 
- */ - public static final class PolicyTagManagerBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PolicyTagManagerBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a taxonomy in the specified project.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy createTaxonomy( - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a taxonomy. This operation will also delete all
-     * policy tags in this taxonomy along with their associated policies.
-     * 
- */ - public com.google.protobuf.Empty deleteTaxonomy( - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy updateTaxonomy( - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all taxonomies in a project in a particular location that the caller
-     * has permission to view.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse listTaxonomies( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListTaxonomiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomy( - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetTaxonomyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Creates a policy tag in the specified taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag createPolicyTag( - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Deletes a policy tag. Also deletes all of its descendant policy tags.
-     * 
- */ - public com.google.protobuf.Empty deletePolicyTag( - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Updates a policy tag.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag updatePolicyTag( - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Lists all policy tags in a taxonomy.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse listPolicyTags( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPolicyTagsMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets a policy tag.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTag( - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPolicyTagMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Gets the IAM policy for a taxonomy or a policy tag.
-     * 
- */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Sets the IAM policy for a taxonomy or a policy tag.
-     * 
- */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified taxonomy or
-     * policy tag.
-     * 
- */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service PolicyTagManager. - * - *
-   * The policy tag manager API service allows clients to manage their taxonomies
-   * and policy tags.
-   * 
- */ - public static final class PolicyTagManagerFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PolicyTagManagerFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Creates a taxonomy in the specified project.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.Taxonomy> - createTaxonomy(com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateTaxonomyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a taxonomy. This operation will also delete all
-     * policy tags in this taxonomy along with their associated policies.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deleteTaxonomy(com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteTaxonomyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a taxonomy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.Taxonomy> - updateTaxonomy(com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateTaxonomyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all taxonomies in a project in a particular location that the caller
-     * has permission to view.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse> - listTaxonomies(com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListTaxonomiesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a taxonomy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.Taxonomy> - getTaxonomy(com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetTaxonomyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Creates a policy tag in the specified taxonomy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.PolicyTag> - createPolicyTag(com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePolicyTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Deletes a policy tag. Also deletes all of its descendant policy tags.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - deletePolicyTag(com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePolicyTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Updates a policy tag.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.PolicyTag> - updatePolicyTag(com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePolicyTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Lists all policy tags in a taxonomy.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse> - listPolicyTags(com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPolicyTagsMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets a policy tag.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.PolicyTag> - getPolicyTag(com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPolicyTagMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Gets the IAM policy for a taxonomy or a policy tag.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Sets the IAM policy for a taxonomy or a policy tag.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture - setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Returns the permissions that a caller has on the specified taxonomy or
-     * policy tag.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.iam.v1.TestIamPermissionsResponse> - testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_CREATE_TAXONOMY = 0; - private static final int METHODID_DELETE_TAXONOMY = 1; - private static final int METHODID_UPDATE_TAXONOMY = 2; - private static final int METHODID_LIST_TAXONOMIES = 3; - private static final int METHODID_GET_TAXONOMY = 4; - private static final int METHODID_CREATE_POLICY_TAG = 5; - private static final int METHODID_DELETE_POLICY_TAG = 6; - private static final int METHODID_UPDATE_POLICY_TAG = 7; - private static final int METHODID_LIST_POLICY_TAGS = 8; - private static final int METHODID_GET_POLICY_TAG = 9; - private static final int METHODID_GET_IAM_POLICY = 10; - private static final int METHODID_SET_IAM_POLICY = 11; - private static final int METHODID_TEST_IAM_PERMISSIONS = 12; - - 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_CREATE_TAXONOMY: - serviceImpl.createTaxonomy( - (com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_TAXONOMY: - serviceImpl.deleteTaxonomy( - (com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_TAXONOMY: - serviceImpl.updateTaxonomy( - (com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_TAXONOMIES: - serviceImpl.listTaxonomies( - (com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse>) - responseObserver); - break; - case METHODID_GET_TAXONOMY: - serviceImpl.getTaxonomy( - (com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_CREATE_POLICY_TAG: - serviceImpl.createPolicyTag( - (com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_DELETE_POLICY_TAG: - serviceImpl.deletePolicyTag( - (com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_POLICY_TAG: - serviceImpl.updatePolicyTag( - (com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_LIST_POLICY_TAGS: - serviceImpl.listPolicyTags( - (com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse>) - responseObserver); - break; - case METHODID_GET_POLICY_TAG: - serviceImpl.getPolicyTag( - (com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy( - (com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy( - (com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions( - (com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - 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( - getCreateTaxonomyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy>( - service, METHODID_CREATE_TAXONOMY))) - .addMethod( - getDeleteTaxonomyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_TAXONOMY))) - .addMethod( - getUpdateTaxonomyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy>( - service, METHODID_UPDATE_TAXONOMY))) - .addMethod( - getListTaxonomiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse>( - service, METHODID_LIST_TAXONOMIES))) - .addMethod( - getGetTaxonomyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest, - com.google.cloud.datacatalog.v1beta1.Taxonomy>(service, METHODID_GET_TAXONOMY))) - .addMethod( - getCreatePolicyTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag>( - service, METHODID_CREATE_POLICY_TAG))) - .addMethod( - getDeletePolicyTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest, - com.google.protobuf.Empty>(service, METHODID_DELETE_POLICY_TAG))) - .addMethod( - getUpdatePolicyTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag>( - service, METHODID_UPDATE_POLICY_TAG))) - .addMethod( - getListPolicyTagsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest, - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse>( - service, METHODID_LIST_POLICY_TAGS))) - .addMethod( - getGetPolicyTagMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest, - com.google.cloud.datacatalog.v1beta1.PolicyTag>( - service, METHODID_GET_POLICY_TAG))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers( - service, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - service, METHODID_TEST_IAM_PERMISSIONS))) - .build(); - } - - private abstract static class PolicyTagManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PolicyTagManagerBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("PolicyTagManager"); - } - } - - private static final class PolicyTagManagerFileDescriptorSupplier - extends PolicyTagManagerBaseDescriptorSupplier { - PolicyTagManagerFileDescriptorSupplier() {} - } - - private static final class PolicyTagManagerMethodDescriptorSupplier - extends PolicyTagManagerBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - PolicyTagManagerMethodDescriptorSupplier(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 (PolicyTagManagerGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new PolicyTagManagerFileDescriptorSupplier()) - .addMethod(getCreateTaxonomyMethod()) - .addMethod(getDeleteTaxonomyMethod()) - .addMethod(getUpdateTaxonomyMethod()) - .addMethod(getListTaxonomiesMethod()) - .addMethod(getGetTaxonomyMethod()) - .addMethod(getCreatePolicyTagMethod()) - .addMethod(getDeletePolicyTagMethod()) - .addMethod(getUpdatePolicyTagMethod()) - .addMethod(getListPolicyTagsMethod()) - .addMethod(getGetPolicyTagMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java b/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java deleted file mode 100644 index 0f3ffaa506fc..000000000000 --- a/java-datacatalog/grpc-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerSerializationGrpc.java +++ /dev/null @@ -1,610 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.datacatalog.v1beta1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Policy tag manager serialization API service allows clients to manipulate
- * their taxonomies and policy tags data with serialized format.
- * 
- */ -@io.grpc.stub.annotations.GrpcGenerated -public final class PolicyTagManagerSerializationGrpc { - - private PolicyTagManagerSerializationGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse> - getImportTaxonomiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ImportTaxonomies", - requestType = com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse> - getImportTaxonomiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse> - getImportTaxonomiesMethod; - if ((getImportTaxonomiesMethod = PolicyTagManagerSerializationGrpc.getImportTaxonomiesMethod) - == null) { - synchronized (PolicyTagManagerSerializationGrpc.class) { - if ((getImportTaxonomiesMethod = - PolicyTagManagerSerializationGrpc.getImportTaxonomiesMethod) - == null) { - PolicyTagManagerSerializationGrpc.getImportTaxonomiesMethod = - getImportTaxonomiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ImportTaxonomies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerSerializationMethodDescriptorSupplier( - "ImportTaxonomies")) - .build(); - } - } - } - return getImportTaxonomiesMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse> - getExportTaxonomiesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ExportTaxonomies", - requestType = com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest.class, - responseType = com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse> - getExportTaxonomiesMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse> - getExportTaxonomiesMethod; - if ((getExportTaxonomiesMethod = PolicyTagManagerSerializationGrpc.getExportTaxonomiesMethod) - == null) { - synchronized (PolicyTagManagerSerializationGrpc.class) { - if ((getExportTaxonomiesMethod = - PolicyTagManagerSerializationGrpc.getExportTaxonomiesMethod) - == null) { - PolicyTagManagerSerializationGrpc.getExportTaxonomiesMethod = - getExportTaxonomiesMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportTaxonomies")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new PolicyTagManagerSerializationMethodDescriptorSupplier( - "ExportTaxonomies")) - .build(); - } - } - } - return getExportTaxonomiesMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static PolicyTagManagerSerializationStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerSerializationStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationStub(channel, callOptions); - } - }; - return PolicyTagManagerSerializationStub.newStub(factory, channel); - } - - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static PolicyTagManagerSerializationBlockingV2Stub newBlockingV2Stub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerSerializationBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationBlockingV2Stub(channel, callOptions); - } - }; - return PolicyTagManagerSerializationBlockingV2Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static PolicyTagManagerSerializationBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerSerializationBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationBlockingStub(channel, callOptions); - } - }; - return PolicyTagManagerSerializationBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static PolicyTagManagerSerializationFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public PolicyTagManagerSerializationFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationFutureStub(channel, callOptions); - } - }; - return PolicyTagManagerSerializationFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Policy tag manager serialization API service allows clients to manipulate
-   * their taxonomies and policy tags data with serialized format.
-   * 
- */ - public interface AsyncService { - - /** - * - * - *
-     * Imports all taxonomies and their policy tags to a project as new
-     * taxonomies.
-     * This method provides a bulk taxonomy / policy tag creation using nested
-     * proto structure.
-     * 
- */ - default void importTaxonomies( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getImportTaxonomiesMethod(), responseObserver); - } - - /** - * - * - *
-     * Exports all taxonomies and their policy tags in a project.
-     * This method generates SerializedTaxonomy protos with nested policy tags
-     * that can be used as an input for future ImportTaxonomies calls.
-     * 
- */ - default void exportTaxonomies( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getExportTaxonomiesMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service PolicyTagManagerSerialization. - * - *
-   * Policy tag manager serialization API service allows clients to manipulate
-   * their taxonomies and policy tags data with serialized format.
-   * 
- */ - public abstract static class PolicyTagManagerSerializationImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return PolicyTagManagerSerializationGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service PolicyTagManagerSerialization. - * - *
-   * Policy tag manager serialization API service allows clients to manipulate
-   * their taxonomies and policy tags data with serialized format.
-   * 
- */ - public static final class PolicyTagManagerSerializationStub - extends io.grpc.stub.AbstractAsyncStub { - private PolicyTagManagerSerializationStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerSerializationStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationStub(channel, callOptions); - } - - /** - * - * - *
-     * Imports all taxonomies and their policy tags to a project as new
-     * taxonomies.
-     * This method provides a bulk taxonomy / policy tag creation using nested
-     * proto structure.
-     * 
- */ - public void importTaxonomies( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getImportTaxonomiesMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Exports all taxonomies and their policy tags in a project.
-     * This method generates SerializedTaxonomy protos with nested policy tags
-     * that can be used as an input for future ImportTaxonomies calls.
-     * 
- */ - public void exportTaxonomies( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getExportTaxonomiesMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service PolicyTagManagerSerialization. - * - *
-   * Policy tag manager serialization API service allows clients to manipulate
-   * their taxonomies and policy tags data with serialized format.
-   * 
- */ - public static final class PolicyTagManagerSerializationBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private PolicyTagManagerSerializationBlockingV2Stub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerSerializationBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationBlockingV2Stub(channel, callOptions); - } - - /** - * - * - *
-     * Imports all taxonomies and their policy tags to a project as new
-     * taxonomies.
-     * This method provides a bulk taxonomy / policy tag creation using nested
-     * proto structure.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse importTaxonomies( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getImportTaxonomiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Exports all taxonomies and their policy tags in a project.
-     * This method generates SerializedTaxonomy protos with nested policy tags
-     * that can be used as an input for future ImportTaxonomies calls.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse exportTaxonomies( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getExportTaxonomiesMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service - * PolicyTagManagerSerialization. - * - *
-   * Policy tag manager serialization API service allows clients to manipulate
-   * their taxonomies and policy tags data with serialized format.
-   * 
- */ - public static final class PolicyTagManagerSerializationBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private PolicyTagManagerSerializationBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerSerializationBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Imports all taxonomies and their policy tags to a project as new
-     * taxonomies.
-     * This method provides a bulk taxonomy / policy tag creation using nested
-     * proto structure.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse importTaxonomies( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getImportTaxonomiesMethod(), getCallOptions(), request); - } - - /** - * - * - *
-     * Exports all taxonomies and their policy tags in a project.
-     * This method generates SerializedTaxonomy protos with nested policy tags
-     * that can be used as an input for future ImportTaxonomies calls.
-     * 
- */ - public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse exportTaxonomies( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getExportTaxonomiesMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service - * PolicyTagManagerSerialization. - * - *
-   * Policy tag manager serialization API service allows clients to manipulate
-   * their taxonomies and policy tags data with serialized format.
-   * 
- */ - public static final class PolicyTagManagerSerializationFutureStub - extends io.grpc.stub.AbstractFutureStub { - private PolicyTagManagerSerializationFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected PolicyTagManagerSerializationFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new PolicyTagManagerSerializationFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Imports all taxonomies and their policy tags to a project as new
-     * taxonomies.
-     * This method provides a bulk taxonomy / policy tag creation using nested
-     * proto structure.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse> - importTaxonomies(com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getImportTaxonomiesMethod(), getCallOptions()), request); - } - - /** - * - * - *
-     * Exports all taxonomies and their policy tags in a project.
-     * This method generates SerializedTaxonomy protos with nested policy tags
-     * that can be used as an input for future ImportTaxonomies calls.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse> - exportTaxonomies(com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getExportTaxonomiesMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_IMPORT_TAXONOMIES = 0; - private static final int METHODID_EXPORT_TAXONOMIES = 1; - - 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_IMPORT_TAXONOMIES: - serviceImpl.importTaxonomies( - (com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse>) - responseObserver); - break; - case METHODID_EXPORT_TAXONOMIES: - serviceImpl.exportTaxonomies( - (com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse>) - 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( - getImportTaxonomiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse>( - service, METHODID_IMPORT_TAXONOMIES))) - .addMethod( - getExportTaxonomiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest, - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse>( - service, METHODID_EXPORT_TAXONOMIES))) - .build(); - } - - private abstract static class PolicyTagManagerSerializationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - PolicyTagManagerSerializationBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("PolicyTagManagerSerialization"); - } - } - - private static final class PolicyTagManagerSerializationFileDescriptorSupplier - extends PolicyTagManagerSerializationBaseDescriptorSupplier { - PolicyTagManagerSerializationFileDescriptorSupplier() {} - } - - private static final class PolicyTagManagerSerializationMethodDescriptorSupplier - extends PolicyTagManagerSerializationBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - PolicyTagManagerSerializationMethodDescriptorSupplier(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 (PolicyTagManagerSerializationGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor( - new PolicyTagManagerSerializationFileDescriptorSupplier()) - .addMethod(getImportTaxonomiesMethod()) - .addMethod(getExportTaxonomiesMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-datacatalog/pom.xml b/java-datacatalog/pom.xml deleted file mode 100644 index 7ed7e8270b52..000000000000 --- a/java-datacatalog/pom.xml +++ /dev/null @@ -1,70 +0,0 @@ - - - 4.0.0 - com.google.cloud - google-cloud-datacatalog-parent - pom - 1.102.0 - Google Cloud Data Catalog Parent - - Java idiomatic client for Google Cloud Platform services. - - - - com.google.cloud - google-cloud-jar-parent - 1.90.0 - ../google-cloud-jar-parent/pom.xml - - - - UTF-8 - UTF-8 - github - google-cloud-datacatalog-parent - - - - - - - com.google.api.grpc - proto-google-cloud-datacatalog-v1 - 1.102.0 - - - com.google.api.grpc - proto-google-cloud-datacatalog-v1beta1 - 1.102.0 - - - com.google.api.grpc - grpc-google-cloud-datacatalog-v1 - 1.102.0 - - - com.google.api.grpc - grpc-google-cloud-datacatalog-v1beta1 - 1.102.0 - - - com.google.cloud - google-cloud-datacatalog - 1.102.0 - - - - - - - - google-cloud-datacatalog - grpc-google-cloud-datacatalog-v1 - grpc-google-cloud-datacatalog-v1beta1 - proto-google-cloud-datacatalog-v1 - proto-google-cloud-datacatalog-v1beta1 - - google-cloud-datacatalog-bom - - - diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/clirr-ignored-differences.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1/clirr-ignored-differences.xml deleted file mode 100644 index 1a8eeacc7046..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/clirr-ignored-differences.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 7012 - com/google/cloud/datacatalog/v1/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/datacatalog/v1/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/datacatalog/v1/*OrBuilder - boolean has*(*) - - - - 7006 - com/google/cloud/datacatalog/v1/** - * getDefaultInstanceForType() - ** - - - 7006 - com/google/cloud/datacatalog/v1/** - * addRepeatedField(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1/** - * clear() - ** - - - 7006 - com/google/cloud/datacatalog/v1/** - * clearField(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1/** - * clearOneof(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1/** - * clone() - ** - - - 7006 - com/google/cloud/datacatalog/v1/** - * mergeUnknownFields(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1/** - * setField(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1/** - * setRepeatedField(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1/** - * setUnknownFields(*) - ** - - diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml deleted file mode 100644 index 199475cc5bba..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-datacatalog-v1 - 1.102.0 - proto-google-cloud-datacatalog-v1 - PROTO library for proto-google-cloud-datacatalog-v1 - - com.google.cloud - google-cloud-datacatalog-parent - 1.102.0 - - - - 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 - - - \ No newline at end of file diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpec.java deleted file mode 100644 index 29eaf6e0b4ee..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpec.java +++ /dev/null @@ -1,1232 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/bigquery.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification for the BigQuery connection.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryConnectionSpec} - */ -@com.google.protobuf.Generated -public final class BigQueryConnectionSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryConnectionSpec) - BigQueryConnectionSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "BigQueryConnectionSpec"); - } - - // Use BigQueryConnectionSpec.newBuilder() to construct. - private BigQueryConnectionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private BigQueryConnectionSpec() { - connectionType_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.class, - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.Builder.class); - } - - /** - * - * - *
-   * The type of the BigQuery connection.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType} - */ - public enum ConnectionType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified type.
-     * 
- * - * CONNECTION_TYPE_UNSPECIFIED = 0; - */ - CONNECTION_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Cloud SQL connection.
-     * 
- * - * CLOUD_SQL = 1; - */ - CLOUD_SQL(1), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ConnectionType"); - } - - /** - * - * - *
-     * Unspecified type.
-     * 
- * - * CONNECTION_TYPE_UNSPECIFIED = 0; - */ - public static final int CONNECTION_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * Cloud SQL connection.
-     * 
- * - * CLOUD_SQL = 1; - */ - public static final int CLOUD_SQL_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 ConnectionType 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 ConnectionType forNumber(int value) { - switch (value) { - case 0: - return CONNECTION_TYPE_UNSPECIFIED; - case 1: - return CLOUD_SQL; - 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 ConnectionType findValueByNumber(int number) { - return ConnectionType.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.datacatalog.v1.BigQueryConnectionSpec.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final ConnectionType[] VALUES = values(); - - public static ConnectionType 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 ConnectionType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType) - } - - private int connectionSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object connectionSpec_; - - public enum ConnectionSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CLOUD_SQL(2), - CONNECTIONSPEC_NOT_SET(0); - private final int value; - - private ConnectionSpecCase(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 ConnectionSpecCase valueOf(int value) { - return forNumber(value); - } - - public static ConnectionSpecCase forNumber(int value) { - switch (value) { - case 2: - return CLOUD_SQL; - case 0: - return CONNECTIONSPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ConnectionSpecCase getConnectionSpecCase() { - return ConnectionSpecCase.forNumber(connectionSpecCase_); - } - - public static final int CONNECTION_TYPE_FIELD_NUMBER = 1; - private int connectionType_ = 0; - - /** - * - * - *
-   * The type of the BigQuery connection.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; - * - * - * @return The enum numeric value on the wire for connectionType. - */ - @java.lang.Override - public int getConnectionTypeValue() { - return connectionType_; - } - - /** - * - * - *
-   * The type of the BigQuery connection.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; - * - * - * @return The connectionType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType getConnectionType() { - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType result = - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType.forNumber( - connectionType_); - return result == null - ? com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType.UNRECOGNIZED - : result; - } - - public static final int CLOUD_SQL_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Specification for the BigQuery connection to a Cloud SQL instance.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - * - * @return Whether the cloudSql field is set. - */ - @java.lang.Override - public boolean hasCloudSql() { - return connectionSpecCase_ == 2; - } - - /** - * - * - *
-   * Specification for the BigQuery connection to a Cloud SQL instance.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - * - * @return The cloudSql. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec getCloudSql() { - if (connectionSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) connectionSpec_; - } - return com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification for the BigQuery connection to a Cloud SQL instance.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpecOrBuilder - getCloudSqlOrBuilder() { - if (connectionSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) connectionSpec_; - } - return com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDefaultInstance(); - } - - public static final int HAS_CREDENTIAL_FIELD_NUMBER = 3; - private boolean hasCredential_ = false; - - /** - * - * - *
-   * True if there are credentials attached to the BigQuery connection; false
-   * otherwise.
-   * 
- * - * bool has_credential = 3; - * - * @return The hasCredential. - */ - @java.lang.Override - public boolean getHasCredential() { - return hasCredential_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (connectionType_ - != com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType - .CONNECTION_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, connectionType_); - } - if (connectionSpecCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) connectionSpec_); - } - if (hasCredential_ != false) { - output.writeBool(3, hasCredential_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (connectionType_ - != com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType - .CONNECTION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, connectionType_); - } - if (connectionSpecCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) connectionSpec_); - } - if (hasCredential_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, hasCredential_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.BigQueryConnectionSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec other = - (com.google.cloud.datacatalog.v1.BigQueryConnectionSpec) obj; - - if (connectionType_ != other.connectionType_) return false; - if (getHasCredential() != other.getHasCredential()) return false; - if (!getConnectionSpecCase().equals(other.getConnectionSpecCase())) return false; - switch (connectionSpecCase_) { - case 2: - if (!getCloudSql().equals(other.getCloudSql())) 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) + CONNECTION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + connectionType_; - hash = (37 * hash) + HAS_CREDENTIAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getHasCredential()); - switch (connectionSpecCase_) { - case 2: - hash = (37 * hash) + CLOUD_SQL_FIELD_NUMBER; - hash = (53 * hash) + getCloudSql().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification for the BigQuery connection.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryConnectionSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.BigQueryConnectionSpec) - com.google.cloud.datacatalog.v1.BigQueryConnectionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.class, - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - connectionType_ = 0; - if (cloudSqlBuilder_ != null) { - cloudSqlBuilder_.clear(); - } - hasCredential_ = false; - connectionSpecCase_ = 0; - connectionSpec_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpec build() { - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpec buildPartial() { - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec result = - new com.google.cloud.datacatalog.v1.BigQueryConnectionSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.BigQueryConnectionSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.connectionType_ = connectionType_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.hasCredential_ = hasCredential_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.BigQueryConnectionSpec result) { - result.connectionSpecCase_ = connectionSpecCase_; - result.connectionSpec_ = this.connectionSpec_; - if (connectionSpecCase_ == 2 && cloudSqlBuilder_ != null) { - result.connectionSpec_ = cloudSqlBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.BigQueryConnectionSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.BigQueryConnectionSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.BigQueryConnectionSpec other) { - if (other == com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.getDefaultInstance()) - return this; - if (other.connectionType_ != 0) { - setConnectionTypeValue(other.getConnectionTypeValue()); - } - if (other.getHasCredential() != false) { - setHasCredential(other.getHasCredential()); - } - switch (other.getConnectionSpecCase()) { - case CLOUD_SQL: - { - mergeCloudSql(other.getCloudSql()); - break; - } - case CONNECTIONSPEC_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: - { - connectionType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage( - internalGetCloudSqlFieldBuilder().getBuilder(), extensionRegistry); - connectionSpecCase_ = 2; - break; - } // case 18 - case 24: - { - hasCredential_ = 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 connectionSpecCase_ = 0; - private java.lang.Object connectionSpec_; - - public ConnectionSpecCase getConnectionSpecCase() { - return ConnectionSpecCase.forNumber(connectionSpecCase_); - } - - public Builder clearConnectionSpec() { - connectionSpecCase_ = 0; - connectionSpec_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int connectionType_ = 0; - - /** - * - * - *
-     * The type of the BigQuery connection.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; - * - * - * @return The enum numeric value on the wire for connectionType. - */ - @java.lang.Override - public int getConnectionTypeValue() { - return connectionType_; - } - - /** - * - * - *
-     * The type of the BigQuery connection.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; - * - * - * @param value The enum numeric value on the wire for connectionType to set. - * @return This builder for chaining. - */ - public Builder setConnectionTypeValue(int value) { - connectionType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The type of the BigQuery connection.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; - * - * - * @return The connectionType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType - getConnectionType() { - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType result = - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType.forNumber( - connectionType_); - return result == null - ? com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * The type of the BigQuery connection.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; - * - * - * @param value The connectionType to set. - * @return This builder for chaining. - */ - public Builder setConnectionType( - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - connectionType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * The type of the BigQuery connection.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearConnectionType() { - bitField0_ = (bitField0_ & ~0x00000001); - connectionType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec, - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.Builder, - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpecOrBuilder> - cloudSqlBuilder_; - - /** - * - * - *
-     * Specification for the BigQuery connection to a Cloud SQL instance.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - * - * @return Whether the cloudSql field is set. - */ - @java.lang.Override - public boolean hasCloudSql() { - return connectionSpecCase_ == 2; - } - - /** - * - * - *
-     * Specification for the BigQuery connection to a Cloud SQL instance.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - * - * @return The cloudSql. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec getCloudSql() { - if (cloudSqlBuilder_ == null) { - if (connectionSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) connectionSpec_; - } - return com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDefaultInstance(); - } else { - if (connectionSpecCase_ == 2) { - return cloudSqlBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification for the BigQuery connection to a Cloud SQL instance.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - */ - public Builder setCloudSql( - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec value) { - if (cloudSqlBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - connectionSpec_ = value; - onChanged(); - } else { - cloudSqlBuilder_.setMessage(value); - } - connectionSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Specification for the BigQuery connection to a Cloud SQL instance.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - */ - public Builder setCloudSql( - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.Builder builderForValue) { - if (cloudSqlBuilder_ == null) { - connectionSpec_ = builderForValue.build(); - onChanged(); - } else { - cloudSqlBuilder_.setMessage(builderForValue.build()); - } - connectionSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Specification for the BigQuery connection to a Cloud SQL instance.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - */ - public Builder mergeCloudSql( - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec value) { - if (cloudSqlBuilder_ == null) { - if (connectionSpecCase_ == 2 - && connectionSpec_ - != com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec - .getDefaultInstance()) { - connectionSpec_ = - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.newBuilder( - (com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) - connectionSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - connectionSpec_ = value; - } - onChanged(); - } else { - if (connectionSpecCase_ == 2) { - cloudSqlBuilder_.mergeFrom(value); - } else { - cloudSqlBuilder_.setMessage(value); - } - } - connectionSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Specification for the BigQuery connection to a Cloud SQL instance.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - */ - public Builder clearCloudSql() { - if (cloudSqlBuilder_ == null) { - if (connectionSpecCase_ == 2) { - connectionSpecCase_ = 0; - connectionSpec_ = null; - onChanged(); - } - } else { - if (connectionSpecCase_ == 2) { - connectionSpecCase_ = 0; - connectionSpec_ = null; - } - cloudSqlBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification for the BigQuery connection to a Cloud SQL instance.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - */ - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.Builder - getCloudSqlBuilder() { - return internalGetCloudSqlFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification for the BigQuery connection to a Cloud SQL instance.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpecOrBuilder - getCloudSqlOrBuilder() { - if ((connectionSpecCase_ == 2) && (cloudSqlBuilder_ != null)) { - return cloudSqlBuilder_.getMessageOrBuilder(); - } else { - if (connectionSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) connectionSpec_; - } - return com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification for the BigQuery connection to a Cloud SQL instance.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec, - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.Builder, - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpecOrBuilder> - internalGetCloudSqlFieldBuilder() { - if (cloudSqlBuilder_ == null) { - if (!(connectionSpecCase_ == 2)) { - connectionSpec_ = - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDefaultInstance(); - } - cloudSqlBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec, - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.Builder, - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) connectionSpec_, - getParentForChildren(), - isClean()); - connectionSpec_ = null; - } - connectionSpecCase_ = 2; - onChanged(); - return cloudSqlBuilder_; - } - - private boolean hasCredential_; - - /** - * - * - *
-     * True if there are credentials attached to the BigQuery connection; false
-     * otherwise.
-     * 
- * - * bool has_credential = 3; - * - * @return The hasCredential. - */ - @java.lang.Override - public boolean getHasCredential() { - return hasCredential_; - } - - /** - * - * - *
-     * True if there are credentials attached to the BigQuery connection; false
-     * otherwise.
-     * 
- * - * bool has_credential = 3; - * - * @param value The hasCredential to set. - * @return This builder for chaining. - */ - public Builder setHasCredential(boolean value) { - - hasCredential_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * True if there are credentials attached to the BigQuery connection; false
-     * otherwise.
-     * 
- * - * bool has_credential = 3; - * - * @return This builder for chaining. - */ - public Builder clearHasCredential() { - bitField0_ = (bitField0_ & ~0x00000004); - hasCredential_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.BigQueryConnectionSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.BigQueryConnectionSpec) - private static final com.google.cloud.datacatalog.v1.BigQueryConnectionSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.BigQueryConnectionSpec(); - } - - public static com.google.cloud.datacatalog.v1.BigQueryConnectionSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryConnectionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpecOrBuilder.java deleted file mode 100644 index f03b0b9fa6de..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryConnectionSpecOrBuilder.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/bigquery.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface BigQueryConnectionSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.BigQueryConnectionSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The type of the BigQuery connection.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; - * - * - * @return The enum numeric value on the wire for connectionType. - */ - int getConnectionTypeValue(); - - /** - * - * - *
-   * The type of the BigQuery connection.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType connection_type = 1; - * - * - * @return The connectionType. - */ - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionType getConnectionType(); - - /** - * - * - *
-   * Specification for the BigQuery connection to a Cloud SQL instance.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - * - * @return Whether the cloudSql field is set. - */ - boolean hasCloudSql(); - - /** - * - * - *
-   * Specification for the BigQuery connection to a Cloud SQL instance.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - * - * @return The cloudSql. - */ - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec getCloudSql(); - - /** - * - * - *
-   * Specification for the BigQuery connection to a Cloud SQL instance.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec cloud_sql = 2; - */ - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpecOrBuilder getCloudSqlOrBuilder(); - - /** - * - * - *
-   * True if there are credentials attached to the BigQuery connection; false
-   * otherwise.
-   * 
- * - * bool has_credential = 3; - * - * @return The hasCredential. - */ - boolean getHasCredential(); - - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.ConnectionSpecCase getConnectionSpecCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java deleted file mode 100644 index 887286a2b369..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpec.java +++ /dev/null @@ -1,1143 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name
- * pattern.
- *
- * For more information, see [Introduction to partitioned tables]
- * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryDateShardedSpec} - */ -@com.google.protobuf.Generated -public final class BigQueryDateShardedSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryDateShardedSpec) - BigQueryDateShardedSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "BigQueryDateShardedSpec"); - } - - // Use BigQueryDateShardedSpec.newBuilder() to construct. - private BigQueryDateShardedSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private BigQueryDateShardedSpec() { - dataset_ = ""; - tablePrefix_ = ""; - latestShardResource_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.class, - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder.class); - } - - public static final int DATASET_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object dataset_ = ""; - - /** - * - * - *
-   * Output only. The Data Catalog resource name of the dataset entry the
-   * current table belongs to. For example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-   * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The dataset. - */ - @java.lang.Override - public java.lang.String getDataset() { - java.lang.Object ref = dataset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataset_ = s; - return s; - } - } - - /** - * - * - *
-   * Output only. The Data Catalog resource name of the dataset entry the
-   * current table belongs to. For example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-   * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataset. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { - java.lang.Object ref = dataset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TABLE_PREFIX_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object tablePrefix_ = ""; - - /** - * - * - *
-   * Output only. The table name prefix of the shards.
-   *
-   * The name of any given shard is `[table_prefix]YYYYMMDD`.
-   * For example, for the `MyTable20180101` shard, the
-   * `table_prefix` is `MyTable`.
-   * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tablePrefix. - */ - @java.lang.Override - public java.lang.String getTablePrefix() { - java.lang.Object ref = tablePrefix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tablePrefix_ = s; - return s; - } - } - - /** - * - * - *
-   * Output only. The table name prefix of the shards.
-   *
-   * The name of any given shard is `[table_prefix]YYYYMMDD`.
-   * For example, for the `MyTable20180101` shard, the
-   * `table_prefix` is `MyTable`.
-   * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for tablePrefix. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTablePrefixBytes() { - java.lang.Object ref = tablePrefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tablePrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHARD_COUNT_FIELD_NUMBER = 3; - private long shardCount_ = 0L; - - /** - * - * - *
-   * Output only. Total number of shards.
-   * 
- * - * int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The shardCount. - */ - @java.lang.Override - public long getShardCount() { - return shardCount_; - } - - public static final int LATEST_SHARD_RESOURCE_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object latestShardResource_ = ""; - - /** - * - * - *
-   * Output only. BigQuery resource name of the latest shard.
-   * 
- * - * string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The latestShardResource. - */ - @java.lang.Override - public java.lang.String getLatestShardResource() { - java.lang.Object ref = latestShardResource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - latestShardResource_ = s; - return s; - } - } - - /** - * - * - *
-   * Output only. BigQuery resource name of the latest shard.
-   * 
- * - * string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for latestShardResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLatestShardResourceBytes() { - java.lang.Object ref = latestShardResource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - latestShardResource_ = 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(dataset_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, dataset_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tablePrefix_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, tablePrefix_); - } - if (shardCount_ != 0L) { - output.writeInt64(3, shardCount_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestShardResource_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, latestShardResource_); - } - 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(dataset_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, dataset_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tablePrefix_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tablePrefix_); - } - if (shardCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, shardCount_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(latestShardResource_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, latestShardResource_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec other = - (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) obj; - - if (!getDataset().equals(other.getDataset())) return false; - if (!getTablePrefix().equals(other.getTablePrefix())) return false; - if (getShardCount() != other.getShardCount()) return false; - if (!getLatestShardResource().equals(other.getLatestShardResource())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - hash = (37 * hash) + TABLE_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getTablePrefix().hashCode(); - hash = (37 * hash) + SHARD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getShardCount()); - hash = (37 * hash) + LATEST_SHARD_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getLatestShardResource().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name
-   * pattern.
-   *
-   * For more information, see [Introduction to partitioned tables]
-   * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryDateShardedSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.BigQueryDateShardedSpec) - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.class, - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataset_ = ""; - tablePrefix_ = ""; - shardCount_ = 0L; - latestShardResource_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec build() { - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec buildPartial() { - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec result = - new com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataset_ = dataset_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tablePrefix_ = tablePrefix_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.shardCount_ = shardCount_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.latestShardResource_ = latestShardResource_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec other) { - if (other == com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance()) - return this; - if (!other.getDataset().isEmpty()) { - dataset_ = other.dataset_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTablePrefix().isEmpty()) { - tablePrefix_ = other.tablePrefix_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getShardCount() != 0L) { - setShardCount(other.getShardCount()); - } - if (!other.getLatestShardResource().isEmpty()) { - latestShardResource_ = other.latestShardResource_; - 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: - { - dataset_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - tablePrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - shardCount_ = input.readInt64(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - latestShardResource_ = 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 dataset_ = ""; - - /** - * - * - *
-     * Output only. The Data Catalog resource name of the dataset entry the
-     * current table belongs to. For example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The dataset. - */ - public java.lang.String getDataset() { - java.lang.Object ref = dataset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataset_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Output only. The Data Catalog resource name of the dataset entry the
-     * current table belongs to. For example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataset. - */ - public com.google.protobuf.ByteString getDatasetBytes() { - java.lang.Object ref = dataset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Output only. The Data Catalog resource name of the dataset entry the
-     * current table belongs to. For example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The dataset to set. - * @return This builder for chaining. - */ - public Builder setDataset(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dataset_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The Data Catalog resource name of the dataset entry the
-     * current table belongs to. For example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The Data Catalog resource name of the dataset entry the
-     * current table belongs to. For example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for dataset to set. - * @return This builder for chaining. - */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - dataset_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object tablePrefix_ = ""; - - /** - * - * - *
-     * Output only. The table name prefix of the shards.
-     *
-     * The name of any given shard is `[table_prefix]YYYYMMDD`.
-     * For example, for the `MyTable20180101` shard, the
-     * `table_prefix` is `MyTable`.
-     * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tablePrefix. - */ - public java.lang.String getTablePrefix() { - java.lang.Object ref = tablePrefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tablePrefix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Output only. The table name prefix of the shards.
-     *
-     * The name of any given shard is `[table_prefix]YYYYMMDD`.
-     * For example, for the `MyTable20180101` shard, the
-     * `table_prefix` is `MyTable`.
-     * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for tablePrefix. - */ - public com.google.protobuf.ByteString getTablePrefixBytes() { - java.lang.Object ref = tablePrefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tablePrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Output only. The table name prefix of the shards.
-     *
-     * The name of any given shard is `[table_prefix]YYYYMMDD`.
-     * For example, for the `MyTable20180101` shard, the
-     * `table_prefix` is `MyTable`.
-     * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The tablePrefix to set. - * @return This builder for chaining. - */ - public Builder setTablePrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tablePrefix_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The table name prefix of the shards.
-     *
-     * The name of any given shard is `[table_prefix]YYYYMMDD`.
-     * For example, for the `MyTable20180101` shard, the
-     * `table_prefix` is `MyTable`.
-     * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTablePrefix() { - tablePrefix_ = getDefaultInstance().getTablePrefix(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The table name prefix of the shards.
-     *
-     * The name of any given shard is `[table_prefix]YYYYMMDD`.
-     * For example, for the `MyTable20180101` shard, the
-     * `table_prefix` is `MyTable`.
-     * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for tablePrefix to set. - * @return This builder for chaining. - */ - public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tablePrefix_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private long shardCount_; - - /** - * - * - *
-     * Output only. Total number of shards.
-     * 
- * - * int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The shardCount. - */ - @java.lang.Override - public long getShardCount() { - return shardCount_; - } - - /** - * - * - *
-     * Output only. Total number of shards.
-     * 
- * - * int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The shardCount to set. - * @return This builder for chaining. - */ - public Builder setShardCount(long value) { - - shardCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Total number of shards.
-     * 
- * - * int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearShardCount() { - bitField0_ = (bitField0_ & ~0x00000004); - shardCount_ = 0L; - onChanged(); - return this; - } - - private java.lang.Object latestShardResource_ = ""; - - /** - * - * - *
-     * Output only. BigQuery resource name of the latest shard.
-     * 
- * - * string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The latestShardResource. - */ - public java.lang.String getLatestShardResource() { - java.lang.Object ref = latestShardResource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - latestShardResource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Output only. BigQuery resource name of the latest shard.
-     * 
- * - * string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for latestShardResource. - */ - public com.google.protobuf.ByteString getLatestShardResourceBytes() { - java.lang.Object ref = latestShardResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - latestShardResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Output only. BigQuery resource name of the latest shard.
-     * 
- * - * string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The latestShardResource to set. - * @return This builder for chaining. - */ - public Builder setLatestShardResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - latestShardResource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. BigQuery resource name of the latest shard.
-     * 
- * - * string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearLatestShardResource() { - latestShardResource_ = getDefaultInstance().getLatestShardResource(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. BigQuery resource name of the latest shard.
-     * 
- * - * string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for latestShardResource to set. - * @return This builder for chaining. - */ - public Builder setLatestShardResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - latestShardResource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.BigQueryDateShardedSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.BigQueryDateShardedSpec) - private static final com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec(); - } - - public static com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDateShardedSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java deleted file mode 100644 index 804fb3ebae78..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryDateShardedSpecOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface BigQueryDateShardedSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.BigQueryDateShardedSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The Data Catalog resource name of the dataset entry the
-   * current table belongs to. For example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-   * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The dataset. - */ - java.lang.String getDataset(); - - /** - * - * - *
-   * Output only. The Data Catalog resource name of the dataset entry the
-   * current table belongs to. For example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-   * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataset. - */ - com.google.protobuf.ByteString getDatasetBytes(); - - /** - * - * - *
-   * Output only. The table name prefix of the shards.
-   *
-   * The name of any given shard is `[table_prefix]YYYYMMDD`.
-   * For example, for the `MyTable20180101` shard, the
-   * `table_prefix` is `MyTable`.
-   * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tablePrefix. - */ - java.lang.String getTablePrefix(); - - /** - * - * - *
-   * Output only. The table name prefix of the shards.
-   *
-   * The name of any given shard is `[table_prefix]YYYYMMDD`.
-   * For example, for the `MyTable20180101` shard, the
-   * `table_prefix` is `MyTable`.
-   * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for tablePrefix. - */ - com.google.protobuf.ByteString getTablePrefixBytes(); - - /** - * - * - *
-   * Output only. Total number of shards.
-   * 
- * - * int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The shardCount. - */ - long getShardCount(); - - /** - * - * - *
-   * Output only. BigQuery resource name of the latest shard.
-   * 
- * - * string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The latestShardResource. - */ - java.lang.String getLatestShardResource(); - - /** - * - * - *
-   * Output only. BigQuery resource name of the latest shard.
-   * 
- * - * string latest_shard_resource = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for latestShardResource. - */ - com.google.protobuf.ByteString getLatestShardResourceBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java deleted file mode 100644 index 7c0c2e03b8c2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryProto.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/bigquery.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class BigQueryProto extends com.google.protobuf.GeneratedFile { - private BigQueryProto() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "BigQueryProto"); - } - - 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_datacatalog_v1_BigQueryConnectionSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_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/datacatalog/v1/bigquery.p" - + "roto\022\033google.cloud.datacatalog.v1\032\037googl" - + "e/api/field_behavior.proto\"\264\002\n\026BigQueryC" - + "onnectionSpec\022[\n\017connection_type\030\001 \001(\0162B" - + ".google.cloud.datacatalog.v1.BigQueryCon" - + "nectionSpec.ConnectionType\022P\n\tcloud_sql\030" - + "\002 \001(\0132;.google.cloud.datacatalog.v1.Clou" - + "dSqlBigQueryConnectionSpecH\000\022\026\n\016has_cred" - + "ential\030\003 \001(\010\"@\n\016ConnectionType\022\037\n\033CONNEC" - + "TION_TYPE_UNSPECIFIED\020\000\022\r\n\tCLOUD_SQL\020\001B\021" - + "\n\017connection_spec\"\347\001\n\036CloudSqlBigQueryCo" - + "nnectionSpec\022\023\n\013instance_id\030\001 \001(\t\022\020\n\010dat" - + "abase\030\002 \001(\t\022V\n\004type\030\003 \001(\0162H.google.cloud" - + ".datacatalog.v1.CloudSqlBigQueryConnecti" - + "onSpec.DatabaseType\"F\n\014DatabaseType\022\035\n\031D" - + "ATABASE_TYPE_UNSPECIFIED\020\000\022\014\n\010POSTGRES\020\001" - + "\022\t\n\005MYSQL\020\002\"1\n\023BigQueryRoutineSpec\022\032\n\022im" - + "ported_libraries\030\001 \003(\tB\322\001\n\037com.google.cl" - + "oud.datacatalog.v1B\rBigQueryProtoP\001ZAclo" - + "ud.google.com/go/datacatalog/apiv1/datac" - + "atalogpb;datacatalogpb\252\002\033Google.Cloud.Da" - + "taCatalog.V1\312\002\033Google\\Cloud\\DataCatalog\\" - + "V1\352\002\036Google::Cloud::DataCatalog::V1b\006pro" - + "to3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_BigQueryConnectionSpec_descriptor, - new java.lang.String[] { - "ConnectionType", "CloudSql", "HasCredential", "ConnectionSpec", - }); - internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_descriptor, - new java.lang.String[] { - "InstanceId", "Database", "Type", - }); - internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_descriptor, - new java.lang.String[] { - "ImportedLibraries", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpec.java deleted file mode 100644 index 7b39fc47a694..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpec.java +++ /dev/null @@ -1,697 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/bigquery.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Fields specific for BigQuery routines.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryRoutineSpec} - */ -@com.google.protobuf.Generated -public final class BigQueryRoutineSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryRoutineSpec) - BigQueryRoutineSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "BigQueryRoutineSpec"); - } - - // Use BigQueryRoutineSpec.newBuilder() to construct. - private BigQueryRoutineSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private BigQueryRoutineSpec() { - importedLibraries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.class, - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.Builder.class); - } - - public static final int IMPORTED_LIBRARIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList importedLibraries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * Paths of the imported libraries.
-   * 
- * - * repeated string imported_libraries = 1; - * - * @return A list containing the importedLibraries. - */ - public com.google.protobuf.ProtocolStringList getImportedLibrariesList() { - return importedLibraries_; - } - - /** - * - * - *
-   * Paths of the imported libraries.
-   * 
- * - * repeated string imported_libraries = 1; - * - * @return The count of importedLibraries. - */ - public int getImportedLibrariesCount() { - return importedLibraries_.size(); - } - - /** - * - * - *
-   * Paths of the imported libraries.
-   * 
- * - * repeated string imported_libraries = 1; - * - * @param index The index of the element to return. - * @return The importedLibraries at the given index. - */ - public java.lang.String getImportedLibraries(int index) { - return importedLibraries_.get(index); - } - - /** - * - * - *
-   * Paths of the imported libraries.
-   * 
- * - * repeated string imported_libraries = 1; - * - * @param index The index of the value to return. - * @return The bytes of the importedLibraries at the given index. - */ - public com.google.protobuf.ByteString getImportedLibrariesBytes(int index) { - return importedLibraries_.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 < importedLibraries_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, importedLibraries_.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 < importedLibraries_.size(); i++) { - dataSize += computeStringSizeNoTag(importedLibraries_.getRaw(i)); - } - size += dataSize; - size += 1 * getImportedLibrariesList().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.datacatalog.v1.BigQueryRoutineSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec other = - (com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) obj; - - if (!getImportedLibrariesList().equals(other.getImportedLibrariesList())) return false; - if (!getUnknownFields().equals(other.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 (getImportedLibrariesCount() > 0) { - hash = (37 * hash) + IMPORTED_LIBRARIES_FIELD_NUMBER; - hash = (53 * hash) + getImportedLibrariesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.BigQueryRoutineSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Fields specific for BigQuery routines.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryRoutineSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.BigQueryRoutineSpec) - com.google.cloud.datacatalog.v1.BigQueryRoutineSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.class, - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - importedLibraries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_BigQueryRoutineSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryRoutineSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryRoutineSpec build() { - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryRoutineSpec buildPartial() { - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec result = - new com.google.cloud.datacatalog.v1.BigQueryRoutineSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.BigQueryRoutineSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - importedLibraries_.makeImmutable(); - result.importedLibraries_ = importedLibraries_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.BigQueryRoutineSpec other) { - if (other == com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.getDefaultInstance()) - return this; - if (!other.importedLibraries_.isEmpty()) { - if (importedLibraries_.isEmpty()) { - importedLibraries_ = other.importedLibraries_; - bitField0_ |= 0x00000001; - } else { - ensureImportedLibrariesIsMutable(); - importedLibraries_.addAll(other.importedLibraries_); - } - 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(); - ensureImportedLibrariesIsMutable(); - importedLibraries_.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 importedLibraries_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureImportedLibrariesIsMutable() { - if (!importedLibraries_.isModifiable()) { - importedLibraries_ = new com.google.protobuf.LazyStringArrayList(importedLibraries_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
-     * Paths of the imported libraries.
-     * 
- * - * repeated string imported_libraries = 1; - * - * @return A list containing the importedLibraries. - */ - public com.google.protobuf.ProtocolStringList getImportedLibrariesList() { - importedLibraries_.makeImmutable(); - return importedLibraries_; - } - - /** - * - * - *
-     * Paths of the imported libraries.
-     * 
- * - * repeated string imported_libraries = 1; - * - * @return The count of importedLibraries. - */ - public int getImportedLibrariesCount() { - return importedLibraries_.size(); - } - - /** - * - * - *
-     * Paths of the imported libraries.
-     * 
- * - * repeated string imported_libraries = 1; - * - * @param index The index of the element to return. - * @return The importedLibraries at the given index. - */ - public java.lang.String getImportedLibraries(int index) { - return importedLibraries_.get(index); - } - - /** - * - * - *
-     * Paths of the imported libraries.
-     * 
- * - * repeated string imported_libraries = 1; - * - * @param index The index of the value to return. - * @return The bytes of the importedLibraries at the given index. - */ - public com.google.protobuf.ByteString getImportedLibrariesBytes(int index) { - return importedLibraries_.getByteString(index); - } - - /** - * - * - *
-     * Paths of the imported libraries.
-     * 
- * - * repeated string imported_libraries = 1; - * - * @param index The index to set the value at. - * @param value The importedLibraries to set. - * @return This builder for chaining. - */ - public Builder setImportedLibraries(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureImportedLibrariesIsMutable(); - importedLibraries_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Paths of the imported libraries.
-     * 
- * - * repeated string imported_libraries = 1; - * - * @param value The importedLibraries to add. - * @return This builder for chaining. - */ - public Builder addImportedLibraries(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureImportedLibrariesIsMutable(); - importedLibraries_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Paths of the imported libraries.
-     * 
- * - * repeated string imported_libraries = 1; - * - * @param values The importedLibraries to add. - * @return This builder for chaining. - */ - public Builder addAllImportedLibraries(java.lang.Iterable values) { - ensureImportedLibrariesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, importedLibraries_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Paths of the imported libraries.
-     * 
- * - * repeated string imported_libraries = 1; - * - * @return This builder for chaining. - */ - public Builder clearImportedLibraries() { - importedLibraries_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * Paths of the imported libraries.
-     * 
- * - * repeated string imported_libraries = 1; - * - * @param value The bytes of the importedLibraries to add. - * @return This builder for chaining. - */ - public Builder addImportedLibrariesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureImportedLibrariesIsMutable(); - importedLibraries_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.BigQueryRoutineSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.BigQueryRoutineSpec) - private static final com.google.cloud.datacatalog.v1.BigQueryRoutineSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.BigQueryRoutineSpec(); - } - - public static com.google.cloud.datacatalog.v1.BigQueryRoutineSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryRoutineSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryRoutineSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpecOrBuilder.java deleted file mode 100644 index dbe3fd2e04d9..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryRoutineSpecOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/bigquery.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface BigQueryRoutineSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.BigQueryRoutineSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Paths of the imported libraries.
-   * 
- * - * repeated string imported_libraries = 1; - * - * @return A list containing the importedLibraries. - */ - java.util.List getImportedLibrariesList(); - - /** - * - * - *
-   * Paths of the imported libraries.
-   * 
- * - * repeated string imported_libraries = 1; - * - * @return The count of importedLibraries. - */ - int getImportedLibrariesCount(); - - /** - * - * - *
-   * Paths of the imported libraries.
-   * 
- * - * repeated string imported_libraries = 1; - * - * @param index The index of the element to return. - * @return The importedLibraries at the given index. - */ - java.lang.String getImportedLibraries(int index); - - /** - * - * - *
-   * Paths of the imported libraries.
-   * 
- * - * repeated string imported_libraries = 1; - * - * @param index The index of the value to return. - * @return The bytes of the importedLibraries at the given index. - */ - com.google.protobuf.ByteString getImportedLibrariesBytes(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpec.java deleted file mode 100644 index 3b8ec9bdef92..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpec.java +++ /dev/null @@ -1,1299 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Describes a BigQuery table.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryTableSpec} - */ -@com.google.protobuf.Generated -public final class BigQueryTableSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BigQueryTableSpec) - BigQueryTableSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "BigQueryTableSpec"); - } - - // Use BigQueryTableSpec.newBuilder() to construct. - private BigQueryTableSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private BigQueryTableSpec() { - tableSourceType_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.BigQueryTableSpec.class, - com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder.class); - } - - private int typeSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object typeSpec_; - - public enum TypeSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VIEW_SPEC(2), - TABLE_SPEC(3), - TYPESPEC_NOT_SET(0); - private final int value; - - private TypeSpecCase(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 TypeSpecCase valueOf(int value) { - return forNumber(value); - } - - public static TypeSpecCase forNumber(int value) { - switch (value) { - case 2: - return VIEW_SPEC; - case 3: - return TABLE_SPEC; - case 0: - return TYPESPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TypeSpecCase getTypeSpecCase() { - return TypeSpecCase.forNumber(typeSpecCase_); - } - - public static final int TABLE_SOURCE_TYPE_FIELD_NUMBER = 1; - private int tableSourceType_ = 0; - - /** - * - * - *
-   * Output only. The table source type.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for tableSourceType. - */ - @java.lang.Override - public int getTableSourceTypeValue() { - return tableSourceType_; - } - - /** - * - * - *
-   * Output only. The table source type.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tableSourceType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TableSourceType getTableSourceType() { - com.google.cloud.datacatalog.v1.TableSourceType result = - com.google.cloud.datacatalog.v1.TableSourceType.forNumber(tableSourceType_); - return result == null ? com.google.cloud.datacatalog.v1.TableSourceType.UNRECOGNIZED : result; - } - - public static final int VIEW_SPEC_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Table view specification. Populated only if
-   * the `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - * - * @return Whether the viewSpec field is set. - */ - @java.lang.Override - public boolean hasViewSpec() { - return typeSpecCase_ == 2; - } - - /** - * - * - *
-   * Table view specification. Populated only if
-   * the `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - * - * @return The viewSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ViewSpec getViewSpec() { - if (typeSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.ViewSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Table view specification. Populated only if
-   * the `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ViewSpecOrBuilder getViewSpecOrBuilder() { - if (typeSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.ViewSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance(); - } - - public static final int TABLE_SPEC_FIELD_NUMBER = 3; - - /** - * - * - *
-   * Specification of a BigQuery table. Populated only if
-   * the `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - * - * @return Whether the tableSpec field is set. - */ - @java.lang.Override - public boolean hasTableSpec() { - return typeSpecCase_ == 3; - } - - /** - * - * - *
-   * Specification of a BigQuery table. Populated only if
-   * the `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - * - * @return The tableSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TableSpec getTableSpec() { - if (typeSpecCase_ == 3) { - return (com.google.cloud.datacatalog.v1.TableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.TableSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification of a BigQuery table. Populated only if
-   * the `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TableSpecOrBuilder getTableSpecOrBuilder() { - if (typeSpecCase_ == 3) { - return (com.google.cloud.datacatalog.v1.TableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.TableSpec.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 (tableSourceType_ - != com.google.cloud.datacatalog.v1.TableSourceType.TABLE_SOURCE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, tableSourceType_); - } - if (typeSpecCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datacatalog.v1.ViewSpec) typeSpec_); - } - if (typeSpecCase_ == 3) { - output.writeMessage(3, (com.google.cloud.datacatalog.v1.TableSpec) typeSpec_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tableSourceType_ - != com.google.cloud.datacatalog.v1.TableSourceType.TABLE_SOURCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, tableSourceType_); - } - if (typeSpecCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datacatalog.v1.ViewSpec) typeSpec_); - } - if (typeSpecCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.datacatalog.v1.TableSpec) typeSpec_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.BigQueryTableSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.BigQueryTableSpec other = - (com.google.cloud.datacatalog.v1.BigQueryTableSpec) obj; - - if (tableSourceType_ != other.tableSourceType_) return false; - if (!getTypeSpecCase().equals(other.getTypeSpecCase())) return false; - switch (typeSpecCase_) { - case 2: - if (!getViewSpec().equals(other.getViewSpec())) return false; - break; - case 3: - if (!getTableSpec().equals(other.getTableSpec())) 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) + TABLE_SOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + tableSourceType_; - switch (typeSpecCase_) { - case 2: - hash = (37 * hash) + VIEW_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getViewSpec().hashCode(); - break; - case 3: - hash = (37 * hash) + TABLE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getTableSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.BigQueryTableSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Describes a BigQuery table.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BigQueryTableSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.BigQueryTableSpec) - com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.BigQueryTableSpec.class, - com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.BigQueryTableSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tableSourceType_ = 0; - if (viewSpecBuilder_ != null) { - viewSpecBuilder_.clear(); - } - if (tableSpecBuilder_ != null) { - tableSpecBuilder_.clear(); - } - typeSpecCase_ = 0; - typeSpec_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryTableSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryTableSpec build() { - com.google.cloud.datacatalog.v1.BigQueryTableSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryTableSpec buildPartial() { - com.google.cloud.datacatalog.v1.BigQueryTableSpec result = - new com.google.cloud.datacatalog.v1.BigQueryTableSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.BigQueryTableSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tableSourceType_ = tableSourceType_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.BigQueryTableSpec result) { - result.typeSpecCase_ = typeSpecCase_; - result.typeSpec_ = this.typeSpec_; - if (typeSpecCase_ == 2 && viewSpecBuilder_ != null) { - result.typeSpec_ = viewSpecBuilder_.build(); - } - if (typeSpecCase_ == 3 && tableSpecBuilder_ != null) { - result.typeSpec_ = tableSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.BigQueryTableSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.BigQueryTableSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.BigQueryTableSpec other) { - if (other == com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance()) - return this; - if (other.tableSourceType_ != 0) { - setTableSourceTypeValue(other.getTableSourceTypeValue()); - } - switch (other.getTypeSpecCase()) { - case VIEW_SPEC: - { - mergeViewSpec(other.getViewSpec()); - break; - } - case TABLE_SPEC: - { - mergeTableSpec(other.getTableSpec()); - break; - } - case TYPESPEC_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: - { - tableSourceType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage( - internalGetViewSpecFieldBuilder().getBuilder(), extensionRegistry); - typeSpecCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetTableSpecFieldBuilder().getBuilder(), extensionRegistry); - typeSpecCase_ = 3; - 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 typeSpecCase_ = 0; - private java.lang.Object typeSpec_; - - public TypeSpecCase getTypeSpecCase() { - return TypeSpecCase.forNumber(typeSpecCase_); - } - - public Builder clearTypeSpec() { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int tableSourceType_ = 0; - - /** - * - * - *
-     * Output only. The table source type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for tableSourceType. - */ - @java.lang.Override - public int getTableSourceTypeValue() { - return tableSourceType_; - } - - /** - * - * - *
-     * Output only. The table source type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for tableSourceType to set. - * @return This builder for chaining. - */ - public Builder setTableSourceTypeValue(int value) { - tableSourceType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The table source type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tableSourceType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TableSourceType getTableSourceType() { - com.google.cloud.datacatalog.v1.TableSourceType result = - com.google.cloud.datacatalog.v1.TableSourceType.forNumber(tableSourceType_); - return result == null ? com.google.cloud.datacatalog.v1.TableSourceType.UNRECOGNIZED : result; - } - - /** - * - * - *
-     * Output only. The table source type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The tableSourceType to set. - * @return This builder for chaining. - */ - public Builder setTableSourceType(com.google.cloud.datacatalog.v1.TableSourceType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - tableSourceType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The table source type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearTableSourceType() { - bitField0_ = (bitField0_ & ~0x00000001); - tableSourceType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ViewSpec, - com.google.cloud.datacatalog.v1.ViewSpec.Builder, - com.google.cloud.datacatalog.v1.ViewSpecOrBuilder> - viewSpecBuilder_; - - /** - * - * - *
-     * Table view specification. Populated only if
-     * the `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - * - * @return Whether the viewSpec field is set. - */ - @java.lang.Override - public boolean hasViewSpec() { - return typeSpecCase_ == 2; - } - - /** - * - * - *
-     * Table view specification. Populated only if
-     * the `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - * - * @return The viewSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ViewSpec getViewSpec() { - if (viewSpecBuilder_ == null) { - if (typeSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.ViewSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance(); - } else { - if (typeSpecCase_ == 2) { - return viewSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Table view specification. Populated only if
-     * the `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - */ - public Builder setViewSpec(com.google.cloud.datacatalog.v1.ViewSpec value) { - if (viewSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpec_ = value; - onChanged(); - } else { - viewSpecBuilder_.setMessage(value); - } - typeSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Table view specification. Populated only if
-     * the `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - */ - public Builder setViewSpec(com.google.cloud.datacatalog.v1.ViewSpec.Builder builderForValue) { - if (viewSpecBuilder_ == null) { - typeSpec_ = builderForValue.build(); - onChanged(); - } else { - viewSpecBuilder_.setMessage(builderForValue.build()); - } - typeSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Table view specification. Populated only if
-     * the `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - */ - public Builder mergeViewSpec(com.google.cloud.datacatalog.v1.ViewSpec value) { - if (viewSpecBuilder_ == null) { - if (typeSpecCase_ == 2 - && typeSpec_ != com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance()) { - typeSpec_ = - com.google.cloud.datacatalog.v1.ViewSpec.newBuilder( - (com.google.cloud.datacatalog.v1.ViewSpec) typeSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - typeSpec_ = value; - } - onChanged(); - } else { - if (typeSpecCase_ == 2) { - viewSpecBuilder_.mergeFrom(value); - } else { - viewSpecBuilder_.setMessage(value); - } - } - typeSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Table view specification. Populated only if
-     * the `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - */ - public Builder clearViewSpec() { - if (viewSpecBuilder_ == null) { - if (typeSpecCase_ == 2) { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - } - } else { - if (typeSpecCase_ == 2) { - typeSpecCase_ = 0; - typeSpec_ = null; - } - viewSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Table view specification. Populated only if
-     * the `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - */ - public com.google.cloud.datacatalog.v1.ViewSpec.Builder getViewSpecBuilder() { - return internalGetViewSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Table view specification. Populated only if
-     * the `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ViewSpecOrBuilder getViewSpecOrBuilder() { - if ((typeSpecCase_ == 2) && (viewSpecBuilder_ != null)) { - return viewSpecBuilder_.getMessageOrBuilder(); - } else { - if (typeSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.ViewSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Table view specification. Populated only if
-     * the `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ViewSpec, - com.google.cloud.datacatalog.v1.ViewSpec.Builder, - com.google.cloud.datacatalog.v1.ViewSpecOrBuilder> - internalGetViewSpecFieldBuilder() { - if (viewSpecBuilder_ == null) { - if (!(typeSpecCase_ == 2)) { - typeSpec_ = com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance(); - } - viewSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ViewSpec, - com.google.cloud.datacatalog.v1.ViewSpec.Builder, - com.google.cloud.datacatalog.v1.ViewSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.ViewSpec) typeSpec_, - getParentForChildren(), - isClean()); - typeSpec_ = null; - } - typeSpecCase_ = 2; - onChanged(); - return viewSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TableSpec, - com.google.cloud.datacatalog.v1.TableSpec.Builder, - com.google.cloud.datacatalog.v1.TableSpecOrBuilder> - tableSpecBuilder_; - - /** - * - * - *
-     * Specification of a BigQuery table. Populated only if
-     * the `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - * - * @return Whether the tableSpec field is set. - */ - @java.lang.Override - public boolean hasTableSpec() { - return typeSpecCase_ == 3; - } - - /** - * - * - *
-     * Specification of a BigQuery table. Populated only if
-     * the `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - * - * @return The tableSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TableSpec getTableSpec() { - if (tableSpecBuilder_ == null) { - if (typeSpecCase_ == 3) { - return (com.google.cloud.datacatalog.v1.TableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.TableSpec.getDefaultInstance(); - } else { - if (typeSpecCase_ == 3) { - return tableSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.TableSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification of a BigQuery table. Populated only if
-     * the `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - */ - public Builder setTableSpec(com.google.cloud.datacatalog.v1.TableSpec value) { - if (tableSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpec_ = value; - onChanged(); - } else { - tableSpecBuilder_.setMessage(value); - } - typeSpecCase_ = 3; - return this; - } - - /** - * - * - *
-     * Specification of a BigQuery table. Populated only if
-     * the `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - */ - public Builder setTableSpec(com.google.cloud.datacatalog.v1.TableSpec.Builder builderForValue) { - if (tableSpecBuilder_ == null) { - typeSpec_ = builderForValue.build(); - onChanged(); - } else { - tableSpecBuilder_.setMessage(builderForValue.build()); - } - typeSpecCase_ = 3; - return this; - } - - /** - * - * - *
-     * Specification of a BigQuery table. Populated only if
-     * the `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - */ - public Builder mergeTableSpec(com.google.cloud.datacatalog.v1.TableSpec value) { - if (tableSpecBuilder_ == null) { - if (typeSpecCase_ == 3 - && typeSpec_ != com.google.cloud.datacatalog.v1.TableSpec.getDefaultInstance()) { - typeSpec_ = - com.google.cloud.datacatalog.v1.TableSpec.newBuilder( - (com.google.cloud.datacatalog.v1.TableSpec) typeSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - typeSpec_ = value; - } - onChanged(); - } else { - if (typeSpecCase_ == 3) { - tableSpecBuilder_.mergeFrom(value); - } else { - tableSpecBuilder_.setMessage(value); - } - } - typeSpecCase_ = 3; - return this; - } - - /** - * - * - *
-     * Specification of a BigQuery table. Populated only if
-     * the `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - */ - public Builder clearTableSpec() { - if (tableSpecBuilder_ == null) { - if (typeSpecCase_ == 3) { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - } - } else { - if (typeSpecCase_ == 3) { - typeSpecCase_ = 0; - typeSpec_ = null; - } - tableSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification of a BigQuery table. Populated only if
-     * the `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - */ - public com.google.cloud.datacatalog.v1.TableSpec.Builder getTableSpecBuilder() { - return internalGetTableSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification of a BigQuery table. Populated only if
-     * the `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TableSpecOrBuilder getTableSpecOrBuilder() { - if ((typeSpecCase_ == 3) && (tableSpecBuilder_ != null)) { - return tableSpecBuilder_.getMessageOrBuilder(); - } else { - if (typeSpecCase_ == 3) { - return (com.google.cloud.datacatalog.v1.TableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.TableSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification of a BigQuery table. Populated only if
-     * the `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TableSpec, - com.google.cloud.datacatalog.v1.TableSpec.Builder, - com.google.cloud.datacatalog.v1.TableSpecOrBuilder> - internalGetTableSpecFieldBuilder() { - if (tableSpecBuilder_ == null) { - if (!(typeSpecCase_ == 3)) { - typeSpec_ = com.google.cloud.datacatalog.v1.TableSpec.getDefaultInstance(); - } - tableSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TableSpec, - com.google.cloud.datacatalog.v1.TableSpec.Builder, - com.google.cloud.datacatalog.v1.TableSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.TableSpec) typeSpec_, - getParentForChildren(), - isClean()); - typeSpec_ = null; - } - typeSpecCase_ = 3; - onChanged(); - return tableSpecBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.BigQueryTableSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.BigQueryTableSpec) - private static final com.google.cloud.datacatalog.v1.BigQueryTableSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.BigQueryTableSpec(); - } - - public static com.google.cloud.datacatalog.v1.BigQueryTableSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryTableSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryTableSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpecOrBuilder.java deleted file mode 100644 index b6ead5cceec5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BigQueryTableSpecOrBuilder.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface BigQueryTableSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.BigQueryTableSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The table source type.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for tableSourceType. - */ - int getTableSourceTypeValue(); - - /** - * - * - *
-   * Output only. The table source type.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tableSourceType. - */ - com.google.cloud.datacatalog.v1.TableSourceType getTableSourceType(); - - /** - * - * - *
-   * Table view specification. Populated only if
-   * the `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - * - * @return Whether the viewSpec field is set. - */ - boolean hasViewSpec(); - - /** - * - * - *
-   * Table view specification. Populated only if
-   * the `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - * - * @return The viewSpec. - */ - com.google.cloud.datacatalog.v1.ViewSpec getViewSpec(); - - /** - * - * - *
-   * Table view specification. Populated only if
-   * the `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1.ViewSpec view_spec = 2; - */ - com.google.cloud.datacatalog.v1.ViewSpecOrBuilder getViewSpecOrBuilder(); - - /** - * - * - *
-   * Specification of a BigQuery table. Populated only if
-   * the `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - * - * @return Whether the tableSpec field is set. - */ - boolean hasTableSpec(); - - /** - * - * - *
-   * Specification of a BigQuery table. Populated only if
-   * the `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - * - * @return The tableSpec. - */ - com.google.cloud.datacatalog.v1.TableSpec getTableSpec(); - - /** - * - * - *
-   * Specification of a BigQuery table. Populated only if
-   * the `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1.TableSpec table_spec = 3; - */ - com.google.cloud.datacatalog.v1.TableSpecOrBuilder getTableSpecOrBuilder(); - - com.google.cloud.datacatalog.v1.BigQueryTableSpec.TypeSpecCase getTypeSpecCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContext.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContext.java deleted file mode 100644 index 7d431bef3927..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContext.java +++ /dev/null @@ -1,982 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Business Context of the entry.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BusinessContext} - */ -@com.google.protobuf.Generated -public final class BusinessContext extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.BusinessContext) - BusinessContextOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "BusinessContext"); - } - - // Use BusinessContext.newBuilder() to construct. - private BusinessContext(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private BusinessContext() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_BusinessContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.BusinessContext.class, - com.google.cloud.datacatalog.v1.BusinessContext.Builder.class); - } - - private int bitField0_; - public static final int ENTRY_OVERVIEW_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1.EntryOverview entryOverview_; - - /** - * - * - *
-   * Entry overview fields for rich text descriptions of entries.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - * - * @return Whether the entryOverview field is set. - */ - @java.lang.Override - public boolean hasEntryOverview() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Entry overview fields for rich text descriptions of entries.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - * - * @return The entryOverview. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOverview getEntryOverview() { - return entryOverview_ == null - ? com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance() - : entryOverview_; - } - - /** - * - * - *
-   * Entry overview fields for rich text descriptions of entries.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder getEntryOverviewOrBuilder() { - return entryOverview_ == null - ? com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance() - : entryOverview_; - } - - public static final int CONTACTS_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.Contacts contacts_; - - /** - * - * - *
-   * Contact people for the entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - * - * @return Whether the contacts field is set. - */ - @java.lang.Override - public boolean hasContacts() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Contact people for the entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - * - * @return The contacts. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts getContacts() { - return contacts_ == null - ? com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance() - : contacts_; - } - - /** - * - * - *
-   * Contact people for the entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ContactsOrBuilder getContactsOrBuilder() { - return contacts_ == null - ? com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance() - : contacts_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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, getEntryOverview()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getContacts()); - } - 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, getEntryOverview()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContacts()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.BusinessContext)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.BusinessContext other = - (com.google.cloud.datacatalog.v1.BusinessContext) obj; - - if (hasEntryOverview() != other.hasEntryOverview()) return false; - if (hasEntryOverview()) { - if (!getEntryOverview().equals(other.getEntryOverview())) return false; - } - if (hasContacts() != other.hasContacts()) return false; - if (hasContacts()) { - if (!getContacts().equals(other.getContacts())) return false; - } - if (!getUnknownFields().equals(other.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 (hasEntryOverview()) { - hash = (37 * hash) + ENTRY_OVERVIEW_FIELD_NUMBER; - hash = (53 * hash) + getEntryOverview().hashCode(); - } - if (hasContacts()) { - hash = (37 * hash) + CONTACTS_FIELD_NUMBER; - hash = (53 * hash) + getContacts().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.BusinessContext prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Business Context of the entry.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.BusinessContext} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.BusinessContext) - com.google.cloud.datacatalog.v1.BusinessContextOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_BusinessContext_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.BusinessContext.class, - com.google.cloud.datacatalog.v1.BusinessContext.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.BusinessContext.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetEntryOverviewFieldBuilder(); - internalGetContactsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - entryOverview_ = null; - if (entryOverviewBuilder_ != null) { - entryOverviewBuilder_.dispose(); - entryOverviewBuilder_ = null; - } - contacts_ = null; - if (contactsBuilder_ != null) { - contactsBuilder_.dispose(); - contactsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BusinessContext getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BusinessContext build() { - com.google.cloud.datacatalog.v1.BusinessContext result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BusinessContext buildPartial() { - com.google.cloud.datacatalog.v1.BusinessContext result = - new com.google.cloud.datacatalog.v1.BusinessContext(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.BusinessContext result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entryOverview_ = - entryOverviewBuilder_ == null ? entryOverview_ : entryOverviewBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.contacts_ = contactsBuilder_ == null ? contacts_ : contactsBuilder_.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.datacatalog.v1.BusinessContext) { - return mergeFrom((com.google.cloud.datacatalog.v1.BusinessContext) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.BusinessContext other) { - if (other == com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance()) - return this; - if (other.hasEntryOverview()) { - mergeEntryOverview(other.getEntryOverview()); - } - if (other.hasContacts()) { - mergeContacts(other.getContacts()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetEntryOverviewFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetContactsFieldBuilder().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.datacatalog.v1.EntryOverview entryOverview_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryOverview, - com.google.cloud.datacatalog.v1.EntryOverview.Builder, - com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder> - entryOverviewBuilder_; - - /** - * - * - *
-     * Entry overview fields for rich text descriptions of entries.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - * - * @return Whether the entryOverview field is set. - */ - public boolean hasEntryOverview() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Entry overview fields for rich text descriptions of entries.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - * - * @return The entryOverview. - */ - public com.google.cloud.datacatalog.v1.EntryOverview getEntryOverview() { - if (entryOverviewBuilder_ == null) { - return entryOverview_ == null - ? com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance() - : entryOverview_; - } else { - return entryOverviewBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Entry overview fields for rich text descriptions of entries.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - */ - public Builder setEntryOverview(com.google.cloud.datacatalog.v1.EntryOverview value) { - if (entryOverviewBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entryOverview_ = value; - } else { - entryOverviewBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry overview fields for rich text descriptions of entries.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - */ - public Builder setEntryOverview( - com.google.cloud.datacatalog.v1.EntryOverview.Builder builderForValue) { - if (entryOverviewBuilder_ == null) { - entryOverview_ = builderForValue.build(); - } else { - entryOverviewBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry overview fields for rich text descriptions of entries.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - */ - public Builder mergeEntryOverview(com.google.cloud.datacatalog.v1.EntryOverview value) { - if (entryOverviewBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && entryOverview_ != null - && entryOverview_ - != com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance()) { - getEntryOverviewBuilder().mergeFrom(value); - } else { - entryOverview_ = value; - } - } else { - entryOverviewBuilder_.mergeFrom(value); - } - if (entryOverview_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Entry overview fields for rich text descriptions of entries.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - */ - public Builder clearEntryOverview() { - bitField0_ = (bitField0_ & ~0x00000001); - entryOverview_ = null; - if (entryOverviewBuilder_ != null) { - entryOverviewBuilder_.dispose(); - entryOverviewBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry overview fields for rich text descriptions of entries.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - */ - public com.google.cloud.datacatalog.v1.EntryOverview.Builder getEntryOverviewBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetEntryOverviewFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Entry overview fields for rich text descriptions of entries.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - */ - public com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder getEntryOverviewOrBuilder() { - if (entryOverviewBuilder_ != null) { - return entryOverviewBuilder_.getMessageOrBuilder(); - } else { - return entryOverview_ == null - ? com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance() - : entryOverview_; - } - } - - /** - * - * - *
-     * Entry overview fields for rich text descriptions of entries.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryOverview, - com.google.cloud.datacatalog.v1.EntryOverview.Builder, - com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder> - internalGetEntryOverviewFieldBuilder() { - if (entryOverviewBuilder_ == null) { - entryOverviewBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryOverview, - com.google.cloud.datacatalog.v1.EntryOverview.Builder, - com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder>( - getEntryOverview(), getParentForChildren(), isClean()); - entryOverview_ = null; - } - return entryOverviewBuilder_; - } - - private com.google.cloud.datacatalog.v1.Contacts contacts_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Contacts, - com.google.cloud.datacatalog.v1.Contacts.Builder, - com.google.cloud.datacatalog.v1.ContactsOrBuilder> - contactsBuilder_; - - /** - * - * - *
-     * Contact people for the entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - * - * @return Whether the contacts field is set. - */ - public boolean hasContacts() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Contact people for the entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - * - * @return The contacts. - */ - public com.google.cloud.datacatalog.v1.Contacts getContacts() { - if (contactsBuilder_ == null) { - return contacts_ == null - ? com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance() - : contacts_; - } else { - return contactsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Contact people for the entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - */ - public Builder setContacts(com.google.cloud.datacatalog.v1.Contacts value) { - if (contactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contacts_ = value; - } else { - contactsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Contact people for the entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - */ - public Builder setContacts(com.google.cloud.datacatalog.v1.Contacts.Builder builderForValue) { - if (contactsBuilder_ == null) { - contacts_ = builderForValue.build(); - } else { - contactsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Contact people for the entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - */ - public Builder mergeContacts(com.google.cloud.datacatalog.v1.Contacts value) { - if (contactsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && contacts_ != null - && contacts_ != com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance()) { - getContactsBuilder().mergeFrom(value); - } else { - contacts_ = value; - } - } else { - contactsBuilder_.mergeFrom(value); - } - if (contacts_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Contact people for the entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - */ - public Builder clearContacts() { - bitField0_ = (bitField0_ & ~0x00000002); - contacts_ = null; - if (contactsBuilder_ != null) { - contactsBuilder_.dispose(); - contactsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Contact people for the entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - */ - public com.google.cloud.datacatalog.v1.Contacts.Builder getContactsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetContactsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Contact people for the entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - */ - public com.google.cloud.datacatalog.v1.ContactsOrBuilder getContactsOrBuilder() { - if (contactsBuilder_ != null) { - return contactsBuilder_.getMessageOrBuilder(); - } else { - return contacts_ == null - ? com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance() - : contacts_; - } - } - - /** - * - * - *
-     * Contact people for the entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Contacts, - com.google.cloud.datacatalog.v1.Contacts.Builder, - com.google.cloud.datacatalog.v1.ContactsOrBuilder> - internalGetContactsFieldBuilder() { - if (contactsBuilder_ == null) { - contactsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Contacts, - com.google.cloud.datacatalog.v1.Contacts.Builder, - com.google.cloud.datacatalog.v1.ContactsOrBuilder>( - getContacts(), getParentForChildren(), isClean()); - contacts_ = null; - } - return contactsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.BusinessContext) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.BusinessContext) - private static final com.google.cloud.datacatalog.v1.BusinessContext DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.BusinessContext(); - } - - public static com.google.cloud.datacatalog.v1.BusinessContext getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BusinessContext parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.BusinessContext getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContextOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContextOrBuilder.java deleted file mode 100644 index 6ed8e4448682..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/BusinessContextOrBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface BusinessContextOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.BusinessContext) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Entry overview fields for rich text descriptions of entries.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - * - * @return Whether the entryOverview field is set. - */ - boolean hasEntryOverview(); - - /** - * - * - *
-   * Entry overview fields for rich text descriptions of entries.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - * - * @return The entryOverview. - */ - com.google.cloud.datacatalog.v1.EntryOverview getEntryOverview(); - - /** - * - * - *
-   * Entry overview fields for rich text descriptions of entries.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 1; - */ - com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder getEntryOverviewOrBuilder(); - - /** - * - * - *
-   * Contact people for the entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - * - * @return Whether the contacts field is set. - */ - boolean hasContacts(); - - /** - * - * - *
-   * Contact people for the entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - * - * @return The contacts. - */ - com.google.cloud.datacatalog.v1.Contacts getContacts(); - - /** - * - * - *
-   * Contact people for the entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Contacts contacts = 2; - */ - com.google.cloud.datacatalog.v1.ContactsOrBuilder getContactsOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CatalogUIExperience.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CatalogUIExperience.java deleted file mode 100644 index e6b54cd98b13..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CatalogUIExperience.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Configuration related to the opt-in status for the UI switch to Dataplex.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.CatalogUIExperience} - */ -@com.google.protobuf.Generated -public enum CatalogUIExperience implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value. The default UI is Dataplex.
-   * 
- * - * CATALOG_UI_EXPERIENCE_UNSPECIFIED = 0; - */ - CATALOG_UI_EXPERIENCE_UNSPECIFIED(0), - /** - * - * - *
-   * The UI is Dataplex.
-   * 
- * - * CATALOG_UI_EXPERIENCE_ENABLED = 1; - */ - CATALOG_UI_EXPERIENCE_ENABLED(1), - /** - * - * - *
-   * The UI is Data Catalog.
-   * 
- * - * CATALOG_UI_EXPERIENCE_DISABLED = 2; - */ - CATALOG_UI_EXPERIENCE_DISABLED(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CatalogUIExperience"); - } - - /** - * - * - *
-   * Default value. The default UI is Dataplex.
-   * 
- * - * CATALOG_UI_EXPERIENCE_UNSPECIFIED = 0; - */ - public static final int CATALOG_UI_EXPERIENCE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * The UI is Dataplex.
-   * 
- * - * CATALOG_UI_EXPERIENCE_ENABLED = 1; - */ - public static final int CATALOG_UI_EXPERIENCE_ENABLED_VALUE = 1; - - /** - * - * - *
-   * The UI is Data Catalog.
-   * 
- * - * CATALOG_UI_EXPERIENCE_DISABLED = 2; - */ - public static final int CATALOG_UI_EXPERIENCE_DISABLED_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 CatalogUIExperience 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 CatalogUIExperience forNumber(int value) { - switch (value) { - case 0: - return CATALOG_UI_EXPERIENCE_UNSPECIFIED; - case 1: - return CATALOG_UI_EXPERIENCE_ENABLED; - case 2: - return CATALOG_UI_EXPERIENCE_DISABLED; - 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 CatalogUIExperience findValueByNumber(int number) { - return CatalogUIExperience.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.datacatalog.v1.Datacatalog.getDescriptor().getEnumTypes().get(2); - } - - private static final CatalogUIExperience[] VALUES = values(); - - public static CatalogUIExperience 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 CatalogUIExperience(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.CatalogUIExperience) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpec.java deleted file mode 100644 index f251d29db2db..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpec.java +++ /dev/null @@ -1,2328 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to Instance
- * entries that are part of `CLOUD_BIGTABLE` system.
- * (user_specified_type)
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CloudBigtableInstanceSpec} - */ -@com.google.protobuf.Generated -public final class CloudBigtableInstanceSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) - CloudBigtableInstanceSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CloudBigtableInstanceSpec"); - } - - // Use CloudBigtableInstanceSpec.newBuilder() to construct. - private CloudBigtableInstanceSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CloudBigtableInstanceSpec() { - cloudBigtableClusterSpecs_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.class, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.Builder.class); - } - - public interface CloudBigtableClusterSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Name of the cluster.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-     * Name of the cluster.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-     * Location of the cluster, typically a Cloud zone.
-     * 
- * - * string location = 2; - * - * @return The location. - */ - java.lang.String getLocation(); - - /** - * - * - *
-     * Location of the cluster, typically a Cloud zone.
-     * 
- * - * string location = 2; - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); - - /** - * - * - *
-     * Type of the resource. For a cluster this would be "CLUSTER".
-     * 
- * - * string type = 3; - * - * @return The type. - */ - java.lang.String getType(); - - /** - * - * - *
-     * Type of the resource. For a cluster this would be "CLUSTER".
-     * 
- * - * string type = 3; - * - * @return The bytes for type. - */ - com.google.protobuf.ByteString getTypeBytes(); - - /** - * - * - *
-     * A link back to the parent resource, in this case Instance.
-     * 
- * - * string linked_resource = 4; - * - * @return The linkedResource. - */ - java.lang.String getLinkedResource(); - - /** - * - * - *
-     * A link back to the parent resource, in this case Instance.
-     * 
- * - * string linked_resource = 4; - * - * @return The bytes for linkedResource. - */ - com.google.protobuf.ByteString getLinkedResourceBytes(); - } - - /** - * - * - *
-   * Spec that applies to clusters of an Instance of Cloud Bigtable.
-   * 
- * - * Protobuf type {@code - * google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec} - */ - public static final class CloudBigtableClusterSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec) - CloudBigtableClusterSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CloudBigtableClusterSpec"); - } - - // Use CloudBigtableClusterSpec.newBuilder() to construct. - private CloudBigtableClusterSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CloudBigtableClusterSpec() { - displayName_ = ""; - location_ = ""; - type_ = ""; - linkedResource_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .class, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-     * Name of the cluster.
-     * 
- * - * string display_name = 1; - * - * @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; - } - } - - /** - * - * - *
-     * Name of the cluster.
-     * 
- * - * string display_name = 1; - * - * @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 LOCATION_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object location_ = ""; - - /** - * - * - *
-     * Location of the cluster, typically a Cloud zone.
-     * 
- * - * string location = 2; - * - * @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; - } - } - - /** - * - * - *
-     * Location of the cluster, typically a Cloud zone.
-     * 
- * - * string location = 2; - * - * @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 TYPE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object type_ = ""; - - /** - * - * - *
-     * Type of the resource. For a cluster this would be "CLUSTER".
-     * 
- * - * string type = 3; - * - * @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; - } - } - - /** - * - * - *
-     * Type of the resource. For a cluster this would be "CLUSTER".
-     * 
- * - * string type = 3; - * - * @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 LINKED_RESOURCE_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object linkedResource_ = ""; - - /** - * - * - *
-     * A link back to the parent resource, in this case Instance.
-     * 
- * - * string linked_resource = 4; - * - * @return The linkedResource. - */ - @java.lang.Override - public java.lang.String getLinkedResource() { - java.lang.Object ref = linkedResource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - linkedResource_ = s; - return s; - } - } - - /** - * - * - *
-     * A link back to the parent resource, in this case Instance.
-     * 
- * - * string linked_resource = 4; - * - * @return The bytes for linkedResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = linkedResource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - linkedResource_ = 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(displayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, displayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, location_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, type_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(linkedResource_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, linkedResource_); - } - 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(location_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, location_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, type_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(linkedResource_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, linkedResource_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec other = - (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getType().equals(other.getType())) return false; - if (!getLinkedResource().equals(other.getLinkedResource())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + LINKED_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getLinkedResource().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Spec that applies to clusters of an Instance of Cloud Bigtable.
-     * 
- * - * Protobuf type {@code - * google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec) - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .class, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .Builder.class); - } - - // Construct using - // com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - location_ = ""; - type_ = ""; - linkedResource_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - build() { - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - buildPartial() { - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec result = - new com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec( - this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.location_ = location_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.linkedResource_ = linkedResource_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec) { - return mergeFrom( - (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec) - other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - other) { - if (other - == com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getLinkedResource().isEmpty()) { - linkedResource_ = other.linkedResource_; - 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: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - linkedResource_ = 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 displayName_ = ""; - - /** - * - * - *
-       * Name of the cluster.
-       * 
- * - * string display_name = 1; - * - * @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; - } - } - - /** - * - * - *
-       * Name of the cluster.
-       * 
- * - * string display_name = 1; - * - * @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; - } - } - - /** - * - * - *
-       * Name of the cluster.
-       * 
- * - * string display_name = 1; - * - * @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; - } - - /** - * - * - *
-       * Name of the cluster.
-       * 
- * - * string display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * Name of the cluster.
-       * 
- * - * string display_name = 1; - * - * @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 location_ = ""; - - /** - * - * - *
-       * Location of the cluster, typically a Cloud zone.
-       * 
- * - * string location = 2; - * - * @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; - } - } - - /** - * - * - *
-       * Location of the cluster, typically a Cloud zone.
-       * 
- * - * string location = 2; - * - * @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; - } - } - - /** - * - * - *
-       * Location of the cluster, typically a Cloud zone.
-       * 
- * - * string location = 2; - * - * @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_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * Location of the cluster, typically a Cloud zone.
-       * 
- * - * string location = 2; - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - location_ = getDefaultInstance().getLocation(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-       * Location of the cluster, typically a Cloud zone.
-       * 
- * - * string location = 2; - * - * @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_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - - /** - * - * - *
-       * Type of the resource. For a cluster this would be "CLUSTER".
-       * 
- * - * string type = 3; - * - * @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; - } - } - - /** - * - * - *
-       * Type of the resource. For a cluster this would be "CLUSTER".
-       * 
- * - * string type = 3; - * - * @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; - } - } - - /** - * - * - *
-       * Type of the resource. For a cluster this would be "CLUSTER".
-       * 
- * - * string type = 3; - * - * @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; - } - - /** - * - * - *
-       * Type of the resource. For a cluster this would be "CLUSTER".
-       * 
- * - * string type = 3; - * - * @return This builder for chaining. - */ - public Builder clearType() { - type_ = getDefaultInstance().getType(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-       * Type of the resource. For a cluster this would be "CLUSTER".
-       * 
- * - * string type = 3; - * - * @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 java.lang.Object linkedResource_ = ""; - - /** - * - * - *
-       * A link back to the parent resource, in this case Instance.
-       * 
- * - * string linked_resource = 4; - * - * @return The linkedResource. - */ - public java.lang.String getLinkedResource() { - java.lang.Object ref = linkedResource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - linkedResource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * A link back to the parent resource, in this case Instance.
-       * 
- * - * string linked_resource = 4; - * - * @return The bytes for linkedResource. - */ - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = linkedResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - linkedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * A link back to the parent resource, in this case Instance.
-       * 
- * - * string linked_resource = 4; - * - * @param value The linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - linkedResource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-       * A link back to the parent resource, in this case Instance.
-       * 
- * - * string linked_resource = 4; - * - * @return This builder for chaining. - */ - public Builder clearLinkedResource() { - linkedResource_ = getDefaultInstance().getLinkedResource(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-       * A link back to the parent resource, in this case Instance.
-       * 
- * - * string linked_resource = 4; - * - * @param value The bytes for linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - linkedResource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec) - private static final com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec(); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudBigtableClusterSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int CLOUD_BIGTABLE_CLUSTER_SPECS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec> - cloudBigtableClusterSpecs_; - - /** - * - * - *
-   * The list of clusters for the Instance.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - @java.lang.Override - public java.util.List< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec> - getCloudBigtableClusterSpecsList() { - return cloudBigtableClusterSpecs_; - } - - /** - * - * - *
-   * The list of clusters for the Instance.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpecOrBuilder> - getCloudBigtableClusterSpecsOrBuilderList() { - return cloudBigtableClusterSpecs_; - } - - /** - * - * - *
-   * The list of clusters for the Instance.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - @java.lang.Override - public int getCloudBigtableClusterSpecsCount() { - return cloudBigtableClusterSpecs_.size(); - } - - /** - * - * - *
-   * The list of clusters for the Instance.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - getCloudBigtableClusterSpecs(int index) { - return cloudBigtableClusterSpecs_.get(index); - } - - /** - * - * - *
-   * The list of clusters for the Instance.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpecOrBuilder - getCloudBigtableClusterSpecsOrBuilder(int index) { - return cloudBigtableClusterSpecs_.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 < cloudBigtableClusterSpecs_.size(); i++) { - output.writeMessage(1, cloudBigtableClusterSpecs_.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 < cloudBigtableClusterSpecs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, cloudBigtableClusterSpecs_.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.datacatalog.v1.CloudBigtableInstanceSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec other = - (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) obj; - - if (!getCloudBigtableClusterSpecsList().equals(other.getCloudBigtableClusterSpecsList())) - return false; - if (!getUnknownFields().equals(other.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 (getCloudBigtableClusterSpecsCount() > 0) { - hash = (37 * hash) + CLOUD_BIGTABLE_CLUSTER_SPECS_FIELD_NUMBER; - hash = (53 * hash) + getCloudBigtableClusterSpecsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to Instance
-   * entries that are part of `CLOUD_BIGTABLE` system.
-   * (user_specified_type)
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CloudBigtableInstanceSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.class, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (cloudBigtableClusterSpecsBuilder_ == null) { - cloudBigtableClusterSpecs_ = java.util.Collections.emptyList(); - } else { - cloudBigtableClusterSpecs_ = null; - cloudBigtableClusterSpecsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec build() { - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec buildPartial() { - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec result = - new com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec result) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - cloudBigtableClusterSpecs_ = - java.util.Collections.unmodifiableList(cloudBigtableClusterSpecs_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.cloudBigtableClusterSpecs_ = cloudBigtableClusterSpecs_; - } else { - result.cloudBigtableClusterSpecs_ = cloudBigtableClusterSpecsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec other) { - if (other == com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.getDefaultInstance()) - return this; - if (cloudBigtableClusterSpecsBuilder_ == null) { - if (!other.cloudBigtableClusterSpecs_.isEmpty()) { - if (cloudBigtableClusterSpecs_.isEmpty()) { - cloudBigtableClusterSpecs_ = other.cloudBigtableClusterSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureCloudBigtableClusterSpecsIsMutable(); - cloudBigtableClusterSpecs_.addAll(other.cloudBigtableClusterSpecs_); - } - onChanged(); - } - } else { - if (!other.cloudBigtableClusterSpecs_.isEmpty()) { - if (cloudBigtableClusterSpecsBuilder_.isEmpty()) { - cloudBigtableClusterSpecsBuilder_.dispose(); - cloudBigtableClusterSpecsBuilder_ = null; - cloudBigtableClusterSpecs_ = other.cloudBigtableClusterSpecs_; - bitField0_ = (bitField0_ & ~0x00000001); - cloudBigtableClusterSpecsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetCloudBigtableClusterSpecsFieldBuilder() - : null; - } else { - cloudBigtableClusterSpecsBuilder_.addAllMessages(other.cloudBigtableClusterSpecs_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - m = - input.readMessage( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpec.parser(), - extensionRegistry); - if (cloudBigtableClusterSpecsBuilder_ == null) { - ensureCloudBigtableClusterSpecsIsMutable(); - cloudBigtableClusterSpecs_.add(m); - } else { - cloudBigtableClusterSpecsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec> - cloudBigtableClusterSpecs_ = java.util.Collections.emptyList(); - - private void ensureCloudBigtableClusterSpecsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - cloudBigtableClusterSpecs_ = - new java.util.ArrayList< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec>( - cloudBigtableClusterSpecs_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .Builder, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpecOrBuilder> - cloudBigtableClusterSpecsBuilder_; - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public java.util.List< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec> - getCloudBigtableClusterSpecsList() { - if (cloudBigtableClusterSpecsBuilder_ == null) { - return java.util.Collections.unmodifiableList(cloudBigtableClusterSpecs_); - } else { - return cloudBigtableClusterSpecsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public int getCloudBigtableClusterSpecsCount() { - if (cloudBigtableClusterSpecsBuilder_ == null) { - return cloudBigtableClusterSpecs_.size(); - } else { - return cloudBigtableClusterSpecsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - getCloudBigtableClusterSpecs(int index) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - return cloudBigtableClusterSpecs_.get(index); - } else { - return cloudBigtableClusterSpecsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public Builder setCloudBigtableClusterSpecs( - int index, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec value) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCloudBigtableClusterSpecsIsMutable(); - cloudBigtableClusterSpecs_.set(index, value); - onChanged(); - } else { - cloudBigtableClusterSpecsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public Builder setCloudBigtableClusterSpecs( - int index, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec.Builder - builderForValue) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - ensureCloudBigtableClusterSpecsIsMutable(); - cloudBigtableClusterSpecs_.set(index, builderForValue.build()); - onChanged(); - } else { - cloudBigtableClusterSpecsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public Builder addCloudBigtableClusterSpecs( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec value) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCloudBigtableClusterSpecsIsMutable(); - cloudBigtableClusterSpecs_.add(value); - onChanged(); - } else { - cloudBigtableClusterSpecsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public Builder addCloudBigtableClusterSpecs( - int index, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec value) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureCloudBigtableClusterSpecsIsMutable(); - cloudBigtableClusterSpecs_.add(index, value); - onChanged(); - } else { - cloudBigtableClusterSpecsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public Builder addCloudBigtableClusterSpecs( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec.Builder - builderForValue) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - ensureCloudBigtableClusterSpecsIsMutable(); - cloudBigtableClusterSpecs_.add(builderForValue.build()); - onChanged(); - } else { - cloudBigtableClusterSpecsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public Builder addCloudBigtableClusterSpecs( - int index, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec.Builder - builderForValue) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - ensureCloudBigtableClusterSpecsIsMutable(); - cloudBigtableClusterSpecs_.add(index, builderForValue.build()); - onChanged(); - } else { - cloudBigtableClusterSpecsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public Builder addAllCloudBigtableClusterSpecs( - java.lang.Iterable< - ? extends - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpec> - values) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - ensureCloudBigtableClusterSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cloudBigtableClusterSpecs_); - onChanged(); - } else { - cloudBigtableClusterSpecsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public Builder clearCloudBigtableClusterSpecs() { - if (cloudBigtableClusterSpecsBuilder_ == null) { - cloudBigtableClusterSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - cloudBigtableClusterSpecsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public Builder removeCloudBigtableClusterSpecs(int index) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - ensureCloudBigtableClusterSpecsIsMutable(); - cloudBigtableClusterSpecs_.remove(index); - onChanged(); - } else { - cloudBigtableClusterSpecsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .Builder - getCloudBigtableClusterSpecsBuilder(int index) { - return internalGetCloudBigtableClusterSpecsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpecOrBuilder - getCloudBigtableClusterSpecsOrBuilder(int index) { - if (cloudBigtableClusterSpecsBuilder_ == null) { - return cloudBigtableClusterSpecs_.get(index); - } else { - return cloudBigtableClusterSpecsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public java.util.List< - ? extends - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpecOrBuilder> - getCloudBigtableClusterSpecsOrBuilderList() { - if (cloudBigtableClusterSpecsBuilder_ != null) { - return cloudBigtableClusterSpecsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(cloudBigtableClusterSpecs_); - } - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .Builder - addCloudBigtableClusterSpecsBuilder() { - return internalGetCloudBigtableClusterSpecsFieldBuilder() - .addBuilder( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .getDefaultInstance()); - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .Builder - addCloudBigtableClusterSpecsBuilder(int index) { - return internalGetCloudBigtableClusterSpecsFieldBuilder() - .addBuilder( - index, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .getDefaultInstance()); - } - - /** - * - * - *
-     * The list of clusters for the Instance.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - public java.util.List< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .Builder> - getCloudBigtableClusterSpecsBuilderList() { - return internalGetCloudBigtableClusterSpecsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .Builder, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpecOrBuilder> - internalGetCloudBigtableClusterSpecsFieldBuilder() { - if (cloudBigtableClusterSpecsBuilder_ == null) { - cloudBigtableClusterSpecsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - .Builder, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpecOrBuilder>( - cloudBigtableClusterSpecs_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - cloudBigtableClusterSpecs_ = null; - } - return cloudBigtableClusterSpecsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) - private static final com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec(); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudBigtableInstanceSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpecOrBuilder.java deleted file mode 100644 index acdcc974d625..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableInstanceSpecOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CloudBigtableInstanceSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of clusters for the Instance.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - java.util.List - getCloudBigtableClusterSpecsList(); - - /** - * - * - *
-   * The list of clusters for the Instance.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec - getCloudBigtableClusterSpecs(int index); - - /** - * - * - *
-   * The list of clusters for the Instance.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - int getCloudBigtableClusterSpecsCount(); - - /** - * - * - *
-   * The list of clusters for the Instance.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - java.util.List< - ? extends - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - .CloudBigtableClusterSpecOrBuilder> - getCloudBigtableClusterSpecsOrBuilderList(); - - /** - * - * - *
-   * The list of clusters for the Instance.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; - * - */ - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpecOrBuilder - getCloudBigtableClusterSpecsOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpec.java deleted file mode 100644 index eb5142a17c2c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpec.java +++ /dev/null @@ -1,608 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to
- * all entries that are part of `CLOUD_BIGTABLE` system
- * (user_specified_type)
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CloudBigtableSystemSpec} - */ -@com.google.protobuf.Generated -public final class CloudBigtableSystemSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudBigtableSystemSpec) - CloudBigtableSystemSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CloudBigtableSystemSpec"); - } - - // Use CloudBigtableSystemSpec.newBuilder() to construct. - private CloudBigtableSystemSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CloudBigtableSystemSpec() { - instanceDisplayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.class, - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.Builder.class); - } - - public static final int INSTANCE_DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object instanceDisplayName_ = ""; - - /** - * - * - *
-   * Display name of the Instance. This is user specified and different from
-   * the resource name.
-   * 
- * - * string instance_display_name = 1; - * - * @return The instanceDisplayName. - */ - @java.lang.Override - public java.lang.String getInstanceDisplayName() { - java.lang.Object ref = instanceDisplayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceDisplayName_ = s; - return s; - } - } - - /** - * - * - *
-   * Display name of the Instance. This is user specified and different from
-   * the resource name.
-   * 
- * - * string instance_display_name = 1; - * - * @return The bytes for instanceDisplayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceDisplayNameBytes() { - java.lang.Object ref = instanceDisplayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceDisplayName_ = 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(instanceDisplayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceDisplayName_); - } - 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(instanceDisplayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instanceDisplayName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec other = - (com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) obj; - - if (!getInstanceDisplayName().equals(other.getInstanceDisplayName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + INSTANCE_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getInstanceDisplayName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to
-   * all entries that are part of `CLOUD_BIGTABLE` system
-   * (user_specified_type)
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CloudBigtableSystemSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CloudBigtableSystemSpec) - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.class, - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - instanceDisplayName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec build() { - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec buildPartial() { - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec result = - new com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.instanceDisplayName_ = instanceDisplayName_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec other) { - if (other == com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance()) - return this; - if (!other.getInstanceDisplayName().isEmpty()) { - instanceDisplayName_ = other.instanceDisplayName_; - 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: - { - instanceDisplayName_ = 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 instanceDisplayName_ = ""; - - /** - * - * - *
-     * Display name of the Instance. This is user specified and different from
-     * the resource name.
-     * 
- * - * string instance_display_name = 1; - * - * @return The instanceDisplayName. - */ - public java.lang.String getInstanceDisplayName() { - java.lang.Object ref = instanceDisplayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceDisplayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Display name of the Instance. This is user specified and different from
-     * the resource name.
-     * 
- * - * string instance_display_name = 1; - * - * @return The bytes for instanceDisplayName. - */ - public com.google.protobuf.ByteString getInstanceDisplayNameBytes() { - java.lang.Object ref = instanceDisplayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Display name of the Instance. This is user specified and different from
-     * the resource name.
-     * 
- * - * string instance_display_name = 1; - * - * @param value The instanceDisplayName to set. - * @return This builder for chaining. - */ - public Builder setInstanceDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - instanceDisplayName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Display name of the Instance. This is user specified and different from
-     * the resource name.
-     * 
- * - * string instance_display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearInstanceDisplayName() { - instanceDisplayName_ = getDefaultInstance().getInstanceDisplayName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Display name of the Instance. This is user specified and different from
-     * the resource name.
-     * 
- * - * string instance_display_name = 1; - * - * @param value The bytes for instanceDisplayName to set. - * @return This builder for chaining. - */ - public Builder setInstanceDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - instanceDisplayName_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CloudBigtableSystemSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CloudBigtableSystemSpec) - private static final com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec(); - } - - public static com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudBigtableSystemSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpecOrBuilder.java deleted file mode 100644 index 05b73b1153a0..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudBigtableSystemSpecOrBuilder.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CloudBigtableSystemSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CloudBigtableSystemSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Display name of the Instance. This is user specified and different from
-   * the resource name.
-   * 
- * - * string instance_display_name = 1; - * - * @return The instanceDisplayName. - */ - java.lang.String getInstanceDisplayName(); - - /** - * - * - *
-   * Display name of the Instance. This is user specified and different from
-   * the resource name.
-   * 
- * - * string instance_display_name = 1; - * - * @return The bytes for instanceDisplayName. - */ - com.google.protobuf.ByteString getInstanceDisplayNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpec.java deleted file mode 100644 index 0b59796aa242..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpec.java +++ /dev/null @@ -1,1136 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/bigquery.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification for the BigQuery connection to a Cloud SQL instance.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec} - */ -@com.google.protobuf.Generated -public final class CloudSqlBigQueryConnectionSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) - CloudSqlBigQueryConnectionSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CloudSqlBigQueryConnectionSpec"); - } - - // Use CloudSqlBigQueryConnectionSpec.newBuilder() to construct. - private CloudSqlBigQueryConnectionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CloudSqlBigQueryConnectionSpec() { - instanceId_ = ""; - database_ = ""; - type_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.class, - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.Builder.class); - } - - /** - * - * - *
-   * Supported Cloud SQL database types.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType} - */ - public enum DatabaseType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified database type.
-     * 
- * - * DATABASE_TYPE_UNSPECIFIED = 0; - */ - DATABASE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Cloud SQL for PostgreSQL.
-     * 
- * - * POSTGRES = 1; - */ - POSTGRES(1), - /** - * - * - *
-     * Cloud SQL for MySQL.
-     * 
- * - * MYSQL = 2; - */ - MYSQL(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DatabaseType"); - } - - /** - * - * - *
-     * Unspecified database type.
-     * 
- * - * DATABASE_TYPE_UNSPECIFIED = 0; - */ - public static final int DATABASE_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * Cloud SQL for PostgreSQL.
-     * 
- * - * POSTGRES = 1; - */ - public static final int POSTGRES_VALUE = 1; - - /** - * - * - *
-     * Cloud SQL for MySQL.
-     * 
- * - * MYSQL = 2; - */ - public static final int MYSQL_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 DatabaseType 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 DatabaseType forNumber(int value) { - switch (value) { - case 0: - return DATABASE_TYPE_UNSPECIFIED; - case 1: - return POSTGRES; - case 2: - return MYSQL; - 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 DatabaseType findValueByNumber(int number) { - return DatabaseType.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.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final DatabaseType[] VALUES = values(); - - public static DatabaseType 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 DatabaseType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType) - } - - public static final int INSTANCE_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object instanceId_ = ""; - - /** - * - * - *
-   * Cloud SQL instance ID in the format of `project:location:instance`.
-   * 
- * - * string instance_id = 1; - * - * @return The instanceId. - */ - @java.lang.Override - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } - } - - /** - * - * - *
-   * Cloud SQL instance ID in the format of `project:location:instance`.
-   * 
- * - * string instance_id = 1; - * - * @return The bytes for instanceId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATABASE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object database_ = ""; - - /** - * - * - *
-   * Database name.
-   * 
- * - * string database = 2; - * - * @return The database. - */ - @java.lang.Override - public java.lang.String getDatabase() { - java.lang.Object ref = database_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - database_ = s; - return s; - } - } - - /** - * - * - *
-   * Database name.
-   * 
- * - * string database = 2; - * - * @return The bytes for database. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDatabaseBytes() { - java.lang.Object ref = database_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - database_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 3; - private int type_ = 0; - - /** - * - * - *
-   * Type of the Cloud SQL database.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - - /** - * - * - *
-   * Type of the Cloud SQL database.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType getType() { - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType result = - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType.forNumber( - type_); - return result == null - ? com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType.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(instanceId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, instanceId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(database_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, database_); - } - if (type_ - != com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType - .DATABASE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(3, 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(instanceId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instanceId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(database_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, database_); - } - if (type_ - != com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType - .DATABASE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, 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.datacatalog.v1.CloudSqlBigQueryConnectionSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec other = - (com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) obj; - - if (!getInstanceId().equals(other.getInstanceId())) return false; - if (!getDatabase().equals(other.getDatabase())) 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) + INSTANCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getInstanceId().hashCode(); - hash = (37 * hash) + DATABASE_FIELD_NUMBER; - hash = (53 * hash) + getDatabase().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification for the BigQuery connection to a Cloud SQL instance.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.class, - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - instanceId_ = ""; - database_ = ""; - type_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.BigQueryProto - .internal_static_google_cloud_datacatalog_v1_CloudSqlBigQueryConnectionSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec build() { - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec buildPartial() { - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec result = - new com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.instanceId_ = instanceId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.database_ = database_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.type_ = type_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec other) { - if (other - == com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.getDefaultInstance()) - return this; - if (!other.getInstanceId().isEmpty()) { - instanceId_ = other.instanceId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDatabase().isEmpty()) { - database_ = other.database_; - bitField0_ |= 0x00000002; - onChanged(); - } - 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: - { - instanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - database_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - type_ = 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 instanceId_ = ""; - - /** - * - * - *
-     * Cloud SQL instance ID in the format of `project:location:instance`.
-     * 
- * - * string instance_id = 1; - * - * @return The instanceId. - */ - public java.lang.String getInstanceId() { - java.lang.Object ref = instanceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Cloud SQL instance ID in the format of `project:location:instance`.
-     * 
- * - * string instance_id = 1; - * - * @return The bytes for instanceId. - */ - public com.google.protobuf.ByteString getInstanceIdBytes() { - java.lang.Object ref = instanceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Cloud SQL instance ID in the format of `project:location:instance`.
-     * 
- * - * string instance_id = 1; - * - * @param value The instanceId to set. - * @return This builder for chaining. - */ - public Builder setInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - instanceId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Cloud SQL instance ID in the format of `project:location:instance`.
-     * 
- * - * string instance_id = 1; - * - * @return This builder for chaining. - */ - public Builder clearInstanceId() { - instanceId_ = getDefaultInstance().getInstanceId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Cloud SQL instance ID in the format of `project:location:instance`.
-     * 
- * - * string instance_id = 1; - * - * @param value The bytes for instanceId to set. - * @return This builder for chaining. - */ - public Builder setInstanceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - instanceId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object database_ = ""; - - /** - * - * - *
-     * Database name.
-     * 
- * - * string database = 2; - * - * @return The database. - */ - public java.lang.String getDatabase() { - java.lang.Object ref = database_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - database_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Database name.
-     * 
- * - * string database = 2; - * - * @return The bytes for database. - */ - public com.google.protobuf.ByteString getDatabaseBytes() { - java.lang.Object ref = database_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - database_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Database name.
-     * 
- * - * string database = 2; - * - * @param value The database to set. - * @return This builder for chaining. - */ - public Builder setDatabase(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - database_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Database name.
-     * 
- * - * string database = 2; - * - * @return This builder for chaining. - */ - public Builder clearDatabase() { - database_ = getDefaultInstance().getDatabase(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Database name.
-     * 
- * - * string database = 2; - * - * @param value The bytes for database to set. - * @return This builder for chaining. - */ - public Builder setDatabaseBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - database_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int type_ = 0; - - /** - * - * - *
-     * Type of the Cloud SQL database.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - - /** - * - * - *
-     * Type of the Cloud SQL database.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; - * - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of the Cloud SQL database.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType getType() { - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType result = - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType.forNumber( - type_); - return result == null - ? com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Type of the Cloud SQL database.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; - * - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType( - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000004; - type_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of the Cloud SQL database.
-     * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; - * - * - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000004); - type_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) - private static final com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec(); - } - - public static com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CloudSqlBigQueryConnectionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpecOrBuilder.java deleted file mode 100644 index 73858fbf8132..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CloudSqlBigQueryConnectionSpecOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/bigquery.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CloudSqlBigQueryConnectionSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Cloud SQL instance ID in the format of `project:location:instance`.
-   * 
- * - * string instance_id = 1; - * - * @return The instanceId. - */ - java.lang.String getInstanceId(); - - /** - * - * - *
-   * Cloud SQL instance ID in the format of `project:location:instance`.
-   * 
- * - * string instance_id = 1; - * - * @return The bytes for instanceId. - */ - com.google.protobuf.ByteString getInstanceIdBytes(); - - /** - * - * - *
-   * Database name.
-   * 
- * - * string database = 2; - * - * @return The database. - */ - java.lang.String getDatabase(); - - /** - * - * - *
-   * Database name.
-   * 
- * - * string database = 2; - * - * @return The bytes for database. - */ - com.google.protobuf.ByteString getDatabaseBytes(); - - /** - * - * - *
-   * Type of the Cloud SQL database.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - - /** - * - * - *
-   * Type of the Cloud SQL database.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType type = 3; - * - * @return The type. - */ - com.google.cloud.datacatalog.v1.CloudSqlBigQueryConnectionSpec.DatabaseType getType(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchema.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchema.java deleted file mode 100644 index 67f409ce3868..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchema.java +++ /dev/null @@ -1,4979 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * A column within a schema. Columns can be nested inside
- * other columns.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ColumnSchema} - */ -@com.google.protobuf.Generated -public final class ColumnSchema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ColumnSchema) - ColumnSchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ColumnSchema"); - } - - // Use ColumnSchema.newBuilder() to construct. - private ColumnSchema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ColumnSchema() { - column_ = ""; - type_ = ""; - description_ = ""; - mode_ = ""; - defaultValue_ = ""; - highestIndexingType_ = 0; - subcolumns_ = java.util.Collections.emptyList(); - gcRule_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ColumnSchema.class, - com.google.cloud.datacatalog.v1.ColumnSchema.Builder.class); - } - - /** - * - * - *
-   * Specifies inclusion of the column in an index
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.ColumnSchema.IndexingType} - */ - public enum IndexingType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified.
-     * 
- * - * INDEXING_TYPE_UNSPECIFIED = 0; - */ - INDEXING_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Column not a part of an index.
-     * 
- * - * INDEXING_TYPE_NONE = 1; - */ - INDEXING_TYPE_NONE(1), - /** - * - * - *
-     * Column Part of non unique index.
-     * 
- * - * INDEXING_TYPE_NON_UNIQUE = 2; - */ - INDEXING_TYPE_NON_UNIQUE(2), - /** - * - * - *
-     * Column part of unique index.
-     * 
- * - * INDEXING_TYPE_UNIQUE = 3; - */ - INDEXING_TYPE_UNIQUE(3), - /** - * - * - *
-     * Column part of the primary key.
-     * 
- * - * INDEXING_TYPE_PRIMARY_KEY = 4; - */ - INDEXING_TYPE_PRIMARY_KEY(4), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "IndexingType"); - } - - /** - * - * - *
-     * Unspecified.
-     * 
- * - * INDEXING_TYPE_UNSPECIFIED = 0; - */ - public static final int INDEXING_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * Column not a part of an index.
-     * 
- * - * INDEXING_TYPE_NONE = 1; - */ - public static final int INDEXING_TYPE_NONE_VALUE = 1; - - /** - * - * - *
-     * Column Part of non unique index.
-     * 
- * - * INDEXING_TYPE_NON_UNIQUE = 2; - */ - public static final int INDEXING_TYPE_NON_UNIQUE_VALUE = 2; - - /** - * - * - *
-     * Column part of unique index.
-     * 
- * - * INDEXING_TYPE_UNIQUE = 3; - */ - public static final int INDEXING_TYPE_UNIQUE_VALUE = 3; - - /** - * - * - *
-     * Column part of the primary key.
-     * 
- * - * INDEXING_TYPE_PRIMARY_KEY = 4; - */ - public static final int INDEXING_TYPE_PRIMARY_KEY_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 IndexingType 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 IndexingType forNumber(int value) { - switch (value) { - case 0: - return INDEXING_TYPE_UNSPECIFIED; - case 1: - return INDEXING_TYPE_NONE; - case 2: - return INDEXING_TYPE_NON_UNIQUE; - case 3: - return INDEXING_TYPE_UNIQUE; - case 4: - return INDEXING_TYPE_PRIMARY_KEY; - 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 IndexingType findValueByNumber(int number) { - return IndexingType.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.datacatalog.v1.ColumnSchema.getDescriptor().getEnumTypes().get(0); - } - - private static final IndexingType[] VALUES = values(); - - public static IndexingType 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 IndexingType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.ColumnSchema.IndexingType) - } - - public interface LookerColumnSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Looker specific column type of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; - * - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - - /** - * - * - *
-     * Looker specific column type of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; - * - * - * @return The type. - */ - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType getType(); - } - - /** - * - * - *
-   * Column info specific to Looker System.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec} - */ - public static final class LookerColumnSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) - LookerColumnSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "LookerColumnSpec"); - } - - // Use LookerColumnSpec.newBuilder() to construct. - private LookerColumnSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private LookerColumnSpec() { - type_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.class, - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.Builder.class); - } - - /** - * - * - *
-     * Column type in Looker.
-     * 
- * - * Protobuf enum {@code - * google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType} - */ - public enum LookerColumnType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Unspecified.
-       * 
- * - * LOOKER_COLUMN_TYPE_UNSPECIFIED = 0; - */ - LOOKER_COLUMN_TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * Dimension.
-       * 
- * - * DIMENSION = 1; - */ - DIMENSION(1), - /** - * - * - *
-       * Dimension group - parent for Dimension.
-       * 
- * - * DIMENSION_GROUP = 2; - */ - DIMENSION_GROUP(2), - /** - * - * - *
-       * Filter.
-       * 
- * - * FILTER = 3; - */ - FILTER(3), - /** - * - * - *
-       * Measure.
-       * 
- * - * MEASURE = 4; - */ - MEASURE(4), - /** - * - * - *
-       * Parameter.
-       * 
- * - * PARAMETER = 5; - */ - PARAMETER(5), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "LookerColumnType"); - } - - /** - * - * - *
-       * Unspecified.
-       * 
- * - * LOOKER_COLUMN_TYPE_UNSPECIFIED = 0; - */ - public static final int LOOKER_COLUMN_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-       * Dimension.
-       * 
- * - * DIMENSION = 1; - */ - public static final int DIMENSION_VALUE = 1; - - /** - * - * - *
-       * Dimension group - parent for Dimension.
-       * 
- * - * DIMENSION_GROUP = 2; - */ - public static final int DIMENSION_GROUP_VALUE = 2; - - /** - * - * - *
-       * Filter.
-       * 
- * - * FILTER = 3; - */ - public static final int FILTER_VALUE = 3; - - /** - * - * - *
-       * Measure.
-       * 
- * - * MEASURE = 4; - */ - public static final int MEASURE_VALUE = 4; - - /** - * - * - *
-       * Parameter.
-       * 
- * - * PARAMETER = 5; - */ - public static final int PARAMETER_VALUE = 5; - - 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 LookerColumnType 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 LookerColumnType forNumber(int value) { - switch (value) { - case 0: - return LOOKER_COLUMN_TYPE_UNSPECIFIED; - case 1: - return DIMENSION; - case 2: - return DIMENSION_GROUP; - case 3: - return FILTER; - case 4: - return MEASURE; - case 5: - return PARAMETER; - 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 LookerColumnType findValueByNumber(int number) { - return LookerColumnType.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.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final LookerColumnType[] VALUES = values(); - - public static LookerColumnType 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 LookerColumnType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType) - } - - public static final int TYPE_FIELD_NUMBER = 1; - private int type_ = 0; - - /** - * - * - *
-     * Looker specific column type of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - - /** - * - * - *
-     * Looker specific column type of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType - getType() { - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType result = - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType.forNumber( - type_); - return result == null - ? com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType - .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 (type_ - != com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType - .LOOKER_COLUMN_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, type_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ - != com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType - .LOOKER_COLUMN_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, 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.datacatalog.v1.ColumnSchema.LookerColumnSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec other = - (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) obj; - - 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) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Column info specific to Looker System.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.class, - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.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; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec build() { - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec buildPartial() { - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec result = - new com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec other) { - if (other - == com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDefaultInstance()) - return this; - 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 8: - { - type_ = 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 type_ = 0; - - /** - * - * - *
-       * Looker specific column type of this column.
-       * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; - * - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - - /** - * - * - *
-       * Looker specific column type of this column.
-       * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; - * - * - * @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; - } - - /** - * - * - *
-       * Looker specific column type of this column.
-       * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType - getType() { - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType result = - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType - .forNumber(type_); - return result == null - ? com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType - .UNRECOGNIZED - : result; - } - - /** - * - * - *
-       * Looker specific column type of this column.
-       * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; - * - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType( - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-       * Looker specific column type of this column.
-       * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.LookerColumnType type = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) - private static final com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec(); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LookerColumnSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface FieldElementTypeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ColumnSchema.FieldElementType) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Required. The type of a field element. See
-     * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type].
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The type. - */ - java.lang.String getType(); - - /** - * - * - *
-     * Required. The type of a field element. See
-     * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type].
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for type. - */ - com.google.protobuf.ByteString getTypeBytes(); - } - - /** - * - * - *
-   * Represents the type of a field element.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ColumnSchema.FieldElementType} - */ - public static final class FieldElementType extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ColumnSchema.FieldElementType) - FieldElementTypeOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "FieldElementType"); - } - - // Use FieldElementType.newBuilder() to construct. - private FieldElementType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private FieldElementType() { - type_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_FieldElementType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_FieldElementType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.class, - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.Builder.class); - } - - public static final int TYPE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object type_ = ""; - - /** - * - * - *
-     * Required. The type of a field element. See
-     * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type].
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. The type of a field element. See
-     * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type].
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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(type_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, 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(type_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, 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.datacatalog.v1.ColumnSchema.FieldElementType)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType other = - (com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType) obj; - - 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) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 field element.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ColumnSchema.FieldElementType} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ColumnSchema.FieldElementType) - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_FieldElementType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_FieldElementType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.class, - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - type_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_FieldElementType_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType build() { - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType buildPartial() { - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType result = - new com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType) { - return mergeFrom((com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType other) { - if (other - == com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.getDefaultInstance()) - return this; - if (!other.getType().isEmpty()) { - type_ = other.type_; - 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: - { - type_ = 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 type_ = ""; - - /** - * - * - *
-       * Required. The type of a field element. See
-       * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type].
-       * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-       * Required. The type of a field element. See
-       * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type].
-       * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-       * Required. The type of a field element. See
-       * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type].
-       * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * Required. The type of a field element. See
-       * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type].
-       * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearType() { - type_ = getDefaultInstance().getType(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * Required. The type of a field element. See
-       * [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type].
-       * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ColumnSchema.FieldElementType) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ColumnSchema.FieldElementType) - private static final com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType(); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldElementType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - private int systemSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object systemSpec_; - - public enum SystemSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LOOKER_COLUMN_SPEC(18), - SYSTEMSPEC_NOT_SET(0); - private final int value; - - private SystemSpecCase(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 SystemSpecCase valueOf(int value) { - return forNumber(value); - } - - public static SystemSpecCase forNumber(int value) { - switch (value) { - case 18: - return LOOKER_COLUMN_SPEC; - case 0: - return SYSTEMSPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public static final int COLUMN_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object column_ = ""; - - /** - * - * - *
-   * Required. Name of the column.
-   *
-   * Must be a UTF-8 string without dots (.).
-   * The maximum size is 64 bytes.
-   * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The column. - */ - @java.lang.Override - public java.lang.String getColumn() { - java.lang.Object ref = column_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - column_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. Name of the column.
-   *
-   * Must be a UTF-8 string without dots (.).
-   * The maximum size is 64 bytes.
-   * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for column. - */ - @java.lang.Override - public com.google.protobuf.ByteString getColumnBytes() { - java.lang.Object ref = column_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - column_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object type_ = ""; - - /** - * - * - *
-   * Required. Type of the column.
-   *
-   * Must be a UTF-8 string with the maximum size of 128 bytes.
-   * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-   * Required. Type of the column.
-   *
-   * Must be a UTF-8 string with the maximum size of 128 bytes.
-   * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
-   * Optional. Description of the column. Default value is an empty string.
-   *
-   * The description must be a UTF-8 string with the maximum size of 2000
-   * bytes.
-   * 
- * - * 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 column. Default value is an empty string.
-   *
-   * The description must be a UTF-8 string with the maximum size of 2000
-   * bytes.
-   * 
- * - * 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 MODE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object mode_ = ""; - - /** - * - * - *
-   * Optional. A column's mode indicates whether values in this column are
-   * required, nullable, or repeated.
-   *
-   * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported.
-   * Default mode is `NULLABLE`.
-   * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mode. - */ - @java.lang.Override - public java.lang.String getMode() { - java.lang.Object ref = mode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mode_ = s; - return s; - } - } - - /** - * - * - *
-   * Optional. A column's mode indicates whether values in this column are
-   * required, nullable, or repeated.
-   *
-   * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported.
-   * Default mode is `NULLABLE`.
-   * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mode. - */ - @java.lang.Override - public com.google.protobuf.ByteString getModeBytes() { - java.lang.Object ref = mode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFAULT_VALUE_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - private volatile java.lang.Object defaultValue_ = ""; - - /** - * - * - *
-   * Optional. Default value for the column.
-   * 
- * - * string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The defaultValue. - */ - @java.lang.Override - public java.lang.String getDefaultValue() { - java.lang.Object ref = defaultValue_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultValue_ = s; - return s; - } - } - - /** - * - * - *
-   * Optional. Default value for the column.
-   * 
- * - * string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for defaultValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefaultValueBytes() { - java.lang.Object ref = defaultValue_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDINAL_POSITION_FIELD_NUMBER = 9; - private int ordinalPosition_ = 0; - - /** - * - * - *
-   * Optional. Ordinal position
-   * 
- * - * int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The ordinalPosition. - */ - @java.lang.Override - public int getOrdinalPosition() { - return ordinalPosition_; - } - - public static final int HIGHEST_INDEXING_TYPE_FIELD_NUMBER = 10; - private int highestIndexingType_ = 0; - - /** - * - * - *
-   * Optional. Most important inclusion of this column.
-   * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for highestIndexingType. - */ - @java.lang.Override - public int getHighestIndexingTypeValue() { - return highestIndexingType_; - } - - /** - * - * - *
-   * Optional. Most important inclusion of this column.
-   * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The highestIndexingType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType getHighestIndexingType() { - com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType result = - com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType.forNumber(highestIndexingType_); - return result == null - ? com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType.UNRECOGNIZED - : result; - } - - public static final int SUBCOLUMNS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private java.util.List subcolumns_; - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getSubcolumnsList() { - return subcolumns_; - } - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getSubcolumnsOrBuilderList() { - return subcolumns_; - } - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getSubcolumnsCount() { - return subcolumns_.size(); - } - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema getSubcolumns(int index) { - return subcolumns_.get(index); - } - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder getSubcolumnsOrBuilder(int index) { - return subcolumns_.get(index); - } - - public static final int LOOKER_COLUMN_SPEC_FIELD_NUMBER = 18; - - /** - * - * - *
-   * Looker specific column info of this column.
-   * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - * - * @return Whether the lookerColumnSpec field is set. - */ - @java.lang.Override - public boolean hasLookerColumnSpec() { - return systemSpecCase_ == 18; - } - - /** - * - * - *
-   * Looker specific column info of this column.
-   * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - * - * @return The lookerColumnSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec getLookerColumnSpec() { - if (systemSpecCase_ == 18) { - return (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Looker specific column info of this column.
-   * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpecOrBuilder - getLookerColumnSpecOrBuilder() { - if (systemSpecCase_ == 18) { - return (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDefaultInstance(); - } - - public static final int RANGE_ELEMENT_TYPE_FIELD_NUMBER = 19; - private com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType rangeElementType_; - - /** - * - * - *
-   * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-   * the type is RANGE, this field is required. Possible values for the field
-   * element type of a RANGE include:
-   * * DATE
-   * * DATETIME
-   * * TIMESTAMP
-   * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the rangeElementType field is set. - */ - @java.lang.Override - public boolean hasRangeElementType() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-   * the type is RANGE, this field is required. Possible values for the field
-   * element type of a RANGE include:
-   * * DATE
-   * * DATETIME
-   * * TIMESTAMP
-   * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The rangeElementType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType getRangeElementType() { - return rangeElementType_ == null - ? com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.getDefaultInstance() - : rangeElementType_; - } - - /** - * - * - *
-   * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-   * the type is RANGE, this field is required. Possible values for the field
-   * element type of a RANGE include:
-   * * DATE
-   * * DATETIME
-   * * TIMESTAMP
-   * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementTypeOrBuilder - getRangeElementTypeOrBuilder() { - return rangeElementType_ == null - ? com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.getDefaultInstance() - : rangeElementType_; - } - - public static final int GC_RULE_FIELD_NUMBER = 11; - - @SuppressWarnings("serial") - private volatile java.lang.Object gcRule_ = ""; - - /** - * - * - *
-   * Optional. Garbage collection policy for the column or column family.
-   * Applies to systems like Cloud Bigtable.
-   * 
- * - * string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gcRule. - */ - @java.lang.Override - public java.lang.String getGcRule() { - java.lang.Object ref = gcRule_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gcRule_ = s; - return s; - } - } - - /** - * - * - *
-   * Optional. Garbage collection policy for the column or column family.
-   * Applies to systems like Cloud Bigtable.
-   * 
- * - * string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gcRule. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGcRuleBytes() { - java.lang.Object ref = gcRule_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gcRule_ = 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(type_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, type_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mode_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, mode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(column_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, column_); - } - for (int i = 0; i < subcolumns_.size(); i++) { - output.writeMessage(7, subcolumns_.get(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultValue_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 8, defaultValue_); - } - if (ordinalPosition_ != 0) { - output.writeInt32(9, ordinalPosition_); - } - if (highestIndexingType_ - != com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType.INDEXING_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(10, highestIndexingType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcRule_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 11, gcRule_); - } - if (systemSpecCase_ == 18) { - output.writeMessage( - 18, (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) systemSpec_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(19, getRangeElementType()); - } - 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(type_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, type_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mode_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, mode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(column_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(6, column_); - } - for (int i = 0; i < subcolumns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, subcolumns_.get(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultValue_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(8, defaultValue_); - } - if (ordinalPosition_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(9, ordinalPosition_); - } - if (highestIndexingType_ - != com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType.INDEXING_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, highestIndexingType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcRule_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(11, gcRule_); - } - if (systemSpecCase_ == 18) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 18, (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) systemSpec_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(19, getRangeElementType()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ColumnSchema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ColumnSchema other = - (com.google.cloud.datacatalog.v1.ColumnSchema) obj; - - if (!getColumn().equals(other.getColumn())) return false; - if (!getType().equals(other.getType())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getMode().equals(other.getMode())) return false; - if (!getDefaultValue().equals(other.getDefaultValue())) return false; - if (getOrdinalPosition() != other.getOrdinalPosition()) return false; - if (highestIndexingType_ != other.highestIndexingType_) return false; - if (!getSubcolumnsList().equals(other.getSubcolumnsList())) return false; - if (hasRangeElementType() != other.hasRangeElementType()) return false; - if (hasRangeElementType()) { - if (!getRangeElementType().equals(other.getRangeElementType())) return false; - } - if (!getGcRule().equals(other.getGcRule())) return false; - if (!getSystemSpecCase().equals(other.getSystemSpecCase())) return false; - switch (systemSpecCase_) { - case 18: - if (!getLookerColumnSpec().equals(other.getLookerColumnSpec())) 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) + COLUMN_FIELD_NUMBER; - hash = (53 * hash) + getColumn().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + getMode().hashCode(); - hash = (37 * hash) + DEFAULT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getDefaultValue().hashCode(); - hash = (37 * hash) + ORDINAL_POSITION_FIELD_NUMBER; - hash = (53 * hash) + getOrdinalPosition(); - hash = (37 * hash) + HIGHEST_INDEXING_TYPE_FIELD_NUMBER; - hash = (53 * hash) + highestIndexingType_; - if (getSubcolumnsCount() > 0) { - hash = (37 * hash) + SUBCOLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getSubcolumnsList().hashCode(); - } - if (hasRangeElementType()) { - hash = (37 * hash) + RANGE_ELEMENT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getRangeElementType().hashCode(); - } - hash = (37 * hash) + GC_RULE_FIELD_NUMBER; - hash = (53 * hash) + getGcRule().hashCode(); - switch (systemSpecCase_) { - case 18: - hash = (37 * hash) + LOOKER_COLUMN_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getLookerColumnSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.ColumnSchema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 column within a schema. Columns can be nested inside
-   * other columns.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ColumnSchema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ColumnSchema) - com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ColumnSchema.class, - com.google.cloud.datacatalog.v1.ColumnSchema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ColumnSchema.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetSubcolumnsFieldBuilder(); - internalGetRangeElementTypeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - column_ = ""; - type_ = ""; - description_ = ""; - mode_ = ""; - defaultValue_ = ""; - ordinalPosition_ = 0; - highestIndexingType_ = 0; - if (subcolumnsBuilder_ == null) { - subcolumns_ = java.util.Collections.emptyList(); - } else { - subcolumns_ = null; - subcolumnsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - if (lookerColumnSpecBuilder_ != null) { - lookerColumnSpecBuilder_.clear(); - } - rangeElementType_ = null; - if (rangeElementTypeBuilder_ != null) { - rangeElementTypeBuilder_.dispose(); - rangeElementTypeBuilder_ = null; - } - gcRule_ = ""; - systemSpecCase_ = 0; - systemSpec_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ColumnSchema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema build() { - com.google.cloud.datacatalog.v1.ColumnSchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema buildPartial() { - com.google.cloud.datacatalog.v1.ColumnSchema result = - new com.google.cloud.datacatalog.v1.ColumnSchema(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.ColumnSchema result) { - if (subcolumnsBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - subcolumns_ = java.util.Collections.unmodifiableList(subcolumns_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.subcolumns_ = subcolumns_; - } else { - result.subcolumns_ = subcolumnsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ColumnSchema result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.column_ = column_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.mode_ = mode_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.defaultValue_ = defaultValue_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.ordinalPosition_ = ordinalPosition_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.highestIndexingType_ = highestIndexingType_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000200) != 0)) { - result.rangeElementType_ = - rangeElementTypeBuilder_ == null ? rangeElementType_ : rangeElementTypeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.gcRule_ = gcRule_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.ColumnSchema result) { - result.systemSpecCase_ = systemSpecCase_; - result.systemSpec_ = this.systemSpec_; - if (systemSpecCase_ == 18 && lookerColumnSpecBuilder_ != null) { - result.systemSpec_ = lookerColumnSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ColumnSchema) { - return mergeFrom((com.google.cloud.datacatalog.v1.ColumnSchema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ColumnSchema other) { - if (other == com.google.cloud.datacatalog.v1.ColumnSchema.getDefaultInstance()) return this; - if (!other.getColumn().isEmpty()) { - column_ = other.column_; - 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.getMode().isEmpty()) { - mode_ = other.mode_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getDefaultValue().isEmpty()) { - defaultValue_ = other.defaultValue_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getOrdinalPosition() != 0) { - setOrdinalPosition(other.getOrdinalPosition()); - } - if (other.highestIndexingType_ != 0) { - setHighestIndexingTypeValue(other.getHighestIndexingTypeValue()); - } - if (subcolumnsBuilder_ == null) { - if (!other.subcolumns_.isEmpty()) { - if (subcolumns_.isEmpty()) { - subcolumns_ = other.subcolumns_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureSubcolumnsIsMutable(); - subcolumns_.addAll(other.subcolumns_); - } - onChanged(); - } - } else { - if (!other.subcolumns_.isEmpty()) { - if (subcolumnsBuilder_.isEmpty()) { - subcolumnsBuilder_.dispose(); - subcolumnsBuilder_ = null; - subcolumns_ = other.subcolumns_; - bitField0_ = (bitField0_ & ~0x00000080); - subcolumnsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSubcolumnsFieldBuilder() - : null; - } else { - subcolumnsBuilder_.addAllMessages(other.subcolumns_); - } - } - } - if (other.hasRangeElementType()) { - mergeRangeElementType(other.getRangeElementType()); - } - if (!other.getGcRule().isEmpty()) { - gcRule_ = other.gcRule_; - bitField0_ |= 0x00000400; - onChanged(); - } - switch (other.getSystemSpecCase()) { - case LOOKER_COLUMN_SPEC: - { - mergeLookerColumnSpec(other.getLookerColumnSpec()); - break; - } - case SYSTEMSPEC_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: - { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - mode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 50: - { - column_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - case 58: - { - com.google.cloud.datacatalog.v1.ColumnSchema m = - input.readMessage( - com.google.cloud.datacatalog.v1.ColumnSchema.parser(), extensionRegistry); - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - subcolumns_.add(m); - } else { - subcolumnsBuilder_.addMessage(m); - } - break; - } // case 58 - case 66: - { - defaultValue_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 66 - case 72: - { - ordinalPosition_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 72 - case 80: - { - highestIndexingType_ = input.readEnum(); - bitField0_ |= 0x00000040; - break; - } // case 80 - case 90: - { - gcRule_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 90 - case 146: - { - input.readMessage( - internalGetLookerColumnSpecFieldBuilder().getBuilder(), extensionRegistry); - systemSpecCase_ = 18; - break; - } // case 146 - case 154: - { - input.readMessage( - internalGetRangeElementTypeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 154 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int systemSpecCase_ = 0; - private java.lang.Object systemSpec_; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public Builder clearSystemSpec() { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object column_ = ""; - - /** - * - * - *
-     * Required. Name of the column.
-     *
-     * Must be a UTF-8 string without dots (.).
-     * The maximum size is 64 bytes.
-     * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The column. - */ - public java.lang.String getColumn() { - java.lang.Object ref = column_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - column_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. Name of the column.
-     *
-     * Must be a UTF-8 string without dots (.).
-     * The maximum size is 64 bytes.
-     * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for column. - */ - public com.google.protobuf.ByteString getColumnBytes() { - java.lang.Object ref = column_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - column_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. Name of the column.
-     *
-     * Must be a UTF-8 string without dots (.).
-     * The maximum size is 64 bytes.
-     * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The column to set. - * @return This builder for chaining. - */ - public Builder setColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - column_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Name of the column.
-     *
-     * Must be a UTF-8 string without dots (.).
-     * The maximum size is 64 bytes.
-     * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearColumn() { - column_ = getDefaultInstance().getColumn(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Name of the column.
-     *
-     * Must be a UTF-8 string without dots (.).
-     * The maximum size is 64 bytes.
-     * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for column to set. - * @return This builder for chaining. - */ - public Builder setColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - column_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - - /** - * - * - *
-     * Required. Type of the column.
-     *
-     * Must be a UTF-8 string with the maximum size of 128 bytes.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Type of the column.
-     *
-     * Must be a UTF-8 string with the maximum size of 128 bytes.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Type of the column.
-     *
-     * Must be a UTF-8 string with the maximum size of 128 bytes.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-     * Required. Type of the column.
-     *
-     * Must be a UTF-8 string with the maximum size of 128 bytes.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearType() { - type_ = getDefaultInstance().getType(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Type of the column.
-     *
-     * Must be a UTF-8 string with the maximum size of 128 bytes.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 column. Default value is an empty string.
-     *
-     * The description must be a UTF-8 string with the maximum size of 2000
-     * bytes.
-     * 
- * - * 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 column. Default value is an empty string.
-     *
-     * The description must be a UTF-8 string with the maximum size of 2000
-     * bytes.
-     * 
- * - * 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 column. Default value is an empty string.
-     *
-     * The description must be a UTF-8 string with the maximum size of 2000
-     * bytes.
-     * 
- * - * 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. Description of the column. Default value is an empty string.
-     *
-     * The description must be a UTF-8 string with the maximum size of 2000
-     * bytes.
-     * 
- * - * 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. Description of the column. Default value is an empty string.
-     *
-     * The description must be a UTF-8 string with the maximum size of 2000
-     * bytes.
-     * 
- * - * 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 mode_ = ""; - - /** - * - * - *
-     * Optional. A column's mode indicates whether values in this column are
-     * required, nullable, or repeated.
-     *
-     * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported.
-     * Default mode is `NULLABLE`.
-     * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mode. - */ - public java.lang.String getMode() { - java.lang.Object ref = mode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Optional. A column's mode indicates whether values in this column are
-     * required, nullable, or repeated.
-     *
-     * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported.
-     * Default mode is `NULLABLE`.
-     * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mode. - */ - public com.google.protobuf.ByteString getModeBytes() { - java.lang.Object ref = mode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Optional. A column's mode indicates whether values in this column are
-     * required, nullable, or repeated.
-     *
-     * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported.
-     * Default mode is `NULLABLE`.
-     * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - mode_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A column's mode indicates whether values in this column are
-     * required, nullable, or repeated.
-     *
-     * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported.
-     * Default mode is `NULLABLE`.
-     * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMode() { - mode_ = getDefaultInstance().getMode(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A column's mode indicates whether values in this column are
-     * required, nullable, or repeated.
-     *
-     * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported.
-     * Default mode is `NULLABLE`.
-     * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for mode to set. - * @return This builder for chaining. - */ - public Builder setModeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - mode_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object defaultValue_ = ""; - - /** - * - * - *
-     * Optional. Default value for the column.
-     * 
- * - * string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The defaultValue. - */ - public java.lang.String getDefaultValue() { - java.lang.Object ref = defaultValue_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultValue_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Optional. Default value for the column.
-     * 
- * - * string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for defaultValue. - */ - public com.google.protobuf.ByteString getDefaultValueBytes() { - java.lang.Object ref = defaultValue_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - defaultValue_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Optional. Default value for the column.
-     * 
- * - * string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The defaultValue to set. - * @return This builder for chaining. - */ - public Builder setDefaultValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - defaultValue_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Default value for the column.
-     * 
- * - * string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDefaultValue() { - defaultValue_ = getDefaultInstance().getDefaultValue(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Default value for the column.
-     * 
- * - * string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for defaultValue to set. - * @return This builder for chaining. - */ - public Builder setDefaultValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - defaultValue_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private int ordinalPosition_; - - /** - * - * - *
-     * Optional. Ordinal position
-     * 
- * - * int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The ordinalPosition. - */ - @java.lang.Override - public int getOrdinalPosition() { - return ordinalPosition_; - } - - /** - * - * - *
-     * Optional. Ordinal position
-     * 
- * - * int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The ordinalPosition to set. - * @return This builder for chaining. - */ - public Builder setOrdinalPosition(int value) { - - ordinalPosition_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Ordinal position
-     * 
- * - * int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearOrdinalPosition() { - bitField0_ = (bitField0_ & ~0x00000020); - ordinalPosition_ = 0; - onChanged(); - return this; - } - - private int highestIndexingType_ = 0; - - /** - * - * - *
-     * Optional. Most important inclusion of this column.
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for highestIndexingType. - */ - @java.lang.Override - public int getHighestIndexingTypeValue() { - return highestIndexingType_; - } - - /** - * - * - *
-     * Optional. Most important inclusion of this column.
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for highestIndexingType to set. - * @return This builder for chaining. - */ - public Builder setHighestIndexingTypeValue(int value) { - highestIndexingType_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Most important inclusion of this column.
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The highestIndexingType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType getHighestIndexingType() { - com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType result = - com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType.forNumber(highestIndexingType_); - return result == null - ? com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Optional. Most important inclusion of this column.
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The highestIndexingType to set. - * @return This builder for chaining. - */ - public Builder setHighestIndexingType( - com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000040; - highestIndexingType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Most important inclusion of this column.
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearHighestIndexingType() { - bitField0_ = (bitField0_ & ~0x00000040); - highestIndexingType_ = 0; - onChanged(); - return this; - } - - private java.util.List subcolumns_ = - java.util.Collections.emptyList(); - - private void ensureSubcolumnsIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - subcolumns_ = - new java.util.ArrayList(subcolumns_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema, - com.google.cloud.datacatalog.v1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder> - subcolumnsBuilder_; - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getSubcolumnsList() { - if (subcolumnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subcolumns_); - } else { - return subcolumnsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getSubcolumnsCount() { - if (subcolumnsBuilder_ == null) { - return subcolumns_.size(); - } else { - return subcolumnsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.ColumnSchema getSubcolumns(int index) { - if (subcolumnsBuilder_ == null) { - return subcolumns_.get(index); - } else { - return subcolumnsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSubcolumns(int index, com.google.cloud.datacatalog.v1.ColumnSchema value) { - if (subcolumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubcolumnsIsMutable(); - subcolumns_.set(index, value); - onChanged(); - } else { - subcolumnsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSubcolumns( - int index, com.google.cloud.datacatalog.v1.ColumnSchema.Builder builderForValue) { - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - subcolumns_.set(index, builderForValue.build()); - onChanged(); - } else { - subcolumnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSubcolumns(com.google.cloud.datacatalog.v1.ColumnSchema value) { - if (subcolumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubcolumnsIsMutable(); - subcolumns_.add(value); - onChanged(); - } else { - subcolumnsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSubcolumns(int index, com.google.cloud.datacatalog.v1.ColumnSchema value) { - if (subcolumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubcolumnsIsMutable(); - subcolumns_.add(index, value); - onChanged(); - } else { - subcolumnsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSubcolumns( - com.google.cloud.datacatalog.v1.ColumnSchema.Builder builderForValue) { - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - subcolumns_.add(builderForValue.build()); - onChanged(); - } else { - subcolumnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSubcolumns( - int index, com.google.cloud.datacatalog.v1.ColumnSchema.Builder builderForValue) { - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - subcolumns_.add(index, builderForValue.build()); - onChanged(); - } else { - subcolumnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllSubcolumns( - java.lang.Iterable values) { - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subcolumns_); - onChanged(); - } else { - subcolumnsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSubcolumns() { - if (subcolumnsBuilder_ == null) { - subcolumns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - subcolumnsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeSubcolumns(int index) { - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - subcolumns_.remove(index); - onChanged(); - } else { - subcolumnsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.ColumnSchema.Builder getSubcolumnsBuilder(int index) { - return internalGetSubcolumnsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder getSubcolumnsOrBuilder(int index) { - if (subcolumnsBuilder_ == null) { - return subcolumns_.get(index); - } else { - return subcolumnsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getSubcolumnsOrBuilderList() { - if (subcolumnsBuilder_ != null) { - return subcolumnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subcolumns_); - } - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.ColumnSchema.Builder addSubcolumnsBuilder() { - return internalGetSubcolumnsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.ColumnSchema.getDefaultInstance()); - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.ColumnSchema.Builder addSubcolumnsBuilder(int index) { - return internalGetSubcolumnsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.ColumnSchema.getDefaultInstance()); - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getSubcolumnsBuilderList() { - return internalGetSubcolumnsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema, - com.google.cloud.datacatalog.v1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder> - internalGetSubcolumnsFieldBuilder() { - if (subcolumnsBuilder_ == null) { - subcolumnsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema, - com.google.cloud.datacatalog.v1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder>( - subcolumns_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); - subcolumns_ = null; - } - return subcolumnsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec, - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.Builder, - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpecOrBuilder> - lookerColumnSpecBuilder_; - - /** - * - * - *
-     * Looker specific column info of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - * - * @return Whether the lookerColumnSpec field is set. - */ - @java.lang.Override - public boolean hasLookerColumnSpec() { - return systemSpecCase_ == 18; - } - - /** - * - * - *
-     * Looker specific column info of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - * - * @return The lookerColumnSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec getLookerColumnSpec() { - if (lookerColumnSpecBuilder_ == null) { - if (systemSpecCase_ == 18) { - return (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDefaultInstance(); - } else { - if (systemSpecCase_ == 18) { - return lookerColumnSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Looker specific column info of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - */ - public Builder setLookerColumnSpec( - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec value) { - if (lookerColumnSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemSpec_ = value; - onChanged(); - } else { - lookerColumnSpecBuilder_.setMessage(value); - } - systemSpecCase_ = 18; - return this; - } - - /** - * - * - *
-     * Looker specific column info of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - */ - public Builder setLookerColumnSpec( - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.Builder builderForValue) { - if (lookerColumnSpecBuilder_ == null) { - systemSpec_ = builderForValue.build(); - onChanged(); - } else { - lookerColumnSpecBuilder_.setMessage(builderForValue.build()); - } - systemSpecCase_ = 18; - return this; - } - - /** - * - * - *
-     * Looker specific column info of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - */ - public Builder mergeLookerColumnSpec( - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec value) { - if (lookerColumnSpecBuilder_ == null) { - if (systemSpecCase_ == 18 - && systemSpec_ - != com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec - .getDefaultInstance()) { - systemSpec_ = - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.newBuilder( - (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) systemSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - systemSpec_ = value; - } - onChanged(); - } else { - if (systemSpecCase_ == 18) { - lookerColumnSpecBuilder_.mergeFrom(value); - } else { - lookerColumnSpecBuilder_.setMessage(value); - } - } - systemSpecCase_ = 18; - return this; - } - - /** - * - * - *
-     * Looker specific column info of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - */ - public Builder clearLookerColumnSpec() { - if (lookerColumnSpecBuilder_ == null) { - if (systemSpecCase_ == 18) { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - } - } else { - if (systemSpecCase_ == 18) { - systemSpecCase_ = 0; - systemSpec_ = null; - } - lookerColumnSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Looker specific column info of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - */ - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.Builder - getLookerColumnSpecBuilder() { - return internalGetLookerColumnSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Looker specific column info of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpecOrBuilder - getLookerColumnSpecOrBuilder() { - if ((systemSpecCase_ == 18) && (lookerColumnSpecBuilder_ != null)) { - return lookerColumnSpecBuilder_.getMessageOrBuilder(); - } else { - if (systemSpecCase_ == 18) { - return (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Looker specific column info of this column.
-     * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec, - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.Builder, - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpecOrBuilder> - internalGetLookerColumnSpecFieldBuilder() { - if (lookerColumnSpecBuilder_ == null) { - if (!(systemSpecCase_ == 18)) { - systemSpec_ = - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.getDefaultInstance(); - } - lookerColumnSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec, - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec.Builder, - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec) systemSpec_, - getParentForChildren(), - isClean()); - systemSpec_ = null; - } - systemSpecCase_ = 18; - onChanged(); - return lookerColumnSpecBuilder_; - } - - private com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType rangeElementType_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType, - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.Builder, - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementTypeOrBuilder> - rangeElementTypeBuilder_; - - /** - * - * - *
-     * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-     * the type is RANGE, this field is required. Possible values for the field
-     * element type of a RANGE include:
-     * * DATE
-     * * DATETIME
-     * * TIMESTAMP
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the rangeElementType field is set. - */ - public boolean hasRangeElementType() { - return ((bitField0_ & 0x00000200) != 0); - } - - /** - * - * - *
-     * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-     * the type is RANGE, this field is required. Possible values for the field
-     * element type of a RANGE include:
-     * * DATE
-     * * DATETIME
-     * * TIMESTAMP
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The rangeElementType. - */ - public com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType getRangeElementType() { - if (rangeElementTypeBuilder_ == null) { - return rangeElementType_ == null - ? com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.getDefaultInstance() - : rangeElementType_; - } else { - return rangeElementTypeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-     * the type is RANGE, this field is required. Possible values for the field
-     * element type of a RANGE include:
-     * * DATE
-     * * DATETIME
-     * * TIMESTAMP
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setRangeElementType( - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType value) { - if (rangeElementTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - rangeElementType_ = value; - } else { - rangeElementTypeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-     * the type is RANGE, this field is required. Possible values for the field
-     * element type of a RANGE include:
-     * * DATE
-     * * DATETIME
-     * * TIMESTAMP
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setRangeElementType( - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.Builder builderForValue) { - if (rangeElementTypeBuilder_ == null) { - rangeElementType_ = builderForValue.build(); - } else { - rangeElementTypeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-     * the type is RANGE, this field is required. Possible values for the field
-     * element type of a RANGE include:
-     * * DATE
-     * * DATETIME
-     * * TIMESTAMP
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeRangeElementType( - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType value) { - if (rangeElementTypeBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && rangeElementType_ != null - && rangeElementType_ - != com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType - .getDefaultInstance()) { - getRangeElementTypeBuilder().mergeFrom(value); - } else { - rangeElementType_ = value; - } - } else { - rangeElementTypeBuilder_.mergeFrom(value); - } - if (rangeElementType_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-     * the type is RANGE, this field is required. Possible values for the field
-     * element type of a RANGE include:
-     * * DATE
-     * * DATETIME
-     * * TIMESTAMP
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearRangeElementType() { - bitField0_ = (bitField0_ & ~0x00000200); - rangeElementType_ = null; - if (rangeElementTypeBuilder_ != null) { - rangeElementTypeBuilder_.dispose(); - rangeElementTypeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-     * the type is RANGE, this field is required. Possible values for the field
-     * element type of a RANGE include:
-     * * DATE
-     * * DATETIME
-     * * TIMESTAMP
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.Builder - getRangeElementTypeBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return internalGetRangeElementTypeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-     * the type is RANGE, this field is required. Possible values for the field
-     * element type of a RANGE include:
-     * * DATE
-     * * DATETIME
-     * * TIMESTAMP
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementTypeOrBuilder - getRangeElementTypeOrBuilder() { - if (rangeElementTypeBuilder_ != null) { - return rangeElementTypeBuilder_.getMessageOrBuilder(); - } else { - return rangeElementType_ == null - ? com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.getDefaultInstance() - : rangeElementType_; - } - } - - /** - * - * - *
-     * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-     * the type is RANGE, this field is required. Possible values for the field
-     * element type of a RANGE include:
-     * * DATE
-     * * DATETIME
-     * * TIMESTAMP
-     * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType, - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.Builder, - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementTypeOrBuilder> - internalGetRangeElementTypeFieldBuilder() { - if (rangeElementTypeBuilder_ == null) { - rangeElementTypeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType, - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType.Builder, - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementTypeOrBuilder>( - getRangeElementType(), getParentForChildren(), isClean()); - rangeElementType_ = null; - } - return rangeElementTypeBuilder_; - } - - private java.lang.Object gcRule_ = ""; - - /** - * - * - *
-     * Optional. Garbage collection policy for the column or column family.
-     * Applies to systems like Cloud Bigtable.
-     * 
- * - * string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gcRule. - */ - public java.lang.String getGcRule() { - java.lang.Object ref = gcRule_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - gcRule_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Optional. Garbage collection policy for the column or column family.
-     * Applies to systems like Cloud Bigtable.
-     * 
- * - * string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gcRule. - */ - public com.google.protobuf.ByteString getGcRuleBytes() { - java.lang.Object ref = gcRule_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - gcRule_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Optional. Garbage collection policy for the column or column family.
-     * Applies to systems like Cloud Bigtable.
-     * 
- * - * string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The gcRule to set. - * @return This builder for chaining. - */ - public Builder setGcRule(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - gcRule_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Garbage collection policy for the column or column family.
-     * Applies to systems like Cloud Bigtable.
-     * 
- * - * string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearGcRule() { - gcRule_ = getDefaultInstance().getGcRule(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Garbage collection policy for the column or column family.
-     * Applies to systems like Cloud Bigtable.
-     * 
- * - * string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for gcRule to set. - * @return This builder for chaining. - */ - public Builder setGcRuleBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - gcRule_ = value; - bitField0_ |= 0x00000400; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ColumnSchema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ColumnSchema) - private static final com.google.cloud.datacatalog.v1.ColumnSchema DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ColumnSchema(); - } - - public static com.google.cloud.datacatalog.v1.ColumnSchema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColumnSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchemaOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchemaOrBuilder.java deleted file mode 100644 index b3eeb5d7df71..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ColumnSchemaOrBuilder.java +++ /dev/null @@ -1,426 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ColumnSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ColumnSchema) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the column.
-   *
-   * Must be a UTF-8 string without dots (.).
-   * The maximum size is 64 bytes.
-   * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The column. - */ - java.lang.String getColumn(); - - /** - * - * - *
-   * Required. Name of the column.
-   *
-   * Must be a UTF-8 string without dots (.).
-   * The maximum size is 64 bytes.
-   * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for column. - */ - com.google.protobuf.ByteString getColumnBytes(); - - /** - * - * - *
-   * Required. Type of the column.
-   *
-   * Must be a UTF-8 string with the maximum size of 128 bytes.
-   * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The type. - */ - java.lang.String getType(); - - /** - * - * - *
-   * Required. Type of the column.
-   *
-   * Must be a UTF-8 string with the maximum size of 128 bytes.
-   * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for type. - */ - com.google.protobuf.ByteString getTypeBytes(); - - /** - * - * - *
-   * Optional. Description of the column. Default value is an empty string.
-   *
-   * The description must be a UTF-8 string with the maximum size of 2000
-   * bytes.
-   * 
- * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Optional. Description of the column. Default value is an empty string.
-   *
-   * The description must be a UTF-8 string with the maximum size of 2000
-   * bytes.
-   * 
- * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Optional. A column's mode indicates whether values in this column are
-   * required, nullable, or repeated.
-   *
-   * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported.
-   * Default mode is `NULLABLE`.
-   * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mode. - */ - java.lang.String getMode(); - - /** - * - * - *
-   * Optional. A column's mode indicates whether values in this column are
-   * required, nullable, or repeated.
-   *
-   * Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported.
-   * Default mode is `NULLABLE`.
-   * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mode. - */ - com.google.protobuf.ByteString getModeBytes(); - - /** - * - * - *
-   * Optional. Default value for the column.
-   * 
- * - * string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The defaultValue. - */ - java.lang.String getDefaultValue(); - - /** - * - * - *
-   * Optional. Default value for the column.
-   * 
- * - * string default_value = 8 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for defaultValue. - */ - com.google.protobuf.ByteString getDefaultValueBytes(); - - /** - * - * - *
-   * Optional. Ordinal position
-   * 
- * - * int32 ordinal_position = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The ordinalPosition. - */ - int getOrdinalPosition(); - - /** - * - * - *
-   * Optional. Most important inclusion of this column.
-   * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for highestIndexingType. - */ - int getHighestIndexingTypeValue(); - - /** - * - * - *
-   * Optional. Most important inclusion of this column.
-   * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.IndexingType highest_indexing_type = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The highestIndexingType. - */ - com.google.cloud.datacatalog.v1.ColumnSchema.IndexingType getHighestIndexingType(); - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getSubcolumnsList(); - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.datacatalog.v1.ColumnSchema getSubcolumns(int index); - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getSubcolumnsCount(); - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getSubcolumnsOrBuilderList(); - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder getSubcolumnsOrBuilder(int index); - - /** - * - * - *
-   * Looker specific column info of this column.
-   * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - * - * @return Whether the lookerColumnSpec field is set. - */ - boolean hasLookerColumnSpec(); - - /** - * - * - *
-   * Looker specific column info of this column.
-   * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - * - * @return The lookerColumnSpec. - */ - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec getLookerColumnSpec(); - - /** - * - * - *
-   * Looker specific column info of this column.
-   * 
- * - * .google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpec looker_column_spec = 18; - * - */ - com.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpecOrBuilder - getLookerColumnSpecOrBuilder(); - - /** - * - * - *
-   * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-   * the type is RANGE, this field is required. Possible values for the field
-   * element type of a RANGE include:
-   * * DATE
-   * * DATETIME
-   * * TIMESTAMP
-   * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the rangeElementType field is set. - */ - boolean hasRangeElementType(); - - /** - * - * - *
-   * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-   * the type is RANGE, this field is required. Possible values for the field
-   * element type of a RANGE include:
-   * * DATE
-   * * DATETIME
-   * * TIMESTAMP
-   * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The rangeElementType. - */ - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementType getRangeElementType(); - - /** - * - * - *
-   * Optional. The subtype of the RANGE, if the type of this field is RANGE. If
-   * the type is RANGE, this field is required. Possible values for the field
-   * element type of a RANGE include:
-   * * DATE
-   * * DATETIME
-   * * TIMESTAMP
-   * 
- * - * - * .google.cloud.datacatalog.v1.ColumnSchema.FieldElementType range_element_type = 19 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.datacatalog.v1.ColumnSchema.FieldElementTypeOrBuilder - getRangeElementTypeOrBuilder(); - - /** - * - * - *
-   * Optional. Garbage collection policy for the column or column family.
-   * Applies to systems like Cloud Bigtable.
-   * 
- * - * string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The gcRule. - */ - java.lang.String getGcRule(); - - /** - * - * - *
-   * Optional. Garbage collection policy for the column or column family.
-   * Applies to systems like Cloud Bigtable.
-   * 
- * - * string gc_rule = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for gcRule. - */ - com.google.protobuf.ByteString getGcRuleBytes(); - - com.google.cloud.datacatalog.v1.ColumnSchema.SystemSpecCase getSystemSpecCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java deleted file mode 100644 index 9aa4425e72fc..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Common.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/common.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class Common extends com.google.protobuf.GeneratedFile { - private Common() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Common"); - } - - 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_datacatalog_v1_PersonalDetails_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_PersonalDetails_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/datacatalog/v1/common.pro" - + "to\022\033google.cloud.datacatalog.v1\032\037google/protobuf/timestamp.proto\"Q\n" - + "\017PersonalDetails\022\017\n" - + "\007starred\030\001 \001(\010\022-\n" - + "\tstar_time\030\002 \001(\0132\032.google.protobuf.Timestamp*\314\001\n" - + "\020IntegratedSystem\022!\n" - + "\035INTEGRATED_SYSTEM_UNSPECIFIED\020\000\022\014\n" - + "\010BIGQUERY\020\001\022\020\n" - + "\014CLOUD_PUBSUB\020\002\022\026\n" - + "\022DATAPROC_METASTORE\020\003\022\014\n" - + "\010DATAPLEX\020\004\022\021\n\r" - + "CLOUD_SPANNER\020\006\022\022\n" - + "\016CLOUD_BIGTABLE\020\007\022\r\n" - + "\tCLOUD_SQL\020\010\022\n\n" - + "\006LOOKER\020\t\022\r\n" - + "\tVERTEX_AI\020\n" - + "*j\n" - + "\016ManagingSystem\022\037\n" - + "\033MANAGING_SYSTEM_UNSPECIFIED\020\000\022\034\n" - + "\030MANAGING_SYSTEM_DATAPLEX\020\001\022\031\n" - + "\025MANAGING_SYSTEM_OTHER\020\002B\303\001\n" - + "\037com.google.cloud.datacatalog.v1P\001ZAcloud.google.com/g" - + "o/datacatalog/apiv1/datacatalogpb;dataca" - + "talogpb\252\002\033Google.Cloud.DataCatalog.V1\312\002\033" - + "Google\\Cloud\\DataCatalog\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_PersonalDetails_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_PersonalDetails_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PersonalDetails_descriptor, - new java.lang.String[] { - "Starred", "StarTime", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStats.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStats.java deleted file mode 100644 index 9186ce8e6667..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStats.java +++ /dev/null @@ -1,548 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Common statistics on the entry's usage.
- *
- * They can be set on any system.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CommonUsageStats} - */ -@com.google.protobuf.Generated -public final class CommonUsageStats extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CommonUsageStats) - CommonUsageStatsOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CommonUsageStats"); - } - - // Use CommonUsageStats.newBuilder() to construct. - private CommonUsageStats(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CommonUsageStats() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_CommonUsageStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_CommonUsageStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CommonUsageStats.class, - com.google.cloud.datacatalog.v1.CommonUsageStats.Builder.class); - } - - private int bitField0_; - public static final int VIEW_COUNT_FIELD_NUMBER = 1; - private long viewCount_ = 0L; - - /** - * - * - *
-   * View count in source system.
-   * 
- * - * optional int64 view_count = 1; - * - * @return Whether the viewCount field is set. - */ - @java.lang.Override - public boolean hasViewCount() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * View count in source system.
-   * 
- * - * optional int64 view_count = 1; - * - * @return The viewCount. - */ - @java.lang.Override - public long getViewCount() { - return viewCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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.writeInt64(1, viewCount_); - } - 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.computeInt64Size(1, viewCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.CommonUsageStats)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CommonUsageStats other = - (com.google.cloud.datacatalog.v1.CommonUsageStats) obj; - - if (hasViewCount() != other.hasViewCount()) return false; - if (hasViewCount()) { - if (getViewCount() != other.getViewCount()) return false; - } - if (!getUnknownFields().equals(other.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 (hasViewCount()) { - hash = (37 * hash) + VIEW_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getViewCount()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.CommonUsageStats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 statistics on the entry's usage.
-   *
-   * They can be set on any system.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CommonUsageStats} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CommonUsageStats) - com.google.cloud.datacatalog.v1.CommonUsageStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_CommonUsageStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_CommonUsageStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CommonUsageStats.class, - com.google.cloud.datacatalog.v1.CommonUsageStats.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CommonUsageStats.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - viewCount_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_CommonUsageStats_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CommonUsageStats getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CommonUsageStats.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CommonUsageStats build() { - com.google.cloud.datacatalog.v1.CommonUsageStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CommonUsageStats buildPartial() { - com.google.cloud.datacatalog.v1.CommonUsageStats result = - new com.google.cloud.datacatalog.v1.CommonUsageStats(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.CommonUsageStats result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.viewCount_ = viewCount_; - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.CommonUsageStats) { - return mergeFrom((com.google.cloud.datacatalog.v1.CommonUsageStats) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CommonUsageStats other) { - if (other == com.google.cloud.datacatalog.v1.CommonUsageStats.getDefaultInstance()) - return this; - if (other.hasViewCount()) { - setViewCount(other.getViewCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - viewCount_ = input.readInt64(); - 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 long viewCount_; - - /** - * - * - *
-     * View count in source system.
-     * 
- * - * optional int64 view_count = 1; - * - * @return Whether the viewCount field is set. - */ - @java.lang.Override - public boolean hasViewCount() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * View count in source system.
-     * 
- * - * optional int64 view_count = 1; - * - * @return The viewCount. - */ - @java.lang.Override - public long getViewCount() { - return viewCount_; - } - - /** - * - * - *
-     * View count in source system.
-     * 
- * - * optional int64 view_count = 1; - * - * @param value The viewCount to set. - * @return This builder for chaining. - */ - public Builder setViewCount(long value) { - - viewCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * View count in source system.
-     * 
- * - * optional int64 view_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearViewCount() { - bitField0_ = (bitField0_ & ~0x00000001); - viewCount_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CommonUsageStats) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CommonUsageStats) - private static final com.google.cloud.datacatalog.v1.CommonUsageStats DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CommonUsageStats(); - } - - public static com.google.cloud.datacatalog.v1.CommonUsageStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CommonUsageStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CommonUsageStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStatsOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStatsOrBuilder.java deleted file mode 100644 index 43250b900d3c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CommonUsageStatsOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CommonUsageStatsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CommonUsageStats) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * View count in source system.
-   * 
- * - * optional int64 view_count = 1; - * - * @return Whether the viewCount field is set. - */ - boolean hasViewCount(); - - /** - * - * - *
-   * View count in source system.
-   * 
- * - * optional int64 view_count = 1; - * - * @return The viewCount. - */ - long getViewCount(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Contacts.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Contacts.java deleted file mode 100644 index b900a3d54c4a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Contacts.java +++ /dev/null @@ -1,1752 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Contact people for the entry.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Contacts} - */ -@com.google.protobuf.Generated -public final class Contacts extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Contacts) - ContactsOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Contacts"); - } - - // Use Contacts.newBuilder() to construct. - private Contacts(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Contacts() { - people_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Contacts_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Contacts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Contacts.class, - com.google.cloud.datacatalog.v1.Contacts.Builder.class); - } - - public interface PersonOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Contacts.Person) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Designation of the person, for example, Data Steward.
-     * 
- * - * string designation = 1; - * - * @return The designation. - */ - java.lang.String getDesignation(); - - /** - * - * - *
-     * Designation of the person, for example, Data Steward.
-     * 
- * - * string designation = 1; - * - * @return The bytes for designation. - */ - com.google.protobuf.ByteString getDesignationBytes(); - - /** - * - * - *
-     * Email of the person in the format of `john.doe@xyz`,
-     * `<john.doe@xyz>`, or `John Doe<john.doe@xyz>`.
-     * 
- * - * string email = 2; - * - * @return The email. - */ - java.lang.String getEmail(); - - /** - * - * - *
-     * Email of the person in the format of `john.doe@xyz`,
-     * `<john.doe@xyz>`, or `John Doe<john.doe@xyz>`.
-     * 
- * - * string email = 2; - * - * @return The bytes for email. - */ - com.google.protobuf.ByteString getEmailBytes(); - } - - /** - * - * - *
-   * A contact person for the entry.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Contacts.Person} - */ - public static final class Person extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Contacts.Person) - PersonOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Person"); - } - - // Use Person.newBuilder() to construct. - private Person(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Person() { - designation_ = ""; - email_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Contacts_Person_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Contacts_Person_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Contacts.Person.class, - com.google.cloud.datacatalog.v1.Contacts.Person.Builder.class); - } - - public static final int DESIGNATION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object designation_ = ""; - - /** - * - * - *
-     * Designation of the person, for example, Data Steward.
-     * 
- * - * string designation = 1; - * - * @return The designation. - */ - @java.lang.Override - public java.lang.String getDesignation() { - java.lang.Object ref = designation_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - designation_ = s; - return s; - } - } - - /** - * - * - *
-     * Designation of the person, for example, Data Steward.
-     * 
- * - * string designation = 1; - * - * @return The bytes for designation. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDesignationBytes() { - java.lang.Object ref = designation_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - designation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMAIL_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object email_ = ""; - - /** - * - * - *
-     * Email of the person in the format of `john.doe@xyz`,
-     * `<john.doe@xyz>`, or `John Doe<john.doe@xyz>`.
-     * 
- * - * string email = 2; - * - * @return The email. - */ - @java.lang.Override - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } - } - - /** - * - * - *
-     * Email of the person in the format of `john.doe@xyz`,
-     * `<john.doe@xyz>`, or `John Doe<john.doe@xyz>`.
-     * 
- * - * string email = 2; - * - * @return The bytes for email. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - email_ = 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(designation_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, designation_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(email_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, email_); - } - 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(designation_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, designation_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(email_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, email_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.Contacts.Person)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.Contacts.Person other = - (com.google.cloud.datacatalog.v1.Contacts.Person) obj; - - if (!getDesignation().equals(other.getDesignation())) return false; - if (!getEmail().equals(other.getEmail())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESIGNATION_FIELD_NUMBER; - hash = (53 * hash) + getDesignation().hashCode(); - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.Contacts.Person prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 contact person for the entry.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Contacts.Person} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.Contacts.Person) - com.google.cloud.datacatalog.v1.Contacts.PersonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Contacts_Person_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Contacts_Person_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Contacts.Person.class, - com.google.cloud.datacatalog.v1.Contacts.Person.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.Contacts.Person.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - designation_ = ""; - email_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Contacts_Person_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts.Person getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.Contacts.Person.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts.Person build() { - com.google.cloud.datacatalog.v1.Contacts.Person result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts.Person buildPartial() { - com.google.cloud.datacatalog.v1.Contacts.Person result = - new com.google.cloud.datacatalog.v1.Contacts.Person(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.Contacts.Person result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.designation_ = designation_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.email_ = email_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.Contacts.Person) { - return mergeFrom((com.google.cloud.datacatalog.v1.Contacts.Person) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.Contacts.Person other) { - if (other == com.google.cloud.datacatalog.v1.Contacts.Person.getDefaultInstance()) - return this; - if (!other.getDesignation().isEmpty()) { - designation_ = other.designation_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEmail().isEmpty()) { - email_ = other.email_; - 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: - { - designation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - email_ = 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 designation_ = ""; - - /** - * - * - *
-       * Designation of the person, for example, Data Steward.
-       * 
- * - * string designation = 1; - * - * @return The designation. - */ - public java.lang.String getDesignation() { - java.lang.Object ref = designation_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - designation_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * Designation of the person, for example, Data Steward.
-       * 
- * - * string designation = 1; - * - * @return The bytes for designation. - */ - public com.google.protobuf.ByteString getDesignationBytes() { - java.lang.Object ref = designation_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - designation_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * Designation of the person, for example, Data Steward.
-       * 
- * - * string designation = 1; - * - * @param value The designation to set. - * @return This builder for chaining. - */ - public Builder setDesignation(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - designation_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * Designation of the person, for example, Data Steward.
-       * 
- * - * string designation = 1; - * - * @return This builder for chaining. - */ - public Builder clearDesignation() { - designation_ = getDefaultInstance().getDesignation(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * Designation of the person, for example, Data Steward.
-       * 
- * - * string designation = 1; - * - * @param value The bytes for designation to set. - * @return This builder for chaining. - */ - public Builder setDesignationBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - designation_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object email_ = ""; - - /** - * - * - *
-       * Email of the person in the format of `john.doe@xyz`,
-       * `<john.doe@xyz>`, or `John Doe<john.doe@xyz>`.
-       * 
- * - * string email = 2; - * - * @return The email. - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * Email of the person in the format of `john.doe@xyz`,
-       * `<john.doe@xyz>`, or `John Doe<john.doe@xyz>`.
-       * 
- * - * string email = 2; - * - * @return The bytes for email. - */ - public com.google.protobuf.ByteString getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * Email of the person in the format of `john.doe@xyz`,
-       * `<john.doe@xyz>`, or `John Doe<john.doe@xyz>`.
-       * 
- * - * string email = 2; - * - * @param value The email to set. - * @return This builder for chaining. - */ - public Builder setEmail(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - email_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * Email of the person in the format of `john.doe@xyz`,
-       * `<john.doe@xyz>`, or `John Doe<john.doe@xyz>`.
-       * 
- * - * string email = 2; - * - * @return This builder for chaining. - */ - public Builder clearEmail() { - email_ = getDefaultInstance().getEmail(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-       * Email of the person in the format of `john.doe@xyz`,
-       * `<john.doe@xyz>`, or `John Doe<john.doe@xyz>`.
-       * 
- * - * string email = 2; - * - * @param value The bytes for email to set. - * @return This builder for chaining. - */ - public Builder setEmailBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - email_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.Contacts.Person) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.Contacts.Person) - private static final com.google.cloud.datacatalog.v1.Contacts.Person DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.Contacts.Person(); - } - - public static com.google.cloud.datacatalog.v1.Contacts.Person getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Person parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts.Person getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int PEOPLE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List people_; - - /** - * - * - *
-   * The list of contact people for the entry.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - @java.lang.Override - public java.util.List getPeopleList() { - return people_; - } - - /** - * - * - *
-   * The list of contact people for the entry.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - @java.lang.Override - public java.util.List - getPeopleOrBuilderList() { - return people_; - } - - /** - * - * - *
-   * The list of contact people for the entry.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - @java.lang.Override - public int getPeopleCount() { - return people_.size(); - } - - /** - * - * - *
-   * The list of contact people for the entry.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts.Person getPeople(int index) { - return people_.get(index); - } - - /** - * - * - *
-   * The list of contact people for the entry.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts.PersonOrBuilder getPeopleOrBuilder(int index) { - return people_.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 < people_.size(); i++) { - output.writeMessage(1, people_.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 < people_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, people_.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.datacatalog.v1.Contacts)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.Contacts other = (com.google.cloud.datacatalog.v1.Contacts) obj; - - if (!getPeopleList().equals(other.getPeopleList())) return false; - if (!getUnknownFields().equals(other.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 (getPeopleCount() > 0) { - hash = (37 * hash) + PEOPLE_FIELD_NUMBER; - hash = (53 * hash) + getPeopleList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.Contacts parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Contacts parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.Contacts prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Contact people for the entry.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Contacts} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.Contacts) - com.google.cloud.datacatalog.v1.ContactsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Contacts_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Contacts_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Contacts.class, - com.google.cloud.datacatalog.v1.Contacts.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.Contacts.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (peopleBuilder_ == null) { - people_ = java.util.Collections.emptyList(); - } else { - people_ = null; - peopleBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Contacts_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts build() { - com.google.cloud.datacatalog.v1.Contacts result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts buildPartial() { - com.google.cloud.datacatalog.v1.Contacts result = - new com.google.cloud.datacatalog.v1.Contacts(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.Contacts result) { - if (peopleBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - people_ = java.util.Collections.unmodifiableList(people_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.people_ = people_; - } else { - result.people_ = peopleBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.Contacts result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.Contacts) { - return mergeFrom((com.google.cloud.datacatalog.v1.Contacts) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.Contacts other) { - if (other == com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance()) return this; - if (peopleBuilder_ == null) { - if (!other.people_.isEmpty()) { - if (people_.isEmpty()) { - people_ = other.people_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePeopleIsMutable(); - people_.addAll(other.people_); - } - onChanged(); - } - } else { - if (!other.people_.isEmpty()) { - if (peopleBuilder_.isEmpty()) { - peopleBuilder_.dispose(); - peopleBuilder_ = null; - people_ = other.people_; - bitField0_ = (bitField0_ & ~0x00000001); - peopleBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetPeopleFieldBuilder() - : null; - } else { - peopleBuilder_.addAllMessages(other.people_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1.Contacts.Person m = - input.readMessage( - com.google.cloud.datacatalog.v1.Contacts.Person.parser(), - extensionRegistry); - if (peopleBuilder_ == null) { - ensurePeopleIsMutable(); - people_.add(m); - } else { - peopleBuilder_.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 people_ = - java.util.Collections.emptyList(); - - private void ensurePeopleIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - people_ = new java.util.ArrayList(people_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Contacts.Person, - com.google.cloud.datacatalog.v1.Contacts.Person.Builder, - com.google.cloud.datacatalog.v1.Contacts.PersonOrBuilder> - peopleBuilder_; - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public java.util.List getPeopleList() { - if (peopleBuilder_ == null) { - return java.util.Collections.unmodifiableList(people_); - } else { - return peopleBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public int getPeopleCount() { - if (peopleBuilder_ == null) { - return people_.size(); - } else { - return peopleBuilder_.getCount(); - } - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public com.google.cloud.datacatalog.v1.Contacts.Person getPeople(int index) { - if (peopleBuilder_ == null) { - return people_.get(index); - } else { - return peopleBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public Builder setPeople(int index, com.google.cloud.datacatalog.v1.Contacts.Person value) { - if (peopleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeopleIsMutable(); - people_.set(index, value); - onChanged(); - } else { - peopleBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public Builder setPeople( - int index, com.google.cloud.datacatalog.v1.Contacts.Person.Builder builderForValue) { - if (peopleBuilder_ == null) { - ensurePeopleIsMutable(); - people_.set(index, builderForValue.build()); - onChanged(); - } else { - peopleBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public Builder addPeople(com.google.cloud.datacatalog.v1.Contacts.Person value) { - if (peopleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeopleIsMutable(); - people_.add(value); - onChanged(); - } else { - peopleBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public Builder addPeople(int index, com.google.cloud.datacatalog.v1.Contacts.Person value) { - if (peopleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePeopleIsMutable(); - people_.add(index, value); - onChanged(); - } else { - peopleBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public Builder addPeople( - com.google.cloud.datacatalog.v1.Contacts.Person.Builder builderForValue) { - if (peopleBuilder_ == null) { - ensurePeopleIsMutable(); - people_.add(builderForValue.build()); - onChanged(); - } else { - peopleBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public Builder addPeople( - int index, com.google.cloud.datacatalog.v1.Contacts.Person.Builder builderForValue) { - if (peopleBuilder_ == null) { - ensurePeopleIsMutable(); - people_.add(index, builderForValue.build()); - onChanged(); - } else { - peopleBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public Builder addAllPeople( - java.lang.Iterable values) { - if (peopleBuilder_ == null) { - ensurePeopleIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, people_); - onChanged(); - } else { - peopleBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public Builder clearPeople() { - if (peopleBuilder_ == null) { - people_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - peopleBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public Builder removePeople(int index) { - if (peopleBuilder_ == null) { - ensurePeopleIsMutable(); - people_.remove(index); - onChanged(); - } else { - peopleBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public com.google.cloud.datacatalog.v1.Contacts.Person.Builder getPeopleBuilder(int index) { - return internalGetPeopleFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public com.google.cloud.datacatalog.v1.Contacts.PersonOrBuilder getPeopleOrBuilder(int index) { - if (peopleBuilder_ == null) { - return people_.get(index); - } else { - return peopleBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public java.util.List - getPeopleOrBuilderList() { - if (peopleBuilder_ != null) { - return peopleBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(people_); - } - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public com.google.cloud.datacatalog.v1.Contacts.Person.Builder addPeopleBuilder() { - return internalGetPeopleFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.Contacts.Person.getDefaultInstance()); - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public com.google.cloud.datacatalog.v1.Contacts.Person.Builder addPeopleBuilder(int index) { - return internalGetPeopleFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.Contacts.Person.getDefaultInstance()); - } - - /** - * - * - *
-     * The list of contact people for the entry.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - public java.util.List - getPeopleBuilderList() { - return internalGetPeopleFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Contacts.Person, - com.google.cloud.datacatalog.v1.Contacts.Person.Builder, - com.google.cloud.datacatalog.v1.Contacts.PersonOrBuilder> - internalGetPeopleFieldBuilder() { - if (peopleBuilder_ == null) { - peopleBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Contacts.Person, - com.google.cloud.datacatalog.v1.Contacts.Person.Builder, - com.google.cloud.datacatalog.v1.Contacts.PersonOrBuilder>( - people_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - people_ = null; - } - return peopleBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.Contacts) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.Contacts) - private static final com.google.cloud.datacatalog.v1.Contacts DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.Contacts(); - } - - public static com.google.cloud.datacatalog.v1.Contacts getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Contacts parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ContactsOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ContactsOrBuilder.java deleted file mode 100644 index 58b3dfb8f7e5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ContactsOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ContactsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Contacts) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of contact people for the entry.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - java.util.List getPeopleList(); - - /** - * - * - *
-   * The list of contact people for the entry.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - com.google.cloud.datacatalog.v1.Contacts.Person getPeople(int index); - - /** - * - * - *
-   * The list of contact people for the entry.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - int getPeopleCount(); - - /** - * - * - *
-   * The list of contact people for the entry.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - java.util.List - getPeopleOrBuilderList(); - - /** - * - * - *
-   * The list of contact people for the entry.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Contacts.Person people = 1; - */ - com.google.cloud.datacatalog.v1.Contacts.PersonOrBuilder getPeopleOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequest.java deleted file mode 100644 index c12bf18fcd26..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequest.java +++ /dev/null @@ -1,1151 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [CreateEntryGroup][google.cloud.datacatalog.v1.DataCatalog.CreateEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateEntryGroupRequest} - */ -@com.google.protobuf.Generated -public final class CreateEntryGroupRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateEntryGroupRequest) - CreateEntryGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateEntryGroupRequest"); - } - - // Use CreateEntryGroupRequest.newBuilder() to construct. - private CreateEntryGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateEntryGroupRequest() { - parent_ = ""; - entryGroupId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest.class, - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The names of the project and location that the new entry group
-   * belongs to.
-   *
-   * Note: The entry group itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The names of the project and location that the new entry group
-   * belongs to.
-   *
-   * Note: The entry group itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENTRY_GROUP_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object entryGroupId_ = ""; - - /** - * - * - *
-   * Required. The ID of the entry group to create.
-   *
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and must start with a letter or underscore.
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryGroupId. - */ - @java.lang.Override - public java.lang.String getEntryGroupId() { - java.lang.Object ref = entryGroupId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entryGroupId_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The ID of the entry group to create.
-   *
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and must start with a letter or underscore.
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryGroupId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEntryGroupIdBytes() { - java.lang.Object ref = entryGroupId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entryGroupId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENTRY_GROUP_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.EntryGroup entryGroup_; - - /** - * - * - *
-   * The entry group to create. Defaults to empty.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - * - * @return Whether the entryGroup field is set. - */ - @java.lang.Override - public boolean hasEntryGroup() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The entry group to create. Defaults to empty.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - * - * @return The entryGroup. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryGroup getEntryGroup() { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - - /** - * - * - *
-   * The entry group to create. Defaults to empty.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryGroupOrBuilder getEntryGroupOrBuilder() { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getEntryGroup()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryGroupId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, entryGroupId_); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntryGroup()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryGroupId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, entryGroupId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.CreateEntryGroupRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest other = - (com.google.cloud.datacatalog.v1.CreateEntryGroupRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getEntryGroupId().equals(other.getEntryGroupId())) return false; - if (hasEntryGroup() != other.hasEntryGroup()) return false; - if (hasEntryGroup()) { - if (!getEntryGroup().equals(other.getEntryGroup())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + ENTRY_GROUP_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntryGroupId().hashCode(); - if (hasEntryGroup()) { - hash = (37 * hash) + ENTRY_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getEntryGroup().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateEntryGroup][google.cloud.datacatalog.v1.DataCatalog.CreateEntryGroup].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateEntryGroupRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CreateEntryGroupRequest) - com.google.cloud.datacatalog.v1.CreateEntryGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest.class, - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CreateEntryGroupRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetEntryGroupFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - entryGroupId_ = ""; - entryGroup_ = null; - if (entryGroupBuilder_ != null) { - entryGroupBuilder_.dispose(); - entryGroupBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateEntryGroupRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CreateEntryGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateEntryGroupRequest build() { - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateEntryGroupRequest buildPartial() { - com.google.cloud.datacatalog.v1.CreateEntryGroupRequest result = - new com.google.cloud.datacatalog.v1.CreateEntryGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.CreateEntryGroupRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.entryGroupId_ = entryGroupId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.entryGroup_ = entryGroupBuilder_ == null ? entryGroup_ : entryGroupBuilder_.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.datacatalog.v1.CreateEntryGroupRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.CreateEntryGroupRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CreateEntryGroupRequest other) { - if (other == com.google.cloud.datacatalog.v1.CreateEntryGroupRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEntryGroupId().isEmpty()) { - entryGroupId_ = other.entryGroupId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasEntryGroup()) { - mergeEntryGroup(other.getEntryGroup()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage( - internalGetEntryGroupFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - entryGroupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The names of the project and location that the new entry group
-     * belongs to.
-     *
-     * Note: The entry group itself and its child resources might not be
-     * stored in the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The names of the project and location that the new entry group
-     * belongs to.
-     *
-     * Note: The entry group itself and its child resources might not be
-     * stored in the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The names of the project and location that the new entry group
-     * belongs to.
-     *
-     * Note: The entry group itself and its child resources might not be
-     * stored in the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The names of the project and location that the new entry group
-     * belongs to.
-     *
-     * Note: The entry group itself and its child resources might not be
-     * stored in the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The names of the project and location that the new entry group
-     * belongs to.
-     *
-     * Note: The entry group itself and its child resources might not be
-     * stored in the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object entryGroupId_ = ""; - - /** - * - * - *
-     * Required. The ID of the entry group to create.
-     *
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and must start with a letter or underscore.
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryGroupId. - */ - public java.lang.String getEntryGroupId() { - java.lang.Object ref = entryGroupId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entryGroupId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The ID of the entry group to create.
-     *
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and must start with a letter or underscore.
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryGroupId. - */ - public com.google.protobuf.ByteString getEntryGroupIdBytes() { - java.lang.Object ref = entryGroupId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entryGroupId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The ID of the entry group to create.
-     *
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and must start with a letter or underscore.
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The entryGroupId to set. - * @return This builder for chaining. - */ - public Builder setEntryGroupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - entryGroupId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The ID of the entry group to create.
-     *
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and must start with a letter or underscore.
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearEntryGroupId() { - entryGroupId_ = getDefaultInstance().getEntryGroupId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The ID of the entry group to create.
-     *
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), and must start with a letter or underscore.
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for entryGroupId to set. - * @return This builder for chaining. - */ - public Builder setEntryGroupIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - entryGroupId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.EntryGroup entryGroup_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryGroup, - com.google.cloud.datacatalog.v1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> - entryGroupBuilder_; - - /** - * - * - *
-     * The entry group to create. Defaults to empty.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - * - * @return Whether the entryGroup field is set. - */ - public boolean hasEntryGroup() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * The entry group to create. Defaults to empty.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - * - * @return The entryGroup. - */ - public com.google.cloud.datacatalog.v1.EntryGroup getEntryGroup() { - if (entryGroupBuilder_ == null) { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance() - : entryGroup_; - } else { - return entryGroupBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The entry group to create. Defaults to empty.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - */ - public Builder setEntryGroup(com.google.cloud.datacatalog.v1.EntryGroup value) { - if (entryGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entryGroup_ = value; - } else { - entryGroupBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The entry group to create. Defaults to empty.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - */ - public Builder setEntryGroup( - com.google.cloud.datacatalog.v1.EntryGroup.Builder builderForValue) { - if (entryGroupBuilder_ == null) { - entryGroup_ = builderForValue.build(); - } else { - entryGroupBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The entry group to create. Defaults to empty.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - */ - public Builder mergeEntryGroup(com.google.cloud.datacatalog.v1.EntryGroup value) { - if (entryGroupBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && entryGroup_ != null - && entryGroup_ != com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance()) { - getEntryGroupBuilder().mergeFrom(value); - } else { - entryGroup_ = value; - } - } else { - entryGroupBuilder_.mergeFrom(value); - } - if (entryGroup_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The entry group to create. Defaults to empty.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - */ - public Builder clearEntryGroup() { - bitField0_ = (bitField0_ & ~0x00000004); - entryGroup_ = null; - if (entryGroupBuilder_ != null) { - entryGroupBuilder_.dispose(); - entryGroupBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The entry group to create. Defaults to empty.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - */ - public com.google.cloud.datacatalog.v1.EntryGroup.Builder getEntryGroupBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetEntryGroupFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The entry group to create. Defaults to empty.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - */ - public com.google.cloud.datacatalog.v1.EntryGroupOrBuilder getEntryGroupOrBuilder() { - if (entryGroupBuilder_ != null) { - return entryGroupBuilder_.getMessageOrBuilder(); - } else { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - } - - /** - * - * - *
-     * The entry group to create. Defaults to empty.
-     * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryGroup, - com.google.cloud.datacatalog.v1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> - internalGetEntryGroupFieldBuilder() { - if (entryGroupBuilder_ == null) { - entryGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryGroup, - com.google.cloud.datacatalog.v1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder>( - getEntryGroup(), getParentForChildren(), isClean()); - entryGroup_ = null; - } - return entryGroupBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CreateEntryGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CreateEntryGroupRequest) - private static final com.google.cloud.datacatalog.v1.CreateEntryGroupRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CreateEntryGroupRequest(); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEntryGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateEntryGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequestOrBuilder.java deleted file mode 100644 index c9c708366f3b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CreateEntryGroupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CreateEntryGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The names of the project and location that the new entry group
-   * belongs to.
-   *
-   * Note: The entry group itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The names of the project and location that the new entry group
-   * belongs to.
-   *
-   * Note: The entry group itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * - * 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 entry group to create.
-   *
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and must start with a letter or underscore.
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryGroupId. - */ - java.lang.String getEntryGroupId(); - - /** - * - * - *
-   * Required. The ID of the entry group to create.
-   *
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), and must start with a letter or underscore.
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryGroupId. - */ - com.google.protobuf.ByteString getEntryGroupIdBytes(); - - /** - * - * - *
-   * The entry group to create. Defaults to empty.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - * - * @return Whether the entryGroup field is set. - */ - boolean hasEntryGroup(); - - /** - * - * - *
-   * The entry group to create. Defaults to empty.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - * - * @return The entryGroup. - */ - com.google.cloud.datacatalog.v1.EntryGroup getEntryGroup(); - - /** - * - * - *
-   * The entry group to create. Defaults to empty.
-   * 
- * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 2; - */ - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder getEntryGroupOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequest.java deleted file mode 100644 index c617d84b01a9..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequest.java +++ /dev/null @@ -1,1145 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateEntryRequest} - */ -@com.google.protobuf.Generated -public final class CreateEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateEntryRequest) - CreateEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateEntryRequest"); - } - - // Use CreateEntryRequest.newBuilder() to construct. - private CreateEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateEntryRequest() { - parent_ = ""; - entryId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateEntryRequest.class, - com.google.cloud.datacatalog.v1.CreateEntryRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the entry group this entry belongs to.
-   *
-   * Note: The entry itself and its child resources might not be stored in
-   * the location specified in its name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the entry group this entry belongs to.
-   *
-   * Note: The entry itself and its child resources might not be stored in
-   * the location specified in its name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENTRY_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object entryId_ = ""; - - /** - * - * - *
-   * Required. The ID of the entry to create.
-   *
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * and underscores (_).
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryId. - */ - @java.lang.Override - public java.lang.String getEntryId() { - java.lang.Object ref = entryId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entryId_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The ID of the entry to create.
-   *
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * and underscores (_).
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEntryIdBytes() { - java.lang.Object ref = entryId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entryId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENTRY_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.Entry entry_; - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - @java.lang.Override - public boolean hasEntry() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Entry getEntry() { - return entry_ == null ? com.google.cloud.datacatalog.v1.Entry.getDefaultInstance() : entry_; - } - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOrBuilder getEntryOrBuilder() { - return entry_ == null ? com.google.cloud.datacatalog.v1.Entry.getDefaultInstance() : entry_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getEntry()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, entryId_); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntry()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, entryId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.CreateEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CreateEntryRequest other = - (com.google.cloud.datacatalog.v1.CreateEntryRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getEntryId().equals(other.getEntryId())) return false; - if (hasEntry() != other.hasEntry()) return false; - if (hasEntry()) { - if (!getEntry().equals(other.getEntry())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + ENTRY_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntryId().hashCode(); - if (hasEntry()) { - hash = (37 * hash) + ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getEntry().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.CreateEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CreateEntryRequest) - com.google.cloud.datacatalog.v1.CreateEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateEntryRequest.class, - com.google.cloud.datacatalog.v1.CreateEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CreateEntryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetEntryFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - entryId_ = ""; - entry_ = null; - if (entryBuilder_ != null) { - entryBuilder_.dispose(); - entryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CreateEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateEntryRequest build() { - com.google.cloud.datacatalog.v1.CreateEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1.CreateEntryRequest result = - new com.google.cloud.datacatalog.v1.CreateEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.CreateEntryRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.entryId_ = entryId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.entry_ = entryBuilder_ == null ? entry_ : entryBuilder_.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.datacatalog.v1.CreateEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.CreateEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CreateEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1.CreateEntryRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEntryId().isEmpty()) { - entryId_ = other.entryId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasEntry()) { - mergeEntry(other.getEntry()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage(internalGetEntryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - entryId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the entry group this entry belongs to.
-     *
-     * Note: The entry itself and its child resources might not be stored in
-     * the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group this entry belongs to.
-     *
-     * Note: The entry itself and its child resources might not be stored in
-     * the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group this entry belongs to.
-     *
-     * Note: The entry itself and its child resources might not be stored in
-     * the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group this entry belongs to.
-     *
-     * Note: The entry itself and its child resources might not be stored in
-     * the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group this entry belongs to.
-     *
-     * Note: The entry itself and its child resources might not be stored in
-     * the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object entryId_ = ""; - - /** - * - * - *
-     * Required. The ID of the entry to create.
-     *
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * and underscores (_).
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryId. - */ - public java.lang.String getEntryId() { - java.lang.Object ref = entryId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entryId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The ID of the entry to create.
-     *
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * and underscores (_).
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryId. - */ - public com.google.protobuf.ByteString getEntryIdBytes() { - java.lang.Object ref = entryId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entryId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The ID of the entry to create.
-     *
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * and underscores (_).
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The entryId to set. - * @return This builder for chaining. - */ - public Builder setEntryId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - entryId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The ID of the entry to create.
-     *
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * and underscores (_).
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearEntryId() { - entryId_ = getDefaultInstance().getEntryId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The ID of the entry to create.
-     *
-     * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-     * and underscores (_).
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for entryId to set. - * @return This builder for chaining. - */ - public Builder setEntryIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - entryId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.Entry entry_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder> - entryBuilder_; - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - public boolean hasEntry() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - public com.google.cloud.datacatalog.v1.Entry getEntry() { - if (entryBuilder_ == null) { - return entry_ == null ? com.google.cloud.datacatalog.v1.Entry.getDefaultInstance() : entry_; - } else { - return entryBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntry(com.google.cloud.datacatalog.v1.Entry value) { - if (entryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entry_ = value; - } else { - entryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntry(com.google.cloud.datacatalog.v1.Entry.Builder builderForValue) { - if (entryBuilder_ == null) { - entry_ = builderForValue.build(); - } else { - entryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeEntry(com.google.cloud.datacatalog.v1.Entry value) { - if (entryBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && entry_ != null - && entry_ != com.google.cloud.datacatalog.v1.Entry.getDefaultInstance()) { - getEntryBuilder().mergeFrom(value); - } else { - entry_ = value; - } - } else { - entryBuilder_.mergeFrom(value); - } - if (entry_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearEntry() { - bitField0_ = (bitField0_ & ~0x00000004); - entry_ = null; - if (entryBuilder_ != null) { - entryBuilder_.dispose(); - entryBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.Entry.Builder getEntryBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetEntryFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.EntryOrBuilder getEntryOrBuilder() { - if (entryBuilder_ != null) { - return entryBuilder_.getMessageOrBuilder(); - } else { - return entry_ == null ? com.google.cloud.datacatalog.v1.Entry.getDefaultInstance() : entry_; - } - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder> - internalGetEntryFieldBuilder() { - if (entryBuilder_ == null) { - entryBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder>( - getEntry(), getParentForChildren(), isClean()); - entry_ = null; - } - return entryBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CreateEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CreateEntryRequest) - private static final com.google.cloud.datacatalog.v1.CreateEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CreateEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1.CreateEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequestOrBuilder.java deleted file mode 100644 index 208c0bc822db..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateEntryRequestOrBuilder.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CreateEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CreateEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry group this entry belongs to.
-   *
-   * Note: The entry itself and its child resources might not be stored in
-   * the location specified in its name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the entry group this entry belongs to.
-   *
-   * Note: The entry itself and its child resources might not be stored in
-   * the location specified in its name.
-   * 
- * - * - * 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 entry to create.
-   *
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * and underscores (_).
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryId. - */ - java.lang.String getEntryId(); - - /** - * - * - *
-   * Required. The ID of the entry to create.
-   *
-   * The ID must contain only letters (a-z, A-Z), numbers (0-9),
-   * and underscores (_).
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryId. - */ - com.google.protobuf.ByteString getEntryIdBytes(); - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - boolean hasEntry(); - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - com.google.cloud.datacatalog.v1.Entry getEntry(); - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.EntryOrBuilder getEntryOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java deleted file mode 100644 index 20ca8a2127fa..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequest.java +++ /dev/null @@ -1,905 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [CreatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreatePolicyTagRequest} - */ -@com.google.protobuf.Generated -public final class CreatePolicyTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreatePolicyTagRequest) - CreatePolicyTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreatePolicyTagRequest"); - } - - // Use CreatePolicyTagRequest.newBuilder() to construct. - private CreatePolicyTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreatePolicyTagRequest() { - parent_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest.class, - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of the taxonomy that the policy tag will belong to.
-   * 
- * - * - * 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. Resource name of the taxonomy that the policy tag will belong to.
-   * 
- * - * - * 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_TAG_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.PolicyTag policyTag_; - - /** - * - * - *
-   * The policy tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - * - * @return Whether the policyTag field is set. - */ - @java.lang.Override - public boolean hasPolicyTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The policy tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - * - * @return The policyTag. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PolicyTag getPolicyTag() { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance() - : policyTag_; - } - - /** - * - * - *
-   * The policy tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PolicyTagOrBuilder getPolicyTagOrBuilder() { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance() - : policyTag_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getPolicyTag()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicyTag()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.CreatePolicyTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest other = - (com.google.cloud.datacatalog.v1.CreatePolicyTagRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasPolicyTag() != other.hasPolicyTag()) return false; - if (hasPolicyTag()) { - if (!getPolicyTag().equals(other.getPolicyTag())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasPolicyTag()) { - hash = (37 * hash) + POLICY_TAG_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTag().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreatePolicyTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CreatePolicyTagRequest) - com.google.cloud.datacatalog.v1.CreatePolicyTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest.class, - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CreatePolicyTagRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetPolicyTagFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - policyTag_ = null; - if (policyTagBuilder_ != null) { - policyTagBuilder_.dispose(); - policyTagBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreatePolicyTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CreatePolicyTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreatePolicyTagRequest build() { - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreatePolicyTagRequest buildPartial() { - com.google.cloud.datacatalog.v1.CreatePolicyTagRequest result = - new com.google.cloud.datacatalog.v1.CreatePolicyTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.CreatePolicyTagRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.policyTag_ = policyTagBuilder_ == null ? policyTag_ : policyTagBuilder_.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.datacatalog.v1.CreatePolicyTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.CreatePolicyTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CreatePolicyTagRequest other) { - if (other == com.google.cloud.datacatalog.v1.CreatePolicyTagRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasPolicyTag()) { - mergePolicyTag(other.getPolicyTag()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage( - internalGetPolicyTagFieldBuilder().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 parent_ = ""; - - /** - * - * - *
-     * Required. Resource name of the taxonomy that the policy tag will belong to.
-     * 
- * - * - * 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. Resource name of the taxonomy that the policy tag will belong to.
-     * 
- * - * - * 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. Resource name of the taxonomy that the policy tag will belong to.
-     * 
- * - * - * 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. Resource name of the taxonomy that the policy tag will belong to.
-     * 
- * - * - * 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. Resource name of the taxonomy that the policy tag will belong to.
-     * 
- * - * - * 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 com.google.cloud.datacatalog.v1.PolicyTag policyTag_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PolicyTag, - com.google.cloud.datacatalog.v1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> - policyTagBuilder_; - - /** - * - * - *
-     * The policy tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - * - * @return Whether the policyTag field is set. - */ - public boolean hasPolicyTag() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * The policy tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - * - * @return The policyTag. - */ - public com.google.cloud.datacatalog.v1.PolicyTag getPolicyTag() { - if (policyTagBuilder_ == null) { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance() - : policyTag_; - } else { - return policyTagBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The policy tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - */ - public Builder setPolicyTag(com.google.cloud.datacatalog.v1.PolicyTag value) { - if (policyTagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policyTag_ = value; - } else { - policyTagBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - */ - public Builder setPolicyTag(com.google.cloud.datacatalog.v1.PolicyTag.Builder builderForValue) { - if (policyTagBuilder_ == null) { - policyTag_ = builderForValue.build(); - } else { - policyTagBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - */ - public Builder mergePolicyTag(com.google.cloud.datacatalog.v1.PolicyTag value) { - if (policyTagBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && policyTag_ != null - && policyTag_ != com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance()) { - getPolicyTagBuilder().mergeFrom(value); - } else { - policyTag_ = value; - } - } else { - policyTagBuilder_.mergeFrom(value); - } - if (policyTag_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The policy tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - */ - public Builder clearPolicyTag() { - bitField0_ = (bitField0_ & ~0x00000002); - policyTag_ = null; - if (policyTagBuilder_ != null) { - policyTagBuilder_.dispose(); - policyTagBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - */ - public com.google.cloud.datacatalog.v1.PolicyTag.Builder getPolicyTagBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetPolicyTagFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The policy tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - */ - public com.google.cloud.datacatalog.v1.PolicyTagOrBuilder getPolicyTagOrBuilder() { - if (policyTagBuilder_ != null) { - return policyTagBuilder_.getMessageOrBuilder(); - } else { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance() - : policyTag_; - } - } - - /** - * - * - *
-     * The policy tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PolicyTag, - com.google.cloud.datacatalog.v1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> - internalGetPolicyTagFieldBuilder() { - if (policyTagBuilder_ == null) { - policyTagBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PolicyTag, - com.google.cloud.datacatalog.v1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder>( - getPolicyTag(), getParentForChildren(), isClean()); - policyTag_ = null; - } - return policyTagBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CreatePolicyTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CreatePolicyTagRequest) - private static final com.google.cloud.datacatalog.v1.CreatePolicyTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CreatePolicyTagRequest(); - } - - public static com.google.cloud.datacatalog.v1.CreatePolicyTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePolicyTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreatePolicyTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java deleted file mode 100644 index a159bc444ebf..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreatePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CreatePolicyTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CreatePolicyTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the taxonomy that the policy tag will belong to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of the taxonomy that the policy tag will belong to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The policy tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - * - * @return Whether the policyTag field is set. - */ - boolean hasPolicyTag(); - - /** - * - * - *
-   * The policy tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - * - * @return The policyTag. - */ - com.google.cloud.datacatalog.v1.PolicyTag getPolicyTag(); - - /** - * - * - *
-   * The policy tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 2; - */ - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder getPolicyTagOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequest.java deleted file mode 100644 index 449af45423f6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequest.java +++ /dev/null @@ -1,949 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [CreateTag][google.cloud.datacatalog.v1.DataCatalog.CreateTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagRequest} - */ -@com.google.protobuf.Generated -public final class CreateTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTagRequest) - CreateTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateTagRequest"); - } - - // Use CreateTagRequest.newBuilder() to construct. - private CreateTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateTagRequest() { - parent_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateTagRequest.class, - com.google.cloud.datacatalog.v1.CreateTagRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the resource to attach this tag to.
-   *
-   * Tags can be attached to entries or entry groups. An entry can have up to
-   * 1000 attached tags.
-   *
-   * Note: The tag and its child resources might not be stored in
-   * the location specified in its name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the resource to attach this tag to.
-   *
-   * Tags can be attached to entries or entry groups. An entry can have up to
-   * 1000 attached tags.
-   *
-   * Note: The tag and its child resources might not be stored in
-   * the location specified in its name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.Tag tag_; - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - @java.lang.Override - public boolean hasTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Tag getTag() { - return tag_ == null ? com.google.cloud.datacatalog.v1.Tag.getDefaultInstance() : tag_; - } - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagOrBuilder getTagOrBuilder() { - return tag_ == null ? com.google.cloud.datacatalog.v1.Tag.getDefaultInstance() : tag_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getTag()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTag()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.CreateTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CreateTagRequest other = - (com.google.cloud.datacatalog.v1.CreateTagRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTag() != other.hasTag()) return false; - if (hasTag()) { - if (!getTag().equals(other.getTag())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasTag()) { - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.CreateTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateTag][google.cloud.datacatalog.v1.DataCatalog.CreateTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CreateTagRequest) - com.google.cloud.datacatalog.v1.CreateTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateTagRequest.class, - com.google.cloud.datacatalog.v1.CreateTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CreateTagRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - tag_ = null; - if (tagBuilder_ != null) { - tagBuilder_.dispose(); - tagBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CreateTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagRequest build() { - com.google.cloud.datacatalog.v1.CreateTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagRequest buildPartial() { - com.google.cloud.datacatalog.v1.CreateTagRequest result = - new com.google.cloud.datacatalog.v1.CreateTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.CreateTagRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tag_ = tagBuilder_ == null ? tag_ : tagBuilder_.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.datacatalog.v1.CreateTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.CreateTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CreateTagRequest other) { - if (other == com.google.cloud.datacatalog.v1.CreateTagRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasTag()) { - mergeTag(other.getTag()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage(internalGetTagFieldBuilder().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 parent_ = ""; - - /** - * - * - *
-     * Required. The name of the resource to attach this tag to.
-     *
-     * Tags can be attached to entries or entry groups. An entry can have up to
-     * 1000 attached tags.
-     *
-     * Note: The tag and its child resources might not be stored in
-     * the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the resource to attach this tag to.
-     *
-     * Tags can be attached to entries or entry groups. An entry can have up to
-     * 1000 attached tags.
-     *
-     * Note: The tag and its child resources might not be stored in
-     * the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the resource to attach this tag to.
-     *
-     * Tags can be attached to entries or entry groups. An entry can have up to
-     * 1000 attached tags.
-     *
-     * Note: The tag and its child resources might not be stored in
-     * the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the resource to attach this tag to.
-     *
-     * Tags can be attached to entries or entry groups. An entry can have up to
-     * 1000 attached tags.
-     *
-     * Note: The tag and its child resources might not be stored in
-     * the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the resource to attach this tag to.
-     *
-     * Tags can be attached to entries or entry groups. An entry can have up to
-     * 1000 attached tags.
-     *
-     * Note: The tag and its child resources might not be stored in
-     * the location specified in its name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.Tag tag_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - tagBuilder_; - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - public boolean hasTag() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - public com.google.cloud.datacatalog.v1.Tag getTag() { - if (tagBuilder_ == null) { - return tag_ == null ? com.google.cloud.datacatalog.v1.Tag.getDefaultInstance() : tag_; - } else { - return tagBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTag(com.google.cloud.datacatalog.v1.Tag value) { - if (tagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tag_ = value; - } else { - tagBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTag(com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (tagBuilder_ == null) { - tag_ = builderForValue.build(); - } else { - tagBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTag(com.google.cloud.datacatalog.v1.Tag value) { - if (tagBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && tag_ != null - && tag_ != com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()) { - getTagBuilder().mergeFrom(value); - } else { - tag_ = value; - } - } else { - tagBuilder_.mergeFrom(value); - } - if (tag_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTag() { - bitField0_ = (bitField0_ & ~0x00000002); - tag_ = null; - if (tagBuilder_ != null) { - tagBuilder_.dispose(); - tagBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.Tag.Builder getTagBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetTagFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagOrBuilder getTagOrBuilder() { - if (tagBuilder_ != null) { - return tagBuilder_.getMessageOrBuilder(); - } else { - return tag_ == null ? com.google.cloud.datacatalog.v1.Tag.getDefaultInstance() : tag_; - } - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - internalGetTagFieldBuilder() { - if (tagBuilder_ == null) { - tagBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder>( - getTag(), getParentForChildren(), isClean()); - tag_ = null; - } - return tagBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CreateTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CreateTagRequest) - private static final com.google.cloud.datacatalog.v1.CreateTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CreateTagRequest(); - } - - public static com.google.cloud.datacatalog.v1.CreateTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequestOrBuilder.java deleted file mode 100644 index 780514f99205..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagRequestOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CreateTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CreateTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the resource to attach this tag to.
-   *
-   * Tags can be attached to entries or entry groups. An entry can have up to
-   * 1000 attached tags.
-   *
-   * Note: The tag and its child resources might not be stored in
-   * the location specified in its name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the resource to attach this tag to.
-   *
-   * Tags can be attached to entries or entry groups. An entry can have up to
-   * 1000 attached tags.
-   *
-   * Note: The tag and its child resources might not be stored in
-   * the location specified in its name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - boolean hasTag(); - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - com.google.cloud.datacatalog.v1.Tag getTag(); - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.TagOrBuilder getTagOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequest.java deleted file mode 100644 index 14d957d99969..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequest.java +++ /dev/null @@ -1,1182 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [CreateTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest} - */ -@com.google.protobuf.Generated -public final class CreateTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest) - CreateTagTemplateFieldRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateTagTemplateFieldRequest"); - } - - // Use CreateTagTemplateFieldRequest.newBuilder() to construct. - private CreateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateTagTemplateFieldRequest() { - parent_ = ""; - tagTemplateFieldId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   * 
- * - * - * 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 project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   * 
- * - * - * 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 TAG_TEMPLATE_FIELD_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object tagTemplateFieldId_ = ""; - - /** - * - * - *
-   * Required. The ID of the tag template field to create.
-   *
-   * Note: Adding a required field to an existing template is *not* allowed.
-   *
-   * Field IDs can contain letters (both uppercase and lowercase), numbers
-   * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-   * character long and at most 128 characters long. Field IDs must also be
-   * unique within their template.
-   * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateFieldId. - */ - @java.lang.Override - public java.lang.String getTagTemplateFieldId() { - java.lang.Object ref = tagTemplateFieldId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagTemplateFieldId_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The ID of the tag template field to create.
-   *
-   * Note: Adding a required field to an existing template is *not* allowed.
-   *
-   * Field IDs can contain letters (both uppercase and lowercase), numbers
-   * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-   * character long and at most 128 characters long. Field IDs must also be
-   * unique within their template.
-   * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateFieldId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTagTemplateFieldIdBytes() { - java.lang.Object ref = tagTemplateFieldId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tagTemplateFieldId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_TEMPLATE_FIELD_FIELD_NUMBER = 3; - private com.google.cloud.datacatalog.v1.TagTemplateField tagTemplateField_; - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - @java.lang.Override - public boolean hasTagTemplateField() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateField getTagTemplateField() { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder getTagTemplateFieldOrBuilder() { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(tagTemplateFieldId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, tagTemplateFieldId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getTagTemplateField()); - } - 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(tagTemplateFieldId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tagTemplateFieldId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTagTemplateField()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest other = - (com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getTagTemplateFieldId().equals(other.getTagTemplateFieldId())) return false; - if (hasTagTemplateField() != other.hasTagTemplateField()) return false; - if (hasTagTemplateField()) { - if (!getTagTemplateField().equals(other.getTagTemplateField())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + TAG_TEMPLATE_FIELD_ID_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplateFieldId().hashCode(); - if (hasTagTemplateField()) { - hash = (37 * hash) + TAG_TEMPLATE_FIELD_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplateField().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplateField].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest) - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagTemplateFieldFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - tagTemplateFieldId_ = ""; - tagTemplateField_ = null; - if (tagTemplateFieldBuilder_ != null) { - tagTemplateFieldBuilder_.dispose(); - tagTemplateFieldBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest build() { - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest buildPartial() { - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest result = - new com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagTemplateFieldId_ = tagTemplateFieldId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tagTemplateField_ = - tagTemplateFieldBuilder_ == null ? tagTemplateField_ : tagTemplateFieldBuilder_.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.datacatalog.v1.CreateTagTemplateFieldRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest other) { - if (other - == com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTagTemplateFieldId().isEmpty()) { - tagTemplateFieldId_ = other.tagTemplateFieldId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasTagTemplateField()) { - mergeTagTemplateField(other.getTagTemplateField()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - tagTemplateFieldId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetTagTemplateFieldFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     * 
- * - * - * 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 tagTemplateFieldId_ = ""; - - /** - * - * - *
-     * Required. The ID of the tag template field to create.
-     *
-     * Note: Adding a required field to an existing template is *not* allowed.
-     *
-     * Field IDs can contain letters (both uppercase and lowercase), numbers
-     * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-     * character long and at most 128 characters long. Field IDs must also be
-     * unique within their template.
-     * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateFieldId. - */ - public java.lang.String getTagTemplateFieldId() { - java.lang.Object ref = tagTemplateFieldId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagTemplateFieldId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The ID of the tag template field to create.
-     *
-     * Note: Adding a required field to an existing template is *not* allowed.
-     *
-     * Field IDs can contain letters (both uppercase and lowercase), numbers
-     * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-     * character long and at most 128 characters long. Field IDs must also be
-     * unique within their template.
-     * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateFieldId. - */ - public com.google.protobuf.ByteString getTagTemplateFieldIdBytes() { - java.lang.Object ref = tagTemplateFieldId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tagTemplateFieldId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The ID of the tag template field to create.
-     *
-     * Note: Adding a required field to an existing template is *not* allowed.
-     *
-     * Field IDs can contain letters (both uppercase and lowercase), numbers
-     * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-     * character long and at most 128 characters long. Field IDs must also be
-     * unique within their template.
-     * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The tagTemplateFieldId to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateFieldId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplateFieldId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The ID of the tag template field to create.
-     *
-     * Note: Adding a required field to an existing template is *not* allowed.
-     *
-     * Field IDs can contain letters (both uppercase and lowercase), numbers
-     * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-     * character long and at most 128 characters long. Field IDs must also be
-     * unique within their template.
-     * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearTagTemplateFieldId() { - tagTemplateFieldId_ = getDefaultInstance().getTagTemplateFieldId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The ID of the tag template field to create.
-     *
-     * Note: Adding a required field to an existing template is *not* allowed.
-     *
-     * Field IDs can contain letters (both uppercase and lowercase), numbers
-     * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-     * character long and at most 128 characters long. Field IDs must also be
-     * unique within their template.
-     * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for tagTemplateFieldId to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateFieldIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tagTemplateFieldId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.TagTemplateField tagTemplateField_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplateField, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder> - tagTemplateFieldBuilder_; - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - public boolean hasTagTemplateField() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - public com.google.cloud.datacatalog.v1.TagTemplateField getTagTemplateField() { - if (tagTemplateFieldBuilder_ == null) { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } else { - return tagTemplateFieldBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplateField(com.google.cloud.datacatalog.v1.TagTemplateField value) { - if (tagTemplateFieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplateField_ = value; - } else { - tagTemplateFieldBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplateField( - com.google.cloud.datacatalog.v1.TagTemplateField.Builder builderForValue) { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateField_ = builderForValue.build(); - } else { - tagTemplateFieldBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTagTemplateField(com.google.cloud.datacatalog.v1.TagTemplateField value) { - if (tagTemplateFieldBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && tagTemplateField_ != null - && tagTemplateField_ - != com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance()) { - getTagTemplateFieldBuilder().mergeFrom(value); - } else { - tagTemplateField_ = value; - } - } else { - tagTemplateFieldBuilder_.mergeFrom(value); - } - if (tagTemplateField_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTagTemplateField() { - bitField0_ = (bitField0_ & ~0x00000004); - tagTemplateField_ = null; - if (tagTemplateFieldBuilder_ != null) { - tagTemplateFieldBuilder_.dispose(); - tagTemplateFieldBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagTemplateField.Builder getTagTemplateFieldBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetTagTemplateFieldFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder - getTagTemplateFieldOrBuilder() { - if (tagTemplateFieldBuilder_ != null) { - return tagTemplateFieldBuilder_.getMessageOrBuilder(); - } else { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplateField, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder> - internalGetTagTemplateFieldFieldBuilder() { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateFieldBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplateField, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder>( - getTagTemplateField(), getParentForChildren(), isClean()); - tagTemplateField_ = null; - } - return tagTemplateFieldBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest) - private static final com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest(); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTagTemplateFieldRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index a3d0ff1e917d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CreateTagTemplateFieldRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   * 
- * - * - * 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 tag template field to create.
-   *
-   * Note: Adding a required field to an existing template is *not* allowed.
-   *
-   * Field IDs can contain letters (both uppercase and lowercase), numbers
-   * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-   * character long and at most 128 characters long. Field IDs must also be
-   * unique within their template.
-   * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateFieldId. - */ - java.lang.String getTagTemplateFieldId(); - - /** - * - * - *
-   * Required. The ID of the tag template field to create.
-   *
-   * Note: Adding a required field to an existing template is *not* allowed.
-   *
-   * Field IDs can contain letters (both uppercase and lowercase), numbers
-   * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-   * character long and at most 128 characters long. Field IDs must also be
-   * unique within their template.
-   * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateFieldId. - */ - com.google.protobuf.ByteString getTagTemplateFieldIdBytes(); - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - boolean hasTagTemplateField(); - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - com.google.cloud.datacatalog.v1.TagTemplateField getTagTemplateField(); - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder getTagTemplateFieldOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequest.java deleted file mode 100644 index f68f9ac80db4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequest.java +++ /dev/null @@ -1,1155 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [CreateTagTemplate][google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagTemplateRequest} - */ -@com.google.protobuf.Generated -public final class CreateTagTemplateRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTagTemplateRequest) - CreateTagTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateTagTemplateRequest"); - } - - // Use CreateTagTemplateRequest.newBuilder() to construct. - private CreateTagTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateTagTemplateRequest() { - parent_ = ""; - tagTemplateId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest.class, - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   * 
- * - * - * 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 project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   * 
- * - * - * 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 TAG_TEMPLATE_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object tagTemplateId_ = ""; - - /** - * - * - *
-   * Required. The ID of the tag template to create.
-   *
-   * The ID must contain only lowercase letters (a-z), numbers (0-9),
-   * or underscores (_), and must start with a letter or underscore.
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateId. - */ - @java.lang.Override - public java.lang.String getTagTemplateId() { - java.lang.Object ref = tagTemplateId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagTemplateId_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The ID of the tag template to create.
-   *
-   * The ID must contain only lowercase letters (a-z), numbers (0-9),
-   * or underscores (_), and must start with a letter or underscore.
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTagTemplateIdBytes() { - java.lang.Object ref = tagTemplateId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tagTemplateId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_TEMPLATE_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.TagTemplate tagTemplate_; - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - @java.lang.Override - public boolean hasTagTemplate() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplate getTagTemplate() { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateOrBuilder getTagTemplateOrBuilder() { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getTagTemplate()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tagTemplateId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, tagTemplateId_); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTagTemplate()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tagTemplateId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, tagTemplateId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.CreateTagTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest other = - (com.google.cloud.datacatalog.v1.CreateTagTemplateRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getTagTemplateId().equals(other.getTagTemplateId())) return false; - if (hasTagTemplate() != other.hasTagTemplate()) return false; - if (hasTagTemplate()) { - if (!getTagTemplate().equals(other.getTagTemplate())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + TAG_TEMPLATE_ID_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplateId().hashCode(); - if (hasTagTemplate()) { - hash = (37 * hash) + TAG_TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplate().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateTagTemplate][google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplate].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTagTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CreateTagTemplateRequest) - com.google.cloud.datacatalog.v1.CreateTagTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest.class, - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CreateTagTemplateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagTemplateFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - tagTemplateId_ = ""; - tagTemplate_ = null; - if (tagTemplateBuilder_ != null) { - tagTemplateBuilder_.dispose(); - tagTemplateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagTemplateRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CreateTagTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagTemplateRequest build() { - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagTemplateRequest buildPartial() { - com.google.cloud.datacatalog.v1.CreateTagTemplateRequest result = - new com.google.cloud.datacatalog.v1.CreateTagTemplateRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.CreateTagTemplateRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagTemplateId_ = tagTemplateId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tagTemplate_ = - tagTemplateBuilder_ == null ? tagTemplate_ : tagTemplateBuilder_.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.datacatalog.v1.CreateTagTemplateRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.CreateTagTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CreateTagTemplateRequest other) { - if (other == com.google.cloud.datacatalog.v1.CreateTagTemplateRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTagTemplateId().isEmpty()) { - tagTemplateId_ = other.tagTemplateId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasTagTemplate()) { - mergeTagTemplate(other.getTagTemplate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage( - internalGetTagTemplateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - tagTemplateId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     * 
- * - * - * 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 tagTemplateId_ = ""; - - /** - * - * - *
-     * Required. The ID of the tag template to create.
-     *
-     * The ID must contain only lowercase letters (a-z), numbers (0-9),
-     * or underscores (_), and must start with a letter or underscore.
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateId. - */ - public java.lang.String getTagTemplateId() { - java.lang.Object ref = tagTemplateId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagTemplateId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The ID of the tag template to create.
-     *
-     * The ID must contain only lowercase letters (a-z), numbers (0-9),
-     * or underscores (_), and must start with a letter or underscore.
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateId. - */ - public com.google.protobuf.ByteString getTagTemplateIdBytes() { - java.lang.Object ref = tagTemplateId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tagTemplateId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The ID of the tag template to create.
-     *
-     * The ID must contain only lowercase letters (a-z), numbers (0-9),
-     * or underscores (_), and must start with a letter or underscore.
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The tagTemplateId to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplateId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The ID of the tag template to create.
-     *
-     * The ID must contain only lowercase letters (a-z), numbers (0-9),
-     * or underscores (_), and must start with a letter or underscore.
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearTagTemplateId() { - tagTemplateId_ = getDefaultInstance().getTagTemplateId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The ID of the tag template to create.
-     *
-     * The ID must contain only lowercase letters (a-z), numbers (0-9),
-     * or underscores (_), and must start with a letter or underscore.
-     * The maximum size is 64 bytes when encoded in UTF-8.
-     * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for tagTemplateId to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tagTemplateId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.TagTemplate tagTemplate_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplate, - com.google.cloud.datacatalog.v1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1.TagTemplateOrBuilder> - tagTemplateBuilder_; - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - public boolean hasTagTemplate() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - public com.google.cloud.datacatalog.v1.TagTemplate getTagTemplate() { - if (tagTemplateBuilder_ == null) { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } else { - return tagTemplateBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplate(com.google.cloud.datacatalog.v1.TagTemplate value) { - if (tagTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplate_ = value; - } else { - tagTemplateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplate( - com.google.cloud.datacatalog.v1.TagTemplate.Builder builderForValue) { - if (tagTemplateBuilder_ == null) { - tagTemplate_ = builderForValue.build(); - } else { - tagTemplateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTagTemplate(com.google.cloud.datacatalog.v1.TagTemplate value) { - if (tagTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && tagTemplate_ != null - && tagTemplate_ != com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance()) { - getTagTemplateBuilder().mergeFrom(value); - } else { - tagTemplate_ = value; - } - } else { - tagTemplateBuilder_.mergeFrom(value); - } - if (tagTemplate_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTagTemplate() { - bitField0_ = (bitField0_ & ~0x00000004); - tagTemplate_ = null; - if (tagTemplateBuilder_ != null) { - tagTemplateBuilder_.dispose(); - tagTemplateBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagTemplate.Builder getTagTemplateBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetTagTemplateFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagTemplateOrBuilder getTagTemplateOrBuilder() { - if (tagTemplateBuilder_ != null) { - return tagTemplateBuilder_.getMessageOrBuilder(); - } else { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplate, - com.google.cloud.datacatalog.v1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1.TagTemplateOrBuilder> - internalGetTagTemplateFieldBuilder() { - if (tagTemplateBuilder_ == null) { - tagTemplateBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplate, - com.google.cloud.datacatalog.v1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1.TagTemplateOrBuilder>( - getTagTemplate(), getParentForChildren(), isClean()); - tagTemplate_ = null; - } - return tagTemplateBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CreateTagTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CreateTagTemplateRequest) - private static final com.google.cloud.datacatalog.v1.CreateTagTemplateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CreateTagTemplateRequest(); - } - - public static com.google.cloud.datacatalog.v1.CreateTagTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTagTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTagTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequestOrBuilder.java deleted file mode 100644 index 2fecc641a88f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CreateTagTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CreateTagTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   * 
- * - * - * 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 tag template to create.
-   *
-   * The ID must contain only lowercase letters (a-z), numbers (0-9),
-   * or underscores (_), and must start with a letter or underscore.
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateId. - */ - java.lang.String getTagTemplateId(); - - /** - * - * - *
-   * Required. The ID of the tag template to create.
-   *
-   * The ID must contain only lowercase letters (a-z), numbers (0-9),
-   * or underscores (_), and must start with a letter or underscore.
-   * The maximum size is 64 bytes when encoded in UTF-8.
-   * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateId. - */ - com.google.protobuf.ByteString getTagTemplateIdBytes(); - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - boolean hasTagTemplate(); - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - com.google.cloud.datacatalog.v1.TagTemplate getTagTemplate(); - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.TagTemplateOrBuilder getTagTemplateOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequest.java deleted file mode 100644 index c3d6c6a0e385..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequest.java +++ /dev/null @@ -1,905 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [CreateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.CreateTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTaxonomyRequest} - */ -@com.google.protobuf.Generated -public final class CreateTaxonomyRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CreateTaxonomyRequest) - CreateTaxonomyRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateTaxonomyRequest"); - } - - // Use CreateTaxonomyRequest.newBuilder() to construct. - private CreateTaxonomyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateTaxonomyRequest() { - parent_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest.class, - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of the project that the taxonomy will belong to.
-   * 
- * - * - * 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. Resource name of the project that the taxonomy will belong to.
-   * 
- * - * - * 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 TAXONOMY_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.Taxonomy taxonomy_; - - /** - * - * - *
-   * The taxonomy to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - * - * @return Whether the taxonomy field is set. - */ - @java.lang.Override - public boolean hasTaxonomy() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The taxonomy to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - * - * @return The taxonomy. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomy() { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - - /** - * - * - *
-   * The taxonomy to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomyOrBuilder() { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getTaxonomy()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTaxonomy()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.CreateTaxonomyRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest other = - (com.google.cloud.datacatalog.v1.CreateTaxonomyRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTaxonomy() != other.hasTaxonomy()) return false; - if (hasTaxonomy()) { - if (!getTaxonomy().equals(other.getTaxonomy())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasTaxonomy()) { - hash = (37 * hash) + TAXONOMY_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomy().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.CreateTaxonomy].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CreateTaxonomyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CreateTaxonomyRequest) - com.google.cloud.datacatalog.v1.CreateTaxonomyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest.class, - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CreateTaxonomyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTaxonomyFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - taxonomy_ = null; - if (taxonomyBuilder_ != null) { - taxonomyBuilder_.dispose(); - taxonomyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTaxonomyRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CreateTaxonomyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTaxonomyRequest build() { - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTaxonomyRequest buildPartial() { - com.google.cloud.datacatalog.v1.CreateTaxonomyRequest result = - new com.google.cloud.datacatalog.v1.CreateTaxonomyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.CreateTaxonomyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.taxonomy_ = taxonomyBuilder_ == null ? taxonomy_ : taxonomyBuilder_.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.datacatalog.v1.CreateTaxonomyRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.CreateTaxonomyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CreateTaxonomyRequest other) { - if (other == com.google.cloud.datacatalog.v1.CreateTaxonomyRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasTaxonomy()) { - mergeTaxonomy(other.getTaxonomy()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage( - internalGetTaxonomyFieldBuilder().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 parent_ = ""; - - /** - * - * - *
-     * Required. Resource name of the project that the taxonomy will belong to.
-     * 
- * - * - * 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. Resource name of the project that the taxonomy will belong to.
-     * 
- * - * - * 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. Resource name of the project that the taxonomy will belong to.
-     * 
- * - * - * 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. Resource name of the project that the taxonomy will belong to.
-     * 
- * - * - * 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. Resource name of the project that the taxonomy will belong to.
-     * 
- * - * - * 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 com.google.cloud.datacatalog.v1.Taxonomy taxonomy_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - taxonomyBuilder_; - - /** - * - * - *
-     * The taxonomy to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - * - * @return Whether the taxonomy field is set. - */ - public boolean hasTaxonomy() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * The taxonomy to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - * - * @return The taxonomy. - */ - public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomy() { - if (taxonomyBuilder_ == null) { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance() - : taxonomy_; - } else { - return taxonomyBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The taxonomy to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - */ - public Builder setTaxonomy(com.google.cloud.datacatalog.v1.Taxonomy value) { - if (taxonomyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taxonomy_ = value; - } else { - taxonomyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - */ - public Builder setTaxonomy(com.google.cloud.datacatalog.v1.Taxonomy.Builder builderForValue) { - if (taxonomyBuilder_ == null) { - taxonomy_ = builderForValue.build(); - } else { - taxonomyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - */ - public Builder mergeTaxonomy(com.google.cloud.datacatalog.v1.Taxonomy value) { - if (taxonomyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && taxonomy_ != null - && taxonomy_ != com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance()) { - getTaxonomyBuilder().mergeFrom(value); - } else { - taxonomy_ = value; - } - } else { - taxonomyBuilder_.mergeFrom(value); - } - if (taxonomy_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The taxonomy to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - */ - public Builder clearTaxonomy() { - bitField0_ = (bitField0_ & ~0x00000002); - taxonomy_ = null; - if (taxonomyBuilder_ != null) { - taxonomyBuilder_.dispose(); - taxonomyBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - */ - public com.google.cloud.datacatalog.v1.Taxonomy.Builder getTaxonomyBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetTaxonomyFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The taxonomy to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - */ - public com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomyOrBuilder() { - if (taxonomyBuilder_ != null) { - return taxonomyBuilder_.getMessageOrBuilder(); - } else { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - } - - /** - * - * - *
-     * The taxonomy to create.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - internalGetTaxonomyFieldBuilder() { - if (taxonomyBuilder_ == null) { - taxonomyBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder>( - getTaxonomy(), getParentForChildren(), isClean()); - taxonomy_ = null; - } - return taxonomyBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CreateTaxonomyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CreateTaxonomyRequest) - private static final com.google.cloud.datacatalog.v1.CreateTaxonomyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CreateTaxonomyRequest(); - } - - public static com.google.cloud.datacatalog.v1.CreateTaxonomyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTaxonomyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CreateTaxonomyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequestOrBuilder.java deleted file mode 100644 index 8f7858d6e9c8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CreateTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CreateTaxonomyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CreateTaxonomyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the project that the taxonomy will belong to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of the project that the taxonomy will belong to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The taxonomy to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - * - * @return Whether the taxonomy field is set. - */ - boolean hasTaxonomy(); - - /** - * - * - *
-   * The taxonomy to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - * - * @return The taxonomy. - */ - com.google.cloud.datacatalog.v1.Taxonomy getTaxonomy(); - - /** - * - * - *
-   * The taxonomy to create.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 2; - */ - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomyOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSource.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSource.java deleted file mode 100644 index 103b937cbb29..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSource.java +++ /dev/null @@ -1,612 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Cross-regional source used to import an existing taxonomy into a different
- * region.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CrossRegionalSource} - */ -@com.google.protobuf.Generated -public final class CrossRegionalSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.CrossRegionalSource) - CrossRegionalSourceOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CrossRegionalSource"); - } - - // Use CrossRegionalSource.newBuilder() to construct. - private CrossRegionalSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CrossRegionalSource() { - taxonomy_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CrossRegionalSource.class, - com.google.cloud.datacatalog.v1.CrossRegionalSource.Builder.class); - } - - public static final int TAXONOMY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object taxonomy_ = ""; - - /** - * - * - *
-   * Required. The resource name of the source taxonomy to import.
-   * 
- * - * - * string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The taxonomy. - */ - @java.lang.Override - public java.lang.String getTaxonomy() { - java.lang.Object ref = taxonomy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taxonomy_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The resource name of the source taxonomy to import.
-   * 
- * - * - * string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for taxonomy. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTaxonomyBytes() { - java.lang.Object ref = taxonomy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - taxonomy_ = 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(taxonomy_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, taxonomy_); - } - 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(taxonomy_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, taxonomy_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.CrossRegionalSource)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.CrossRegionalSource other = - (com.google.cloud.datacatalog.v1.CrossRegionalSource) obj; - - if (!getTaxonomy().equals(other.getTaxonomy())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TAXONOMY_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomy().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.CrossRegionalSource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Cross-regional source used to import an existing taxonomy into a different
-   * region.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.CrossRegionalSource} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.CrossRegionalSource) - com.google.cloud.datacatalog.v1.CrossRegionalSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.CrossRegionalSource.class, - com.google.cloud.datacatalog.v1.CrossRegionalSource.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.CrossRegionalSource.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - taxonomy_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CrossRegionalSource getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.CrossRegionalSource.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CrossRegionalSource build() { - com.google.cloud.datacatalog.v1.CrossRegionalSource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CrossRegionalSource buildPartial() { - com.google.cloud.datacatalog.v1.CrossRegionalSource result = - new com.google.cloud.datacatalog.v1.CrossRegionalSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.CrossRegionalSource result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.taxonomy_ = taxonomy_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.CrossRegionalSource) { - return mergeFrom((com.google.cloud.datacatalog.v1.CrossRegionalSource) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.CrossRegionalSource other) { - if (other == com.google.cloud.datacatalog.v1.CrossRegionalSource.getDefaultInstance()) - return this; - if (!other.getTaxonomy().isEmpty()) { - taxonomy_ = other.taxonomy_; - 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: - { - taxonomy_ = 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 taxonomy_ = ""; - - /** - * - * - *
-     * Required. The resource name of the source taxonomy to import.
-     * 
- * - * - * string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The taxonomy. - */ - public java.lang.String getTaxonomy() { - java.lang.Object ref = taxonomy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taxonomy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The resource name of the source taxonomy to import.
-     * 
- * - * - * string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for taxonomy. - */ - public com.google.protobuf.ByteString getTaxonomyBytes() { - java.lang.Object ref = taxonomy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - taxonomy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The resource name of the source taxonomy to import.
-     * 
- * - * - * string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The taxonomy to set. - * @return This builder for chaining. - */ - public Builder setTaxonomy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - taxonomy_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The resource name of the source taxonomy to import.
-     * 
- * - * - * string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearTaxonomy() { - taxonomy_ = getDefaultInstance().getTaxonomy(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The resource name of the source taxonomy to import.
-     * 
- * - * - * string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for taxonomy to set. - * @return This builder for chaining. - */ - public Builder setTaxonomyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - taxonomy_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.CrossRegionalSource) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.CrossRegionalSource) - private static final com.google.cloud.datacatalog.v1.CrossRegionalSource DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.CrossRegionalSource(); - } - - public static com.google.cloud.datacatalog.v1.CrossRegionalSource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CrossRegionalSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.CrossRegionalSource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSourceOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSourceOrBuilder.java deleted file mode 100644 index a9cc741db9e6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/CrossRegionalSourceOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface CrossRegionalSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.CrossRegionalSource) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource name of the source taxonomy to import.
-   * 
- * - * - * string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The taxonomy. - */ - java.lang.String getTaxonomy(); - - /** - * - * - *
-   * Required. The resource name of the source taxonomy to import.
-   * 
- * - * - * string taxonomy = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for taxonomy. - */ - com.google.protobuf.ByteString getTaxonomyBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSource.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSource.java deleted file mode 100644 index aa517c14b6df..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSource.java +++ /dev/null @@ -1,1520 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/data_source.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Physical location of an entry.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataSource} - */ -@com.google.protobuf.Generated -public final class DataSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataSource) - DataSourceOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataSource"); - } - - // Use DataSource.newBuilder() to construct. - private DataSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DataSource() { - service_ = 0; - resource_ = ""; - sourceEntry_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataSourceProto - .internal_static_google_cloud_datacatalog_v1_DataSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataSourceProto - .internal_static_google_cloud_datacatalog_v1_DataSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataSource.class, - com.google.cloud.datacatalog.v1.DataSource.Builder.class); - } - - /** - * - * - *
-   * Name of a service that stores the data.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.DataSource.Service} - */ - public enum Service implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default unknown service.
-     * 
- * - * SERVICE_UNSPECIFIED = 0; - */ - SERVICE_UNSPECIFIED(0), - /** - * - * - *
-     * Google Cloud Storage service.
-     * 
- * - * CLOUD_STORAGE = 1; - */ - CLOUD_STORAGE(1), - /** - * - * - *
-     * BigQuery service.
-     * 
- * - * BIGQUERY = 2; - */ - BIGQUERY(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Service"); - } - - /** - * - * - *
-     * Default unknown service.
-     * 
- * - * SERVICE_UNSPECIFIED = 0; - */ - public static final int SERVICE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * Google Cloud Storage service.
-     * 
- * - * CLOUD_STORAGE = 1; - */ - public static final int CLOUD_STORAGE_VALUE = 1; - - /** - * - * - *
-     * BigQuery service.
-     * 
- * - * BIGQUERY = 2; - */ - public static final int BIGQUERY_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 Service 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 Service forNumber(int value) { - switch (value) { - case 0: - return SERVICE_UNSPECIFIED; - case 1: - return CLOUD_STORAGE; - case 2: - return BIGQUERY; - 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 Service findValueByNumber(int number) { - return Service.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.datacatalog.v1.DataSource.getDescriptor().getEnumTypes().get(0); - } - - private static final Service[] VALUES = values(); - - public static Service 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 Service(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.DataSource.Service) - } - - private int propertiesCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object properties_; - - public enum PropertiesCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - STORAGE_PROPERTIES(4), - PROPERTIES_NOT_SET(0); - private final int value; - - private PropertiesCase(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 PropertiesCase valueOf(int value) { - return forNumber(value); - } - - public static PropertiesCase forNumber(int value) { - switch (value) { - case 4: - return STORAGE_PROPERTIES; - case 0: - return PROPERTIES_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public PropertiesCase getPropertiesCase() { - return PropertiesCase.forNumber(propertiesCase_); - } - - public static final int SERVICE_FIELD_NUMBER = 1; - private int service_ = 0; - - /** - * - * - *
-   * Service that physically stores the data.
-   * 
- * - * .google.cloud.datacatalog.v1.DataSource.Service service = 1; - * - * @return The enum numeric value on the wire for service. - */ - @java.lang.Override - public int getServiceValue() { - return service_; - } - - /** - * - * - *
-   * Service that physically stores the data.
-   * 
- * - * .google.cloud.datacatalog.v1.DataSource.Service service = 1; - * - * @return The service. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSource.Service getService() { - com.google.cloud.datacatalog.v1.DataSource.Service result = - com.google.cloud.datacatalog.v1.DataSource.Service.forNumber(service_); - return result == null - ? com.google.cloud.datacatalog.v1.DataSource.Service.UNRECOGNIZED - : result; - } - - public static final int RESOURCE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object resource_ = ""; - - /** - * - * - *
-   * Full name of a resource as defined by the service. For example:
-   *
-   * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   * 
- * - * string resource = 2; - * - * @return The resource. - */ - @java.lang.Override - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } - } - - /** - * - * - *
-   * Full name of a resource as defined by the service. For example:
-   *
-   * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   * 
- * - * string resource = 2; - * - * @return The bytes for resource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SOURCE_ENTRY_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object sourceEntry_ = ""; - - /** - * - * - *
-   * Output only. Data Catalog entry name, if applicable.
-   * 
- * - * string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sourceEntry. - */ - @java.lang.Override - public java.lang.String getSourceEntry() { - java.lang.Object ref = sourceEntry_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourceEntry_ = s; - return s; - } - } - - /** - * - * - *
-   * Output only. Data Catalog entry name, if applicable.
-   * 
- * - * string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for sourceEntry. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSourceEntryBytes() { - java.lang.Object ref = sourceEntry_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - sourceEntry_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STORAGE_PROPERTIES_FIELD_NUMBER = 4; - - /** - * - * - *
-   * Detailed properties of the underlying storage.
-   * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - * - * @return Whether the storageProperties field is set. - */ - @java.lang.Override - public boolean hasStorageProperties() { - return propertiesCase_ == 4; - } - - /** - * - * - *
-   * Detailed properties of the underlying storage.
-   * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - * - * @return The storageProperties. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.StorageProperties getStorageProperties() { - if (propertiesCase_ == 4) { - return (com.google.cloud.datacatalog.v1.StorageProperties) properties_; - } - return com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance(); - } - - /** - * - * - *
-   * Detailed properties of the underlying storage.
-   * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.StoragePropertiesOrBuilder - getStoragePropertiesOrBuilder() { - if (propertiesCase_ == 4) { - return (com.google.cloud.datacatalog.v1.StorageProperties) properties_; - } - return com.google.cloud.datacatalog.v1.StorageProperties.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 (service_ - != com.google.cloud.datacatalog.v1.DataSource.Service.SERVICE_UNSPECIFIED.getNumber()) { - output.writeEnum(1, service_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, resource_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceEntry_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, sourceEntry_); - } - if (propertiesCase_ == 4) { - output.writeMessage(4, (com.google.cloud.datacatalog.v1.StorageProperties) properties_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (service_ - != com.google.cloud.datacatalog.v1.DataSource.Service.SERVICE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, service_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(resource_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, resource_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sourceEntry_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, sourceEntry_); - } - if (propertiesCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.datacatalog.v1.StorageProperties) 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.datacatalog.v1.DataSource)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DataSource other = - (com.google.cloud.datacatalog.v1.DataSource) obj; - - if (service_ != other.service_) return false; - if (!getResource().equals(other.getResource())) return false; - if (!getSourceEntry().equals(other.getSourceEntry())) return false; - if (!getPropertiesCase().equals(other.getPropertiesCase())) return false; - switch (propertiesCase_) { - case 4: - if (!getStorageProperties().equals(other.getStorageProperties())) 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) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + service_; - hash = (37 * hash) + RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getResource().hashCode(); - hash = (37 * hash) + SOURCE_ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getSourceEntry().hashCode(); - switch (propertiesCase_) { - case 4: - hash = (37 * hash) + STORAGE_PROPERTIES_FIELD_NUMBER; - hash = (53 * hash) + getStorageProperties().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.DataSource parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataSource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.DataSource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Physical location of an entry.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataSource} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DataSource) - com.google.cloud.datacatalog.v1.DataSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataSourceProto - .internal_static_google_cloud_datacatalog_v1_DataSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataSourceProto - .internal_static_google_cloud_datacatalog_v1_DataSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataSource.class, - com.google.cloud.datacatalog.v1.DataSource.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DataSource.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - service_ = 0; - resource_ = ""; - sourceEntry_ = ""; - if (storagePropertiesBuilder_ != null) { - storagePropertiesBuilder_.clear(); - } - propertiesCase_ = 0; - properties_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.DataSourceProto - .internal_static_google_cloud_datacatalog_v1_DataSource_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSource getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSource build() { - com.google.cloud.datacatalog.v1.DataSource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSource buildPartial() { - com.google.cloud.datacatalog.v1.DataSource result = - new com.google.cloud.datacatalog.v1.DataSource(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DataSource result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.service_ = service_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.resource_ = resource_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.sourceEntry_ = sourceEntry_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.DataSource result) { - result.propertiesCase_ = propertiesCase_; - result.properties_ = this.properties_; - if (propertiesCase_ == 4 && storagePropertiesBuilder_ != null) { - result.properties_ = storagePropertiesBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.DataSource) { - return mergeFrom((com.google.cloud.datacatalog.v1.DataSource) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DataSource other) { - if (other == com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance()) return this; - if (other.service_ != 0) { - setServiceValue(other.getServiceValue()); - } - if (!other.getResource().isEmpty()) { - resource_ = other.resource_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getSourceEntry().isEmpty()) { - sourceEntry_ = other.sourceEntry_; - bitField0_ |= 0x00000004; - onChanged(); - } - switch (other.getPropertiesCase()) { - case STORAGE_PROPERTIES: - { - mergeStorageProperties(other.getStorageProperties()); - break; - } - case PROPERTIES_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: - { - service_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - resource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - sourceEntry_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetStoragePropertiesFieldBuilder().getBuilder(), extensionRegistry); - propertiesCase_ = 4; - 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 propertiesCase_ = 0; - private java.lang.Object properties_; - - public PropertiesCase getPropertiesCase() { - return PropertiesCase.forNumber(propertiesCase_); - } - - public Builder clearProperties() { - propertiesCase_ = 0; - properties_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int service_ = 0; - - /** - * - * - *
-     * Service that physically stores the data.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSource.Service service = 1; - * - * @return The enum numeric value on the wire for service. - */ - @java.lang.Override - public int getServiceValue() { - return service_; - } - - /** - * - * - *
-     * Service that physically stores the data.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSource.Service service = 1; - * - * @param value The enum numeric value on the wire for service to set. - * @return This builder for chaining. - */ - public Builder setServiceValue(int value) { - service_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Service that physically stores the data.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSource.Service service = 1; - * - * @return The service. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSource.Service getService() { - com.google.cloud.datacatalog.v1.DataSource.Service result = - com.google.cloud.datacatalog.v1.DataSource.Service.forNumber(service_); - return result == null - ? com.google.cloud.datacatalog.v1.DataSource.Service.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Service that physically stores the data.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSource.Service service = 1; - * - * @param value The service to set. - * @return This builder for chaining. - */ - public Builder setService(com.google.cloud.datacatalog.v1.DataSource.Service value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - service_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Service that physically stores the data.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSource.Service service = 1; - * - * @return This builder for chaining. - */ - public Builder clearService() { - bitField0_ = (bitField0_ & ~0x00000001); - service_ = 0; - onChanged(); - return this; - } - - private java.lang.Object resource_ = ""; - - /** - * - * - *
-     * Full name of a resource as defined by the service. For example:
-     *
-     * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * 
- * - * string resource = 2; - * - * @return The resource. - */ - public java.lang.String getResource() { - java.lang.Object ref = resource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - resource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Full name of a resource as defined by the service. For example:
-     *
-     * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * 
- * - * string resource = 2; - * - * @return The bytes for resource. - */ - public com.google.protobuf.ByteString getResourceBytes() { - java.lang.Object ref = resource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - resource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Full name of a resource as defined by the service. For example:
-     *
-     * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * 
- * - * string resource = 2; - * - * @param value The resource to set. - * @return This builder for chaining. - */ - public Builder setResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - resource_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Full name of a resource as defined by the service. For example:
-     *
-     * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * 
- * - * string resource = 2; - * - * @return This builder for chaining. - */ - public Builder clearResource() { - resource_ = getDefaultInstance().getResource(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Full name of a resource as defined by the service. For example:
-     *
-     * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * 
- * - * string resource = 2; - * - * @param value The bytes for resource to set. - * @return This builder for chaining. - */ - public Builder setResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - resource_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object sourceEntry_ = ""; - - /** - * - * - *
-     * Output only. Data Catalog entry name, if applicable.
-     * 
- * - * string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sourceEntry. - */ - public java.lang.String getSourceEntry() { - java.lang.Object ref = sourceEntry_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sourceEntry_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Output only. Data Catalog entry name, if applicable.
-     * 
- * - * string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for sourceEntry. - */ - public com.google.protobuf.ByteString getSourceEntryBytes() { - java.lang.Object ref = sourceEntry_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - sourceEntry_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Output only. Data Catalog entry name, if applicable.
-     * 
- * - * string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The sourceEntry to set. - * @return This builder for chaining. - */ - public Builder setSourceEntry(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - sourceEntry_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Data Catalog entry name, if applicable.
-     * 
- * - * string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSourceEntry() { - sourceEntry_ = getDefaultInstance().getSourceEntry(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Data Catalog entry name, if applicable.
-     * 
- * - * string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for sourceEntry to set. - * @return This builder for chaining. - */ - public Builder setSourceEntryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - sourceEntry_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.StorageProperties, - com.google.cloud.datacatalog.v1.StorageProperties.Builder, - com.google.cloud.datacatalog.v1.StoragePropertiesOrBuilder> - storagePropertiesBuilder_; - - /** - * - * - *
-     * Detailed properties of the underlying storage.
-     * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - * - * @return Whether the storageProperties field is set. - */ - @java.lang.Override - public boolean hasStorageProperties() { - return propertiesCase_ == 4; - } - - /** - * - * - *
-     * Detailed properties of the underlying storage.
-     * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - * - * @return The storageProperties. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.StorageProperties getStorageProperties() { - if (storagePropertiesBuilder_ == null) { - if (propertiesCase_ == 4) { - return (com.google.cloud.datacatalog.v1.StorageProperties) properties_; - } - return com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance(); - } else { - if (propertiesCase_ == 4) { - return storagePropertiesBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Detailed properties of the underlying storage.
-     * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - */ - public Builder setStorageProperties(com.google.cloud.datacatalog.v1.StorageProperties value) { - if (storagePropertiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - properties_ = value; - onChanged(); - } else { - storagePropertiesBuilder_.setMessage(value); - } - propertiesCase_ = 4; - return this; - } - - /** - * - * - *
-     * Detailed properties of the underlying storage.
-     * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - */ - public Builder setStorageProperties( - com.google.cloud.datacatalog.v1.StorageProperties.Builder builderForValue) { - if (storagePropertiesBuilder_ == null) { - properties_ = builderForValue.build(); - onChanged(); - } else { - storagePropertiesBuilder_.setMessage(builderForValue.build()); - } - propertiesCase_ = 4; - return this; - } - - /** - * - * - *
-     * Detailed properties of the underlying storage.
-     * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - */ - public Builder mergeStorageProperties(com.google.cloud.datacatalog.v1.StorageProperties value) { - if (storagePropertiesBuilder_ == null) { - if (propertiesCase_ == 4 - && properties_ - != com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance()) { - properties_ = - com.google.cloud.datacatalog.v1.StorageProperties.newBuilder( - (com.google.cloud.datacatalog.v1.StorageProperties) properties_) - .mergeFrom(value) - .buildPartial(); - } else { - properties_ = value; - } - onChanged(); - } else { - if (propertiesCase_ == 4) { - storagePropertiesBuilder_.mergeFrom(value); - } else { - storagePropertiesBuilder_.setMessage(value); - } - } - propertiesCase_ = 4; - return this; - } - - /** - * - * - *
-     * Detailed properties of the underlying storage.
-     * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - */ - public Builder clearStorageProperties() { - if (storagePropertiesBuilder_ == null) { - if (propertiesCase_ == 4) { - propertiesCase_ = 0; - properties_ = null; - onChanged(); - } - } else { - if (propertiesCase_ == 4) { - propertiesCase_ = 0; - properties_ = null; - } - storagePropertiesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Detailed properties of the underlying storage.
-     * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - */ - public com.google.cloud.datacatalog.v1.StorageProperties.Builder getStoragePropertiesBuilder() { - return internalGetStoragePropertiesFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Detailed properties of the underlying storage.
-     * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.StoragePropertiesOrBuilder - getStoragePropertiesOrBuilder() { - if ((propertiesCase_ == 4) && (storagePropertiesBuilder_ != null)) { - return storagePropertiesBuilder_.getMessageOrBuilder(); - } else { - if (propertiesCase_ == 4) { - return (com.google.cloud.datacatalog.v1.StorageProperties) properties_; - } - return com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Detailed properties of the underlying storage.
-     * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.StorageProperties, - com.google.cloud.datacatalog.v1.StorageProperties.Builder, - com.google.cloud.datacatalog.v1.StoragePropertiesOrBuilder> - internalGetStoragePropertiesFieldBuilder() { - if (storagePropertiesBuilder_ == null) { - if (!(propertiesCase_ == 4)) { - properties_ = com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance(); - } - storagePropertiesBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.StorageProperties, - com.google.cloud.datacatalog.v1.StorageProperties.Builder, - com.google.cloud.datacatalog.v1.StoragePropertiesOrBuilder>( - (com.google.cloud.datacatalog.v1.StorageProperties) properties_, - getParentForChildren(), - isClean()); - properties_ = null; - } - propertiesCase_ = 4; - onChanged(); - return storagePropertiesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DataSource) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DataSource) - private static final com.google.cloud.datacatalog.v1.DataSource DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DataSource(); - } - - public static com.google.cloud.datacatalog.v1.DataSource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpec.java deleted file mode 100644 index 2ced616dfa49..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpec.java +++ /dev/null @@ -1,726 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to a data source connection. Valid only for
- * entries with the `DATA_SOURCE_CONNECTION` type.
- * Only one of internal specs can be set at the time, and cannot
- * be changed later.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataSourceConnectionSpec} - */ -@com.google.protobuf.Generated -public final class DataSourceConnectionSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataSourceConnectionSpec) - DataSourceConnectionSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataSourceConnectionSpec"); - } - - // Use DataSourceConnectionSpec.newBuilder() to construct. - private DataSourceConnectionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DataSourceConnectionSpec() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.class, - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder.class); - } - - private int bitField0_; - public static final int BIGQUERY_CONNECTION_SPEC_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1.BigQueryConnectionSpec bigqueryConnectionSpec_; - - /** - * - * - *
-   * Output only. Fields specific to BigQuery connections.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - * @return Whether the bigqueryConnectionSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryConnectionSpec() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Output only. Fields specific to BigQuery connections.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - * @return The bigqueryConnectionSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpec getBigqueryConnectionSpec() { - return bigqueryConnectionSpec_ == null - ? com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.getDefaultInstance() - : bigqueryConnectionSpec_; - } - - /** - * - * - *
-   * Output only. Fields specific to BigQuery connections.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpecOrBuilder - getBigqueryConnectionSpecOrBuilder() { - return bigqueryConnectionSpec_ == null - ? com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.getDefaultInstance() - : bigqueryConnectionSpec_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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, getBigqueryConnectionSpec()); - } - 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, getBigqueryConnectionSpec()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.DataSourceConnectionSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec other = - (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) obj; - - if (hasBigqueryConnectionSpec() != other.hasBigqueryConnectionSpec()) return false; - if (hasBigqueryConnectionSpec()) { - if (!getBigqueryConnectionSpec().equals(other.getBigqueryConnectionSpec())) return false; - } - if (!getUnknownFields().equals(other.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 (hasBigqueryConnectionSpec()) { - hash = (37 * hash) + BIGQUERY_CONNECTION_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryConnectionSpec().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to a data source connection. Valid only for
-   * entries with the `DATA_SOURCE_CONNECTION` type.
-   * Only one of internal specs can be set at the time, and cannot
-   * be changed later.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataSourceConnectionSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DataSourceConnectionSpec) - com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.class, - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetBigqueryConnectionSpecFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - bigqueryConnectionSpec_ = null; - if (bigqueryConnectionSpecBuilder_ != null) { - bigqueryConnectionSpecBuilder_.dispose(); - bigqueryConnectionSpecBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSourceConnectionSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSourceConnectionSpec build() { - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSourceConnectionSpec buildPartial() { - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec result = - new com.google.cloud.datacatalog.v1.DataSourceConnectionSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DataSourceConnectionSpec result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.bigqueryConnectionSpec_ = - bigqueryConnectionSpecBuilder_ == null - ? bigqueryConnectionSpec_ - : bigqueryConnectionSpecBuilder_.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.datacatalog.v1.DataSourceConnectionSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DataSourceConnectionSpec other) { - if (other == com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance()) - return this; - if (other.hasBigqueryConnectionSpec()) { - mergeBigqueryConnectionSpec(other.getBigqueryConnectionSpec()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetBigqueryConnectionSpecFieldBuilder().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.datacatalog.v1.BigQueryConnectionSpec bigqueryConnectionSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec, - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryConnectionSpecOrBuilder> - bigqueryConnectionSpecBuilder_; - - /** - * - * - *
-     * Output only. Fields specific to BigQuery connections.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - * - * @return Whether the bigqueryConnectionSpec field is set. - */ - public boolean hasBigqueryConnectionSpec() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Output only. Fields specific to BigQuery connections.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - * - * @return The bigqueryConnectionSpec. - */ - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpec getBigqueryConnectionSpec() { - if (bigqueryConnectionSpecBuilder_ == null) { - return bigqueryConnectionSpec_ == null - ? com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.getDefaultInstance() - : bigqueryConnectionSpec_; - } else { - return bigqueryConnectionSpecBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Fields specific to BigQuery connections.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - */ - public Builder setBigqueryConnectionSpec( - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec value) { - if (bigqueryConnectionSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - bigqueryConnectionSpec_ = value; - } else { - bigqueryConnectionSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Fields specific to BigQuery connections.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - */ - public Builder setBigqueryConnectionSpec( - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.Builder builderForValue) { - if (bigqueryConnectionSpecBuilder_ == null) { - bigqueryConnectionSpec_ = builderForValue.build(); - } else { - bigqueryConnectionSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Fields specific to BigQuery connections.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - */ - public Builder mergeBigqueryConnectionSpec( - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec value) { - if (bigqueryConnectionSpecBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && bigqueryConnectionSpec_ != null - && bigqueryConnectionSpec_ - != com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.getDefaultInstance()) { - getBigqueryConnectionSpecBuilder().mergeFrom(value); - } else { - bigqueryConnectionSpec_ = value; - } - } else { - bigqueryConnectionSpecBuilder_.mergeFrom(value); - } - if (bigqueryConnectionSpec_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Fields specific to BigQuery connections.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - */ - public Builder clearBigqueryConnectionSpec() { - bitField0_ = (bitField0_ & ~0x00000001); - bigqueryConnectionSpec_ = null; - if (bigqueryConnectionSpecBuilder_ != null) { - bigqueryConnectionSpecBuilder_.dispose(); - bigqueryConnectionSpecBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Fields specific to BigQuery connections.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - */ - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.Builder - getBigqueryConnectionSpecBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetBigqueryConnectionSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Fields specific to BigQuery connections.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - */ - public com.google.cloud.datacatalog.v1.BigQueryConnectionSpecOrBuilder - getBigqueryConnectionSpecOrBuilder() { - if (bigqueryConnectionSpecBuilder_ != null) { - return bigqueryConnectionSpecBuilder_.getMessageOrBuilder(); - } else { - return bigqueryConnectionSpec_ == null - ? com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.getDefaultInstance() - : bigqueryConnectionSpec_; - } - } - - /** - * - * - *
-     * Output only. Fields specific to BigQuery connections.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec, - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryConnectionSpecOrBuilder> - internalGetBigqueryConnectionSpecFieldBuilder() { - if (bigqueryConnectionSpecBuilder_ == null) { - bigqueryConnectionSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec, - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryConnectionSpecOrBuilder>( - getBigqueryConnectionSpec(), getParentForChildren(), isClean()); - bigqueryConnectionSpec_ = null; - } - return bigqueryConnectionSpecBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DataSourceConnectionSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DataSourceConnectionSpec) - private static final com.google.cloud.datacatalog.v1.DataSourceConnectionSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DataSourceConnectionSpec(); - } - - public static com.google.cloud.datacatalog.v1.DataSourceConnectionSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataSourceConnectionSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSourceConnectionSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpecOrBuilder.java deleted file mode 100644 index cffcb4695c67..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceConnectionSpecOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DataSourceConnectionSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DataSourceConnectionSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Fields specific to BigQuery connections.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - * @return Whether the bigqueryConnectionSpec field is set. - */ - boolean hasBigqueryConnectionSpec(); - - /** - * - * - *
-   * Output only. Fields specific to BigQuery connections.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - * - * @return The bigqueryConnectionSpec. - */ - com.google.cloud.datacatalog.v1.BigQueryConnectionSpec getBigqueryConnectionSpec(); - - /** - * - * - *
-   * Output only. Fields specific to BigQuery connections.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryConnectionSpec bigquery_connection_spec = 1; - */ - com.google.cloud.datacatalog.v1.BigQueryConnectionSpecOrBuilder - getBigqueryConnectionSpecOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceOrBuilder.java deleted file mode 100644 index f05092e5d16a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceOrBuilder.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/data_source.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DataSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DataSource) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Service that physically stores the data.
-   * 
- * - * .google.cloud.datacatalog.v1.DataSource.Service service = 1; - * - * @return The enum numeric value on the wire for service. - */ - int getServiceValue(); - - /** - * - * - *
-   * Service that physically stores the data.
-   * 
- * - * .google.cloud.datacatalog.v1.DataSource.Service service = 1; - * - * @return The service. - */ - com.google.cloud.datacatalog.v1.DataSource.Service getService(); - - /** - * - * - *
-   * Full name of a resource as defined by the service. For example:
-   *
-   * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   * 
- * - * string resource = 2; - * - * @return The resource. - */ - java.lang.String getResource(); - - /** - * - * - *
-   * Full name of a resource as defined by the service. For example:
-   *
-   * `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   * 
- * - * string resource = 2; - * - * @return The bytes for resource. - */ - com.google.protobuf.ByteString getResourceBytes(); - - /** - * - * - *
-   * Output only. Data Catalog entry name, if applicable.
-   * 
- * - * string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sourceEntry. - */ - java.lang.String getSourceEntry(); - - /** - * - * - *
-   * Output only. Data Catalog entry name, if applicable.
-   * 
- * - * string source_entry = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for sourceEntry. - */ - com.google.protobuf.ByteString getSourceEntryBytes(); - - /** - * - * - *
-   * Detailed properties of the underlying storage.
-   * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - * - * @return Whether the storageProperties field is set. - */ - boolean hasStorageProperties(); - - /** - * - * - *
-   * Detailed properties of the underlying storage.
-   * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - * - * @return The storageProperties. - */ - com.google.cloud.datacatalog.v1.StorageProperties getStorageProperties(); - - /** - * - * - *
-   * Detailed properties of the underlying storage.
-   * 
- * - * .google.cloud.datacatalog.v1.StorageProperties storage_properties = 4; - */ - com.google.cloud.datacatalog.v1.StoragePropertiesOrBuilder getStoragePropertiesOrBuilder(); - - com.google.cloud.datacatalog.v1.DataSource.PropertiesCase getPropertiesCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java deleted file mode 100644 index 4f58fe87eb10..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataSourceProto.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/data_source.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class DataSourceProto extends com.google.protobuf.GeneratedFile { - private DataSourceProto() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataSourceProto"); - } - - 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_datacatalog_v1_DataSource_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DataSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_StorageProperties_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_StorageProperties_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/datacatalog/v1/data_sourc" - + "e.proto\022\033google.cloud.datacatalog.v1\032\037go" - + "ogle/api/field_behavior.proto\"\234\002\n\nDataSo" - + "urce\022@\n\007service\030\001 \001(\0162/.google.cloud.dat" - + "acatalog.v1.DataSource.Service\022\020\n\010resour" - + "ce\030\002 \001(\t\022\031\n\014source_entry\030\003 \001(\tB\003\340A\003\022L\n\022s" - + "torage_properties\030\004 \001(\0132..google.cloud.d" - + "atacatalog.v1.StoragePropertiesH\000\"C\n\007Ser" - + "vice\022\027\n\023SERVICE_UNSPECIFIED\020\000\022\021\n\rCLOUD_S" - + "TORAGE\020\001\022\014\n\010BIGQUERY\020\002B\014\n\nproperties\"<\n\021" - + "StorageProperties\022\024\n\014file_pattern\030\001 \003(\t\022" - + "\021\n\tfile_type\030\002 \001(\tB\324\001\n\037com.google.cloud." - + "datacatalog.v1B\017DataSourceProtoP\001ZAcloud" - + ".google.com/go/datacatalog/apiv1/datacat" - + "alogpb;datacatalogpb\252\002\033Google.Cloud.Data" - + "Catalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1" - + "\352\002\036Google::Cloud::DataCatalog::V1b\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_DataSource_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_DataSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DataSource_descriptor, - new java.lang.String[] { - "Service", "Resource", "SourceEntry", "StorageProperties", "Properties", - }); - internal_static_google_cloud_datacatalog_v1_StorageProperties_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_StorageProperties_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_StorageProperties_descriptor, - new java.lang.String[] { - "FilePattern", "FileType", - }); - 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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpec.java deleted file mode 100644 index dc2291691ea8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpec.java +++ /dev/null @@ -1,2825 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to a table resource. Valid only
- * for entries with the `TABLE` type.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DatabaseTableSpec} - */ -@com.google.protobuf.Generated -public final class DatabaseTableSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DatabaseTableSpec) - DatabaseTableSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DatabaseTableSpec"); - } - - // Use DatabaseTableSpec.newBuilder() to construct. - private DatabaseTableSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DatabaseTableSpec() { - type_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.class, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder.class); - } - - /** - * - * - *
-   * Type of the table.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.DatabaseTableSpec.TableType} - */ - public enum TableType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default unknown table type.
-     * 
- * - * TABLE_TYPE_UNSPECIFIED = 0; - */ - TABLE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Native table.
-     * 
- * - * NATIVE = 1; - */ - NATIVE(1), - /** - * - * - *
-     * External table.
-     * 
- * - * EXTERNAL = 2; - */ - EXTERNAL(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TableType"); - } - - /** - * - * - *
-     * Default unknown table type.
-     * 
- * - * TABLE_TYPE_UNSPECIFIED = 0; - */ - public static final int TABLE_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * Native table.
-     * 
- * - * NATIVE = 1; - */ - public static final int NATIVE_VALUE = 1; - - /** - * - * - *
-     * External table.
-     * 
- * - * EXTERNAL = 2; - */ - public static final int EXTERNAL_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 TableType 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 TableType forNumber(int value) { - switch (value) { - case 0: - return TABLE_TYPE_UNSPECIFIED; - case 1: - return NATIVE; - case 2: - return EXTERNAL; - 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 TableType findValueByNumber(int number) { - return TableType.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.datacatalog.v1.DatabaseTableSpec.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final TableType[] VALUES = values(); - - public static TableType 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 TableType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.DatabaseTableSpec.TableType) - } - - public interface DatabaseViewSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Type of this view.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; - * - * - * @return The enum numeric value on the wire for viewType. - */ - int getViewTypeValue(); - - /** - * - * - *
-     * Type of this view.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; - * - * - * @return The viewType. - */ - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType getViewType(); - - /** - * - * - *
-     * Name of a singular table this view reflects one to one.
-     * 
- * - * string base_table = 2; - * - * @return Whether the baseTable field is set. - */ - boolean hasBaseTable(); - - /** - * - * - *
-     * Name of a singular table this view reflects one to one.
-     * 
- * - * string base_table = 2; - * - * @return The baseTable. - */ - java.lang.String getBaseTable(); - - /** - * - * - *
-     * Name of a singular table this view reflects one to one.
-     * 
- * - * string base_table = 2; - * - * @return The bytes for baseTable. - */ - com.google.protobuf.ByteString getBaseTableBytes(); - - /** - * - * - *
-     * SQL query used to generate this view.
-     * 
- * - * string sql_query = 3; - * - * @return Whether the sqlQuery field is set. - */ - boolean hasSqlQuery(); - - /** - * - * - *
-     * SQL query used to generate this view.
-     * 
- * - * string sql_query = 3; - * - * @return The sqlQuery. - */ - java.lang.String getSqlQuery(); - - /** - * - * - *
-     * SQL query used to generate this view.
-     * 
- * - * string sql_query = 3; - * - * @return The bytes for sqlQuery. - */ - com.google.protobuf.ByteString getSqlQueryBytes(); - - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.SourceDefinitionCase - getSourceDefinitionCase(); - } - - /** - * - * - *
-   * Specification that applies to database view.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec} - */ - public static final class DatabaseViewSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec) - DatabaseViewSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DatabaseViewSpec"); - } - - // Use DatabaseViewSpec.newBuilder() to construct. - private DatabaseViewSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DatabaseViewSpec() { - viewType_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.class, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.Builder.class); - } - - /** - * - * - *
-     * Concrete type of the view.
-     * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType} - */ - public enum ViewType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Default unknown view type.
-       * 
- * - * VIEW_TYPE_UNSPECIFIED = 0; - */ - VIEW_TYPE_UNSPECIFIED(0), - /** - * - * - *
-       * Standard view.
-       * 
- * - * STANDARD_VIEW = 1; - */ - STANDARD_VIEW(1), - /** - * - * - *
-       * Materialized view.
-       * 
- * - * MATERIALIZED_VIEW = 2; - */ - MATERIALIZED_VIEW(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ViewType"); - } - - /** - * - * - *
-       * Default unknown view type.
-       * 
- * - * VIEW_TYPE_UNSPECIFIED = 0; - */ - public static final int VIEW_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-       * Standard view.
-       * 
- * - * STANDARD_VIEW = 1; - */ - public static final int STANDARD_VIEW_VALUE = 1; - - /** - * - * - *
-       * Materialized view.
-       * 
- * - * MATERIALIZED_VIEW = 2; - */ - public static final int MATERIALIZED_VIEW_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 ViewType 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 ViewType forNumber(int value) { - switch (value) { - case 0: - return VIEW_TYPE_UNSPECIFIED; - case 1: - return STANDARD_VIEW; - case 2: - return MATERIALIZED_VIEW; - 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 ViewType findValueByNumber(int number) { - return ViewType.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.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final ViewType[] VALUES = values(); - - public static ViewType 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 ViewType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType) - } - - private int sourceDefinitionCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object sourceDefinition_; - - public enum SourceDefinitionCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BASE_TABLE(2), - SQL_QUERY(3), - SOURCEDEFINITION_NOT_SET(0); - private final int value; - - private SourceDefinitionCase(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 SourceDefinitionCase valueOf(int value) { - return forNumber(value); - } - - public static SourceDefinitionCase forNumber(int value) { - switch (value) { - case 2: - return BASE_TABLE; - case 3: - return SQL_QUERY; - case 0: - return SOURCEDEFINITION_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SourceDefinitionCase getSourceDefinitionCase() { - return SourceDefinitionCase.forNumber(sourceDefinitionCase_); - } - - public static final int VIEW_TYPE_FIELD_NUMBER = 1; - private int viewType_ = 0; - - /** - * - * - *
-     * Type of this view.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; - * - * - * @return The enum numeric value on the wire for viewType. - */ - @java.lang.Override - public int getViewTypeValue() { - return viewType_; - } - - /** - * - * - *
-     * Type of this view.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; - * - * - * @return The viewType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType - getViewType() { - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType result = - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType.forNumber( - viewType_); - return result == null - ? com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType.UNRECOGNIZED - : result; - } - - public static final int BASE_TABLE_FIELD_NUMBER = 2; - - /** - * - * - *
-     * Name of a singular table this view reflects one to one.
-     * 
- * - * string base_table = 2; - * - * @return Whether the baseTable field is set. - */ - public boolean hasBaseTable() { - return sourceDefinitionCase_ == 2; - } - - /** - * - * - *
-     * Name of a singular table this view reflects one to one.
-     * 
- * - * string base_table = 2; - * - * @return The baseTable. - */ - public java.lang.String getBaseTable() { - java.lang.Object ref = ""; - if (sourceDefinitionCase_ == 2) { - ref = sourceDefinition_; - } - if (ref instanceof java.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 (sourceDefinitionCase_ == 2) { - sourceDefinition_ = s; - } - return s; - } - } - - /** - * - * - *
-     * Name of a singular table this view reflects one to one.
-     * 
- * - * string base_table = 2; - * - * @return The bytes for baseTable. - */ - public com.google.protobuf.ByteString getBaseTableBytes() { - java.lang.Object ref = ""; - if (sourceDefinitionCase_ == 2) { - ref = sourceDefinition_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceDefinitionCase_ == 2) { - sourceDefinition_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SQL_QUERY_FIELD_NUMBER = 3; - - /** - * - * - *
-     * SQL query used to generate this view.
-     * 
- * - * string sql_query = 3; - * - * @return Whether the sqlQuery field is set. - */ - public boolean hasSqlQuery() { - return sourceDefinitionCase_ == 3; - } - - /** - * - * - *
-     * SQL query used to generate this view.
-     * 
- * - * string sql_query = 3; - * - * @return The sqlQuery. - */ - public java.lang.String getSqlQuery() { - java.lang.Object ref = ""; - if (sourceDefinitionCase_ == 3) { - ref = sourceDefinition_; - } - if (ref instanceof java.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 (sourceDefinitionCase_ == 3) { - sourceDefinition_ = s; - } - return s; - } - } - - /** - * - * - *
-     * SQL query used to generate this view.
-     * 
- * - * string sql_query = 3; - * - * @return The bytes for sqlQuery. - */ - public com.google.protobuf.ByteString getSqlQueryBytes() { - java.lang.Object ref = ""; - if (sourceDefinitionCase_ == 3) { - ref = sourceDefinition_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceDefinitionCase_ == 3) { - sourceDefinition_ = 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 (viewType_ - != com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType - .VIEW_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, viewType_); - } - if (sourceDefinitionCase_ == 2) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, sourceDefinition_); - } - if (sourceDefinitionCase_ == 3) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, sourceDefinition_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (viewType_ - != com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType - .VIEW_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, viewType_); - } - if (sourceDefinitionCase_ == 2) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, sourceDefinition_); - } - if (sourceDefinitionCase_ == 3) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, sourceDefinition_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec other = - (com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec) obj; - - if (viewType_ != other.viewType_) return false; - if (!getSourceDefinitionCase().equals(other.getSourceDefinitionCase())) return false; - switch (sourceDefinitionCase_) { - case 2: - if (!getBaseTable().equals(other.getBaseTable())) return false; - break; - case 3: - if (!getSqlQuery().equals(other.getSqlQuery())) 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) + VIEW_TYPE_FIELD_NUMBER; - hash = (53 * hash) + viewType_; - switch (sourceDefinitionCase_) { - case 2: - hash = (37 * hash) + BASE_TABLE_FIELD_NUMBER; - hash = (53 * hash) + getBaseTable().hashCode(); - break; - case 3: - hash = (37 * hash) + SQL_QUERY_FIELD_NUMBER; - hash = (53 * hash) + getSqlQuery().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Specification that applies to database view.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec) - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.class, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.Builder.class); - } - - // Construct using - // com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - viewType_ = 0; - sourceDefinitionCase_ = 0; - sourceDefinition_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec build() { - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec buildPartial() { - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec result = - new com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.viewType_ = viewType_; - } - } - - private void buildPartialOneofs( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec result) { - result.sourceDefinitionCase_ = sourceDefinitionCase_; - result.sourceDefinition_ = this.sourceDefinition_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec) { - return mergeFrom( - (com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec other) { - if (other - == com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - .getDefaultInstance()) return this; - if (other.viewType_ != 0) { - setViewTypeValue(other.getViewTypeValue()); - } - switch (other.getSourceDefinitionCase()) { - case BASE_TABLE: - { - sourceDefinitionCase_ = 2; - sourceDefinition_ = other.sourceDefinition_; - onChanged(); - break; - } - case SQL_QUERY: - { - sourceDefinitionCase_ = 3; - sourceDefinition_ = other.sourceDefinition_; - onChanged(); - break; - } - case SOURCEDEFINITION_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: - { - viewType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceDefinitionCase_ = 2; - sourceDefinition_ = s; - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceDefinitionCase_ = 3; - sourceDefinition_ = 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 sourceDefinitionCase_ = 0; - private java.lang.Object sourceDefinition_; - - public SourceDefinitionCase getSourceDefinitionCase() { - return SourceDefinitionCase.forNumber(sourceDefinitionCase_); - } - - public Builder clearSourceDefinition() { - sourceDefinitionCase_ = 0; - sourceDefinition_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int viewType_ = 0; - - /** - * - * - *
-       * Type of this view.
-       * 
- * - * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; - * - * - * @return The enum numeric value on the wire for viewType. - */ - @java.lang.Override - public int getViewTypeValue() { - return viewType_; - } - - /** - * - * - *
-       * Type of this view.
-       * 
- * - * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; - * - * - * @param value The enum numeric value on the wire for viewType to set. - * @return This builder for chaining. - */ - public Builder setViewTypeValue(int value) { - viewType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * Type of this view.
-       * 
- * - * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; - * - * - * @return The viewType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType - getViewType() { - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType result = - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType.forNumber( - viewType_); - return result == null - ? com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType - .UNRECOGNIZED - : result; - } - - /** - * - * - *
-       * Type of this view.
-       * 
- * - * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; - * - * - * @param value The viewType to set. - * @return This builder for chaining. - */ - public Builder setViewType( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - viewType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-       * Type of this view.
-       * 
- * - * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType view_type = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearViewType() { - bitField0_ = (bitField0_ & ~0x00000001); - viewType_ = 0; - onChanged(); - return this; - } - - /** - * - * - *
-       * Name of a singular table this view reflects one to one.
-       * 
- * - * string base_table = 2; - * - * @return Whether the baseTable field is set. - */ - @java.lang.Override - public boolean hasBaseTable() { - return sourceDefinitionCase_ == 2; - } - - /** - * - * - *
-       * Name of a singular table this view reflects one to one.
-       * 
- * - * string base_table = 2; - * - * @return The baseTable. - */ - @java.lang.Override - public java.lang.String getBaseTable() { - java.lang.Object ref = ""; - if (sourceDefinitionCase_ == 2) { - ref = sourceDefinition_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (sourceDefinitionCase_ == 2) { - sourceDefinition_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * Name of a singular table this view reflects one to one.
-       * 
- * - * string base_table = 2; - * - * @return The bytes for baseTable. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBaseTableBytes() { - java.lang.Object ref = ""; - if (sourceDefinitionCase_ == 2) { - ref = sourceDefinition_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceDefinitionCase_ == 2) { - sourceDefinition_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * Name of a singular table this view reflects one to one.
-       * 
- * - * string base_table = 2; - * - * @param value The baseTable to set. - * @return This builder for chaining. - */ - public Builder setBaseTable(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - sourceDefinitionCase_ = 2; - sourceDefinition_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-       * Name of a singular table this view reflects one to one.
-       * 
- * - * string base_table = 2; - * - * @return This builder for chaining. - */ - public Builder clearBaseTable() { - if (sourceDefinitionCase_ == 2) { - sourceDefinitionCase_ = 0; - sourceDefinition_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-       * Name of a singular table this view reflects one to one.
-       * 
- * - * string base_table = 2; - * - * @param value The bytes for baseTable to set. - * @return This builder for chaining. - */ - public Builder setBaseTableBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - sourceDefinitionCase_ = 2; - sourceDefinition_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-       * SQL query used to generate this view.
-       * 
- * - * string sql_query = 3; - * - * @return Whether the sqlQuery field is set. - */ - @java.lang.Override - public boolean hasSqlQuery() { - return sourceDefinitionCase_ == 3; - } - - /** - * - * - *
-       * SQL query used to generate this view.
-       * 
- * - * string sql_query = 3; - * - * @return The sqlQuery. - */ - @java.lang.Override - public java.lang.String getSqlQuery() { - java.lang.Object ref = ""; - if (sourceDefinitionCase_ == 3) { - ref = sourceDefinition_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (sourceDefinitionCase_ == 3) { - sourceDefinition_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * SQL query used to generate this view.
-       * 
- * - * string sql_query = 3; - * - * @return The bytes for sqlQuery. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSqlQueryBytes() { - java.lang.Object ref = ""; - if (sourceDefinitionCase_ == 3) { - ref = sourceDefinition_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (sourceDefinitionCase_ == 3) { - sourceDefinition_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * SQL query used to generate this view.
-       * 
- * - * string sql_query = 3; - * - * @param value The sqlQuery to set. - * @return This builder for chaining. - */ - public Builder setSqlQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - sourceDefinitionCase_ = 3; - sourceDefinition_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-       * SQL query used to generate this view.
-       * 
- * - * string sql_query = 3; - * - * @return This builder for chaining. - */ - public Builder clearSqlQuery() { - if (sourceDefinitionCase_ == 3) { - sourceDefinitionCase_ = 0; - sourceDefinition_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-       * SQL query used to generate this view.
-       * 
- * - * string sql_query = 3; - * - * @param value The bytes for sqlQuery to set. - * @return This builder for chaining. - */ - public Builder setSqlQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - sourceDefinitionCase_ = 3; - sourceDefinition_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec) - private static final com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec(); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatabaseViewSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int TYPE_FIELD_NUMBER = 1; - private int type_ = 0; - - /** - * - * - *
-   * Type of this table.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - - /** - * - * - *
-   * Type of this table.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType getType() { - com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType result = - com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType.forNumber(type_); - return result == null - ? com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType.UNRECOGNIZED - : result; - } - - public static final int DATAPLEX_TABLE_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.DataplexTableSpec dataplexTable_; - - /** - * - * - *
-   * Output only. Fields specific to a Dataplex table and present only in the
-   * Dataplex table entries.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataplexTable field is set. - */ - @java.lang.Override - public boolean hasDataplexTable() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Output only. Fields specific to a Dataplex table and present only in the
-   * Dataplex table entries.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataplexTable. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexTableSpec getDataplexTable() { - return dataplexTable_ == null - ? com.google.cloud.datacatalog.v1.DataplexTableSpec.getDefaultInstance() - : dataplexTable_; - } - - /** - * - * - *
-   * Output only. Fields specific to a Dataplex table and present only in the
-   * Dataplex table entries.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexTableSpecOrBuilder getDataplexTableOrBuilder() { - return dataplexTable_ == null - ? com.google.cloud.datacatalog.v1.DataplexTableSpec.getDefaultInstance() - : dataplexTable_; - } - - public static final int DATABASE_VIEW_SPEC_FIELD_NUMBER = 3; - private com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec databaseViewSpec_; - - /** - * - * - *
-   * Spec what applies to tables that are actually views.
-   * Not set for "real" tables.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - * - * @return Whether the databaseViewSpec field is set. - */ - @java.lang.Override - public boolean hasDatabaseViewSpec() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Spec what applies to tables that are actually views.
-   * Not set for "real" tables.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - * - * @return The databaseViewSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec getDatabaseViewSpec() { - return databaseViewSpec_ == null - ? com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.getDefaultInstance() - : databaseViewSpec_; - } - - /** - * - * - *
-   * Spec what applies to tables that are actually views.
-   * Not set for "real" tables.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpecOrBuilder - getDatabaseViewSpecOrBuilder() { - return databaseViewSpec_ == null - ? com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.getDefaultInstance() - : databaseViewSpec_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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.datacatalog.v1.DatabaseTableSpec.TableType.TABLE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, type_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getDataplexTable()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getDatabaseViewSpec()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (type_ - != com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType.TABLE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataplexTable()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDatabaseViewSpec()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.DatabaseTableSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DatabaseTableSpec other = - (com.google.cloud.datacatalog.v1.DatabaseTableSpec) obj; - - if (type_ != other.type_) return false; - if (hasDataplexTable() != other.hasDataplexTable()) return false; - if (hasDataplexTable()) { - if (!getDataplexTable().equals(other.getDataplexTable())) return false; - } - if (hasDatabaseViewSpec() != other.hasDatabaseViewSpec()) return false; - if (hasDatabaseViewSpec()) { - if (!getDatabaseViewSpec().equals(other.getDatabaseViewSpec())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasDataplexTable()) { - hash = (37 * hash) + DATAPLEX_TABLE_FIELD_NUMBER; - hash = (53 * hash) + getDataplexTable().hashCode(); - } - if (hasDatabaseViewSpec()) { - hash = (37 * hash) + DATABASE_VIEW_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getDatabaseViewSpec().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.DatabaseTableSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to a table resource. Valid only
-   * for entries with the `TABLE` type.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DatabaseTableSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DatabaseTableSpec) - com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.class, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DatabaseTableSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetDataplexTableFieldBuilder(); - internalGetDatabaseViewSpecFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - type_ = 0; - dataplexTable_ = null; - if (dataplexTableBuilder_ != null) { - dataplexTableBuilder_.dispose(); - dataplexTableBuilder_ = null; - } - databaseViewSpec_ = null; - if (databaseViewSpecBuilder_ != null) { - databaseViewSpecBuilder_.dispose(); - databaseViewSpecBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec build() { - com.google.cloud.datacatalog.v1.DatabaseTableSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec buildPartial() { - com.google.cloud.datacatalog.v1.DatabaseTableSpec result = - new com.google.cloud.datacatalog.v1.DatabaseTableSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DatabaseTableSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.type_ = type_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dataplexTable_ = - dataplexTableBuilder_ == null ? dataplexTable_ : dataplexTableBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.databaseViewSpec_ = - databaseViewSpecBuilder_ == null ? databaseViewSpec_ : databaseViewSpecBuilder_.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.datacatalog.v1.DatabaseTableSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.DatabaseTableSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DatabaseTableSpec other) { - if (other == com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance()) - return this; - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - if (other.hasDataplexTable()) { - mergeDataplexTable(other.getDataplexTable()); - } - if (other.hasDatabaseViewSpec()) { - mergeDatabaseViewSpec(other.getDatabaseViewSpec()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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( - internalGetDataplexTableFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetDatabaseViewSpecFieldBuilder().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 int type_ = 0; - - /** - * - * - *
-     * Type of this table.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - return type_; - } - - /** - * - * - *
-     * Type of this table.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; - * - * @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; - } - - /** - * - * - *
-     * Type of this table.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType getType() { - com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType result = - com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType.forNumber(type_); - return result == null - ? com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Type of this table.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - type_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of this table.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; - * - * @return This builder for chaining. - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000001); - type_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.DataplexTableSpec dataplexTable_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexTableSpec, - com.google.cloud.datacatalog.v1.DataplexTableSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexTableSpecOrBuilder> - dataplexTableBuilder_; - - /** - * - * - *
-     * Output only. Fields specific to a Dataplex table and present only in the
-     * Dataplex table entries.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataplexTable field is set. - */ - public boolean hasDataplexTable() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Output only. Fields specific to a Dataplex table and present only in the
-     * Dataplex table entries.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataplexTable. - */ - public com.google.cloud.datacatalog.v1.DataplexTableSpec getDataplexTable() { - if (dataplexTableBuilder_ == null) { - return dataplexTable_ == null - ? com.google.cloud.datacatalog.v1.DataplexTableSpec.getDefaultInstance() - : dataplexTable_; - } else { - return dataplexTableBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Fields specific to a Dataplex table and present only in the
-     * Dataplex table entries.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDataplexTable(com.google.cloud.datacatalog.v1.DataplexTableSpec value) { - if (dataplexTableBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataplexTable_ = value; - } else { - dataplexTableBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Fields specific to a Dataplex table and present only in the
-     * Dataplex table entries.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDataplexTable( - com.google.cloud.datacatalog.v1.DataplexTableSpec.Builder builderForValue) { - if (dataplexTableBuilder_ == null) { - dataplexTable_ = builderForValue.build(); - } else { - dataplexTableBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Fields specific to a Dataplex table and present only in the
-     * Dataplex table entries.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDataplexTable(com.google.cloud.datacatalog.v1.DataplexTableSpec value) { - if (dataplexTableBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && dataplexTable_ != null - && dataplexTable_ - != com.google.cloud.datacatalog.v1.DataplexTableSpec.getDefaultInstance()) { - getDataplexTableBuilder().mergeFrom(value); - } else { - dataplexTable_ = value; - } - } else { - dataplexTableBuilder_.mergeFrom(value); - } - if (dataplexTable_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Fields specific to a Dataplex table and present only in the
-     * Dataplex table entries.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDataplexTable() { - bitField0_ = (bitField0_ & ~0x00000002); - dataplexTable_ = null; - if (dataplexTableBuilder_ != null) { - dataplexTableBuilder_.dispose(); - dataplexTableBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Fields specific to a Dataplex table and present only in the
-     * Dataplex table entries.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.DataplexTableSpec.Builder getDataplexTableBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetDataplexTableFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Fields specific to a Dataplex table and present only in the
-     * Dataplex table entries.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.DataplexTableSpecOrBuilder getDataplexTableOrBuilder() { - if (dataplexTableBuilder_ != null) { - return dataplexTableBuilder_.getMessageOrBuilder(); - } else { - return dataplexTable_ == null - ? com.google.cloud.datacatalog.v1.DataplexTableSpec.getDefaultInstance() - : dataplexTable_; - } - } - - /** - * - * - *
-     * Output only. Fields specific to a Dataplex table and present only in the
-     * Dataplex table entries.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexTableSpec, - com.google.cloud.datacatalog.v1.DataplexTableSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexTableSpecOrBuilder> - internalGetDataplexTableFieldBuilder() { - if (dataplexTableBuilder_ == null) { - dataplexTableBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexTableSpec, - com.google.cloud.datacatalog.v1.DataplexTableSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexTableSpecOrBuilder>( - getDataplexTable(), getParentForChildren(), isClean()); - dataplexTable_ = null; - } - return dataplexTableBuilder_; - } - - private com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec databaseViewSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.Builder, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpecOrBuilder> - databaseViewSpecBuilder_; - - /** - * - * - *
-     * Spec what applies to tables that are actually views.
-     * Not set for "real" tables.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - * - * @return Whether the databaseViewSpec field is set. - */ - public boolean hasDatabaseViewSpec() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Spec what applies to tables that are actually views.
-     * Not set for "real" tables.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - * - * @return The databaseViewSpec. - */ - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - getDatabaseViewSpec() { - if (databaseViewSpecBuilder_ == null) { - return databaseViewSpec_ == null - ? com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - .getDefaultInstance() - : databaseViewSpec_; - } else { - return databaseViewSpecBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Spec what applies to tables that are actually views.
-     * Not set for "real" tables.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - */ - public Builder setDatabaseViewSpec( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec value) { - if (databaseViewSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - databaseViewSpec_ = value; - } else { - databaseViewSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Spec what applies to tables that are actually views.
-     * Not set for "real" tables.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - */ - public Builder setDatabaseViewSpec( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.Builder - builderForValue) { - if (databaseViewSpecBuilder_ == null) { - databaseViewSpec_ = builderForValue.build(); - } else { - databaseViewSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Spec what applies to tables that are actually views.
-     * Not set for "real" tables.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - */ - public Builder mergeDatabaseViewSpec( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec value) { - if (databaseViewSpecBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && databaseViewSpec_ != null - && databaseViewSpec_ - != com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - .getDefaultInstance()) { - getDatabaseViewSpecBuilder().mergeFrom(value); - } else { - databaseViewSpec_ = value; - } - } else { - databaseViewSpecBuilder_.mergeFrom(value); - } - if (databaseViewSpec_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Spec what applies to tables that are actually views.
-     * Not set for "real" tables.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - */ - public Builder clearDatabaseViewSpec() { - bitField0_ = (bitField0_ & ~0x00000004); - databaseViewSpec_ = null; - if (databaseViewSpecBuilder_ != null) { - databaseViewSpecBuilder_.dispose(); - databaseViewSpecBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Spec what applies to tables that are actually views.
-     * Not set for "real" tables.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - */ - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.Builder - getDatabaseViewSpecBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetDatabaseViewSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Spec what applies to tables that are actually views.
-     * Not set for "real" tables.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - */ - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpecOrBuilder - getDatabaseViewSpecOrBuilder() { - if (databaseViewSpecBuilder_ != null) { - return databaseViewSpecBuilder_.getMessageOrBuilder(); - } else { - return databaseViewSpec_ == null - ? com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec - .getDefaultInstance() - : databaseViewSpec_; - } - } - - /** - * - * - *
-     * Spec what applies to tables that are actually views.
-     * Not set for "real" tables.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.Builder, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpecOrBuilder> - internalGetDatabaseViewSpecFieldBuilder() { - if (databaseViewSpecBuilder_ == null) { - databaseViewSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.Builder, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpecOrBuilder>( - getDatabaseViewSpec(), getParentForChildren(), isClean()); - databaseViewSpec_ = null; - } - return databaseViewSpecBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DatabaseTableSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DatabaseTableSpec) - private static final com.google.cloud.datacatalog.v1.DatabaseTableSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DatabaseTableSpec(); - } - - public static com.google.cloud.datacatalog.v1.DatabaseTableSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatabaseTableSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpecOrBuilder.java deleted file mode 100644 index b85d58a1fcc4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatabaseTableSpecOrBuilder.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DatabaseTableSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DatabaseTableSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Type of this table.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - - /** - * - * - *
-   * Type of this table.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.TableType type = 1; - * - * @return The type. - */ - com.google.cloud.datacatalog.v1.DatabaseTableSpec.TableType getType(); - - /** - * - * - *
-   * Output only. Fields specific to a Dataplex table and present only in the
-   * Dataplex table entries.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataplexTable field is set. - */ - boolean hasDataplexTable(); - - /** - * - * - *
-   * Output only. Fields specific to a Dataplex table and present only in the
-   * Dataplex table entries.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataplexTable. - */ - com.google.cloud.datacatalog.v1.DataplexTableSpec getDataplexTable(); - - /** - * - * - *
-   * Output only. Fields specific to a Dataplex table and present only in the
-   * Dataplex table entries.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataplexTableSpec dataplex_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.DataplexTableSpecOrBuilder getDataplexTableOrBuilder(); - - /** - * - * - *
-   * Spec what applies to tables that are actually views.
-   * Not set for "real" tables.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - * - * @return Whether the databaseViewSpec field is set. - */ - boolean hasDatabaseViewSpec(); - - /** - * - * - *
-   * Spec what applies to tables that are actually views.
-   * Not set for "real" tables.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - * - * @return The databaseViewSpec. - */ - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec getDatabaseViewSpec(); - - /** - * - * - *
-   * Spec what applies to tables that are actually views.
-   * Not set for "real" tables.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec database_view_spec = 3; - * - */ - com.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpecOrBuilder - getDatabaseViewSpecOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java deleted file mode 100644 index 496c6afa47e6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Datacatalog.java +++ /dev/null @@ -1,1727 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class Datacatalog extends com.google.protobuf.GeneratedFile { - private Datacatalog() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Datacatalog"); - } - - 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_datacatalog_v1_SearchCatalogRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_GetEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_GetEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_Entry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_Entry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_Entry_LabelsEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_Entry_LabelsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_FilesetSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_FilesetSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_RoutineSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_RoutineSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DatasetSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DatasetSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ServiceSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ServiceSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_VertexModelSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_VertexModelSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ModelSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ModelSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_FeatureOnlineStoreSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_FeatureOnlineStoreSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_BusinessContext_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_EntryOverview_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_EntryOverview_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_Contacts_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_Contacts_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_Contacts_Person_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_Contacts_Person_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_EntryGroup_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_EntryGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CreateTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CreateTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ListTagsRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ListTagsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ListTagsResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ListTagsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_ErrorsEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_ErrorsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_StarEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_StarEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_StarEntryResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_StarEntryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_SetConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_MigrationConfig_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/datacatalog/v1/datacatalo" - + "g.proto\022\033google.cloud.datacatalog.v1\032\034go" - + "ogle/api/annotations.proto\032\027google/api/c" - + "lient.proto\032\037google/api/field_behavior.p" - + "roto\032\031google/api/resource.proto\032*google/" - + "cloud/datacatalog/v1/bigquery.proto\032(google/cloud/datacatalog/v1/common.proto\032-g" - + "oogle/cloud/datacatalog/v1/data_source.proto\032/google/cloud/datacatalog/v1/datapl" - + "ex_spec.proto\0322google/cloud/datacatalog/v1/gcs_fileset_spec.proto\032(google/cloud/" - + "datacatalog/v1/schema.proto\032(google/cloud/datacatalog/v1/search.proto\032,google/cl" - + "oud/datacatalog/v1/table_spec.proto\032&google/cloud/datacatalog/v1/tags.proto\032,goo" - + "gle/cloud/datacatalog/v1/timestamps.proto\032\'google/cloud/datacatalog/v1/usage.pro" - + "to\032\036google/iam/v1/iam_policy.proto\032\032goog" - + "le/iam/v1/policy.proto\032#google/longrunni" - + "ng/operations.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.pro" - + "to\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\240\003\n" - + "\024SearchCatalogRequest\022K\n" - + "\005scope\030\006 \001(\01327.google.cloud.data" - + "catalog.v1.SearchCatalogRequest.ScopeB\003\340A\002\022\022\n" - + "\005query\030\001 \001(\tB\003\340A\001\022\021\n" - + "\tpage_size\030\002 \001(\005\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\022\020\n" - + "\010order_by\030\005 \001(\t\022\031\n" - + "\014admin_search\030\021 \001(\010B\003\340A\001\032\315\001\n" - + "\005Scope\022\027\n" - + "\017include_org_ids\030\002 \003(\t\022\033\n" - + "\023include_project_ids\030\003 \003(\t\022#\n" - + "\033include_gcp_public_datasets\030\007 \001(\010\022!\n" - + "\024restricted_locations\030\020 \003(\tB\003\340A\001\022\031\n" - + "\014starred_only\030\022 \001(\010B\003\340A\001\022+\n" - + "\034include_public_tag_templates\030\023 \001(\010B\005\030\001\340A\001\"\234\001\n" - + "\025SearchCatalogResponse\022A\n" - + "\007results\030\001 \003" - + "(\01320.google.cloud.datacatalog.v1.SearchCatalogResult\022\022\n\n" - + "total_size\030\002 \001(\005\022\027\n" - + "\017next_page_token\030\003 \001(\t\022\023\n" - + "\013unreachable\030\006 \003(\t\"\263\001\n" - + "\027CreateEntryGroupRequest\022=\n" - + "\006parent\030\001 \001(" - + "\tB-\340A\002\372A\'\022%datacatalog.googleapis.com/EntryGroup\022\033\n" - + "\016entry_group_id\030\003 \001(\tB\003\340A\002\022<\n" - + "\013entry_group\030\002" - + " \001(\0132\'.google.cloud.datacatalog.v1.EntryGroup\"\215\001\n" - + "\027UpdateEntryGroupRequest\022A\n" - + "\013entry_group\030\001" - + " \001(\0132\'.google.cloud.datacatalog.v1.EntryGroupB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\202\001\n" - + "\024GetEntryGroupRequest\022;\n" - + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%datacatalog.googleapis.com/EntryGroup\022-\n" - + "\tread_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"j\n" - + "\027DeleteEntryGroupRequest\022;\n" - + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%datacatalog.googleapis.com/EntryGroup\022\022\n" - + "\005force\030\002 \001(\010B\003\340A\001\"\210\001\n" - + "\026ListEntryGroupsRequest\022=\n" - + "\006parent\030\001 \001(" - + "\tB-\340A\002\372A\'\022%datacatalog.googleapis.com/EntryGroup\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"q\n" - + "\027ListEntryGroupsResponse\022=\n" - + "\014entry_groups\030\001 \003(\0132\'.google.cloud.datacatalog.v1.EntryGroup\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\242\001\n" - + "\022CreateEntryRequest\022=\n" - + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n" - + "%datacatalog.googleapis.com/EntryGroup\022\025\n" - + "\010entry_id\030\003 \001(\tB\003\340A\002\0226\n" - + "\005entry\030\002 \001(\0132\".google.cloud.datacatalog.v1.EntryB\003\340A\002\"}\n" - + "\022UpdateEntryRequest\0226\n" - + "\005entry\030\001 \001(\0132\".google.cloud.datacatalog.v1.EntryB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L\n" - + "\022DeleteEntryRequest\0226\n" - + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " datacatalog.googleapis.com/Entry\"I\n" - + "\017GetEntryRequest\0226\n" - + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " datacatalog.googleapis.com/Entry\"\231\001\n" - + "\022LookupEntryRequest\022\031\n" - + "\017linked_resource\030\001 \001(\tH\000\022\026\n" - + "\014sql_resource\030\003 \001(\tH\000\022\036\n" - + "\024fully_qualified_name\030\005 \001(\tH\000\022\017\n" - + "\007project\030\006 \001(\t\022\020\n" - + "\010location\030\007 \001(\tB\r\n" - + "\013target_name\"\201\021\n" - + "\005Entry\022>\n" - + "\004name\030\001 \001(\tB0\340A\003\340A\010\372A\'\n" - + "%datacatalog.googleapis.com/EntryGroup\022\027\n" - + "\017linked_resource\030\t \001(\t\022\034\n" - + "\024fully_qualified_name\030\035 \001(\t\0226\n" - + "\004type\030\002 \001(\0162&.google.cloud.datacatalog.v1.EntryTypeH\000\022\035\n" - + "\023user_specified_type\030\020 \001(\tH\000\022O\n" - + "\021integrated_system\030\021" - + " \001(\0162-.google.cloud.datacatalog.v1.IntegratedSystemB\003\340A\003H\001\022\037\n" - + "\025user_specified_system\030\022 \001(\tH\001\022V\n" - + "\030sql_database_system_spec\030\' \001(\01322.google.cloud." - + "datacatalog.v1.SqlDatabaseSystemSpecH\002\022K\n" - + "\022looker_system_spec\030(" - + " \001(\0132-.google.cloud.datacatalog.v1.LookerSystemSpecH\002\022Z\n" - + "\032cloud_bigtable_system_spec\030) \001(\01324.google" - + ".cloud.datacatalog.v1.CloudBigtableSystemSpecH\002\022G\n" - + "\020gcs_fileset_spec\030\006 \001(\0132+.goog" - + "le.cloud.datacatalog.v1.GcsFilesetSpecH\003\022R\n" - + "\023bigquery_table_spec\030\014 \001(\0132..google.c" - + "loud.datacatalog.v1.BigQueryTableSpecB\003\340A\003H\003\022_\n" - + "\032bigquery_date_sharded_spec\030\017 \001(\013" - + "24.google.cloud.datacatalog.v1.BigQueryDateShardedSpecB\003\340A\003H\003\022M\n" - + "\023database_table_spec\030\030" - + " \001(\0132..google.cloud.datacatalog.v1.DatabaseTableSpecH\004\022\\\n" - + "\033data_source_connection_spec\030\033" - + " \001(\01325.google.cloud.datacatalog.v1.DataSourceConnectionSpecH\004\022@\n" - + "\014routine_spec\030\034" - + " \001(\0132(.google.cloud.datacatalog.v1.RoutineSpecH\004\022@\n" - + "\014dataset_spec\030 \001(\0132(.google.cloud.datacatalog.v1.DatasetSpecH\004\022@\n" - + "\014fileset_spec\030! \001(\0132(.google.cloud.datacatalog.v1.FilesetSpecH\004\022@\n" - + "\014service_spec\030*" - + " \001(\0132(.google.cloud.datacatalog.v1.ServiceSpecH\004\022<\n\n" - + "model_spec\030+ \001(\0132&.google.cloud.datacatalog.v1.ModelSpecH\004\022X\n" - + "\031feature_online_store_spec\030- \001(\01323.go" - + "ogle.cloud.datacatalog.v1.FeatureOnlineStoreSpecH\004\022\024\n" - + "\014display_name\030\003 \001(\t\022\023\n" - + "\013description\030\004 \001(\t\022F\n" - + "\020business_context\030% \001(\0132" - + ",.google.cloud.datacatalog.v1.BusinessContext\0223\n" - + "\006schema\030\005 \001(\0132#.google.cloud.datacatalog.v1.Schema\022O\n" - + "\030source_system_timestamps\030\007" - + " \001(\0132-.google.cloud.datacatalog.v1.SystemTimestamps\022>\n" - + "\014usage_signal\030\r" - + " \001(\0132(.google.cloud.datacatalog.v1.UsageSignal\022>\n" - + "\006labels\030\016 \003(\0132..google.cloud.datacatalog.v1.Entry.LabelsEntry\022A\n" - + "\013data_source\030\024" - + " \001(\0132\'.google.cloud.datacatalog.v1.DataSourceB\003\340A\003\022K\n" - + "\020personal_details\030\032 \001(\013" - + "2,.google.cloud.datacatalog.v1.PersonalDetailsB\003\340A\003\032-\n" - + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001:x\352Au\n" - + " datacatalog.googleapis.com/Entry\022Qprojects/{project}/lo" - + "cations/{location}/entryGroups/{entry_group}/entries/{entry}B\014\n\n" - + "entry_typeB\010\n" - + "\006systemB\r\n" - + "\013system_specB\013\n" - + "\ttype_specB\006\n" - + "\004spec\"\313\004\n" - + "\021DatabaseTableSpec\022F\n" - + "\004type\030\001 \001(\01628.g" - + "oogle.cloud.datacatalog.v1.DatabaseTableSpec.TableType\022K\n" - + "\016dataplex_table\030\002 \001(\0132." - + ".google.cloud.datacatalog.v1.DataplexTableSpecB\003\340A\003\022[\n" - + "\022database_view_spec\030\003 \001(\0132" - + "?.google.cloud.datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec\032\200\002\n" - + "\020DatabaseViewSpec\022[\n" - + "\tview_type\030\001 \001(\0162H.google.cloud." - + "datacatalog.v1.DatabaseTableSpec.DatabaseViewSpec.ViewType\022\024\n\n" - + "base_table\030\002 \001(\tH\000\022\023\n" - + "\tsql_query\030\003 \001(\tH\000\"O\n" - + "\010ViewType\022\031\n" - + "\025VIEW_TYPE_UNSPECIFIED\020\000\022\021\n\r" - + "STANDARD_VIEW\020\001\022\025\n" - + "\021MATERIALIZED_VIEW\020\002B\023\n" - + "\021source_definition\"A\n" - + "\tTableType\022\032\n" - + "\026TABLE_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006NATIVE\020\001\022\014\n" - + "\010EXTERNAL\020\002\"Y\n" - + "\013FilesetSpec\022J\n" - + "\020dataplex_fileset\030\001 \001(\01320.google" - + ".cloud.datacatalog.v1.DataplexFilesetSpec\"q\n" - + "\030DataSourceConnectionSpec\022U\n" - + "\030bigquery_connection_spec\030\001" - + " \001(\01323.google.cloud.datacatalog.v1.BigQueryConnectionSpec\"\303\004\n" - + "\013RoutineSpec\022J\n" - + "\014routine_type\030\001 \001(\01624.goo" - + "gle.cloud.datacatalog.v1.RoutineSpec.RoutineType\022\020\n" - + "\010language\030\002 \001(\t\022L\n" - + "\021routine_arguments\030\003" - + " \003(\01321.google.cloud.datacatalog.v1.RoutineSpec.Argument\022\023\n" - + "\013return_type\030\004 \001(\t\022\027\n" - + "\017definition_body\030\005 \001(\t\022Q\n" - + "\025bigquery_routine_spec\030\006" - + " \001(\01320.google.cloud.datacatalog.v1.BigQueryRoutineSpecH\000\032\246\001\n" - + "\010Argument\022\014\n" - + "\004name\030\001 \001(\t\022D\n" - + "\004mode\030\002 \001(\01626.goo" - + "gle.cloud.datacatalog.v1.RoutineSpec.Argument.Mode\022\014\n" - + "\004type\030\003 \001(\t\"8\n" - + "\004Mode\022\024\n" - + "\020MODE_UNSPECIFIED\020\000\022\006\n" - + "\002IN\020\001\022\007\n" - + "\003OUT\020\002\022\t\n" - + "\005INOUT\020\003\"O\n" - + "\013RoutineType\022\034\n" - + "\030ROUTINE_TYPE_UNSPECIFIED\020\000\022\023\n" - + "\017SCALAR_FUNCTION\020\001\022\r\n" - + "\tPROCEDURE\020\002B\r\n" - + "\013system_spec\"k\n" - + "\013DatasetSpec\022M\n" - + "\023vertex_dataset_spec\030\002" - + " \001(\0132..google.cloud.datacatalog.v1.VertexDatasetSpecH\000B\r\n" - + "\013system_spec\"\\\n" - + "\025SqlDatabaseSystemSpec\022\022\n\n" - + "sql_engine\030\001 \001(\t\022\030\n" - + "\020database_version\030\002 \001(\t\022\025\n\r" - + "instance_host\030\003 \001(\t\"\312\001\n" - + "\020LookerSystemSpec\022\032\n" - + "\022parent_instance_id\030\001 \001(\t\022$\n" - + "\034parent_instance_display_name\030\002 \001(\t\022\027\n" - + "\017parent_model_id\030\003 \001(\t\022!\n" - + "\031parent_model_display_name\030\004 \001(\t\022\026\n" - + "\016parent_view_id\030\005 \001(\t\022 \n" - + "\030parent_view_display_name\030\006 \001(\t\"8\n" - + "\027CloudBigtableSystemSpec\022\035\n" - + "\025instance_display_name\030\001 \001(\t\"\375\001\n" - + "\031CloudBigtableInstanceSpec\022u\n" - + "\034cloud_bigtable_cluster_specs\030\001 \003(\0132O.googl" - + "e.cloud.datacatalog.v1.CloudBigtableInstanceSpec.CloudBigtableClusterSpec\032i\n" - + "\030CloudBigtableClusterSpec\022\024\n" - + "\014display_name\030\001 \001(\t\022\020\n" - + "\010location\030\002 \001(\t\022\014\n" - + "\004type\030\003 \001(\t\022\027\n" - + "\017linked_resource\030\004 \001(\t\"|\n" - + "\013ServiceSpec\022^\n" - + "\034cloud_bigtable_instance_spec\030\001 \001(\01326.goog" - + "le.cloud.datacatalog.v1.CloudBigtableInstanceSpecH\000B\r\n" - + "\013system_spec\"\240\002\n" - + "\025VertexModelSourceInfo\022W\n" - + "\013source_type\030\001 \001(\0162B.goog" - + "le.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType\022\014\n" - + "\004copy\030\002 \001(\010\"\237\001\n" - + "\017ModelSourceType\022!\n" - + "\035MODEL_SOURCE_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006AUTOML\020\001\022\n\n" - + "\006CUSTOM\020\002\022\010\n" - + "\004BQML\020\003\022\020\n" - + "\014MODEL_GARDEN\020\004\022\t\n" - + "\005GENIE\020\005\022\031\n" - + "\025CUSTOM_TEXT_EMBEDDING\020\006\022\017\n" - + "\013MARKETPLACE\020\007\"\316\001\n" - + "\017VertexModelSpec\022\022\n\n" - + "version_id\030\001 \001(\t\022\027\n" - + "\017version_aliases\030\002 \003(\t\022\033\n" - + "\023version_description\030\003 \001(\t\022T\n" - + "\030vertex_model_source_info\030\004" - + " \001(\01322.google.cloud.datacatalog.v1.VertexModelSourceInfo\022\033\n" - + "\023container_image_uri\030\005 \001(\t\"\344\002\n" - + "\021VertexDatasetSpec\022\027\n" - + "\017data_item_count\030\001 \001(\003\022J\n" - + "\tdata_type\030\002 \001(\01627.googl" - + "e.cloud.datacatalog.v1.VertexDatasetSpec.DataType\"\351\001\n" - + "\010DataType\022\031\n" - + "\025DATA_TYPE_UNSPECIFIED\020\000\022\t\n" - + "\005TABLE\020\001\022\t\n" - + "\005IMAGE\020\002\022\010\n" - + "\004TEXT\020\003\022\t\n" - + "\005VIDEO\020\004\022\020\n" - + "\014CONVERSATION\020\005\022\017\n" - + "\013TIME_SERIES\020\006\022\014\n" - + "\010DOCUMENT\020\007\022\022\n" - + "\016TEXT_TO_SPEECH\020\010\022\017\n" - + "\013TRANSLATION\020\t\022\020\n" - + "\014STORE_VISION\020\n" - + "\022\036\n" - + "\032ENTERPRISE_KNOWLEDGE_GRAPH\020\013\022\017\n" - + "\013TEXT_PROMPT\020\014\"e\n" - + "\tModelSpec\022I\n" - + "\021vertex_model_spec\030\001" - + " \001(\0132,.google.cloud.datacatalog.v1.VertexModelSpecH\000B\r\n" - + "\013system_spec\"\276\001\n" - + "\026FeatureOnlineStoreSpec\022Z\n" - + "\014storage_type\030\001 \001(\0162?." - + "google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageTypeB\003\340A\003\"H\n" - + "\013StorageType\022\034\n" - + "\030STORAGE_TYPE_UNSPECIFIED\020\000\022\014\n" - + "\010BIGTABLE\020\001\022\r\n" - + "\tOPTIMIZED\020\002\"\216\001\n" - + "\017BusinessContext\022B\n" - + "\016entry_overview\030\001" - + " \001(\0132*.google.cloud.datacatalog.v1.EntryOverview\0227\n" - + "\010contacts\030\002 \001(\0132%.google.cloud.datacatalog.v1.Contacts\"!\n\r" - + "EntryOverview\022\020\n" - + "\010overview\030\001 \001(\t\"v\n" - + "\010Contacts\022<\n" - + "\006people\030\001 \003(\0132,.google.cloud.datacatalog.v1.Contacts.Person\032,\n" - + "\006Person\022\023\n" - + "\013designation\030\001 \001(\t\022\r\n" - + "\005email\030\002 \001(\t\"\264\002\n\n" - + "EntryGroup\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" - + "\014display_name\030\002 \001(\t\022\023\n" - + "\013description\030\003 \001(\t\022S\n" - + "\027data_catalog_timestamps\030\004 \001(\0132-.google" - + ".cloud.datacatalog.v1.SystemTimestampsB\003\340A\003\022$\n" - + "\027transferred_to_dataplex\030\t \001(\010B\003\340A\001:m\352Aj\n" - + "%datacatalog.googleapis.com/Entry" - + "Group\022Aprojects/{project}/locations/{location}/entryGroups/{entry_group}\"\275\001\n" - + "\030CreateTagTemplateRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340" - + "A\002\372A(\022&datacatalog.googleapis.com/TagTemplate\022\034\n" - + "\017tag_template_id\030\003 \001(\tB\003\340A\002\022C\n" - + "\014tag_template\030\002" - + " \001(\0132(.google.cloud.datacatalog.v1.TagTemplateB\003\340A\002\"U\n" - + "\025GetTagTemplateRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&datacatalog.googleapis.com/TagTemplate\"\220\001\n" - + "\030UpdateTagTemplateRequest\022C\n" - + "\014tag_template\030\001 \001" - + "(\0132(.google.cloud.datacatalog.v1.TagTemplateB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"l\n" - + "\030DeleteTagTemplateRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&datacatalog.googleapis.com/TagTemplate\022\022\n" - + "\005force\030\002 \001(\010B\003\340A\002\"~\n" - + "\020CreateTagRequest\0226\n" - + "\006parent\030\001 \001(\tB&\340A\002\372A" - + " \022\036datacatalog.googleapis.com/Tag\0222\n" - + "\003tag\030\002 \001(\0132 .google.cloud.datacatalog.v1.TagB\003\340A\002\"w\n" - + "\020UpdateTagRequest\0222\n" - + "\003tag\030\001 \001(\0132 .google.cloud.datacatalog.v1.TagB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"H\n" - + "\020DeleteTagRequest\0224\n" - + "\004name\030\001 \001(\tB&\340A\002\372A" - + " \022\036datacatalog.googleapis.com/Tag\"\323\001\n" - + "\035CreateTagTemplateFieldRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A\002\372A(\n" - + "&datacatalog.googleapis.com/TagTemplate\022\"\n" - + "\025tag_template_field_id\030\002 \001(\tB\003\340A\002\022N\n" - + "\022tag_template_field\030\003" - + " \001(\0132-.google.cloud.datacatalog.v1.TagTemplateFieldB\003\340A\002\"\350\001\n" - + "\035UpdateTagTemplateFieldRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+datacatalog.googleapis.com/TagTemplateField\022N\n" - + "\022tag_template_field\030\002 \001(\0132-.goo" - + "gle.cloud.datacatalog.v1.TagTemplateFieldB\003\340A\002\0224\n" - + "\013update_mask\030\003" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\212\001\n" - + "\035RenameTagTemplateFieldRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+datacatalog.googleapis.com/TagTemplateField\022&\n" - + "\031new_tag_template_field_id\030\002 \001(\tB\003\340A\002\"\236\001\n" - + "&RenameTagTemplateFieldEnumValueRequest\022J\n" - + "\004name\030\001 \001(\tB<\340A\002\372A6\n" - + "4datacatalog.googleapis.com/TagTemplateFieldEnumValue\022(\n" - + "\033new_enum_value_display_name\030\002 \001(\tB\003\340A\002\"v\n" - + "\035DeleteTagTemplateFieldRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+datacatalog.googleapis.com/TagTemplateField\022\022\n" - + "\005force\030\002 \001(\010B\003\340A\002\"p\n" - + "\017ListTagsRequest\0226\n" - + "\006parent\030\001 \001(\tB&\340A\002\372A" - + " \022\036datacatalog.googleapis.com/Tag\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"[\n" - + "\020ListTagsResponse\022.\n" - + "\004tags\030\001 \003(\0132 .google.cloud.datacatalog.v1.Tag\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\344\001\n" - + "\024ReconcileTagsRequest\0228\n" - + "\006parent\030\001 \001(\tB(\340A\002\372A\"\n" - + " datacatalog.googleapis.com/Entry\022D\n" - + "\014tag_template\030\002 \001(\tB.\340A\002\372A(\n" - + "&datacatalog.googleapis.com/TagTemplate\022\034\n" - + "\024force_delete_missing\030\003 \001(\010\022.\n" - + "\004tags\030\004 \003(\0132 .google.cloud.datacatalog.v1.Tag\"k\n" - + "\025ReconcileTagsResponse\022\032\n" - + "\022created_tags_count\030\001 \001(\003\022\032\n" - + "\022updated_tags_count\030\002 \001(\003\022\032\n" - + "\022deleted_tags_count\030\003 \001(\003\"\223\003\n" - + "\025ReconcileTagsMetadata\022U\n" - + "\005state\030\001 \001(\0162F.google." - + "cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState\022N\n" - + "\006errors\030\002 \003(\0132>" - + ".google.cloud.datacatalog.v1.ReconcileTagsMetadata.ErrorsEntry\032A\n" - + "\013ErrorsEntry\022\013\n" - + "\003key\030\001 \001(\t\022!\n" - + "\005value\030\002 \001(\0132\022.google.rpc.Status:\0028\001\"\217\001\n" - + "\023ReconciliationState\022$\n" - + " RECONCILIATION_STATE_UNSPECIFIED\020\000\022\031\n" - + "\025RECONCILIATION_QUEUED\020\001\022\036\n" - + "\032RECONCILIATION_IN_PROGRESS\020\002\022\027\n" - + "\023RECONCILIATION_DONE\020\003\"\251\001\n" - + "\022ListEntriesRequest\022=\n" - + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n" - + "%datacatalog.googleapis.com/EntryGroup\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022-\n" - + "\tread_mask\030\004 \001(\0132\032.google.protobuf.FieldMask\"c\n" - + "\023ListEntriesResponse\0223\n" - + "\007entries\030\001 \003(\0132\".google.cloud.datacatalog.v1.Entry\022\027\n" - + "\017next_page_token\030\002 \001(\t\"J\n" - + "\020StarEntryRequest\0226\n" - + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " datacatalog.googleapis.com/Entry\"\023\n" - + "\021StarEntryResponse\"L\n" - + "\022UnstarEntryRequest\0226\n" - + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " datacatalog.googleapis.com/Entry\"\025\n" - + "\023UnstarEntryResponse\"\212\001\n" - + "\024ImportEntriesRequest\0228\n" - + "\006parent\030\001 \001(\tB(\340A\002\372A\"\022" - + " datacatalog.googleapis.com/Entry\022\031\n" - + "\017gcs_bucket_path\030\002 \001(\tH\000\022\023\n" - + "\006job_id\030\003 \001(\tB\003\340A\001B\010\n" - + "\006source\"\225\001\n" - + "\025ImportEntriesResponse\022#\n" - + "\026upserted_entries_count\030\005 \001(\003H\000\210\001\001\022\"\n" - + "\025deleted_entries_count\030\006 \001(\003H\001\210\001\001B\031\n" - + "\027_upserted_entries_countB\030\n" - + "\026_deleted_entries_count\"\210\002\n" - + "\025ImportEntriesMetadata\022M\n" - + "\005state\030\001 \001(\016" - + "2>.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState\022\"\n" - + "\006errors\030\002 \003(\0132\022.google.rpc.Status\"|\n" - + "\013ImportState\022\034\n" - + "\030IMPORT_STATE_UNSPECIFIED\020\000\022\021\n\r" - + "IMPORT_QUEUED\020\001\022\026\n" - + "\022IMPORT_IN_PROGRESS\020\002\022\017\n" - + "\013IMPORT_DONE\020\003\022\023\n" - + "\017IMPORT_OBSOLETE\020\004\"\235\001\n" - + "\032ModifyEntryOverviewRequest\0226\n" - + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " datacatalog.googleapis.com/Entry\022G\n" - + "\016entry_overview\030\002" - + " \001(\0132*.google.cloud.datacatalog.v1.EntryOverviewB\003\340A\002\"\222\001\n" - + "\032ModifyEntryContactsRequest\0226\n" - + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " datacatalog.googleapis.com/Entry\022<\n" - + "\010contacts\030\002" - + " \001(\0132%.google.cloud.datacatalog.v1.ContactsB\003\340A\002\"\336\001\n" - + "\020SetConfigRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\022S\n" - + "\026tag_template_migration\030\002" - + " \001(\01621.google.cloud.datacatalog.v1.TagTemplateMigrationH\000\022Q\n" - + "\025catalog_ui_experience\030\003" - + " \001(\01620.google.cloud.datacatalog.v1.CatalogUIExperienceH\000B\017\n\r" - + "configuration\"*\n" - + "\025RetrieveConfigRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\"3\n" - + "\036RetrieveEffectiveConfigRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\"\276\001\n" - + "\022OrganizationConfig\022K\n" - + "\006config\030\001" - + " \003(\0132;.google.cloud.datacatalog.v1.OrganizationConfig.ConfigEntry\032[\n" - + "\013ConfigEntry\022\013\n" - + "\003key\030\001 \001(\t\022;\n" - + "\005value\030\002 \001(\013" - + "2,.google.cloud.datacatalog.v1.MigrationConfig:\0028\001\"\372\001\n" - + "\017MigrationConfig\022Q\n" - + "\026tag_template_migration\030\001" - + " \001(\01621.google.cloud.datacatalog.v1.TagTemplateMigration\022O\n" - + "\025catalog_ui_experience\030\002" - + " \001(\01620.google.cloud.datacatalog.v1.CatalogUIExperience\022C\n" - + "\037template_migration_enabled_time\030\003" - + " \001(\0132\032.google.protobuf.Timestamp*\272\002\n" - + "\tEntryType\022\032\n" - + "\026ENTRY_TYPE_UNSPECIFIED\020\000\022\t\n" - + "\005TABLE\020\002\022\t\n" - + "\005MODEL\020\005\022\017\n" - + "\013DATA_STREAM\020\003\022\013\n" - + "\007FILESET\020\004\022\013\n" - + "\007CLUSTER\020\006\022\014\n" - + "\010DATABASE\020\007\022\032\n" - + "\026DATA_SOURCE_CONNECTION\020\010\022\013\n" - + "\007ROUTINE\020\t\022\010\n" - + "\004LAKE\020\n" - + "\022\010\n" - + "\004ZONE\020\013\022\013\n" - + "\007SERVICE\020\016\022\023\n" - + "\017DATABASE_SCHEMA\020\017\022\r\n" - + "\tDASHBOARD\020\020\022\013\n" - + "\007EXPLORE\020\021\022\010\n" - + "\004LOOK\020\022\022\030\n" - + "\024FEATURE_ONLINE_STORE\020\023\022\020\n" - + "\014FEATURE_VIEW\020\024\022\021\n\r" - + "FEATURE_GROUP\020\025*\207\001\n" - + "\024TagTemplateMigration\022&\n" - + "\"TAG_TEMPLATE_MIGRATION_UNSPECIFIED\020\000\022\"\n" - + "\036TAG_TEMPLATE_MIGRATION_ENABLED\020\001\022#\n" - + "\037TAG_TEMPLATE_MIGRATION_DISABLED\020\002*\203\001\n" - + "\023CatalogUIExperience\022%\n" - + "!CATALOG_UI_EXPERIENCE_UNSPECIFIED\020\000\022!\n" - + "\035CATALOG_UI_EXPERIENCE_ENABLED\020\001\022\"\n" - + "\036CATALOG_UI_EXPERIENCE_DISABLED\020\0022\322A\n" - + "\013DataCatalog\022\246\001\n\r" - + "SearchCatalog\0221.google.cloud.datacatalog.v1.Sea" - + "rchCatalogRequest\0322.google.cloud.datacat" - + "alog.v1.SearchCatalogResponse\".\210\002\001\332A\013sco" - + "pe,query\202\323\344\223\002\027\"\022/v1/catalog:search:\001*\022\336\001\n" - + "\020CreateEntryGroup\0224.google.cloud.dataca" - + "talog.v1.CreateEntryGroupRequest\032\'.googl" - + "e.cloud.datacatalog.v1.EntryGroup\"k\210\002\001\332A" - + "!parent,entry_group_id,entry_group\202\323\344\223\002>" - + "\"//v1/{parent=projects/*/locations/*}/entryGroups:\013entry_group\022\277\001\n\r" - + "GetEntryGroup\0221.google.cloud.datacatalog.v1.GetEntryG" - + "roupRequest\032\'.google.cloud.datacatalog.v" - + "1.EntryGroup\"R\210\002\001\332A\004name\332A\016name,read_mas" - + "k\202\323\344\223\0021\022//v1/{name=projects/*/locations/*/entryGroups/*}\022\356\001\n" - + "\020UpdateEntryGroup\0224.google.cloud.datacatalog.v1.UpdateEntryG" - + "roupRequest\032\'.google.cloud.datacatalog.v" - + "1.EntryGroup\"{\210\002\001\332A\013entry_group\332A\027entry_" - + "group,update_mask\202\323\344\223\002J2;/v1/{entry_grou" - + "p.name=projects/*/locations/*/entryGroups/*}:\013entry_group\022\243\001\n" - + "\020DeleteEntryGroup\0224.google.cloud.datacatalog.v1.DeleteEntry" - + "GroupRequest\032\026.google.protobuf.Empty\"A\210\002" - + "\001\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/entryGroups/*}\022\301\001\n" - + "\017ListEntryGroups\0223.google.cloud.datacatalog.v1.ListEn" - + "tryGroupsRequest\0324.google.cloud.datacata" - + "log.v1.ListEntryGroupsResponse\"C\210\002\001\332A\006pa" - + "rent\202\323\344\223\0021\022//v1/{parent=projects/*/locations/*}/entryGroups\022\307\001\n" - + "\013CreateEntry\022/.google.cloud.datacatalog.v1.CreateEntryReq" - + "uest\032\".google.cloud.datacatalog.v1.Entry" - + "\"c\210\002\001\332A\025parent,entry_id,entry\202\323\344\223\002B\"9/v1" - + "/{parent=projects/*/locations/*/entryGroups/*}/entries:\005entry\022\321\001\n" - + "\013UpdateEntry\022/.google.cloud.datacatalog.v1.UpdateEntryR" - + "equest\032\".google.cloud.datacatalog.v1.Ent" - + "ry\"m\210\002\001\332A\005entry\332A\021entry,update_mask\202\323\344\223\002", - "H2?/v1/{entry.name=projects/*/locations/*/entryGroups/*/entries/*}:\005entry\022\243\001\n" - + "\013DeleteEntry\022/.google.cloud.datacatalog.v1." - + "DeleteEntryRequest\032\026.google.protobuf.Emp" - + "ty\"K\210\002\001\332A\004name\202\323\344\223\002;*9/v1/{name=projects" - + "/*/locations/*/entryGroups/*/entries/*}\022\251\001\n" - + "\010GetEntry\022,.google.cloud.datacatalog." - + "v1.GetEntryRequest\032\".google.cloud.dataca" - + "talog.v1.Entry\"K\210\002\001\332A\004name\202\323\344\223\002;\0229/v1/{n" - + "ame=projects/*/locations/*/entryGroups/*/entries/*}\022\201\001\n" - + "\013LookupEntry\022/.google.cloud.datacatalog.v1.LookupEntryRequest\032\".g" - + "oogle.cloud.datacatalog.v1.Entry\"\035\210\002\001\202\323\344\223\002\024\022\022/v1/entries:lookup\022\277\001\n" - + "\013ListEntries\022/.google.cloud.datacatalog.v1.ListEntrie" - + "sRequest\0320.google.cloud.datacatalog.v1.L" - + "istEntriesResponse\"M\210\002\001\332A\006parent\202\323\344\223\002;\0229" - + "/v1/{parent=projects/*/locations/*/entryGroups/*}/entries\022\327\001\n" - + "\023ModifyEntryOverview\0227.google.cloud.datacatalog.v1.ModifyEn" - + "tryOverviewRequest\032*.google.cloud.dataca" - + "talog.v1.EntryOverview\"[\210\002\001\202\323\344\223\002R\"M/v1/{" - + "name=projects/*/locations/*/entryGroups/*/entries/*}:modifyEntryOverview:\001*\022\322\001\n" - + "\023ModifyEntryContacts\0227.google.cloud.datac" - + "atalog.v1.ModifyEntryContactsRequest\032%.g" - + "oogle.cloud.datacatalog.v1.Contacts\"[\210\002\001" - + "\202\323\344\223\002R\"M/v1/{name=projects/*/locations/*" - + "/entryGroups/*/entries/*}:modifyEntryContacts:\001*\022\345\001\n" - + "\021CreateTagTemplate\0225.google.cloud.datacatalog.v1.CreateTagTemplateRe" - + "quest\032(.google.cloud.datacatalog.v1.TagT" - + "emplate\"o\210\002\001\332A#parent,tag_template_id,ta" - + "g_template\202\323\344\223\002@\"0/v1/{parent=projects/*" - + "/locations/*}/tagTemplates:\014tag_template\022\262\001\n" - + "\016GetTagTemplate\0222.google.cloud.datacatalog.v1.GetTagTemplateRequest\032(.google" - + ".cloud.datacatalog.v1.TagTemplate\"B\210\002\001\332A" - + "\004name\202\323\344\223\0022\0220/v1/{name=projects/*/locations/*/tagTemplates/*}\022\367\001\n" - + "\021UpdateTagTemplate\0225.google.cloud.datacatalog.v1.Update" - + "TagTemplateRequest\032(.google.cloud.dataca" - + "talog.v1.TagTemplate\"\200\001\210\002\001\332A\014tag_templat" - + "e\332A\030tag_template,update_mask\202\323\344\223\002M2=/v1/" - + "{tag_template.name=projects/*/locations/*/tagTemplates/*}:\014tag_template\022\254\001\n" - + "\021DeleteTagTemplate\0225.google.cloud.datacatalog" - + ".v1.DeleteTagTemplateRequest\032\026.google.protobuf.Empty\"H\210\002\001\332A\n" - + "name,force\202\323\344\223\0022*0/v" - + "1/{name=projects/*/locations/*/tagTemplates/*}\022\220\002\n" - + "\026CreateTagTemplateField\022:.google.cloud.datacatalog.v1.CreateTagTemplat" - + "eFieldRequest\032-.google.cloud.datacatalog" - + ".v1.TagTemplateField\"\212\001\210\002\001\332A/parent,tag_" - + "template_field_id,tag_template_field\202\323\344\223" - + "\002O\"9/v1/{parent=projects/*/locations/*/t" - + "agTemplates/*}/fields:\022tag_template_field\022\236\002\n" - + "\026UpdateTagTemplateField\022:.google.cloud.datacatalog.v1.UpdateTagTemplateFiel" - + "dRequest\032-.google.cloud.datacatalog.v1.T" - + "agTemplateField\"\230\001\210\002\001\332A\027name,tag_templat" - + "e_field\332A#name,tag_template_field,update" - + "_mask\202\323\344\223\002O29/v1/{name=projects/*/locati" - + "ons/*/tagTemplates/*/fields/*}:\022tag_template_field\022\364\001\n" - + "\026RenameTagTemplateField\022:.google.cloud.datacatalog.v1.RenameTagTem" - + "plateFieldRequest\032-.google.cloud.datacat" - + "alog.v1.TagTemplateField\"o\210\002\001\332A\036name,new" - + "_tag_template_field_id\202\323\344\223\002E\"@/v1/{name=" - + "projects/*/locations/*/tagTemplates/*/fields/*}:rename:\001*\022\225\002\n" - + "\037RenameTagTemplateFieldEnumValue\022C.google.cloud.datacatalog" - + ".v1.RenameTagTemplateFieldEnumValueReque" - + "st\032-.google.cloud.datacatalog.v1.TagTemplateField\"~\210\002\001\332A" - + " name,new_enum_value_display_name\202\323\344\223\002R\"M/v1/{name=projects/*/lo" - + "cations/*/tagTemplates/*/fields/*/enumValues/*}:rename:\001*\022\277\001\n" - + "\026DeleteTagTemplateField\022:.google.cloud.datacatalog.v1.Delet" - + "eTagTemplateFieldRequest\032\026.google.protobuf.Empty\"Q\210\002\001\332A\n" - + "name,force\202\323\344\223\002;*9/v1/{n" - + "ame=projects/*/locations/*/tagTemplates/*/fields/*}\022\374\001\n" - + "\tCreateTag\022-.google.cloud.datacatalog.v1.CreateTagRequest\032" - + " .google.cloud.datacatalog.v1.Tag\"\235\001\210\002\001\332A\n" - + "parent,tag\202\323\344\223\002\206\001\"@/v1/{parent=projects/*/loc" - + "ations/*/entryGroups/*/entries/*}/tags:\003" - + "tagZ=\"6/v1/{parent=projects/*/locations/*/entryGroups/*}/tags:\003tag\022\217\002\n" - + "\tUpdateTag\022-.google.cloud.datacatalog.v1.UpdateTagRequest\032" - + " .google.cloud.datacatalog.v1.Ta" - + "g\"\260\001\210\002\001\332A\003tag\332A\017tag,update_mask\202\323\344\223\002\216\0012D" - + "/v1/{tag.name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}:\003tagZA2:/v1" - + "/{tag.name=projects/*/locations/*/entryGroups/*/tags/*}:\003tag\022\341\001\n" - + "\tDeleteTag\022-.google.cloud.datacatalog.v1.DeleteTagReques" - + "t\032\026.google.protobuf.Empty\"\214\001\210\002\001\332A\004name\202\323" - + "\344\223\002|*@/v1/{name=projects/*/locations/*/e" - + "ntryGroups/*/entries/*/tags/*}Z8*6/v1/{n" - + "ame=projects/*/locations/*/entryGroups/*/tags/*}\022\370\001\n" - + "\010ListTags\022,.google.cloud.datacatalog.v1.ListTagsRequest\032-.google.clo" - + "ud.datacatalog.v1.ListTagsResponse\"\216\001\210\002\001" - + "\332A\006parent\202\323\344\223\002|\022@/v1/{parent=projects/*/" - + "locations/*/entryGroups/*/entries/*}/tag" - + "sZ8\0226/v1/{parent=projects/*/locations/*/entryGroups/*}/tags\022\355\001\n\r" - + "ReconcileTags\0221.google.cloud.datacatalog.v1.ReconcileTag" - + "sRequest\032\035.google.longrunning.Operation\"\211\001\210\002\001\312A.\n" - + "\025ReconcileTagsResponse\022\025Reconci" - + "leTagsMetadata\202\323\344\223\002O\"J/v1/{parent=projec" - + "ts/*/locations/*/entryGroups/*/entries/*}/tags:reconcile:\001*\022\277\001\n" - + "\tStarEntry\022-.google.cloud.datacatalog.v1.StarEntryRequest" - + "\032..google.cloud.datacatalog.v1.StarEntry" - + "Response\"S\210\002\001\332A\004name\202\323\344\223\002C\">/v1/{name=pr" - + "ojects/*/locations/*/entryGroups/*/entries/*}:star:\001*\022\307\001\n" - + "\013UnstarEntry\022/.google.cloud.datacatalog.v1.UnstarEntryRequest\0320" - + ".google.cloud.datacatalog.v1.UnstarEntry" - + "Response\"U\210\002\001\332A\004name\202\323\344\223\002E\"@/v1/{name=pr" - + "ojects/*/locations/*/entryGroups/*/entries/*}:unstar:\001*\022\365\001\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequest\032\025.google.ia" - + "m.v1.Policy\"\251\001\210\002\001\332A\017resource,policy\202\323\344\223\002" - + "\215\001\"A/v1/{resource=projects/*/locations/*" - + "/tagTemplates/*}:setIamPolicy:\001*ZE\"@/v1/" - + "{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy:\001*\022\277\002\n" - + "\014GetIamPolicy\022\".google.iam.v1.GetIamPolicyRequest\032\025.g" - + "oogle.iam.v1.Policy\"\363\001\210\002\001\332A\010resource\202\323\344\223" - + "\002\336\001\"A/v1/{resource=projects/*/locations/" - + "*/tagTemplates/*}:getIamPolicy:\001*ZE\"@/v1/{resource=projects/*/locations/*/entryG" - + "roups/*}:getIamPolicy:\001*ZO\"J/v1/{resourc" - + "e=projects/*/locations/*/entryGroups/*/entries/*}:getIamPolicy:\001*\022\346\002\n" - + "\022TestIamPermissions\022(.google.iam.v1.TestIamPermissi" - + "onsRequest\032).google.iam.v1.TestIamPermis" - + "sionsResponse\"\372\001\210\002\001\202\323\344\223\002\360\001\"G/v1/{resourc" - + "e=projects/*/locations/*/tagTemplates/*}:testIamPermissions:\001*ZK\"F/v1/{resource=" - + "projects/*/locations/*/entryGroups/*}:testIamPermissions:\001*ZU\"P/v1/{resource=pro" - + "jects/*/locations/*/entryGroups/*/entries/*}:testIamPermissions:\001*\022\342\001\n\r" - + "ImportEntries\0221.google.cloud.datacatalog.v1.Impor" - + "tEntriesRequest\032\035.google.longrunning.Operation\"\177\210\002\001\312A.\n" - + "\025ImportEntriesResponse\022\025I" - + "mportEntriesMetadata\202\323\344\223\002E\"@/v1/{parent=" - + "projects/*/locations/*/entryGroups/*}/entries:import:\001*\022\332\001\n" - + "\tSetConfig\022-.google.cloud.datacatalog.v1.SetConfigRequest\032,.g" - + "oogle.cloud.datacatalog.v1.MigrationConf" - + "ig\"p\210\002\001\202\323\344\223\002g\"0/v1/{name=organizations/*" - + "/locations/*}:setConfig:\001*Z0\"+/v1/{name=projects/*/locations/*}:setConfig:\001*\022\267\001\n" - + "\016RetrieveConfig\0222.google.cloud.datacatal" - + "og.v1.RetrieveConfigRequest\032/.google.clo" - + "ud.datacatalog.v1.OrganizationConfig\"@\210\002" - + "\001\202\323\344\223\0027\0225/v1/{name=organizations/*/locations/*}:retrieveConfig\022\215\002\n" - + "\027RetrieveEffectiveConfig\022;.google.cloud.datacatalog.v1" - + ".RetrieveEffectiveConfigRequest\032,.google" - + ".cloud.datacatalog.v1.MigrationConfig\"\206\001" - + "\210\002\001\202\323\344\223\002}\022>/v1/{name=organizations/*/loc" - + "ations/*}:retrieveEffectiveConfigZ;\0229/v1/{name=projects/*/locations/*}:retrieveE" - + "ffectiveConfig\032Q\210\002\001\312A\032datacatalog.google" - + "apis.com\322A.https://www.googleapis.com/auth/cloud-platformB\207\003\n" - + "\037com.google.cloud.datacatalog.v1P\001ZAcloud.google.com/go/dat" - + "acatalog/apiv1/datacatalogpb;datacatalog" - + "pb\252\002\033Google.Cloud.DataCatalog.V1\312\002\033Googl" - + "e\\Cloud\\DataCatalog\\V1\352\002\036Google::Cloud::DataCatalog::V1\352A\300\001\n" - + "4datacatalog.googleapis.com/TagTemplateFieldEnumValue\022\207\001proj" - + "ects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_temp" - + "late_field_id}/enumValues/{enum_value_display_name}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.ResourceProto.getDescriptor(), - com.google.cloud.datacatalog.v1.BigQueryProto.getDescriptor(), - com.google.cloud.datacatalog.v1.Common.getDescriptor(), - com.google.cloud.datacatalog.v1.DataSourceProto.getDescriptor(), - com.google.cloud.datacatalog.v1.DataplexSpecProto.getDescriptor(), - com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass.getDescriptor(), - com.google.cloud.datacatalog.v1.SchemaOuterClass.getDescriptor(), - com.google.cloud.datacatalog.v1.Search.getDescriptor(), - com.google.cloud.datacatalog.v1.TableSpecOuterClass.getDescriptor(), - com.google.cloud.datacatalog.v1.Tags.getDescriptor(), - com.google.cloud.datacatalog.v1.Timestamps.getDescriptor(), - com.google.cloud.datacatalog.v1.Usage.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.longrunning.OperationsProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.rpc.StatusProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_descriptor, - new java.lang.String[] { - "Scope", "Query", "PageSize", "PageToken", "OrderBy", "AdminSearch", - }); - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_descriptor = - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_descriptor.getNestedType( - 0); - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_descriptor, - new java.lang.String[] { - "IncludeOrgIds", - "IncludeProjectIds", - "IncludeGcpPublicDatasets", - "RestrictedLocations", - "StarredOnly", - "IncludePublicTagTemplates", - }); - internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_descriptor, - new java.lang.String[] { - "Results", "TotalSize", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CreateEntryGroupRequest_descriptor, - new java.lang.String[] { - "Parent", "EntryGroupId", "EntryGroup", - }); - internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_descriptor = - getDescriptor().getMessageType(3); - internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_descriptor, - new java.lang.String[] { - "EntryGroup", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_descriptor = - getDescriptor().getMessageType(4); - internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_descriptor, - new java.lang.String[] { - "Name", "ReadMask", - }); - internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_descriptor = - getDescriptor().getMessageType(5); - internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_descriptor, - new java.lang.String[] { - "Name", "Force", - }); - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_descriptor = - getDescriptor().getMessageType(6); - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_descriptor = - getDescriptor().getMessageType(7); - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_descriptor, - new java.lang.String[] { - "EntryGroups", "NextPageToken", - }); - internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_descriptor = - getDescriptor().getMessageType(8); - internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CreateEntryRequest_descriptor, - new java.lang.String[] { - "Parent", "EntryId", "Entry", - }); - internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_descriptor = - getDescriptor().getMessageType(9); - internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_descriptor, - new java.lang.String[] { - "Entry", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_descriptor = - getDescriptor().getMessageType(10); - internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_GetEntryRequest_descriptor = - getDescriptor().getMessageType(11); - internal_static_google_cloud_datacatalog_v1_GetEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GetEntryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_descriptor = - getDescriptor().getMessageType(12); - internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_descriptor, - new java.lang.String[] { - "LinkedResource", - "SqlResource", - "FullyQualifiedName", - "Project", - "Location", - "TargetName", - }); - internal_static_google_cloud_datacatalog_v1_Entry_descriptor = - getDescriptor().getMessageType(13); - internal_static_google_cloud_datacatalog_v1_Entry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Entry_descriptor, - new java.lang.String[] { - "Name", - "LinkedResource", - "FullyQualifiedName", - "Type", - "UserSpecifiedType", - "IntegratedSystem", - "UserSpecifiedSystem", - "SqlDatabaseSystemSpec", - "LookerSystemSpec", - "CloudBigtableSystemSpec", - "GcsFilesetSpec", - "BigqueryTableSpec", - "BigqueryDateShardedSpec", - "DatabaseTableSpec", - "DataSourceConnectionSpec", - "RoutineSpec", - "DatasetSpec", - "FilesetSpec", - "ServiceSpec", - "ModelSpec", - "FeatureOnlineStoreSpec", - "DisplayName", - "Description", - "BusinessContext", - "Schema", - "SourceSystemTimestamps", - "UsageSignal", - "Labels", - "DataSource", - "PersonalDetails", - "EntryType", - "System", - "SystemSpec", - "TypeSpec", - "Spec", - }); - internal_static_google_cloud_datacatalog_v1_Entry_LabelsEntry_descriptor = - internal_static_google_cloud_datacatalog_v1_Entry_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_Entry_LabelsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Entry_LabelsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_descriptor = - getDescriptor().getMessageType(14); - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_descriptor, - new java.lang.String[] { - "Type", "DataplexTable", "DatabaseViewSpec", - }); - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_descriptor = - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DatabaseTableSpec_DatabaseViewSpec_descriptor, - new java.lang.String[] { - "ViewType", "BaseTable", "SqlQuery", "SourceDefinition", - }); - internal_static_google_cloud_datacatalog_v1_FilesetSpec_descriptor = - getDescriptor().getMessageType(15); - internal_static_google_cloud_datacatalog_v1_FilesetSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_FilesetSpec_descriptor, - new java.lang.String[] { - "DataplexFileset", - }); - internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_descriptor = - getDescriptor().getMessageType(16); - internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DataSourceConnectionSpec_descriptor, - new java.lang.String[] { - "BigqueryConnectionSpec", - }); - internal_static_google_cloud_datacatalog_v1_RoutineSpec_descriptor = - getDescriptor().getMessageType(17); - internal_static_google_cloud_datacatalog_v1_RoutineSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_RoutineSpec_descriptor, - new java.lang.String[] { - "RoutineType", - "Language", - "RoutineArguments", - "ReturnType", - "DefinitionBody", - "BigqueryRoutineSpec", - "SystemSpec", - }); - internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_descriptor = - internal_static_google_cloud_datacatalog_v1_RoutineSpec_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_descriptor, - new java.lang.String[] { - "Name", "Mode", "Type", - }); - internal_static_google_cloud_datacatalog_v1_DatasetSpec_descriptor = - getDescriptor().getMessageType(18); - internal_static_google_cloud_datacatalog_v1_DatasetSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DatasetSpec_descriptor, - new java.lang.String[] { - "VertexDatasetSpec", "SystemSpec", - }); - internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_descriptor = - getDescriptor().getMessageType(19); - internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_descriptor, - new java.lang.String[] { - "SqlEngine", "DatabaseVersion", "InstanceHost", - }); - internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_descriptor = - getDescriptor().getMessageType(20); - internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_descriptor, - new java.lang.String[] { - "ParentInstanceId", - "ParentInstanceDisplayName", - "ParentModelId", - "ParentModelDisplayName", - "ParentViewId", - "ParentViewDisplayName", - }); - internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_descriptor = - getDescriptor().getMessageType(21); - internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CloudBigtableSystemSpec_descriptor, - new java.lang.String[] { - "InstanceDisplayName", - }); - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_descriptor = - getDescriptor().getMessageType(22); - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_descriptor, - new java.lang.String[] { - "CloudBigtableClusterSpecs", - }); - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_descriptor = - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_descriptor - .getNestedType(0); - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CloudBigtableInstanceSpec_CloudBigtableClusterSpec_descriptor, - new java.lang.String[] { - "DisplayName", "Location", "Type", "LinkedResource", - }); - internal_static_google_cloud_datacatalog_v1_ServiceSpec_descriptor = - getDescriptor().getMessageType(23); - internal_static_google_cloud_datacatalog_v1_ServiceSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ServiceSpec_descriptor, - new java.lang.String[] { - "CloudBigtableInstanceSpec", "SystemSpec", - }); - internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_descriptor = - getDescriptor().getMessageType(24); - internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_descriptor, - new java.lang.String[] { - "SourceType", "Copy", - }); - internal_static_google_cloud_datacatalog_v1_VertexModelSpec_descriptor = - getDescriptor().getMessageType(25); - internal_static_google_cloud_datacatalog_v1_VertexModelSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_VertexModelSpec_descriptor, - new java.lang.String[] { - "VersionId", - "VersionAliases", - "VersionDescription", - "VertexModelSourceInfo", - "ContainerImageUri", - }); - internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_descriptor = - getDescriptor().getMessageType(26); - internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_descriptor, - new java.lang.String[] { - "DataItemCount", "DataType", - }); - internal_static_google_cloud_datacatalog_v1_ModelSpec_descriptor = - getDescriptor().getMessageType(27); - internal_static_google_cloud_datacatalog_v1_ModelSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ModelSpec_descriptor, - new java.lang.String[] { - "VertexModelSpec", "SystemSpec", - }); - internal_static_google_cloud_datacatalog_v1_FeatureOnlineStoreSpec_descriptor = - getDescriptor().getMessageType(28); - internal_static_google_cloud_datacatalog_v1_FeatureOnlineStoreSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_FeatureOnlineStoreSpec_descriptor, - new java.lang.String[] { - "StorageType", - }); - internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor = - getDescriptor().getMessageType(29); - internal_static_google_cloud_datacatalog_v1_BusinessContext_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_BusinessContext_descriptor, - new java.lang.String[] { - "EntryOverview", "Contacts", - }); - internal_static_google_cloud_datacatalog_v1_EntryOverview_descriptor = - getDescriptor().getMessageType(30); - internal_static_google_cloud_datacatalog_v1_EntryOverview_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_EntryOverview_descriptor, - new java.lang.String[] { - "Overview", - }); - internal_static_google_cloud_datacatalog_v1_Contacts_descriptor = - getDescriptor().getMessageType(31); - internal_static_google_cloud_datacatalog_v1_Contacts_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Contacts_descriptor, - new java.lang.String[] { - "People", - }); - internal_static_google_cloud_datacatalog_v1_Contacts_Person_descriptor = - internal_static_google_cloud_datacatalog_v1_Contacts_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_Contacts_Person_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Contacts_Person_descriptor, - new java.lang.String[] { - "Designation", "Email", - }); - internal_static_google_cloud_datacatalog_v1_EntryGroup_descriptor = - getDescriptor().getMessageType(32); - internal_static_google_cloud_datacatalog_v1_EntryGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_EntryGroup_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Description", - "DataCatalogTimestamps", - "TransferredToDataplex", - }); - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_descriptor = - getDescriptor().getMessageType(33); - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateRequest_descriptor, - new java.lang.String[] { - "Parent", "TagTemplateId", "TagTemplate", - }); - internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_descriptor = - getDescriptor().getMessageType(34); - internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_descriptor = - getDescriptor().getMessageType(35); - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_descriptor, - new java.lang.String[] { - "TagTemplate", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_descriptor = - getDescriptor().getMessageType(36); - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_descriptor, - new java.lang.String[] { - "Name", "Force", - }); - internal_static_google_cloud_datacatalog_v1_CreateTagRequest_descriptor = - getDescriptor().getMessageType(37); - internal_static_google_cloud_datacatalog_v1_CreateTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CreateTagRequest_descriptor, - new java.lang.String[] { - "Parent", "Tag", - }); - internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_descriptor = - getDescriptor().getMessageType(38); - internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_descriptor, - new java.lang.String[] { - "Tag", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_descriptor = - getDescriptor().getMessageType(39); - internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageType(40); - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CreateTagTemplateFieldRequest_descriptor, - new java.lang.String[] { - "Parent", "TagTemplateFieldId", "TagTemplateField", - }); - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageType(41); - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_descriptor, - new java.lang.String[] { - "Name", "TagTemplateField", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageType(42); - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_descriptor, - new java.lang.String[] { - "Name", "NewTagTemplateFieldId", - }); - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_descriptor = - getDescriptor().getMessageType(43); - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_descriptor, - new java.lang.String[] { - "Name", "NewEnumValueDisplayName", - }); - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageType(44); - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_descriptor, - new java.lang.String[] { - "Name", "Force", - }); - internal_static_google_cloud_datacatalog_v1_ListTagsRequest_descriptor = - getDescriptor().getMessageType(45); - internal_static_google_cloud_datacatalog_v1_ListTagsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListTagsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_datacatalog_v1_ListTagsResponse_descriptor = - getDescriptor().getMessageType(46); - internal_static_google_cloud_datacatalog_v1_ListTagsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListTagsResponse_descriptor, - new java.lang.String[] { - "Tags", "NextPageToken", - }); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_descriptor = - getDescriptor().getMessageType(47); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_descriptor, - new java.lang.String[] { - "Parent", "TagTemplate", "ForceDeleteMissing", "Tags", - }); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_descriptor = - getDescriptor().getMessageType(48); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_descriptor, - new java.lang.String[] { - "CreatedTagsCount", "UpdatedTagsCount", "DeletedTagsCount", - }); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_descriptor = - getDescriptor().getMessageType(49); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_descriptor, - new java.lang.String[] { - "State", "Errors", - }); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_ErrorsEntry_descriptor = - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_descriptor.getNestedType( - 0); - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_ErrorsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_ErrorsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_descriptor = - getDescriptor().getMessageType(50); - internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "ReadMask", - }); - internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_descriptor = - getDescriptor().getMessageType(51); - internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_descriptor, - new java.lang.String[] { - "Entries", "NextPageToken", - }); - internal_static_google_cloud_datacatalog_v1_StarEntryRequest_descriptor = - getDescriptor().getMessageType(52); - internal_static_google_cloud_datacatalog_v1_StarEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_StarEntryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_StarEntryResponse_descriptor = - getDescriptor().getMessageType(53); - internal_static_google_cloud_datacatalog_v1_StarEntryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_StarEntryResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_descriptor = - getDescriptor().getMessageType(54); - internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_descriptor = - getDescriptor().getMessageType(55); - internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_descriptor = - getDescriptor().getMessageType(56); - internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_descriptor, - new java.lang.String[] { - "Parent", "GcsBucketPath", "JobId", "Source", - }); - internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_descriptor = - getDescriptor().getMessageType(57); - internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_descriptor, - new java.lang.String[] { - "UpsertedEntriesCount", "DeletedEntriesCount", - }); - internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_descriptor = - getDescriptor().getMessageType(58); - internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_descriptor, - new java.lang.String[] { - "State", "Errors", - }); - internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_descriptor = - getDescriptor().getMessageType(59); - internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_descriptor, - new java.lang.String[] { - "Name", "EntryOverview", - }); - internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor = - getDescriptor().getMessageType(60); - internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor, - new java.lang.String[] { - "Name", "Contacts", - }); - internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor = - getDescriptor().getMessageType(61); - internal_static_google_cloud_datacatalog_v1_SetConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor, - new java.lang.String[] { - "Name", "TagTemplateMigration", "CatalogUiExperience", "Configuration", - }); - internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor = - getDescriptor().getMessageType(62); - internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor = - getDescriptor().getMessageType(63); - internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor = - getDescriptor().getMessageType(64); - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor, - new java.lang.String[] { - "Config", - }); - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_descriptor = - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor = - getDescriptor().getMessageType(65); - internal_static_google_cloud_datacatalog_v1_MigrationConfig_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor, - new java.lang.String[] { - "TagTemplateMigration", "CatalogUiExperience", "TemplateMigrationEnabledTime", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datacatalog.v1.BigQueryProto.getDescriptor(); - com.google.cloud.datacatalog.v1.Common.getDescriptor(); - com.google.cloud.datacatalog.v1.DataSourceProto.getDescriptor(); - com.google.cloud.datacatalog.v1.DataplexSpecProto.getDescriptor(); - com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass.getDescriptor(); - com.google.cloud.datacatalog.v1.SchemaOuterClass.getDescriptor(); - com.google.cloud.datacatalog.v1.Search.getDescriptor(); - com.google.cloud.datacatalog.v1.TableSpecOuterClass.getDescriptor(); - com.google.cloud.datacatalog.v1.Tags.getDescriptor(); - com.google.cloud.datacatalog.v1.Timestamps.getDescriptor(); - com.google.cloud.datacatalog.v1.Usage.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.longrunning.OperationsProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.rpc.StatusProto.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.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceDefinition); - registry.add(com.google.api.ResourceProto.resourceReference); - 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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTable.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTable.java deleted file mode 100644 index b01fd4ad0550..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTable.java +++ /dev/null @@ -1,1148 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dataplex_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * External table registered by Dataplex.
- * Dataplex publishes data discovered from an asset into multiple other systems
- * (BigQuery, DPMS) in form of tables. We call them "external tables". External
- * tables are also synced into the Data Catalog.
- * This message contains pointers to
- * those external tables (fully qualified name, resource name et cetera) within
- * the Data Catalog.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexExternalTable} - */ -@com.google.protobuf.Generated -public final class DataplexExternalTable extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexExternalTable) - DataplexExternalTableOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataplexExternalTable"); - } - - // Use DataplexExternalTable.newBuilder() to construct. - private DataplexExternalTable(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DataplexExternalTable() { - system_ = 0; - fullyQualifiedName_ = ""; - googleCloudResource_ = ""; - dataCatalogEntry_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataplexExternalTable.class, - com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder.class); - } - - public static final int SYSTEM_FIELD_NUMBER = 1; - private int system_ = 0; - - /** - * - * - *
-   * Service in which the external table is registered.
-   * 
- * - * .google.cloud.datacatalog.v1.IntegratedSystem system = 1; - * - * @return The enum numeric value on the wire for system. - */ - @java.lang.Override - public int getSystemValue() { - return system_; - } - - /** - * - * - *
-   * Service in which the external table is registered.
-   * 
- * - * .google.cloud.datacatalog.v1.IntegratedSystem system = 1; - * - * @return The system. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.IntegratedSystem getSystem() { - com.google.cloud.datacatalog.v1.IntegratedSystem result = - com.google.cloud.datacatalog.v1.IntegratedSystem.forNumber(system_); - return result == null ? com.google.cloud.datacatalog.v1.IntegratedSystem.UNRECOGNIZED : result; - } - - public static final int FULLY_QUALIFIED_NAME_FIELD_NUMBER = 28; - - @SuppressWarnings("serial") - private volatile java.lang.Object fullyQualifiedName_ = ""; - - /** - * - * - *
-   * Fully qualified name (FQN) of the external table.
-   * 
- * - * string fully_qualified_name = 28; - * - * @return The fullyQualifiedName. - */ - @java.lang.Override - public java.lang.String getFullyQualifiedName() { - java.lang.Object ref = fullyQualifiedName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullyQualifiedName_ = s; - return s; - } - } - - /** - * - * - *
-   * Fully qualified name (FQN) of the external table.
-   * 
- * - * string fully_qualified_name = 28; - * - * @return The bytes for fullyQualifiedName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { - java.lang.Object ref = fullyQualifiedName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fullyQualifiedName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GOOGLE_CLOUD_RESOURCE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object googleCloudResource_ = ""; - - /** - * - * - *
-   * Google Cloud resource name of the external table.
-   * 
- * - * string google_cloud_resource = 3; - * - * @return The googleCloudResource. - */ - @java.lang.Override - public java.lang.String getGoogleCloudResource() { - java.lang.Object ref = googleCloudResource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - googleCloudResource_ = s; - return s; - } - } - - /** - * - * - *
-   * Google Cloud resource name of the external table.
-   * 
- * - * string google_cloud_resource = 3; - * - * @return The bytes for googleCloudResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGoogleCloudResourceBytes() { - java.lang.Object ref = googleCloudResource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - googleCloudResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_CATALOG_ENTRY_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object dataCatalogEntry_ = ""; - - /** - * - * - *
-   * Name of the Data Catalog entry representing the external table.
-   * 
- * - * string data_catalog_entry = 4; - * - * @return The dataCatalogEntry. - */ - @java.lang.Override - public java.lang.String getDataCatalogEntry() { - java.lang.Object ref = dataCatalogEntry_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataCatalogEntry_ = s; - return s; - } - } - - /** - * - * - *
-   * Name of the Data Catalog entry representing the external table.
-   * 
- * - * string data_catalog_entry = 4; - * - * @return The bytes for dataCatalogEntry. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDataCatalogEntryBytes() { - java.lang.Object ref = dataCatalogEntry_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataCatalogEntry_ = 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 (system_ - != com.google.cloud.datacatalog.v1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, system_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(googleCloudResource_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, googleCloudResource_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataCatalogEntry_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, dataCatalogEntry_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullyQualifiedName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 28, fullyQualifiedName_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (system_ - != com.google.cloud.datacatalog.v1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, system_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(googleCloudResource_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, googleCloudResource_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(dataCatalogEntry_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, dataCatalogEntry_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullyQualifiedName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(28, fullyQualifiedName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.DataplexExternalTable)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DataplexExternalTable other = - (com.google.cloud.datacatalog.v1.DataplexExternalTable) obj; - - if (system_ != other.system_) return false; - if (!getFullyQualifiedName().equals(other.getFullyQualifiedName())) return false; - if (!getGoogleCloudResource().equals(other.getGoogleCloudResource())) return false; - if (!getDataCatalogEntry().equals(other.getDataCatalogEntry())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SYSTEM_FIELD_NUMBER; - hash = (53 * hash) + system_; - hash = (37 * hash) + FULLY_QUALIFIED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFullyQualifiedName().hashCode(); - hash = (37 * hash) + GOOGLE_CLOUD_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getGoogleCloudResource().hashCode(); - hash = (37 * hash) + DATA_CATALOG_ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getDataCatalogEntry().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.DataplexExternalTable prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * External table registered by Dataplex.
-   * Dataplex publishes data discovered from an asset into multiple other systems
-   * (BigQuery, DPMS) in form of tables. We call them "external tables". External
-   * tables are also synced into the Data Catalog.
-   * This message contains pointers to
-   * those external tables (fully qualified name, resource name et cetera) within
-   * the Data Catalog.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexExternalTable} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DataplexExternalTable) - com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataplexExternalTable.class, - com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DataplexExternalTable.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - system_ = 0; - fullyQualifiedName_ = ""; - googleCloudResource_ = ""; - dataCatalogEntry_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexExternalTable getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DataplexExternalTable.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexExternalTable build() { - com.google.cloud.datacatalog.v1.DataplexExternalTable result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexExternalTable buildPartial() { - com.google.cloud.datacatalog.v1.DataplexExternalTable result = - new com.google.cloud.datacatalog.v1.DataplexExternalTable(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DataplexExternalTable result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.system_ = system_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.fullyQualifiedName_ = fullyQualifiedName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.googleCloudResource_ = googleCloudResource_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.dataCatalogEntry_ = dataCatalogEntry_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.DataplexExternalTable) { - return mergeFrom((com.google.cloud.datacatalog.v1.DataplexExternalTable) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DataplexExternalTable other) { - if (other == com.google.cloud.datacatalog.v1.DataplexExternalTable.getDefaultInstance()) - return this; - if (other.system_ != 0) { - setSystemValue(other.getSystemValue()); - } - if (!other.getFullyQualifiedName().isEmpty()) { - fullyQualifiedName_ = other.fullyQualifiedName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getGoogleCloudResource().isEmpty()) { - googleCloudResource_ = other.googleCloudResource_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getDataCatalogEntry().isEmpty()) { - dataCatalogEntry_ = other.dataCatalogEntry_; - 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 8: - { - system_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 26: - { - googleCloudResource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - dataCatalogEntry_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 226: - { - fullyQualifiedName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - 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 bitField0_; - - private int system_ = 0; - - /** - * - * - *
-     * Service in which the external table is registered.
-     * 
- * - * .google.cloud.datacatalog.v1.IntegratedSystem system = 1; - * - * @return The enum numeric value on the wire for system. - */ - @java.lang.Override - public int getSystemValue() { - return system_; - } - - /** - * - * - *
-     * Service in which the external table is registered.
-     * 
- * - * .google.cloud.datacatalog.v1.IntegratedSystem system = 1; - * - * @param value The enum numeric value on the wire for system to set. - * @return This builder for chaining. - */ - public Builder setSystemValue(int value) { - system_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Service in which the external table is registered.
-     * 
- * - * .google.cloud.datacatalog.v1.IntegratedSystem system = 1; - * - * @return The system. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.IntegratedSystem getSystem() { - com.google.cloud.datacatalog.v1.IntegratedSystem result = - com.google.cloud.datacatalog.v1.IntegratedSystem.forNumber(system_); - return result == null - ? com.google.cloud.datacatalog.v1.IntegratedSystem.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Service in which the external table is registered.
-     * 
- * - * .google.cloud.datacatalog.v1.IntegratedSystem system = 1; - * - * @param value The system to set. - * @return This builder for chaining. - */ - public Builder setSystem(com.google.cloud.datacatalog.v1.IntegratedSystem value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - system_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Service in which the external table is registered.
-     * 
- * - * .google.cloud.datacatalog.v1.IntegratedSystem system = 1; - * - * @return This builder for chaining. - */ - public Builder clearSystem() { - bitField0_ = (bitField0_ & ~0x00000001); - system_ = 0; - onChanged(); - return this; - } - - private java.lang.Object fullyQualifiedName_ = ""; - - /** - * - * - *
-     * Fully qualified name (FQN) of the external table.
-     * 
- * - * string fully_qualified_name = 28; - * - * @return The fullyQualifiedName. - */ - public java.lang.String getFullyQualifiedName() { - java.lang.Object ref = fullyQualifiedName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullyQualifiedName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Fully qualified name (FQN) of the external table.
-     * 
- * - * string fully_qualified_name = 28; - * - * @return The bytes for fullyQualifiedName. - */ - public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { - java.lang.Object ref = fullyQualifiedName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fullyQualifiedName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Fully qualified name (FQN) of the external table.
-     * 
- * - * string fully_qualified_name = 28; - * - * @param value The fullyQualifiedName to set. - * @return This builder for chaining. - */ - public Builder setFullyQualifiedName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - fullyQualifiedName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Fully qualified name (FQN) of the external table.
-     * 
- * - * string fully_qualified_name = 28; - * - * @return This builder for chaining. - */ - public Builder clearFullyQualifiedName() { - fullyQualifiedName_ = getDefaultInstance().getFullyQualifiedName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Fully qualified name (FQN) of the external table.
-     * 
- * - * string fully_qualified_name = 28; - * - * @param value The bytes for fullyQualifiedName to set. - * @return This builder for chaining. - */ - public Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - fullyQualifiedName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object googleCloudResource_ = ""; - - /** - * - * - *
-     * Google Cloud resource name of the external table.
-     * 
- * - * string google_cloud_resource = 3; - * - * @return The googleCloudResource. - */ - public java.lang.String getGoogleCloudResource() { - java.lang.Object ref = googleCloudResource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - googleCloudResource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Google Cloud resource name of the external table.
-     * 
- * - * string google_cloud_resource = 3; - * - * @return The bytes for googleCloudResource. - */ - public com.google.protobuf.ByteString getGoogleCloudResourceBytes() { - java.lang.Object ref = googleCloudResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - googleCloudResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Google Cloud resource name of the external table.
-     * 
- * - * string google_cloud_resource = 3; - * - * @param value The googleCloudResource to set. - * @return This builder for chaining. - */ - public Builder setGoogleCloudResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - googleCloudResource_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Google Cloud resource name of the external table.
-     * 
- * - * string google_cloud_resource = 3; - * - * @return This builder for chaining. - */ - public Builder clearGoogleCloudResource() { - googleCloudResource_ = getDefaultInstance().getGoogleCloudResource(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Google Cloud resource name of the external table.
-     * 
- * - * string google_cloud_resource = 3; - * - * @param value The bytes for googleCloudResource to set. - * @return This builder for chaining. - */ - public Builder setGoogleCloudResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - googleCloudResource_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object dataCatalogEntry_ = ""; - - /** - * - * - *
-     * Name of the Data Catalog entry representing the external table.
-     * 
- * - * string data_catalog_entry = 4; - * - * @return The dataCatalogEntry. - */ - public java.lang.String getDataCatalogEntry() { - java.lang.Object ref = dataCatalogEntry_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataCatalogEntry_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Name of the Data Catalog entry representing the external table.
-     * 
- * - * string data_catalog_entry = 4; - * - * @return The bytes for dataCatalogEntry. - */ - public com.google.protobuf.ByteString getDataCatalogEntryBytes() { - java.lang.Object ref = dataCatalogEntry_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataCatalogEntry_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Name of the Data Catalog entry representing the external table.
-     * 
- * - * string data_catalog_entry = 4; - * - * @param value The dataCatalogEntry to set. - * @return This builder for chaining. - */ - public Builder setDataCatalogEntry(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dataCatalogEntry_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Name of the Data Catalog entry representing the external table.
-     * 
- * - * string data_catalog_entry = 4; - * - * @return This builder for chaining. - */ - public Builder clearDataCatalogEntry() { - dataCatalogEntry_ = getDefaultInstance().getDataCatalogEntry(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Name of the Data Catalog entry representing the external table.
-     * 
- * - * string data_catalog_entry = 4; - * - * @param value The bytes for dataCatalogEntry to set. - * @return This builder for chaining. - */ - public Builder setDataCatalogEntryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - dataCatalogEntry_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DataplexExternalTable) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DataplexExternalTable) - private static final com.google.cloud.datacatalog.v1.DataplexExternalTable DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DataplexExternalTable(); - } - - public static com.google.cloud.datacatalog.v1.DataplexExternalTable getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataplexExternalTable parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexExternalTable getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTableOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTableOrBuilder.java deleted file mode 100644 index 01d5273240b8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexExternalTableOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dataplex_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DataplexExternalTableOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DataplexExternalTable) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Service in which the external table is registered.
-   * 
- * - * .google.cloud.datacatalog.v1.IntegratedSystem system = 1; - * - * @return The enum numeric value on the wire for system. - */ - int getSystemValue(); - - /** - * - * - *
-   * Service in which the external table is registered.
-   * 
- * - * .google.cloud.datacatalog.v1.IntegratedSystem system = 1; - * - * @return The system. - */ - com.google.cloud.datacatalog.v1.IntegratedSystem getSystem(); - - /** - * - * - *
-   * Fully qualified name (FQN) of the external table.
-   * 
- * - * string fully_qualified_name = 28; - * - * @return The fullyQualifiedName. - */ - java.lang.String getFullyQualifiedName(); - - /** - * - * - *
-   * Fully qualified name (FQN) of the external table.
-   * 
- * - * string fully_qualified_name = 28; - * - * @return The bytes for fullyQualifiedName. - */ - com.google.protobuf.ByteString getFullyQualifiedNameBytes(); - - /** - * - * - *
-   * Google Cloud resource name of the external table.
-   * 
- * - * string google_cloud_resource = 3; - * - * @return The googleCloudResource. - */ - java.lang.String getGoogleCloudResource(); - - /** - * - * - *
-   * Google Cloud resource name of the external table.
-   * 
- * - * string google_cloud_resource = 3; - * - * @return The bytes for googleCloudResource. - */ - com.google.protobuf.ByteString getGoogleCloudResourceBytes(); - - /** - * - * - *
-   * Name of the Data Catalog entry representing the external table.
-   * 
- * - * string data_catalog_entry = 4; - * - * @return The dataCatalogEntry. - */ - java.lang.String getDataCatalogEntry(); - - /** - * - * - *
-   * Name of the Data Catalog entry representing the external table.
-   * 
- * - * string data_catalog_entry = 4; - * - * @return The bytes for dataCatalogEntry. - */ - com.google.protobuf.ByteString getDataCatalogEntryBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpec.java deleted file mode 100644 index f524f6d2572a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpec.java +++ /dev/null @@ -1,700 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dataplex_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Entry specyfication for a Dataplex fileset.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexFilesetSpec} - */ -@com.google.protobuf.Generated -public final class DataplexFilesetSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexFilesetSpec) - DataplexFilesetSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataplexFilesetSpec"); - } - - // Use DataplexFilesetSpec.newBuilder() to construct. - private DataplexFilesetSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DataplexFilesetSpec() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataplexFilesetSpec.class, - com.google.cloud.datacatalog.v1.DataplexFilesetSpec.Builder.class); - } - - private int bitField0_; - public static final int DATAPLEX_SPEC_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1.DataplexSpec dataplexSpec_; - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - * - * @return Whether the dataplexSpec field is set. - */ - @java.lang.Override - public boolean hasDataplexSpec() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - * - * @return The dataplexSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexSpec getDataplexSpec() { - return dataplexSpec_ == null - ? com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance() - : dataplexSpec_; - } - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder getDataplexSpecOrBuilder() { - return dataplexSpec_ == null - ? com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance() - : dataplexSpec_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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, getDataplexSpec()); - } - 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, getDataplexSpec()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.DataplexFilesetSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DataplexFilesetSpec other = - (com.google.cloud.datacatalog.v1.DataplexFilesetSpec) obj; - - if (hasDataplexSpec() != other.hasDataplexSpec()) return false; - if (hasDataplexSpec()) { - if (!getDataplexSpec().equals(other.getDataplexSpec())) return false; - } - if (!getUnknownFields().equals(other.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 (hasDataplexSpec()) { - hash = (37 * hash) + DATAPLEX_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getDataplexSpec().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.DataplexFilesetSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Entry specyfication for a Dataplex fileset.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexFilesetSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DataplexFilesetSpec) - com.google.cloud.datacatalog.v1.DataplexFilesetSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataplexFilesetSpec.class, - com.google.cloud.datacatalog.v1.DataplexFilesetSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DataplexFilesetSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetDataplexSpecFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataplexSpec_ = null; - if (dataplexSpecBuilder_ != null) { - dataplexSpecBuilder_.dispose(); - dataplexSpecBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexFilesetSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DataplexFilesetSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexFilesetSpec build() { - com.google.cloud.datacatalog.v1.DataplexFilesetSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexFilesetSpec buildPartial() { - com.google.cloud.datacatalog.v1.DataplexFilesetSpec result = - new com.google.cloud.datacatalog.v1.DataplexFilesetSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DataplexFilesetSpec result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataplexSpec_ = - dataplexSpecBuilder_ == null ? dataplexSpec_ : dataplexSpecBuilder_.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.datacatalog.v1.DataplexFilesetSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.DataplexFilesetSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DataplexFilesetSpec other) { - if (other == com.google.cloud.datacatalog.v1.DataplexFilesetSpec.getDefaultInstance()) - return this; - if (other.hasDataplexSpec()) { - mergeDataplexSpec(other.getDataplexSpec()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetDataplexSpecFieldBuilder().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.datacatalog.v1.DataplexSpec dataplexSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexSpec, - com.google.cloud.datacatalog.v1.DataplexSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder> - dataplexSpecBuilder_; - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - * - * @return Whether the dataplexSpec field is set. - */ - public boolean hasDataplexSpec() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - * - * @return The dataplexSpec. - */ - public com.google.cloud.datacatalog.v1.DataplexSpec getDataplexSpec() { - if (dataplexSpecBuilder_ == null) { - return dataplexSpec_ == null - ? com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance() - : dataplexSpec_; - } else { - return dataplexSpecBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - */ - public Builder setDataplexSpec(com.google.cloud.datacatalog.v1.DataplexSpec value) { - if (dataplexSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataplexSpec_ = value; - } else { - dataplexSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - */ - public Builder setDataplexSpec( - com.google.cloud.datacatalog.v1.DataplexSpec.Builder builderForValue) { - if (dataplexSpecBuilder_ == null) { - dataplexSpec_ = builderForValue.build(); - } else { - dataplexSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - */ - public Builder mergeDataplexSpec(com.google.cloud.datacatalog.v1.DataplexSpec value) { - if (dataplexSpecBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && dataplexSpec_ != null - && dataplexSpec_ != com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance()) { - getDataplexSpecBuilder().mergeFrom(value); - } else { - dataplexSpec_ = value; - } - } else { - dataplexSpecBuilder_.mergeFrom(value); - } - if (dataplexSpec_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - */ - public Builder clearDataplexSpec() { - bitField0_ = (bitField0_ & ~0x00000001); - dataplexSpec_ = null; - if (dataplexSpecBuilder_ != null) { - dataplexSpecBuilder_.dispose(); - dataplexSpecBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - */ - public com.google.cloud.datacatalog.v1.DataplexSpec.Builder getDataplexSpecBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetDataplexSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - */ - public com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder getDataplexSpecOrBuilder() { - if (dataplexSpecBuilder_ != null) { - return dataplexSpecBuilder_.getMessageOrBuilder(); - } else { - return dataplexSpec_ == null - ? com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance() - : dataplexSpec_; - } - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexSpec, - com.google.cloud.datacatalog.v1.DataplexSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder> - internalGetDataplexSpecFieldBuilder() { - if (dataplexSpecBuilder_ == null) { - dataplexSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexSpec, - com.google.cloud.datacatalog.v1.DataplexSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder>( - getDataplexSpec(), getParentForChildren(), isClean()); - dataplexSpec_ = null; - } - return dataplexSpecBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DataplexFilesetSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DataplexFilesetSpec) - private static final com.google.cloud.datacatalog.v1.DataplexFilesetSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DataplexFilesetSpec(); - } - - public static com.google.cloud.datacatalog.v1.DataplexFilesetSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataplexFilesetSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexFilesetSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpecOrBuilder.java deleted file mode 100644 index f98060498401..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexFilesetSpecOrBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dataplex_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DataplexFilesetSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DataplexFilesetSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - * - * @return Whether the dataplexSpec field is set. - */ - boolean hasDataplexSpec(); - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - * - * @return The dataplexSpec. - */ - com.google.cloud.datacatalog.v1.DataplexSpec getDataplexSpec(); - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 1; - */ - com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder getDataplexSpecOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpec.java deleted file mode 100644 index cc18363ad8f9..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpec.java +++ /dev/null @@ -1,1294 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dataplex_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Common Dataplex fields.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexSpec} - */ -@com.google.protobuf.Generated -public final class DataplexSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexSpec) - DataplexSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataplexSpec"); - } - - // Use DataplexSpec.newBuilder() to construct. - private DataplexSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DataplexSpec() { - asset_ = ""; - compressionFormat_ = ""; - projectId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataplexSpec.class, - com.google.cloud.datacatalog.v1.DataplexSpec.Builder.class); - } - - private int bitField0_; - public static final int ASSET_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object asset_ = ""; - - /** - * - * - *
-   * Fully qualified resource name of an asset in Dataplex, to which the
-   * underlying data source (Cloud Storage bucket or BigQuery dataset) of the
-   * entity is attached.
-   * 
- * - * string asset = 1; - * - * @return The asset. - */ - @java.lang.Override - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } - } - - /** - * - * - *
-   * Fully qualified resource name of an asset in Dataplex, to which the
-   * underlying data source (Cloud Storage bucket or BigQuery dataset) of the
-   * entity is attached.
-   * 
- * - * string asset = 1; - * - * @return The bytes for asset. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_FORMAT_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.PhysicalSchema dataFormat_; - - /** - * - * - *
-   * Format of the data.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - * - * @return Whether the dataFormat field is set. - */ - @java.lang.Override - public boolean hasDataFormat() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Format of the data.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - * - * @return The dataFormat. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema getDataFormat() { - return dataFormat_ == null - ? com.google.cloud.datacatalog.v1.PhysicalSchema.getDefaultInstance() - : dataFormat_; - } - - /** - * - * - *
-   * Format of the data.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchemaOrBuilder getDataFormatOrBuilder() { - return dataFormat_ == null - ? com.google.cloud.datacatalog.v1.PhysicalSchema.getDefaultInstance() - : dataFormat_; - } - - public static final int COMPRESSION_FORMAT_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object compressionFormat_ = ""; - - /** - * - * - *
-   * Compression format of the data, e.g., zip, gzip etc.
-   * 
- * - * string compression_format = 3; - * - * @return The compressionFormat. - */ - @java.lang.Override - public java.lang.String getCompressionFormat() { - java.lang.Object ref = compressionFormat_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compressionFormat_ = s; - return s; - } - } - - /** - * - * - *
-   * Compression format of the data, e.g., zip, gzip etc.
-   * 
- * - * string compression_format = 3; - * - * @return The bytes for compressionFormat. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCompressionFormatBytes() { - java.lang.Object ref = compressionFormat_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - compressionFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_ID_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object projectId_ = ""; - - /** - * - * - *
-   * Project ID of the underlying Cloud Storage or BigQuery data. Note that
-   * this may not be the same project as the correspondingly Dataplex lake /
-   * zone / asset.
-   * 
- * - * string project_id = 4; - * - * @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; - } - } - - /** - * - * - *
-   * Project ID of the underlying Cloud Storage or BigQuery data. Note that
-   * this may not be the same project as the correspondingly Dataplex lake /
-   * zone / asset.
-   * 
- * - * string project_id = 4; - * - * @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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(asset_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, asset_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getDataFormat()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(compressionFormat_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, compressionFormat_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, projectId_); - } - 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(asset_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, asset_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataFormat()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(compressionFormat_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, compressionFormat_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, projectId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.DataplexSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DataplexSpec other = - (com.google.cloud.datacatalog.v1.DataplexSpec) obj; - - if (!getAsset().equals(other.getAsset())) return false; - if (hasDataFormat() != other.hasDataFormat()) return false; - if (hasDataFormat()) { - if (!getDataFormat().equals(other.getDataFormat())) return false; - } - if (!getCompressionFormat().equals(other.getCompressionFormat())) return false; - if (!getProjectId().equals(other.getProjectId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_FIELD_NUMBER; - hash = (53 * hash) + getAsset().hashCode(); - if (hasDataFormat()) { - hash = (37 * hash) + DATA_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getDataFormat().hashCode(); - } - hash = (37 * hash) + COMPRESSION_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getCompressionFormat().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.DataplexSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 Dataplex fields.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DataplexSpec) - com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataplexSpec.class, - com.google.cloud.datacatalog.v1.DataplexSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DataplexSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetDataFormatFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - asset_ = ""; - dataFormat_ = null; - if (dataFormatBuilder_ != null) { - dataFormatBuilder_.dispose(); - dataFormatBuilder_ = null; - } - compressionFormat_ = ""; - projectId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexSpec build() { - com.google.cloud.datacatalog.v1.DataplexSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexSpec buildPartial() { - com.google.cloud.datacatalog.v1.DataplexSpec result = - new com.google.cloud.datacatalog.v1.DataplexSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DataplexSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.asset_ = asset_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dataFormat_ = dataFormatBuilder_ == null ? dataFormat_ : dataFormatBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.compressionFormat_ = compressionFormat_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.projectId_ = projectId_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.DataplexSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.DataplexSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DataplexSpec other) { - if (other == com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance()) return this; - if (!other.getAsset().isEmpty()) { - asset_ = other.asset_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasDataFormat()) { - mergeDataFormat(other.getDataFormat()); - } - if (!other.getCompressionFormat().isEmpty()) { - compressionFormat_ = other.compressionFormat_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - 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: - { - asset_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetDataFormatFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - compressionFormat_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - projectId_ = 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 asset_ = ""; - - /** - * - * - *
-     * Fully qualified resource name of an asset in Dataplex, to which the
-     * underlying data source (Cloud Storage bucket or BigQuery dataset) of the
-     * entity is attached.
-     * 
- * - * string asset = 1; - * - * @return The asset. - */ - public java.lang.String getAsset() { - java.lang.Object ref = asset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - asset_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Fully qualified resource name of an asset in Dataplex, to which the
-     * underlying data source (Cloud Storage bucket or BigQuery dataset) of the
-     * entity is attached.
-     * 
- * - * string asset = 1; - * - * @return The bytes for asset. - */ - public com.google.protobuf.ByteString getAssetBytes() { - java.lang.Object ref = asset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - asset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Fully qualified resource name of an asset in Dataplex, to which the
-     * underlying data source (Cloud Storage bucket or BigQuery dataset) of the
-     * entity is attached.
-     * 
- * - * string asset = 1; - * - * @param value The asset to set. - * @return This builder for chaining. - */ - public Builder setAsset(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - asset_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Fully qualified resource name of an asset in Dataplex, to which the
-     * underlying data source (Cloud Storage bucket or BigQuery dataset) of the
-     * entity is attached.
-     * 
- * - * string asset = 1; - * - * @return This builder for chaining. - */ - public Builder clearAsset() { - asset_ = getDefaultInstance().getAsset(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Fully qualified resource name of an asset in Dataplex, to which the
-     * underlying data source (Cloud Storage bucket or BigQuery dataset) of the
-     * entity is attached.
-     * 
- * - * string asset = 1; - * - * @param value The bytes for asset to set. - * @return This builder for chaining. - */ - public Builder setAssetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - asset_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.PhysicalSchema dataFormat_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchemaOrBuilder> - dataFormatBuilder_; - - /** - * - * - *
-     * Format of the data.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - * - * @return Whether the dataFormat field is set. - */ - public boolean hasDataFormat() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Format of the data.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - * - * @return The dataFormat. - */ - public com.google.cloud.datacatalog.v1.PhysicalSchema getDataFormat() { - if (dataFormatBuilder_ == null) { - return dataFormat_ == null - ? com.google.cloud.datacatalog.v1.PhysicalSchema.getDefaultInstance() - : dataFormat_; - } else { - return dataFormatBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Format of the data.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - */ - public Builder setDataFormat(com.google.cloud.datacatalog.v1.PhysicalSchema value) { - if (dataFormatBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataFormat_ = value; - } else { - dataFormatBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Format of the data.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - */ - public Builder setDataFormat( - com.google.cloud.datacatalog.v1.PhysicalSchema.Builder builderForValue) { - if (dataFormatBuilder_ == null) { - dataFormat_ = builderForValue.build(); - } else { - dataFormatBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Format of the data.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - */ - public Builder mergeDataFormat(com.google.cloud.datacatalog.v1.PhysicalSchema value) { - if (dataFormatBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && dataFormat_ != null - && dataFormat_ != com.google.cloud.datacatalog.v1.PhysicalSchema.getDefaultInstance()) { - getDataFormatBuilder().mergeFrom(value); - } else { - dataFormat_ = value; - } - } else { - dataFormatBuilder_.mergeFrom(value); - } - if (dataFormat_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Format of the data.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - */ - public Builder clearDataFormat() { - bitField0_ = (bitField0_ & ~0x00000002); - dataFormat_ = null; - if (dataFormatBuilder_ != null) { - dataFormatBuilder_.dispose(); - dataFormatBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Format of the data.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - */ - public com.google.cloud.datacatalog.v1.PhysicalSchema.Builder getDataFormatBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetDataFormatFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Format of the data.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - */ - public com.google.cloud.datacatalog.v1.PhysicalSchemaOrBuilder getDataFormatOrBuilder() { - if (dataFormatBuilder_ != null) { - return dataFormatBuilder_.getMessageOrBuilder(); - } else { - return dataFormat_ == null - ? com.google.cloud.datacatalog.v1.PhysicalSchema.getDefaultInstance() - : dataFormat_; - } - } - - /** - * - * - *
-     * Format of the data.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchemaOrBuilder> - internalGetDataFormatFieldBuilder() { - if (dataFormatBuilder_ == null) { - dataFormatBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchemaOrBuilder>( - getDataFormat(), getParentForChildren(), isClean()); - dataFormat_ = null; - } - return dataFormatBuilder_; - } - - private java.lang.Object compressionFormat_ = ""; - - /** - * - * - *
-     * Compression format of the data, e.g., zip, gzip etc.
-     * 
- * - * string compression_format = 3; - * - * @return The compressionFormat. - */ - public java.lang.String getCompressionFormat() { - java.lang.Object ref = compressionFormat_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - compressionFormat_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Compression format of the data, e.g., zip, gzip etc.
-     * 
- * - * string compression_format = 3; - * - * @return The bytes for compressionFormat. - */ - public com.google.protobuf.ByteString getCompressionFormatBytes() { - java.lang.Object ref = compressionFormat_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - compressionFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Compression format of the data, e.g., zip, gzip etc.
-     * 
- * - * string compression_format = 3; - * - * @param value The compressionFormat to set. - * @return This builder for chaining. - */ - public Builder setCompressionFormat(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - compressionFormat_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Compression format of the data, e.g., zip, gzip etc.
-     * 
- * - * string compression_format = 3; - * - * @return This builder for chaining. - */ - public Builder clearCompressionFormat() { - compressionFormat_ = getDefaultInstance().getCompressionFormat(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Compression format of the data, e.g., zip, gzip etc.
-     * 
- * - * string compression_format = 3; - * - * @param value The bytes for compressionFormat to set. - * @return This builder for chaining. - */ - public Builder setCompressionFormatBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - compressionFormat_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object projectId_ = ""; - - /** - * - * - *
-     * Project ID of the underlying Cloud Storage or BigQuery data. Note that
-     * this may not be the same project as the correspondingly Dataplex lake /
-     * zone / asset.
-     * 
- * - * string project_id = 4; - * - * @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; - } - } - - /** - * - * - *
-     * Project ID of the underlying Cloud Storage or BigQuery data. Note that
-     * this may not be the same project as the correspondingly Dataplex lake /
-     * zone / asset.
-     * 
- * - * string project_id = 4; - * - * @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; - } - } - - /** - * - * - *
-     * Project ID of the underlying Cloud Storage or BigQuery data. Note that
-     * this may not be the same project as the correspondingly Dataplex lake /
-     * zone / asset.
-     * 
- * - * string project_id = 4; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Project ID of the underlying Cloud Storage or BigQuery data. Note that
-     * this may not be the same project as the correspondingly Dataplex lake /
-     * zone / asset.
-     * 
- * - * string project_id = 4; - * - * @return This builder for chaining. - */ - public Builder clearProjectId() { - projectId_ = getDefaultInstance().getProjectId(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Project ID of the underlying Cloud Storage or BigQuery data. Note that
-     * this may not be the same project as the correspondingly Dataplex lake /
-     * zone / asset.
-     * 
- * - * string project_id = 4; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DataplexSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DataplexSpec) - private static final com.google.cloud.datacatalog.v1.DataplexSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DataplexSpec(); - } - - public static com.google.cloud.datacatalog.v1.DataplexSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataplexSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecOrBuilder.java deleted file mode 100644 index 2b1ebaffbdd0..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecOrBuilder.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dataplex_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DataplexSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DataplexSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Fully qualified resource name of an asset in Dataplex, to which the
-   * underlying data source (Cloud Storage bucket or BigQuery dataset) of the
-   * entity is attached.
-   * 
- * - * string asset = 1; - * - * @return The asset. - */ - java.lang.String getAsset(); - - /** - * - * - *
-   * Fully qualified resource name of an asset in Dataplex, to which the
-   * underlying data source (Cloud Storage bucket or BigQuery dataset) of the
-   * entity is attached.
-   * 
- * - * string asset = 1; - * - * @return The bytes for asset. - */ - com.google.protobuf.ByteString getAssetBytes(); - - /** - * - * - *
-   * Format of the data.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - * - * @return Whether the dataFormat field is set. - */ - boolean hasDataFormat(); - - /** - * - * - *
-   * Format of the data.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - * - * @return The dataFormat. - */ - com.google.cloud.datacatalog.v1.PhysicalSchema getDataFormat(); - - /** - * - * - *
-   * Format of the data.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema data_format = 2; - */ - com.google.cloud.datacatalog.v1.PhysicalSchemaOrBuilder getDataFormatOrBuilder(); - - /** - * - * - *
-   * Compression format of the data, e.g., zip, gzip etc.
-   * 
- * - * string compression_format = 3; - * - * @return The compressionFormat. - */ - java.lang.String getCompressionFormat(); - - /** - * - * - *
-   * Compression format of the data, e.g., zip, gzip etc.
-   * 
- * - * string compression_format = 3; - * - * @return The bytes for compressionFormat. - */ - com.google.protobuf.ByteString getCompressionFormatBytes(); - - /** - * - * - *
-   * Project ID of the underlying Cloud Storage or BigQuery data. Note that
-   * this may not be the same project as the correspondingly Dataplex lake /
-   * zone / asset.
-   * 
- * - * string project_id = 4; - * - * @return The projectId. - */ - java.lang.String getProjectId(); - - /** - * - * - *
-   * Project ID of the underlying Cloud Storage or BigQuery data. Note that
-   * this may not be the same project as the correspondingly Dataplex lake /
-   * zone / asset.
-   * 
- * - * string project_id = 4; - * - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString getProjectIdBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java deleted file mode 100644 index 3d38728aa0ea..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexSpecProto.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dataplex_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class DataplexSpecProto extends com.google.protobuf.GeneratedFile { - private DataplexSpecProto() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataplexSpecProto"); - } - - 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_datacatalog_v1_DataplexSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DataplexSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_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/datacatalog/v1/dataplex_s" - + "pec.proto\022\033google.cloud.datacatalog.v1\032(" - + "google/cloud/datacatalog/v1/common.proto" - + "\0321google/cloud/datacatalog/v1/physical_s" - + "chema.proto\"\217\001\n\014DataplexSpec\022\r\n\005asset\030\001 " - + "\001(\t\022@\n\013data_format\030\002 \001(\0132+.google.cloud." - + "datacatalog.v1.PhysicalSchema\022\032\n\022compres" - + "sion_format\030\003 \001(\t\022\022\n\nproject_id\030\004 \001(\t\"W\n" - + "\023DataplexFilesetSpec\022@\n\rdataplex_spec\030\001 " - + "\001(\0132).google.cloud.datacatalog.v1.Datapl" - + "exSpec\"\270\001\n\021DataplexTableSpec\022K\n\017external" - + "_tables\030\001 \003(\01322.google.cloud.datacatalog" - + ".v1.DataplexExternalTable\022@\n\rdataplex_sp" - + "ec\030\002 \001(\0132).google.cloud.datacatalog.v1.D" - + "ataplexSpec\022\024\n\014user_managed\030\003 \001(\010\"\257\001\n\025Da" - + "taplexExternalTable\022=\n\006system\030\001 \001(\0162-.go" - + "ogle.cloud.datacatalog.v1.IntegratedSyst" - + "em\022\034\n\024fully_qualified_name\030\034 \001(\t\022\035\n\025goog" - + "le_cloud_resource\030\003 \001(\t\022\032\n\022data_catalog_" - + "entry\030\004 \001(\tB\326\001\n\037com.google.cloud.datacat" - + "alog.v1B\021DataplexSpecProtoP\001ZAcloud.goog" - + "le.com/go/datacatalog/apiv1/datacatalogp" - + "b;datacatalogpb\252\002\033Google.Cloud.DataCatal" - + "og.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Go" - + "ogle::Cloud::DataCatalog::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.cloud.datacatalog.v1.Common.getDescriptor(), - com.google.cloud.datacatalog.v1.PhysicalSchemaProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_DataplexSpec_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_DataplexSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DataplexSpec_descriptor, - new java.lang.String[] { - "Asset", "DataFormat", "CompressionFormat", "ProjectId", - }); - internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DataplexFilesetSpec_descriptor, - new java.lang.String[] { - "DataplexSpec", - }); - internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_descriptor, - new java.lang.String[] { - "ExternalTables", "DataplexSpec", "UserManaged", - }); - internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_descriptor = - getDescriptor().getMessageType(3); - internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DataplexExternalTable_descriptor, - new java.lang.String[] { - "System", "FullyQualifiedName", "GoogleCloudResource", "DataCatalogEntry", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.cloud.datacatalog.v1.Common.getDescriptor(); - com.google.cloud.datacatalog.v1.PhysicalSchemaProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpec.java deleted file mode 100644 index c30988d3ef37..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpec.java +++ /dev/null @@ -1,1401 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dataplex_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Entry specification for a Dataplex table.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexTableSpec} - */ -@com.google.protobuf.Generated -public final class DataplexTableSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DataplexTableSpec) - DataplexTableSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataplexTableSpec"); - } - - // Use DataplexTableSpec.newBuilder() to construct. - private DataplexTableSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DataplexTableSpec() { - externalTables_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataplexTableSpec.class, - com.google.cloud.datacatalog.v1.DataplexTableSpec.Builder.class); - } - - private int bitField0_; - public static final int EXTERNAL_TABLES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List externalTables_; - - /** - * - * - *
-   * List of external tables registered by Dataplex in other systems based on
-   * the same underlying data.
-   *
-   * External tables allow to query this data in those systems.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - @java.lang.Override - public java.util.List - getExternalTablesList() { - return externalTables_; - } - - /** - * - * - *
-   * List of external tables registered by Dataplex in other systems based on
-   * the same underlying data.
-   *
-   * External tables allow to query this data in those systems.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - @java.lang.Override - public java.util.List - getExternalTablesOrBuilderList() { - return externalTables_; - } - - /** - * - * - *
-   * List of external tables registered by Dataplex in other systems based on
-   * the same underlying data.
-   *
-   * External tables allow to query this data in those systems.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - @java.lang.Override - public int getExternalTablesCount() { - return externalTables_.size(); - } - - /** - * - * - *
-   * List of external tables registered by Dataplex in other systems based on
-   * the same underlying data.
-   *
-   * External tables allow to query this data in those systems.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexExternalTable getExternalTables(int index) { - return externalTables_.get(index); - } - - /** - * - * - *
-   * List of external tables registered by Dataplex in other systems based on
-   * the same underlying data.
-   *
-   * External tables allow to query this data in those systems.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder getExternalTablesOrBuilder( - int index) { - return externalTables_.get(index); - } - - public static final int DATAPLEX_SPEC_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.DataplexSpec dataplexSpec_; - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - * - * @return Whether the dataplexSpec field is set. - */ - @java.lang.Override - public boolean hasDataplexSpec() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - * - * @return The dataplexSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexSpec getDataplexSpec() { - return dataplexSpec_ == null - ? com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance() - : dataplexSpec_; - } - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder getDataplexSpecOrBuilder() { - return dataplexSpec_ == null - ? com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance() - : dataplexSpec_; - } - - public static final int USER_MANAGED_FIELD_NUMBER = 3; - private boolean userManaged_ = false; - - /** - * - * - *
-   * Indicates if the table schema is managed by the user or not.
-   * 
- * - * bool user_managed = 3; - * - * @return The userManaged. - */ - @java.lang.Override - public boolean getUserManaged() { - return userManaged_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < externalTables_.size(); i++) { - output.writeMessage(1, externalTables_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getDataplexSpec()); - } - if (userManaged_ != false) { - output.writeBool(3, userManaged_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < externalTables_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, externalTables_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDataplexSpec()); - } - if (userManaged_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, userManaged_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.DataplexTableSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DataplexTableSpec other = - (com.google.cloud.datacatalog.v1.DataplexTableSpec) obj; - - if (!getExternalTablesList().equals(other.getExternalTablesList())) return false; - if (hasDataplexSpec() != other.hasDataplexSpec()) return false; - if (hasDataplexSpec()) { - if (!getDataplexSpec().equals(other.getDataplexSpec())) return false; - } - if (getUserManaged() != other.getUserManaged()) return false; - if (!getUnknownFields().equals(other.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 (getExternalTablesCount() > 0) { - hash = (37 * hash) + EXTERNAL_TABLES_FIELD_NUMBER; - hash = (53 * hash) + getExternalTablesList().hashCode(); - } - if (hasDataplexSpec()) { - hash = (37 * hash) + DATAPLEX_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getDataplexSpec().hashCode(); - } - hash = (37 * hash) + USER_MANAGED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getUserManaged()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.DataplexTableSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Entry specification for a Dataplex table.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DataplexTableSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DataplexTableSpec) - com.google.cloud.datacatalog.v1.DataplexTableSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DataplexTableSpec.class, - com.google.cloud.datacatalog.v1.DataplexTableSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DataplexTableSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetExternalTablesFieldBuilder(); - internalGetDataplexSpecFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (externalTablesBuilder_ == null) { - externalTables_ = java.util.Collections.emptyList(); - } else { - externalTables_ = null; - externalTablesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - dataplexSpec_ = null; - if (dataplexSpecBuilder_ != null) { - dataplexSpecBuilder_.dispose(); - dataplexSpecBuilder_ = null; - } - userManaged_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.DataplexSpecProto - .internal_static_google_cloud_datacatalog_v1_DataplexTableSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexTableSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DataplexTableSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexTableSpec build() { - com.google.cloud.datacatalog.v1.DataplexTableSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexTableSpec buildPartial() { - com.google.cloud.datacatalog.v1.DataplexTableSpec result = - new com.google.cloud.datacatalog.v1.DataplexTableSpec(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.DataplexTableSpec result) { - if (externalTablesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - externalTables_ = java.util.Collections.unmodifiableList(externalTables_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.externalTables_ = externalTables_; - } else { - result.externalTables_ = externalTablesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DataplexTableSpec result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dataplexSpec_ = - dataplexSpecBuilder_ == null ? dataplexSpec_ : dataplexSpecBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.userManaged_ = userManaged_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.DataplexTableSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.DataplexTableSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DataplexTableSpec other) { - if (other == com.google.cloud.datacatalog.v1.DataplexTableSpec.getDefaultInstance()) - return this; - if (externalTablesBuilder_ == null) { - if (!other.externalTables_.isEmpty()) { - if (externalTables_.isEmpty()) { - externalTables_ = other.externalTables_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureExternalTablesIsMutable(); - externalTables_.addAll(other.externalTables_); - } - onChanged(); - } - } else { - if (!other.externalTables_.isEmpty()) { - if (externalTablesBuilder_.isEmpty()) { - externalTablesBuilder_.dispose(); - externalTablesBuilder_ = null; - externalTables_ = other.externalTables_; - bitField0_ = (bitField0_ & ~0x00000001); - externalTablesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetExternalTablesFieldBuilder() - : null; - } else { - externalTablesBuilder_.addAllMessages(other.externalTables_); - } - } - } - if (other.hasDataplexSpec()) { - mergeDataplexSpec(other.getDataplexSpec()); - } - if (other.getUserManaged() != false) { - setUserManaged(other.getUserManaged()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1.DataplexExternalTable m = - input.readMessage( - com.google.cloud.datacatalog.v1.DataplexExternalTable.parser(), - extensionRegistry); - if (externalTablesBuilder_ == null) { - ensureExternalTablesIsMutable(); - externalTables_.add(m); - } else { - externalTablesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetDataplexSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - userManaged_ = 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.util.List externalTables_ = - java.util.Collections.emptyList(); - - private void ensureExternalTablesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - externalTables_ = - new java.util.ArrayList( - externalTables_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexExternalTable, - com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder, - com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder> - externalTablesBuilder_; - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public java.util.List - getExternalTablesList() { - if (externalTablesBuilder_ == null) { - return java.util.Collections.unmodifiableList(externalTables_); - } else { - return externalTablesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public int getExternalTablesCount() { - if (externalTablesBuilder_ == null) { - return externalTables_.size(); - } else { - return externalTablesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public com.google.cloud.datacatalog.v1.DataplexExternalTable getExternalTables(int index) { - if (externalTablesBuilder_ == null) { - return externalTables_.get(index); - } else { - return externalTablesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public Builder setExternalTables( - int index, com.google.cloud.datacatalog.v1.DataplexExternalTable value) { - if (externalTablesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExternalTablesIsMutable(); - externalTables_.set(index, value); - onChanged(); - } else { - externalTablesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public Builder setExternalTables( - int index, com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder builderForValue) { - if (externalTablesBuilder_ == null) { - ensureExternalTablesIsMutable(); - externalTables_.set(index, builderForValue.build()); - onChanged(); - } else { - externalTablesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public Builder addExternalTables(com.google.cloud.datacatalog.v1.DataplexExternalTable value) { - if (externalTablesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExternalTablesIsMutable(); - externalTables_.add(value); - onChanged(); - } else { - externalTablesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public Builder addExternalTables( - int index, com.google.cloud.datacatalog.v1.DataplexExternalTable value) { - if (externalTablesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExternalTablesIsMutable(); - externalTables_.add(index, value); - onChanged(); - } else { - externalTablesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public Builder addExternalTables( - com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder builderForValue) { - if (externalTablesBuilder_ == null) { - ensureExternalTablesIsMutable(); - externalTables_.add(builderForValue.build()); - onChanged(); - } else { - externalTablesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public Builder addExternalTables( - int index, com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder builderForValue) { - if (externalTablesBuilder_ == null) { - ensureExternalTablesIsMutable(); - externalTables_.add(index, builderForValue.build()); - onChanged(); - } else { - externalTablesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public Builder addAllExternalTables( - java.lang.Iterable - values) { - if (externalTablesBuilder_ == null) { - ensureExternalTablesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, externalTables_); - onChanged(); - } else { - externalTablesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public Builder clearExternalTables() { - if (externalTablesBuilder_ == null) { - externalTables_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - externalTablesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public Builder removeExternalTables(int index) { - if (externalTablesBuilder_ == null) { - ensureExternalTablesIsMutable(); - externalTables_.remove(index); - onChanged(); - } else { - externalTablesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder getExternalTablesBuilder( - int index) { - return internalGetExternalTablesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder - getExternalTablesOrBuilder(int index) { - if (externalTablesBuilder_ == null) { - return externalTables_.get(index); - } else { - return externalTablesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public java.util.List - getExternalTablesOrBuilderList() { - if (externalTablesBuilder_ != null) { - return externalTablesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(externalTables_); - } - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder - addExternalTablesBuilder() { - return internalGetExternalTablesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.DataplexExternalTable.getDefaultInstance()); - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder addExternalTablesBuilder( - int index) { - return internalGetExternalTablesFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1.DataplexExternalTable.getDefaultInstance()); - } - - /** - * - * - *
-     * List of external tables registered by Dataplex in other systems based on
-     * the same underlying data.
-     *
-     * External tables allow to query this data in those systems.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - public java.util.List - getExternalTablesBuilderList() { - return internalGetExternalTablesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexExternalTable, - com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder, - com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder> - internalGetExternalTablesFieldBuilder() { - if (externalTablesBuilder_ == null) { - externalTablesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexExternalTable, - com.google.cloud.datacatalog.v1.DataplexExternalTable.Builder, - com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder>( - externalTables_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - externalTables_ = null; - } - return externalTablesBuilder_; - } - - private com.google.cloud.datacatalog.v1.DataplexSpec dataplexSpec_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexSpec, - com.google.cloud.datacatalog.v1.DataplexSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder> - dataplexSpecBuilder_; - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - * - * @return Whether the dataplexSpec field is set. - */ - public boolean hasDataplexSpec() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - * - * @return The dataplexSpec. - */ - public com.google.cloud.datacatalog.v1.DataplexSpec getDataplexSpec() { - if (dataplexSpecBuilder_ == null) { - return dataplexSpec_ == null - ? com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance() - : dataplexSpec_; - } else { - return dataplexSpecBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - */ - public Builder setDataplexSpec(com.google.cloud.datacatalog.v1.DataplexSpec value) { - if (dataplexSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataplexSpec_ = value; - } else { - dataplexSpecBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - */ - public Builder setDataplexSpec( - com.google.cloud.datacatalog.v1.DataplexSpec.Builder builderForValue) { - if (dataplexSpecBuilder_ == null) { - dataplexSpec_ = builderForValue.build(); - } else { - dataplexSpecBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - */ - public Builder mergeDataplexSpec(com.google.cloud.datacatalog.v1.DataplexSpec value) { - if (dataplexSpecBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && dataplexSpec_ != null - && dataplexSpec_ != com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance()) { - getDataplexSpecBuilder().mergeFrom(value); - } else { - dataplexSpec_ = value; - } - } else { - dataplexSpecBuilder_.mergeFrom(value); - } - if (dataplexSpec_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - */ - public Builder clearDataplexSpec() { - bitField0_ = (bitField0_ & ~0x00000002); - dataplexSpec_ = null; - if (dataplexSpecBuilder_ != null) { - dataplexSpecBuilder_.dispose(); - dataplexSpecBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - */ - public com.google.cloud.datacatalog.v1.DataplexSpec.Builder getDataplexSpecBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetDataplexSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - */ - public com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder getDataplexSpecOrBuilder() { - if (dataplexSpecBuilder_ != null) { - return dataplexSpecBuilder_.getMessageOrBuilder(); - } else { - return dataplexSpec_ == null - ? com.google.cloud.datacatalog.v1.DataplexSpec.getDefaultInstance() - : dataplexSpec_; - } - } - - /** - * - * - *
-     * Common Dataplex fields.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexSpec, - com.google.cloud.datacatalog.v1.DataplexSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder> - internalGetDataplexSpecFieldBuilder() { - if (dataplexSpecBuilder_ == null) { - dataplexSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexSpec, - com.google.cloud.datacatalog.v1.DataplexSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder>( - getDataplexSpec(), getParentForChildren(), isClean()); - dataplexSpec_ = null; - } - return dataplexSpecBuilder_; - } - - private boolean userManaged_; - - /** - * - * - *
-     * Indicates if the table schema is managed by the user or not.
-     * 
- * - * bool user_managed = 3; - * - * @return The userManaged. - */ - @java.lang.Override - public boolean getUserManaged() { - return userManaged_; - } - - /** - * - * - *
-     * Indicates if the table schema is managed by the user or not.
-     * 
- * - * bool user_managed = 3; - * - * @param value The userManaged to set. - * @return This builder for chaining. - */ - public Builder setUserManaged(boolean value) { - - userManaged_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Indicates if the table schema is managed by the user or not.
-     * 
- * - * bool user_managed = 3; - * - * @return This builder for chaining. - */ - public Builder clearUserManaged() { - bitField0_ = (bitField0_ & ~0x00000004); - userManaged_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DataplexTableSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DataplexTableSpec) - private static final com.google.cloud.datacatalog.v1.DataplexTableSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DataplexTableSpec(); - } - - public static com.google.cloud.datacatalog.v1.DataplexTableSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DataplexTableSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexTableSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpecOrBuilder.java deleted file mode 100644 index 9bfeac0524ea..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DataplexTableSpecOrBuilder.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dataplex_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DataplexTableSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DataplexTableSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of external tables registered by Dataplex in other systems based on
-   * the same underlying data.
-   *
-   * External tables allow to query this data in those systems.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - java.util.List getExternalTablesList(); - - /** - * - * - *
-   * List of external tables registered by Dataplex in other systems based on
-   * the same underlying data.
-   *
-   * External tables allow to query this data in those systems.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - com.google.cloud.datacatalog.v1.DataplexExternalTable getExternalTables(int index); - - /** - * - * - *
-   * List of external tables registered by Dataplex in other systems based on
-   * the same underlying data.
-   *
-   * External tables allow to query this data in those systems.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - int getExternalTablesCount(); - - /** - * - * - *
-   * List of external tables registered by Dataplex in other systems based on
-   * the same underlying data.
-   *
-   * External tables allow to query this data in those systems.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - java.util.List - getExternalTablesOrBuilderList(); - - /** - * - * - *
-   * List of external tables registered by Dataplex in other systems based on
-   * the same underlying data.
-   *
-   * External tables allow to query this data in those systems.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.DataplexExternalTable external_tables = 1; - */ - com.google.cloud.datacatalog.v1.DataplexExternalTableOrBuilder getExternalTablesOrBuilder( - int index); - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - * - * @return Whether the dataplexSpec field is set. - */ - boolean hasDataplexSpec(); - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - * - * @return The dataplexSpec. - */ - com.google.cloud.datacatalog.v1.DataplexSpec getDataplexSpec(); - - /** - * - * - *
-   * Common Dataplex fields.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexSpec dataplex_spec = 2; - */ - com.google.cloud.datacatalog.v1.DataplexSpecOrBuilder getDataplexSpecOrBuilder(); - - /** - * - * - *
-   * Indicates if the table schema is managed by the user or not.
-   * 
- * - * bool user_managed = 3; - * - * @return The userManaged. - */ - boolean getUserManaged(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpec.java deleted file mode 100644 index 21717d32bb89..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpec.java +++ /dev/null @@ -1,799 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to a dataset. Valid only for
- * entries with the `DATASET` type.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DatasetSpec} - */ -@com.google.protobuf.Generated -public final class DatasetSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DatasetSpec) - DatasetSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DatasetSpec"); - } - - // Use DatasetSpec.newBuilder() to construct. - private DatasetSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DatasetSpec() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatasetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatasetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DatasetSpec.class, - com.google.cloud.datacatalog.v1.DatasetSpec.Builder.class); - } - - private int systemSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object systemSpec_; - - public enum SystemSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VERTEX_DATASET_SPEC(2), - SYSTEMSPEC_NOT_SET(0); - private final int value; - - private SystemSpecCase(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 SystemSpecCase valueOf(int value) { - return forNumber(value); - } - - public static SystemSpecCase forNumber(int value) { - switch (value) { - case 2: - return VERTEX_DATASET_SPEC; - case 0: - return SYSTEMSPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public static final int VERTEX_DATASET_SPEC_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Vertex AI Dataset specific fields
-   * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - * - * @return Whether the vertexDatasetSpec field is set. - */ - @java.lang.Override - public boolean hasVertexDatasetSpec() { - return systemSpecCase_ == 2; - } - - /** - * - * - *
-   * Vertex AI Dataset specific fields
-   * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - * - * @return The vertexDatasetSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexDatasetSpec getVertexDatasetSpec() { - if (systemSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.VertexDatasetSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.VertexDatasetSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Vertex AI Dataset specific fields
-   * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexDatasetSpecOrBuilder - getVertexDatasetSpecOrBuilder() { - if (systemSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.VertexDatasetSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.VertexDatasetSpec.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 (systemSpecCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datacatalog.v1.VertexDatasetSpec) systemSpec_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (systemSpecCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datacatalog.v1.VertexDatasetSpec) systemSpec_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.DatasetSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DatasetSpec other = - (com.google.cloud.datacatalog.v1.DatasetSpec) obj; - - if (!getSystemSpecCase().equals(other.getSystemSpecCase())) return false; - switch (systemSpecCase_) { - case 2: - if (!getVertexDatasetSpec().equals(other.getVertexDatasetSpec())) 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 (systemSpecCase_) { - case 2: - hash = (37 * hash) + VERTEX_DATASET_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getVertexDatasetSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.DatasetSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to a dataset. Valid only for
-   * entries with the `DATASET` type.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DatasetSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DatasetSpec) - com.google.cloud.datacatalog.v1.DatasetSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatasetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatasetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DatasetSpec.class, - com.google.cloud.datacatalog.v1.DatasetSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DatasetSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (vertexDatasetSpecBuilder_ != null) { - vertexDatasetSpecBuilder_.clear(); - } - systemSpecCase_ = 0; - systemSpec_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DatasetSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatasetSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatasetSpec build() { - com.google.cloud.datacatalog.v1.DatasetSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatasetSpec buildPartial() { - com.google.cloud.datacatalog.v1.DatasetSpec result = - new com.google.cloud.datacatalog.v1.DatasetSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DatasetSpec result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.DatasetSpec result) { - result.systemSpecCase_ = systemSpecCase_; - result.systemSpec_ = this.systemSpec_; - if (systemSpecCase_ == 2 && vertexDatasetSpecBuilder_ != null) { - result.systemSpec_ = vertexDatasetSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.DatasetSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.DatasetSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DatasetSpec other) { - if (other == com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance()) return this; - switch (other.getSystemSpecCase()) { - case VERTEX_DATASET_SPEC: - { - mergeVertexDatasetSpec(other.getVertexDatasetSpec()); - break; - } - case SYSTEMSPEC_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: - { - input.readMessage( - internalGetVertexDatasetSpecFieldBuilder().getBuilder(), extensionRegistry); - systemSpecCase_ = 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 systemSpecCase_ = 0; - private java.lang.Object systemSpec_; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public Builder clearSystemSpec() { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.VertexDatasetSpec, - com.google.cloud.datacatalog.v1.VertexDatasetSpec.Builder, - com.google.cloud.datacatalog.v1.VertexDatasetSpecOrBuilder> - vertexDatasetSpecBuilder_; - - /** - * - * - *
-     * Vertex AI Dataset specific fields
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - * - * @return Whether the vertexDatasetSpec field is set. - */ - @java.lang.Override - public boolean hasVertexDatasetSpec() { - return systemSpecCase_ == 2; - } - - /** - * - * - *
-     * Vertex AI Dataset specific fields
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - * - * @return The vertexDatasetSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexDatasetSpec getVertexDatasetSpec() { - if (vertexDatasetSpecBuilder_ == null) { - if (systemSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.VertexDatasetSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.VertexDatasetSpec.getDefaultInstance(); - } else { - if (systemSpecCase_ == 2) { - return vertexDatasetSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.VertexDatasetSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Vertex AI Dataset specific fields
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - */ - public Builder setVertexDatasetSpec(com.google.cloud.datacatalog.v1.VertexDatasetSpec value) { - if (vertexDatasetSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemSpec_ = value; - onChanged(); - } else { - vertexDatasetSpecBuilder_.setMessage(value); - } - systemSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Vertex AI Dataset specific fields
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - */ - public Builder setVertexDatasetSpec( - com.google.cloud.datacatalog.v1.VertexDatasetSpec.Builder builderForValue) { - if (vertexDatasetSpecBuilder_ == null) { - systemSpec_ = builderForValue.build(); - onChanged(); - } else { - vertexDatasetSpecBuilder_.setMessage(builderForValue.build()); - } - systemSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Vertex AI Dataset specific fields
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - */ - public Builder mergeVertexDatasetSpec(com.google.cloud.datacatalog.v1.VertexDatasetSpec value) { - if (vertexDatasetSpecBuilder_ == null) { - if (systemSpecCase_ == 2 - && systemSpec_ - != com.google.cloud.datacatalog.v1.VertexDatasetSpec.getDefaultInstance()) { - systemSpec_ = - com.google.cloud.datacatalog.v1.VertexDatasetSpec.newBuilder( - (com.google.cloud.datacatalog.v1.VertexDatasetSpec) systemSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - systemSpec_ = value; - } - onChanged(); - } else { - if (systemSpecCase_ == 2) { - vertexDatasetSpecBuilder_.mergeFrom(value); - } else { - vertexDatasetSpecBuilder_.setMessage(value); - } - } - systemSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Vertex AI Dataset specific fields
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - */ - public Builder clearVertexDatasetSpec() { - if (vertexDatasetSpecBuilder_ == null) { - if (systemSpecCase_ == 2) { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - } - } else { - if (systemSpecCase_ == 2) { - systemSpecCase_ = 0; - systemSpec_ = null; - } - vertexDatasetSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Vertex AI Dataset specific fields
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - */ - public com.google.cloud.datacatalog.v1.VertexDatasetSpec.Builder getVertexDatasetSpecBuilder() { - return internalGetVertexDatasetSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Vertex AI Dataset specific fields
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexDatasetSpecOrBuilder - getVertexDatasetSpecOrBuilder() { - if ((systemSpecCase_ == 2) && (vertexDatasetSpecBuilder_ != null)) { - return vertexDatasetSpecBuilder_.getMessageOrBuilder(); - } else { - if (systemSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1.VertexDatasetSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.VertexDatasetSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Vertex AI Dataset specific fields
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.VertexDatasetSpec, - com.google.cloud.datacatalog.v1.VertexDatasetSpec.Builder, - com.google.cloud.datacatalog.v1.VertexDatasetSpecOrBuilder> - internalGetVertexDatasetSpecFieldBuilder() { - if (vertexDatasetSpecBuilder_ == null) { - if (!(systemSpecCase_ == 2)) { - systemSpec_ = com.google.cloud.datacatalog.v1.VertexDatasetSpec.getDefaultInstance(); - } - vertexDatasetSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.VertexDatasetSpec, - com.google.cloud.datacatalog.v1.VertexDatasetSpec.Builder, - com.google.cloud.datacatalog.v1.VertexDatasetSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.VertexDatasetSpec) systemSpec_, - getParentForChildren(), - isClean()); - systemSpec_ = null; - } - systemSpecCase_ = 2; - onChanged(); - return vertexDatasetSpecBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DatasetSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DatasetSpec) - private static final com.google.cloud.datacatalog.v1.DatasetSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DatasetSpec(); - } - - public static com.google.cloud.datacatalog.v1.DatasetSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DatasetSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatasetSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpecOrBuilder.java deleted file mode 100644 index 656fca2a31b3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DatasetSpecOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DatasetSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DatasetSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Vertex AI Dataset specific fields
-   * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - * - * @return Whether the vertexDatasetSpec field is set. - */ - boolean hasVertexDatasetSpec(); - - /** - * - * - *
-   * Vertex AI Dataset specific fields
-   * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - * - * @return The vertexDatasetSpec. - */ - com.google.cloud.datacatalog.v1.VertexDatasetSpec getVertexDatasetSpec(); - - /** - * - * - *
-   * Vertex AI Dataset specific fields
-   * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec vertex_dataset_spec = 2; - */ - com.google.cloud.datacatalog.v1.VertexDatasetSpecOrBuilder getVertexDatasetSpecOrBuilder(); - - com.google.cloud.datacatalog.v1.DatasetSpec.SystemSpecCase getSystemSpecCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequest.java deleted file mode 100644 index c56f4641c67b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequest.java +++ /dev/null @@ -1,710 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [DeleteEntryGroup][google.cloud.datacatalog.v1.DataCatalog.DeleteEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteEntryGroupRequest} - */ -@com.google.protobuf.Generated -public final class DeleteEntryGroupRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteEntryGroupRequest) - DeleteEntryGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteEntryGroupRequest"); - } - - // Use DeleteEntryGroupRequest.newBuilder() to construct. - private DeleteEntryGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteEntryGroupRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest.class, - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the entry group to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the entry group to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_ = false; - - /** - * - * - *
-   * Optional. If true, deletes all entries in the entry group.
-   * 
- * - * 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.datacatalog.v1.DeleteEntryGroupRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest other = - (com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest) 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.datacatalog.v1.DeleteEntryGroupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteEntryGroup][google.cloud.datacatalog.v1.DataCatalog.DeleteEntryGroup].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteEntryGroupRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DeleteEntryGroupRequest) - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest.class, - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteEntryGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest build() { - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest buildPartial() { - com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest result = - new com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest 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.datacatalog.v1.DeleteEntryGroupRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest other) { - if (other == com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest.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 name of the entry group to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean force_; - - /** - * - * - *
-     * Optional. If true, deletes all entries in the entry group.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The force. - */ - @java.lang.Override - public boolean getForce() { - return force_; - } - - /** - * - * - *
-     * Optional. If true, deletes all entries in the entry group.
-     * 
- * - * 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 true, deletes all entries in the entry group.
-     * 
- * - * 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.datacatalog.v1.DeleteEntryGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DeleteEntryGroupRequest) - private static final com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest(); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEntryGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequestOrBuilder.java deleted file mode 100644 index 38958d08568c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DeleteEntryGroupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DeleteEntryGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry group to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the entry group to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. If true, deletes all entries in the entry group.
-   * 
- * - * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The force. - */ - boolean getForce(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequest.java deleted file mode 100644 index 00d987d58d61..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequest.java +++ /dev/null @@ -1,612 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [DeleteEntry][google.cloud.datacatalog.v1.DataCatalog.DeleteEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteEntryRequest} - */ -@com.google.protobuf.Generated -public final class DeleteEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteEntryRequest) - DeleteEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteEntryRequest"); - } - - // Use DeleteEntryRequest.newBuilder() to construct. - private DeleteEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteEntryRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteEntryRequest.class, - com.google.cloud.datacatalog.v1.DeleteEntryRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the entry to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the entry to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1.DeleteEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DeleteEntryRequest other = - (com.google.cloud.datacatalog.v1.DeleteEntryRequest) 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.datacatalog.v1.DeleteEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.DeleteEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteEntry][google.cloud.datacatalog.v1.DataCatalog.DeleteEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DeleteEntryRequest) - com.google.cloud.datacatalog.v1.DeleteEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteEntryRequest.class, - com.google.cloud.datacatalog.v1.DeleteEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DeleteEntryRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DeleteEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteEntryRequest build() { - com.google.cloud.datacatalog.v1.DeleteEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1.DeleteEntryRequest result = - new com.google.cloud.datacatalog.v1.DeleteEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DeleteEntryRequest 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.datacatalog.v1.DeleteEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.DeleteEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DeleteEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1.DeleteEntryRequest.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 entry to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DeleteEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DeleteEntryRequest) - private static final com.google.cloud.datacatalog.v1.DeleteEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DeleteEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1.DeleteEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequestOrBuilder.java deleted file mode 100644 index d18af5feb45c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteEntryRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DeleteEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DeleteEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the entry to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequest.java deleted file mode 100644 index 8979d33ac761..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequest.java +++ /dev/null @@ -1,627 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [DeletePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.DeletePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeletePolicyTagRequest} - */ -@com.google.protobuf.Generated -public final class DeletePolicyTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeletePolicyTagRequest) - DeletePolicyTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeletePolicyTagRequest"); - } - - // Use DeletePolicyTagRequest.newBuilder() to construct. - private DeletePolicyTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeletePolicyTagRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest.class, - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. Resource name of the policy tag to delete.
-   *
-   * Note: All of its descendant policy tags are also deleted.
-   * 
- * - * - * 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. Resource name of the policy tag to delete.
-   *
-   * Note: All of its descendant policy tags are also deleted.
-   * 
- * - * - * 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.datacatalog.v1.DeletePolicyTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest other = - (com.google.cloud.datacatalog.v1.DeletePolicyTagRequest) 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.datacatalog.v1.DeletePolicyTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeletePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.DeletePolicyTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeletePolicyTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DeletePolicyTagRequest) - com.google.cloud.datacatalog.v1.DeletePolicyTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest.class, - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DeletePolicyTagRequest.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.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeletePolicyTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DeletePolicyTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeletePolicyTagRequest build() { - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeletePolicyTagRequest buildPartial() { - com.google.cloud.datacatalog.v1.DeletePolicyTagRequest result = - new com.google.cloud.datacatalog.v1.DeletePolicyTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DeletePolicyTagRequest 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.datacatalog.v1.DeletePolicyTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.DeletePolicyTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DeletePolicyTagRequest other) { - if (other == com.google.cloud.datacatalog.v1.DeletePolicyTagRequest.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. Resource name of the policy tag to delete.
-     *
-     * Note: All of its descendant policy tags are also deleted.
-     * 
- * - * - * 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. Resource name of the policy tag to delete.
-     *
-     * Note: All of its descendant policy tags are also deleted.
-     * 
- * - * - * 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. Resource name of the policy tag to delete.
-     *
-     * Note: All of its descendant policy tags are also deleted.
-     * 
- * - * - * 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. Resource name of the policy tag to delete.
-     *
-     * Note: All of its descendant policy tags are also deleted.
-     * 
- * - * - * 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. Resource name of the policy tag to delete.
-     *
-     * Note: All of its descendant policy tags are also deleted.
-     * 
- * - * - * 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.datacatalog.v1.DeletePolicyTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DeletePolicyTagRequest) - private static final com.google.cloud.datacatalog.v1.DeletePolicyTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DeletePolicyTagRequest(); - } - - public static com.google.cloud.datacatalog.v1.DeletePolicyTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePolicyTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeletePolicyTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequestOrBuilder.java deleted file mode 100644 index 04892e95fb62..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeletePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DeletePolicyTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DeletePolicyTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the policy tag to delete.
-   *
-   * Note: All of its descendant policy tags are also deleted.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. Resource name of the policy tag to delete.
-   *
-   * Note: All of its descendant policy tags are also deleted.
-   * 
- * - * - * 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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequest.java deleted file mode 100644 index 734a702f1c2d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequest.java +++ /dev/null @@ -1,612 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [DeleteTag][google.cloud.datacatalog.v1.DataCatalog.DeleteTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagRequest} - */ -@com.google.protobuf.Generated -public final class DeleteTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTagRequest) - DeleteTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteTagRequest"); - } - - // Use DeleteTagRequest.newBuilder() to construct. - private DeleteTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteTagRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteTagRequest.class, - com.google.cloud.datacatalog.v1.DeleteTagRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the tag to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1.DeleteTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DeleteTagRequest other = - (com.google.cloud.datacatalog.v1.DeleteTagRequest) 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.datacatalog.v1.DeleteTagRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.DeleteTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteTag][google.cloud.datacatalog.v1.DataCatalog.DeleteTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DeleteTagRequest) - com.google.cloud.datacatalog.v1.DeleteTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteTagRequest.class, - com.google.cloud.datacatalog.v1.DeleteTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DeleteTagRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DeleteTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagRequest build() { - com.google.cloud.datacatalog.v1.DeleteTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagRequest buildPartial() { - com.google.cloud.datacatalog.v1.DeleteTagRequest result = - new com.google.cloud.datacatalog.v1.DeleteTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DeleteTagRequest 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.datacatalog.v1.DeleteTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.DeleteTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DeleteTagRequest other) { - if (other == com.google.cloud.datacatalog.v1.DeleteTagRequest.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 tag to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DeleteTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DeleteTagRequest) - private static final com.google.cloud.datacatalog.v1.DeleteTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DeleteTagRequest(); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequestOrBuilder.java deleted file mode 100644 index f4902e757384..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DeleteTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DeleteTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequest.java deleted file mode 100644 index 5291ab30a98f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequest.java +++ /dev/null @@ -1,722 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [DeleteTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest} - */ -@com.google.protobuf.Generated -public final class DeleteTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest) - DeleteTagTemplateFieldRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteTagTemplateFieldRequest"); - } - - // Use DeleteTagTemplateFieldRequest.newBuilder() to construct. - private DeleteTagTemplateFieldRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteTagTemplateFieldRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the tag template field to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag template field to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_ = false; - - /** - * - * - *
-   * Required. If true, deletes this field from any tags that use it.
-   *
-   * Currently, `true` is the only supported value.
-   * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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.datacatalog.v1.DeleteTagTemplateFieldRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest other = - (com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest) 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.datacatalog.v1.DeleteTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplateField].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest) - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest build() { - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest buildPartial() { - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest result = - new com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest 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.datacatalog.v1.DeleteTagTemplateFieldRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest other) { - if (other - == com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest.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 name of the tag template field to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template field to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template field to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template field to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template field to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean force_; - - /** - * - * - *
-     * Required. If true, deletes this field from any tags that use it.
-     *
-     * Currently, `true` is the only supported value.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The force. - */ - @java.lang.Override - public boolean getForce() { - return force_; - } - - /** - * - * - *
-     * Required. If true, deletes this field from any tags that use it.
-     *
-     * Currently, `true` is the only supported value.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The force to set. - * @return This builder for chaining. - */ - public Builder setForce(boolean value) { - - force_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. If true, deletes this field from any tags that use it.
-     *
-     * Currently, `true` is the only supported value.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearForce() { - bitField0_ = (bitField0_ & ~0x00000002); - force_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest) - private static final com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest(); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTagTemplateFieldRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index 998bedbe7482..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DeleteTagTemplateFieldRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag template field to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag template field to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. If true, deletes this field from any tags that use it.
-   *
-   * Currently, `true` is the only supported value.
-   * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The force. - */ - boolean getForce(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequest.java deleted file mode 100644 index 35445c4d4309..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequest.java +++ /dev/null @@ -1,718 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [DeleteTagTemplate][google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagTemplateRequest} - */ -@com.google.protobuf.Generated -public final class DeleteTagTemplateRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTagTemplateRequest) - DeleteTagTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteTagTemplateRequest"); - } - - // Use DeleteTagTemplateRequest.newBuilder() to construct. - private DeleteTagTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteTagTemplateRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest.class, - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the tag template to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag template to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_ = false; - - /** - * - * - *
-   * Required. If true, deletes all tags that use this template.
-   *
-   * Currently, `true` is the only supported value.
-   * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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.datacatalog.v1.DeleteTagTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest other = - (com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest) 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.datacatalog.v1.DeleteTagTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteTagTemplate][google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplate].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTagTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DeleteTagTemplateRequest) - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest.class, - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_DeleteTagTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest build() { - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest buildPartial() { - com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest result = - new com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest 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.datacatalog.v1.DeleteTagTemplateRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest other) { - if (other == com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest.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 name of the tag template to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template to delete.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean force_; - - /** - * - * - *
-     * Required. If true, deletes all tags that use this template.
-     *
-     * Currently, `true` is the only supported value.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The force. - */ - @java.lang.Override - public boolean getForce() { - return force_; - } - - /** - * - * - *
-     * Required. If true, deletes all tags that use this template.
-     *
-     * Currently, `true` is the only supported value.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The force to set. - * @return This builder for chaining. - */ - public Builder setForce(boolean value) { - - force_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. If true, deletes all tags that use this template.
-     *
-     * Currently, `true` is the only supported value.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearForce() { - bitField0_ = (bitField0_ & ~0x00000002); - force_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DeleteTagTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DeleteTagTemplateRequest) - private static final com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest(); - } - - public static com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTagTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequestOrBuilder.java deleted file mode 100644 index 1d3036967bfe..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DeleteTagTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DeleteTagTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag template to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag template to delete.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. If true, deletes all tags that use this template.
-   *
-   * Currently, `true` is the only supported value.
-   * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The force. - */ - boolean getForce(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequest.java deleted file mode 100644 index 68fc3039b7fe..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequest.java +++ /dev/null @@ -1,627 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [DeleteTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.DeleteTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTaxonomyRequest} - */ -@com.google.protobuf.Generated -public final class DeleteTaxonomyRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DeleteTaxonomyRequest) - DeleteTaxonomyRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteTaxonomyRequest"); - } - - // Use DeleteTaxonomyRequest.newBuilder() to construct. - private DeleteTaxonomyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteTaxonomyRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest.class, - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. Resource name of the taxonomy to delete.
-   *
-   * Note: All policy tags in this taxonomy are also deleted.
-   * 
- * - * - * 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. Resource name of the taxonomy to delete.
-   *
-   * Note: All policy tags in this taxonomy are also deleted.
-   * 
- * - * - * 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.datacatalog.v1.DeleteTaxonomyRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest other = - (com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest) 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.datacatalog.v1.DeleteTaxonomyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.DeleteTaxonomy].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DeleteTaxonomyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DeleteTaxonomyRequest) - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest.class, - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest.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.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest build() { - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest buildPartial() { - com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest result = - new com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest 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.datacatalog.v1.DeleteTaxonomyRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest other) { - if (other == com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest.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. Resource name of the taxonomy to delete.
-     *
-     * Note: All policy tags in this taxonomy are also deleted.
-     * 
- * - * - * 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. Resource name of the taxonomy to delete.
-     *
-     * Note: All policy tags in this taxonomy are also deleted.
-     * 
- * - * - * 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. Resource name of the taxonomy to delete.
-     *
-     * Note: All policy tags in this taxonomy are also deleted.
-     * 
- * - * - * 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. Resource name of the taxonomy to delete.
-     *
-     * Note: All policy tags in this taxonomy are also deleted.
-     * 
- * - * - * 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. Resource name of the taxonomy to delete.
-     *
-     * Note: All policy tags in this taxonomy are also deleted.
-     * 
- * - * - * 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.datacatalog.v1.DeleteTaxonomyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DeleteTaxonomyRequest) - private static final com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest(); - } - - public static com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTaxonomyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequestOrBuilder.java deleted file mode 100644 index bc48dd5036a3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DeleteTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DeleteTaxonomyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DeleteTaxonomyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the taxonomy to delete.
-   *
-   * Note: All policy tags in this taxonomy are also deleted.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. Resource name of the taxonomy to delete.
-   *
-   * Note: All policy tags in this taxonomy are also deleted.
-   * 
- * - * - * 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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java deleted file mode 100644 index b127013e2d90..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpContentProto.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dump_content.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class DumpContentProto extends com.google.protobuf.GeneratedFile { - private DumpContentProto() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DumpContentProto"); - } - - 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_datacatalog_v1_TaggedEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_TaggedEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DumpItem_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DumpItem_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/datacatalog/v1/dump_conte" - + "nt.proto\022\033google.cloud.datacatalog.v1\032\037g" - + "oogle/api/field_behavior.proto\032-google/c" - + "loud/datacatalog/v1/datacatalog.proto\032&g" - + "oogle/cloud/datacatalog/v1/tags.proto\"\307\001" - + "\n\013TaggedEntry\0226\n\010v1_entry\030\001 \001(\0132\".google" - + ".cloud.datacatalog.v1.EntryH\000\022;\n\014present" - + "_tags\030\002 \003(\0132 .google.cloud.datacatalog.v" - + "1.TagB\003\340A\001\022:\n\013absent_tags\030\003 \003(\0132 .google" - + ".cloud.datacatalog.v1.TagB\003\340A\001B\007\n\005entry\"" - + "T\n\010DumpItem\022@\n\014tagged_entry\030\001 \001(\0132(.goog" - + "le.cloud.datacatalog.v1.TaggedEntryH\000B\006\n" - + "\004itemB\325\001\n\037com.google.cloud.datacatalog.v" - + "1B\020DumpContentProtoP\001ZAcloud.google.com/" - + "go/datacatalog/apiv1/datacatalogpb;datac" - + "atalogpb\252\002\033Google.Cloud.DataCatalog.V1\312\002" - + "\033Google\\Cloud\\DataCatalog\\V1\352\002\036Google::C" - + "loud::DataCatalog::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.datacatalog.v1.Datacatalog.getDescriptor(), - com.google.cloud.datacatalog.v1.Tags.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_TaggedEntry_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_TaggedEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_TaggedEntry_descriptor, - new java.lang.String[] { - "V1Entry", "PresentTags", "AbsentTags", "Entry", - }); - internal_static_google_cloud_datacatalog_v1_DumpItem_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_DumpItem_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DumpItem_descriptor, - new java.lang.String[] { - "TaggedEntry", "Item", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.datacatalog.v1.Datacatalog.getDescriptor(); - com.google.cloud.datacatalog.v1.Tags.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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItem.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItem.java deleted file mode 100644 index 09cde6cc1746..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItem.java +++ /dev/null @@ -1,793 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dump_content.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Wrapper for any item that can be contained in the dump.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DumpItem} - */ -@com.google.protobuf.Generated -public final class DumpItem extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.DumpItem) - DumpItemOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DumpItem"); - } - - // Use DumpItem.newBuilder() to construct. - private DumpItem(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DumpItem() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DumpContentProto - .internal_static_google_cloud_datacatalog_v1_DumpItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DumpContentProto - .internal_static_google_cloud_datacatalog_v1_DumpItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DumpItem.class, - com.google.cloud.datacatalog.v1.DumpItem.Builder.class); - } - - private int itemCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object item_; - - public enum ItemCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TAGGED_ENTRY(1), - ITEM_NOT_SET(0); - private final int value; - - private ItemCase(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 ItemCase valueOf(int value) { - return forNumber(value); - } - - public static ItemCase forNumber(int value) { - switch (value) { - case 1: - return TAGGED_ENTRY; - case 0: - return ITEM_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ItemCase getItemCase() { - return ItemCase.forNumber(itemCase_); - } - - public static final int TAGGED_ENTRY_FIELD_NUMBER = 1; - - /** - * - * - *
-   * Entry and its tags.
-   * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - * - * @return Whether the taggedEntry field is set. - */ - @java.lang.Override - public boolean hasTaggedEntry() { - return itemCase_ == 1; - } - - /** - * - * - *
-   * Entry and its tags.
-   * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - * - * @return The taggedEntry. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaggedEntry getTaggedEntry() { - if (itemCase_ == 1) { - return (com.google.cloud.datacatalog.v1.TaggedEntry) item_; - } - return com.google.cloud.datacatalog.v1.TaggedEntry.getDefaultInstance(); - } - - /** - * - * - *
-   * Entry and its tags.
-   * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaggedEntryOrBuilder getTaggedEntryOrBuilder() { - if (itemCase_ == 1) { - return (com.google.cloud.datacatalog.v1.TaggedEntry) item_; - } - return com.google.cloud.datacatalog.v1.TaggedEntry.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 (itemCase_ == 1) { - output.writeMessage(1, (com.google.cloud.datacatalog.v1.TaggedEntry) item_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (itemCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datacatalog.v1.TaggedEntry) item_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.DumpItem)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.DumpItem other = (com.google.cloud.datacatalog.v1.DumpItem) obj; - - if (!getItemCase().equals(other.getItemCase())) return false; - switch (itemCase_) { - case 1: - if (!getTaggedEntry().equals(other.getTaggedEntry())) 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 (itemCase_) { - case 1: - hash = (37 * hash) + TAGGED_ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getTaggedEntry().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.DumpItem parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.DumpItem prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Wrapper for any item that can be contained in the dump.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.DumpItem} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.DumpItem) - com.google.cloud.datacatalog.v1.DumpItemOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DumpContentProto - .internal_static_google_cloud_datacatalog_v1_DumpItem_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DumpContentProto - .internal_static_google_cloud_datacatalog_v1_DumpItem_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.DumpItem.class, - com.google.cloud.datacatalog.v1.DumpItem.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.DumpItem.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taggedEntryBuilder_ != null) { - taggedEntryBuilder_.clear(); - } - itemCase_ = 0; - item_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.DumpContentProto - .internal_static_google_cloud_datacatalog_v1_DumpItem_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DumpItem getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.DumpItem.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DumpItem build() { - com.google.cloud.datacatalog.v1.DumpItem result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DumpItem buildPartial() { - com.google.cloud.datacatalog.v1.DumpItem result = - new com.google.cloud.datacatalog.v1.DumpItem(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.DumpItem result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.DumpItem result) { - result.itemCase_ = itemCase_; - result.item_ = this.item_; - if (itemCase_ == 1 && taggedEntryBuilder_ != null) { - result.item_ = taggedEntryBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.DumpItem) { - return mergeFrom((com.google.cloud.datacatalog.v1.DumpItem) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.DumpItem other) { - if (other == com.google.cloud.datacatalog.v1.DumpItem.getDefaultInstance()) return this; - switch (other.getItemCase()) { - case TAGGED_ENTRY: - { - mergeTaggedEntry(other.getTaggedEntry()); - break; - } - case ITEM_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( - internalGetTaggedEntryFieldBuilder().getBuilder(), extensionRegistry); - itemCase_ = 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 itemCase_ = 0; - private java.lang.Object item_; - - public ItemCase getItemCase() { - return ItemCase.forNumber(itemCase_); - } - - public Builder clearItem() { - itemCase_ = 0; - item_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TaggedEntry, - com.google.cloud.datacatalog.v1.TaggedEntry.Builder, - com.google.cloud.datacatalog.v1.TaggedEntryOrBuilder> - taggedEntryBuilder_; - - /** - * - * - *
-     * Entry and its tags.
-     * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - * - * @return Whether the taggedEntry field is set. - */ - @java.lang.Override - public boolean hasTaggedEntry() { - return itemCase_ == 1; - } - - /** - * - * - *
-     * Entry and its tags.
-     * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - * - * @return The taggedEntry. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaggedEntry getTaggedEntry() { - if (taggedEntryBuilder_ == null) { - if (itemCase_ == 1) { - return (com.google.cloud.datacatalog.v1.TaggedEntry) item_; - } - return com.google.cloud.datacatalog.v1.TaggedEntry.getDefaultInstance(); - } else { - if (itemCase_ == 1) { - return taggedEntryBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.TaggedEntry.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Entry and its tags.
-     * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - */ - public Builder setTaggedEntry(com.google.cloud.datacatalog.v1.TaggedEntry value) { - if (taggedEntryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - item_ = value; - onChanged(); - } else { - taggedEntryBuilder_.setMessage(value); - } - itemCase_ = 1; - return this; - } - - /** - * - * - *
-     * Entry and its tags.
-     * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - */ - public Builder setTaggedEntry( - com.google.cloud.datacatalog.v1.TaggedEntry.Builder builderForValue) { - if (taggedEntryBuilder_ == null) { - item_ = builderForValue.build(); - onChanged(); - } else { - taggedEntryBuilder_.setMessage(builderForValue.build()); - } - itemCase_ = 1; - return this; - } - - /** - * - * - *
-     * Entry and its tags.
-     * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - */ - public Builder mergeTaggedEntry(com.google.cloud.datacatalog.v1.TaggedEntry value) { - if (taggedEntryBuilder_ == null) { - if (itemCase_ == 1 - && item_ != com.google.cloud.datacatalog.v1.TaggedEntry.getDefaultInstance()) { - item_ = - com.google.cloud.datacatalog.v1.TaggedEntry.newBuilder( - (com.google.cloud.datacatalog.v1.TaggedEntry) item_) - .mergeFrom(value) - .buildPartial(); - } else { - item_ = value; - } - onChanged(); - } else { - if (itemCase_ == 1) { - taggedEntryBuilder_.mergeFrom(value); - } else { - taggedEntryBuilder_.setMessage(value); - } - } - itemCase_ = 1; - return this; - } - - /** - * - * - *
-     * Entry and its tags.
-     * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - */ - public Builder clearTaggedEntry() { - if (taggedEntryBuilder_ == null) { - if (itemCase_ == 1) { - itemCase_ = 0; - item_ = null; - onChanged(); - } - } else { - if (itemCase_ == 1) { - itemCase_ = 0; - item_ = null; - } - taggedEntryBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Entry and its tags.
-     * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - */ - public com.google.cloud.datacatalog.v1.TaggedEntry.Builder getTaggedEntryBuilder() { - return internalGetTaggedEntryFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Entry and its tags.
-     * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaggedEntryOrBuilder getTaggedEntryOrBuilder() { - if ((itemCase_ == 1) && (taggedEntryBuilder_ != null)) { - return taggedEntryBuilder_.getMessageOrBuilder(); - } else { - if (itemCase_ == 1) { - return (com.google.cloud.datacatalog.v1.TaggedEntry) item_; - } - return com.google.cloud.datacatalog.v1.TaggedEntry.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Entry and its tags.
-     * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TaggedEntry, - com.google.cloud.datacatalog.v1.TaggedEntry.Builder, - com.google.cloud.datacatalog.v1.TaggedEntryOrBuilder> - internalGetTaggedEntryFieldBuilder() { - if (taggedEntryBuilder_ == null) { - if (!(itemCase_ == 1)) { - item_ = com.google.cloud.datacatalog.v1.TaggedEntry.getDefaultInstance(); - } - taggedEntryBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TaggedEntry, - com.google.cloud.datacatalog.v1.TaggedEntry.Builder, - com.google.cloud.datacatalog.v1.TaggedEntryOrBuilder>( - (com.google.cloud.datacatalog.v1.TaggedEntry) item_, - getParentForChildren(), - isClean()); - item_ = null; - } - itemCase_ = 1; - onChanged(); - return taggedEntryBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.DumpItem) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.DumpItem) - private static final com.google.cloud.datacatalog.v1.DumpItem DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.DumpItem(); - } - - public static com.google.cloud.datacatalog.v1.DumpItem getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DumpItem parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.DumpItem getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItemOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItemOrBuilder.java deleted file mode 100644 index 81d963634439..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/DumpItemOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dump_content.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface DumpItemOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.DumpItem) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Entry and its tags.
-   * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - * - * @return Whether the taggedEntry field is set. - */ - boolean hasTaggedEntry(); - - /** - * - * - *
-   * Entry and its tags.
-   * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - * - * @return The taggedEntry. - */ - com.google.cloud.datacatalog.v1.TaggedEntry getTaggedEntry(); - - /** - * - * - *
-   * Entry and its tags.
-   * 
- * - * .google.cloud.datacatalog.v1.TaggedEntry tagged_entry = 1; - */ - com.google.cloud.datacatalog.v1.TaggedEntryOrBuilder getTaggedEntryOrBuilder(); - - com.google.cloud.datacatalog.v1.DumpItem.ItemCase getItemCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Entry.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Entry.java deleted file mode 100644 index 247d526c6ebf..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Entry.java +++ /dev/null @@ -1,9954 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Entry metadata.
- * A Data Catalog entry represents another resource in Google
- * Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic) or
- * outside of it. You can use the `linked_resource` field
- * in the entry resource to refer to the original resource ID of the source
- * system.
- *
- * An entry resource contains resource details, for example, its schema.
- * Additionally, you can attach flexible metadata to an entry in the form of a
- * [Tag][google.cloud.datacatalog.v1.Tag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Entry} - */ -@com.google.protobuf.Generated -public final class Entry extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Entry) - EntryOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Entry"); - } - - // Use Entry.newBuilder() to construct. - private Entry(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Entry() { - name_ = ""; - linkedResource_ = ""; - fullyQualifiedName_ = ""; - displayName_ = ""; - description_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Entry_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 14: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Entry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Entry.class, - com.google.cloud.datacatalog.v1.Entry.Builder.class); - } - - private int bitField0_; - private int entryTypeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object entryType_; - - public enum EntryTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TYPE(2), - USER_SPECIFIED_TYPE(16), - ENTRYTYPE_NOT_SET(0); - private final int value; - - private EntryTypeCase(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 EntryTypeCase valueOf(int value) { - return forNumber(value); - } - - public static EntryTypeCase forNumber(int value) { - switch (value) { - case 2: - return TYPE; - case 16: - return USER_SPECIFIED_TYPE; - case 0: - return ENTRYTYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public EntryTypeCase getEntryTypeCase() { - return EntryTypeCase.forNumber(entryTypeCase_); - } - - private int systemCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object system_; - - public enum SystemCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INTEGRATED_SYSTEM(17), - USER_SPECIFIED_SYSTEM(18), - SYSTEM_NOT_SET(0); - private final int value; - - private SystemCase(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 SystemCase valueOf(int value) { - return forNumber(value); - } - - public static SystemCase forNumber(int value) { - switch (value) { - case 17: - return INTEGRATED_SYSTEM; - case 18: - return USER_SPECIFIED_SYSTEM; - case 0: - return SYSTEM_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SystemCase getSystemCase() { - return SystemCase.forNumber(systemCase_); - } - - private int systemSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object systemSpec_; - - public enum SystemSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SQL_DATABASE_SYSTEM_SPEC(39), - LOOKER_SYSTEM_SPEC(40), - CLOUD_BIGTABLE_SYSTEM_SPEC(41), - SYSTEMSPEC_NOT_SET(0); - private final int value; - - private SystemSpecCase(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 SystemSpecCase valueOf(int value) { - return forNumber(value); - } - - public static SystemSpecCase forNumber(int value) { - switch (value) { - case 39: - return SQL_DATABASE_SYSTEM_SPEC; - case 40: - return LOOKER_SYSTEM_SPEC; - case 41: - return CLOUD_BIGTABLE_SYSTEM_SPEC; - case 0: - return SYSTEMSPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - private int typeSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object typeSpec_; - - public enum TypeSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GCS_FILESET_SPEC(6), - BIGQUERY_TABLE_SPEC(12), - BIGQUERY_DATE_SHARDED_SPEC(15), - TYPESPEC_NOT_SET(0); - private final int value; - - private TypeSpecCase(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 TypeSpecCase valueOf(int value) { - return forNumber(value); - } - - public static TypeSpecCase forNumber(int value) { - switch (value) { - case 6: - return GCS_FILESET_SPEC; - case 12: - return BIGQUERY_TABLE_SPEC; - case 15: - return BIGQUERY_DATE_SHARDED_SPEC; - case 0: - return TYPESPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TypeSpecCase getTypeSpecCase() { - return TypeSpecCase.forNumber(typeSpecCase_); - } - - private int specCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object spec_; - - public enum SpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - DATABASE_TABLE_SPEC(24), - DATA_SOURCE_CONNECTION_SPEC(27), - ROUTINE_SPEC(28), - DATASET_SPEC(32), - FILESET_SPEC(33), - SERVICE_SPEC(42), - MODEL_SPEC(43), - FEATURE_ONLINE_STORE_SPEC(45), - SPEC_NOT_SET(0); - private final int value; - - private SpecCase(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 SpecCase valueOf(int value) { - return forNumber(value); - } - - public static SpecCase forNumber(int value) { - switch (value) { - case 24: - return DATABASE_TABLE_SPEC; - case 27: - return DATA_SOURCE_CONNECTION_SPEC; - case 28: - return ROUTINE_SPEC; - case 32: - return DATASET_SPEC; - case 33: - return FILESET_SPEC; - case 42: - return SERVICE_SPEC; - case 43: - return MODEL_SPEC; - case 45: - return FEATURE_ONLINE_STORE_SPEC; - case 0: - return SPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SpecCase getSpecCase() { - return SpecCase.forNumber(specCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Output only. Identifier. The resource name of an entry in URL format.
-   *
-   * Note: The entry itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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; - } - } - - /** - * - * - *
-   * Output only. Identifier. The resource name of an entry in URL format.
-   *
-   * Note: The entry itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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 LINKED_RESOURCE_FIELD_NUMBER = 9; - - @SuppressWarnings("serial") - private volatile java.lang.Object linkedResource_ = ""; - - /** - * - * - *
-   * The resource this metadata entry refers to.
-   *
-   * For Google Cloud Platform resources, `linked_resource` is the
-   * [Full Resource Name]
-   * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   * For example, the `linked_resource` for a table resource from BigQuery is:
-   *
-   * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   *
-   * Output only when the entry is one of the types in the `EntryType` enum.
-   *
-   * For entries with a `user_specified_type`, this field is optional and
-   * defaults to an empty string.
-   *
-   * The resource string must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), periods (.), colons (:), slashes (/), dashes (-),
-   * and hashes (#).
-   * The maximum size is 200 bytes when encoded in UTF-8.
-   * 
- * - * string linked_resource = 9; - * - * @return The linkedResource. - */ - @java.lang.Override - public java.lang.String getLinkedResource() { - java.lang.Object ref = linkedResource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - linkedResource_ = s; - return s; - } - } - - /** - * - * - *
-   * The resource this metadata entry refers to.
-   *
-   * For Google Cloud Platform resources, `linked_resource` is the
-   * [Full Resource Name]
-   * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   * For example, the `linked_resource` for a table resource from BigQuery is:
-   *
-   * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   *
-   * Output only when the entry is one of the types in the `EntryType` enum.
-   *
-   * For entries with a `user_specified_type`, this field is optional and
-   * defaults to an empty string.
-   *
-   * The resource string must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), periods (.), colons (:), slashes (/), dashes (-),
-   * and hashes (#).
-   * The maximum size is 200 bytes when encoded in UTF-8.
-   * 
- * - * string linked_resource = 9; - * - * @return The bytes for linkedResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = linkedResource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - linkedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FULLY_QUALIFIED_NAME_FIELD_NUMBER = 29; - - @SuppressWarnings("serial") - private volatile java.lang.Object fullyQualifiedName_ = ""; - - /** - * - * - *
-   * [Fully Qualified Name
-   * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-   * of the resource. Set automatically for entries representing resources from
-   * synced systems. Settable only during creation, and read-only later. Can
-   * be used for search and lookup of the entries.
-   * 
- * - * string fully_qualified_name = 29; - * - * @return The fullyQualifiedName. - */ - @java.lang.Override - public java.lang.String getFullyQualifiedName() { - java.lang.Object ref = fullyQualifiedName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullyQualifiedName_ = s; - return s; - } - } - - /** - * - * - *
-   * [Fully Qualified Name
-   * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-   * of the resource. Set automatically for entries representing resources from
-   * synced systems. Settable only during creation, and read-only later. Can
-   * be used for search and lookup of the entries.
-   * 
- * - * string fully_qualified_name = 29; - * - * @return The bytes for fullyQualifiedName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { - java.lang.Object ref = fullyQualifiedName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fullyQualifiedName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - - /** - * - * - *
-   * The type of the entry.
-   *
-   * For details, see [`EntryType`](#entrytype).
-   * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @return Whether the type field is set. - */ - public boolean hasType() { - return entryTypeCase_ == 2; - } - - /** - * - * - *
-   * The type of the entry.
-   *
-   * For details, see [`EntryType`](#entrytype).
-   * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - public int getTypeValue() { - if (entryTypeCase_ == 2) { - return (java.lang.Integer) entryType_; - } - return 0; - } - - /** - * - * - *
-   * The type of the entry.
-   *
-   * For details, see [`EntryType`](#entrytype).
-   * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @return The type. - */ - public com.google.cloud.datacatalog.v1.EntryType getType() { - if (entryTypeCase_ == 2) { - com.google.cloud.datacatalog.v1.EntryType result = - com.google.cloud.datacatalog.v1.EntryType.forNumber((java.lang.Integer) entryType_); - return result == null ? com.google.cloud.datacatalog.v1.EntryType.UNRECOGNIZED : result; - } - return com.google.cloud.datacatalog.v1.EntryType.ENTRY_TYPE_UNSPECIFIED; - } - - public static final int USER_SPECIFIED_TYPE_FIELD_NUMBER = 16; - - /** - * - * - *
-   * Custom entry type that doesn't match any of the values allowed for input
-   * and listed in the `EntryType` enum.
-   *
-   * When creating an entry, first check the type values in the enum.
-   * If there are no appropriate types for the new entry,
-   * provide a custom value, for example, `my_special_type`.
-   *
-   * The `user_specified_type` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_type = 16; - * - * @return Whether the userSpecifiedType field is set. - */ - public boolean hasUserSpecifiedType() { - return entryTypeCase_ == 16; - } - - /** - * - * - *
-   * Custom entry type that doesn't match any of the values allowed for input
-   * and listed in the `EntryType` enum.
-   *
-   * When creating an entry, first check the type values in the enum.
-   * If there are no appropriate types for the new entry,
-   * provide a custom value, for example, `my_special_type`.
-   *
-   * The `user_specified_type` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_type = 16; - * - * @return The userSpecifiedType. - */ - public java.lang.String getUserSpecifiedType() { - java.lang.Object ref = ""; - if (entryTypeCase_ == 16) { - ref = entryType_; - } - if (ref instanceof java.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 (entryTypeCase_ == 16) { - entryType_ = s; - } - return s; - } - } - - /** - * - * - *
-   * Custom entry type that doesn't match any of the values allowed for input
-   * and listed in the `EntryType` enum.
-   *
-   * When creating an entry, first check the type values in the enum.
-   * If there are no appropriate types for the new entry,
-   * provide a custom value, for example, `my_special_type`.
-   *
-   * The `user_specified_type` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_type = 16; - * - * @return The bytes for userSpecifiedType. - */ - public com.google.protobuf.ByteString getUserSpecifiedTypeBytes() { - java.lang.Object ref = ""; - if (entryTypeCase_ == 16) { - ref = entryType_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (entryTypeCase_ == 16) { - entryType_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTEGRATED_SYSTEM_FIELD_NUMBER = 17; - - /** - * - * - *
-   * Output only. Indicates the entry's source system that Data Catalog
-   * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the integratedSystem field is set. - */ - public boolean hasIntegratedSystem() { - return systemCase_ == 17; - } - - /** - * - * - *
-   * Output only. Indicates the entry's source system that Data Catalog
-   * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for integratedSystem. - */ - public int getIntegratedSystemValue() { - if (systemCase_ == 17) { - return (java.lang.Integer) system_; - } - return 0; - } - - /** - * - * - *
-   * Output only. Indicates the entry's source system that Data Catalog
-   * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The integratedSystem. - */ - public com.google.cloud.datacatalog.v1.IntegratedSystem getIntegratedSystem() { - if (systemCase_ == 17) { - com.google.cloud.datacatalog.v1.IntegratedSystem result = - com.google.cloud.datacatalog.v1.IntegratedSystem.forNumber((java.lang.Integer) system_); - return result == null - ? com.google.cloud.datacatalog.v1.IntegratedSystem.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED; - } - - public static final int USER_SPECIFIED_SYSTEM_FIELD_NUMBER = 18; - - /** - * - * - *
-   * Indicates the entry's source system that Data Catalog doesn't
-   * automatically integrate with.
-   *
-   * The `user_specified_system` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_system = 18; - * - * @return Whether the userSpecifiedSystem field is set. - */ - public boolean hasUserSpecifiedSystem() { - return systemCase_ == 18; - } - - /** - * - * - *
-   * Indicates the entry's source system that Data Catalog doesn't
-   * automatically integrate with.
-   *
-   * The `user_specified_system` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_system = 18; - * - * @return The userSpecifiedSystem. - */ - public java.lang.String getUserSpecifiedSystem() { - java.lang.Object ref = ""; - if (systemCase_ == 18) { - ref = system_; - } - if (ref instanceof java.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 (systemCase_ == 18) { - system_ = s; - } - return s; - } - } - - /** - * - * - *
-   * Indicates the entry's source system that Data Catalog doesn't
-   * automatically integrate with.
-   *
-   * The `user_specified_system` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_system = 18; - * - * @return The bytes for userSpecifiedSystem. - */ - public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() { - java.lang.Object ref = ""; - if (systemCase_ == 18) { - ref = system_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (systemCase_ == 18) { - system_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SQL_DATABASE_SYSTEM_SPEC_FIELD_NUMBER = 39; - - /** - * - * - *
-   * Specification that applies to a relational database system. Only settable
-   * when `user_specified_system` is equal to `SQL_DATABASE`
-   * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - * @return Whether the sqlDatabaseSystemSpec field is set. - */ - @java.lang.Override - public boolean hasSqlDatabaseSystemSpec() { - return systemSpecCase_ == 39; - } - - /** - * - * - *
-   * Specification that applies to a relational database system. Only settable
-   * when `user_specified_system` is equal to `SQL_DATABASE`
-   * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - * @return The sqlDatabaseSystemSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec getSqlDatabaseSystemSpec() { - if (systemSpecCase_ == 39) { - return (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to a relational database system. Only settable
-   * when `user_specified_system` is equal to `SQL_DATABASE`
-   * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder - getSqlDatabaseSystemSpecOrBuilder() { - if (systemSpecCase_ == 39) { - return (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); - } - - public static final int LOOKER_SYSTEM_SPEC_FIELD_NUMBER = 40; - - /** - * - * - *
-   * Specification that applies to Looker sysstem. Only settable when
-   * `user_specified_system` is equal to `LOOKER`
-   * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - * - * @return Whether the lookerSystemSpec field is set. - */ - @java.lang.Override - public boolean hasLookerSystemSpec() { - return systemSpecCase_ == 40; - } - - /** - * - * - *
-   * Specification that applies to Looker sysstem. Only settable when
-   * `user_specified_system` is equal to `LOOKER`
-   * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - * - * @return The lookerSystemSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookerSystemSpec getLookerSystemSpec() { - if (systemSpecCase_ == 40) { - return (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to Looker sysstem. Only settable when
-   * `user_specified_system` is equal to `LOOKER`
-   * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder getLookerSystemSpecOrBuilder() { - if (systemSpecCase_ == 40) { - return (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); - } - - public static final int CLOUD_BIGTABLE_SYSTEM_SPEC_FIELD_NUMBER = 41; - - /** - * - * - *
-   * Specification that applies to Cloud Bigtable system. Only settable when
-   * `integrated_system` is equal to `CLOUD_BIGTABLE`
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - * - * @return Whether the cloudBigtableSystemSpec field is set. - */ - @java.lang.Override - public boolean hasCloudBigtableSystemSpec() { - return systemSpecCase_ == 41; - } - - /** - * - * - *
-   * Specification that applies to Cloud Bigtable system. Only settable when
-   * `integrated_system` is equal to `CLOUD_BIGTABLE`
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - * - * @return The cloudBigtableSystemSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec getCloudBigtableSystemSpec() { - if (systemSpecCase_ == 41) { - return (com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to Cloud Bigtable system. Only settable when
-   * `integrated_system` is equal to `CLOUD_BIGTABLE`
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableSystemSpecOrBuilder - getCloudBigtableSystemSpecOrBuilder() { - if (systemSpecCase_ == 41) { - return (com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance(); - } - - public static final int GCS_FILESET_SPEC_FIELD_NUMBER = 6; - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return Whether the gcsFilesetSpec field is set. - */ - @java.lang.Override - public boolean hasGcsFilesetSpec() { - return typeSpecCase_ == 6; - } - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return The gcsFilesetSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFilesetSpec getGcsFilesetSpec() { - if (typeSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder getGcsFilesetSpecOrBuilder() { - if (typeSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); - } - - public static final int BIGQUERY_TABLE_SPEC_FIELD_NUMBER = 12; - - /** - * - * - *
-   * Output only. Specification that applies to a BigQuery table. Valid only
-   * for entries with the `TABLE` type.
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the bigqueryTableSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryTableSpec() { - return typeSpecCase_ == 12; - } - - /** - * - * - *
-   * Output only. Specification that applies to a BigQuery table. Valid only
-   * for entries with the `TABLE` type.
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bigqueryTableSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryTableSpec getBigqueryTableSpec() { - if (typeSpecCase_ == 12) { - return (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Output only. Specification that applies to a BigQuery table. Valid only
-   * for entries with the `TABLE` type.
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder - getBigqueryTableSpecOrBuilder() { - if (typeSpecCase_ == 12) { - return (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); - } - - public static final int BIGQUERY_DATE_SHARDED_SPEC_FIELD_NUMBER = 15; - - /** - * - * - *
-   * Output only. Specification for a group of BigQuery tables with
-   * the `[prefix]YYYYMMDD` name pattern.
-   *
-   * For more information, see [Introduction to partitioned tables]
-   * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the bigqueryDateShardedSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryDateShardedSpec() { - return typeSpecCase_ == 15; - } - - /** - * - * - *
-   * Output only. Specification for a group of BigQuery tables with
-   * the `[prefix]YYYYMMDD` name pattern.
-   *
-   * For more information, see [Introduction to partitioned tables]
-   * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bigqueryDateShardedSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec getBigqueryDateShardedSpec() { - if (typeSpecCase_ == 15) { - return (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Output only. Specification for a group of BigQuery tables with
-   * the `[prefix]YYYYMMDD` name pattern.
-   *
-   * For more information, see [Introduction to partitioned tables]
-   * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder - getBigqueryDateShardedSpecOrBuilder() { - if (typeSpecCase_ == 15) { - return (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); - } - - public static final int DATABASE_TABLE_SPEC_FIELD_NUMBER = 24; - - /** - * - * - *
-   * Specification that applies to a table resource. Valid only
-   * for entries with the `TABLE` or `EXPLORE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - * - * @return Whether the databaseTableSpec field is set. - */ - @java.lang.Override - public boolean hasDatabaseTableSpec() { - return specCase_ == 24; - } - - /** - * - * - *
-   * Specification that applies to a table resource. Valid only
-   * for entries with the `TABLE` or `EXPLORE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - * - * @return The databaseTableSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec getDatabaseTableSpec() { - if (specCase_ == 24) { - return (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to a table resource. Valid only
-   * for entries with the `TABLE` or `EXPLORE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder - getDatabaseTableSpecOrBuilder() { - if (specCase_ == 24) { - return (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); - } - - public static final int DATA_SOURCE_CONNECTION_SPEC_FIELD_NUMBER = 27; - - /** - * - * - *
-   * Specification that applies to a data source connection. Valid only
-   * for entries with the `DATA_SOURCE_CONNECTION` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - * - * @return Whether the dataSourceConnectionSpec field is set. - */ - @java.lang.Override - public boolean hasDataSourceConnectionSpec() { - return specCase_ == 27; - } - - /** - * - * - *
-   * Specification that applies to a data source connection. Valid only
-   * for entries with the `DATA_SOURCE_CONNECTION` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - * - * @return The dataSourceConnectionSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSourceConnectionSpec getDataSourceConnectionSpec() { - if (specCase_ == 27) { - return (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to a data source connection. Valid only
-   * for entries with the `DATA_SOURCE_CONNECTION` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder - getDataSourceConnectionSpecOrBuilder() { - if (specCase_ == 27) { - return (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); - } - - public static final int ROUTINE_SPEC_FIELD_NUMBER = 28; - - /** - * - * - *
-   * Specification that applies to a user-defined function or procedure. Valid
-   * only for entries with the `ROUTINE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - * - * @return Whether the routineSpec field is set. - */ - @java.lang.Override - public boolean hasRoutineSpec() { - return specCase_ == 28; - } - - /** - * - * - *
-   * Specification that applies to a user-defined function or procedure. Valid
-   * only for entries with the `ROUTINE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - * - * @return The routineSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec getRoutineSpec() { - if (specCase_ == 28) { - return (com.google.cloud.datacatalog.v1.RoutineSpec) spec_; - } - return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to a user-defined function or procedure. Valid
-   * only for entries with the `ROUTINE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder getRoutineSpecOrBuilder() { - if (specCase_ == 28) { - return (com.google.cloud.datacatalog.v1.RoutineSpec) spec_; - } - return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); - } - - public static final int DATASET_SPEC_FIELD_NUMBER = 32; - - /** - * - * - *
-   * Specification that applies to a dataset.
-   * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - * - * @return Whether the datasetSpec field is set. - */ - @java.lang.Override - public boolean hasDatasetSpec() { - return specCase_ == 32; - } - - /** - * - * - *
-   * Specification that applies to a dataset.
-   * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - * - * @return The datasetSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatasetSpec getDatasetSpec() { - if (specCase_ == 32) { - return (com.google.cloud.datacatalog.v1.DatasetSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to a dataset.
-   * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatasetSpecOrBuilder getDatasetSpecOrBuilder() { - if (specCase_ == 32) { - return (com.google.cloud.datacatalog.v1.DatasetSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance(); - } - - public static final int FILESET_SPEC_FIELD_NUMBER = 33; - - /** - * - * - *
-   * Specification that applies to a fileset resource. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - * - * @return Whether the filesetSpec field is set. - */ - @java.lang.Override - public boolean hasFilesetSpec() { - return specCase_ == 33; - } - - /** - * - * - *
-   * Specification that applies to a fileset resource. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - * - * @return The filesetSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FilesetSpec getFilesetSpec() { - if (specCase_ == 33) { - return (com.google.cloud.datacatalog.v1.FilesetSpec) spec_; - } - return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to a fileset resource. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder getFilesetSpecOrBuilder() { - if (specCase_ == 33) { - return (com.google.cloud.datacatalog.v1.FilesetSpec) spec_; - } - return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); - } - - public static final int SERVICE_SPEC_FIELD_NUMBER = 42; - - /** - * - * - *
-   * Specification that applies to a Service resource.
-   * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - * - * @return Whether the serviceSpec field is set. - */ - @java.lang.Override - public boolean hasServiceSpec() { - return specCase_ == 42; - } - - /** - * - * - *
-   * Specification that applies to a Service resource.
-   * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - * - * @return The serviceSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ServiceSpec getServiceSpec() { - if (specCase_ == 42) { - return (com.google.cloud.datacatalog.v1.ServiceSpec) spec_; - } - return com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to a Service resource.
-   * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ServiceSpecOrBuilder getServiceSpecOrBuilder() { - if (specCase_ == 42) { - return (com.google.cloud.datacatalog.v1.ServiceSpec) spec_; - } - return com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance(); - } - - public static final int MODEL_SPEC_FIELD_NUMBER = 43; - - /** - * - * - *
-   * Model specification.
-   * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - * - * @return Whether the modelSpec field is set. - */ - @java.lang.Override - public boolean hasModelSpec() { - return specCase_ == 43; - } - - /** - * - * - *
-   * Model specification.
-   * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - * - * @return The modelSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModelSpec getModelSpec() { - if (specCase_ == 43) { - return (com.google.cloud.datacatalog.v1.ModelSpec) spec_; - } - return com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Model specification.
-   * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModelSpecOrBuilder getModelSpecOrBuilder() { - if (specCase_ == 43) { - return (com.google.cloud.datacatalog.v1.ModelSpec) spec_; - } - return com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance(); - } - - public static final int FEATURE_ONLINE_STORE_SPEC_FIELD_NUMBER = 45; - - /** - * - * - *
-   * FeatureonlineStore spec for Vertex AI Feature Store.
-   * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - * - * @return Whether the featureOnlineStoreSpec field is set. - */ - @java.lang.Override - public boolean hasFeatureOnlineStoreSpec() { - return specCase_ == 45; - } - - /** - * - * - *
-   * FeatureonlineStore spec for Vertex AI Feature Store.
-   * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - * - * @return The featureOnlineStoreSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec getFeatureOnlineStoreSpec() { - if (specCase_ == 45) { - return (com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) spec_; - } - return com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * FeatureonlineStore spec for Vertex AI Feature Store.
-   * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpecOrBuilder - getFeatureOnlineStoreSpecOrBuilder() { - if (specCase_ == 45) { - return (com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) spec_; - } - return com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.getDefaultInstance(); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-   * Display name of an entry.
-   *
-   * The maximum size is 500 bytes when encoded in UTF-8.
-   * Default value is an empty string.
-   * 
- * - * string display_name = 3; - * - * @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; - } - } - - /** - * - * - *
-   * Display name of an entry.
-   *
-   * The maximum size is 500 bytes when encoded in UTF-8.
-   * Default value is an empty string.
-   * 
- * - * string display_name = 3; - * - * @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_ = ""; - - /** - * - * - *
-   * Entry description that can consist of several sentences or paragraphs
-   * that describe entry contents.
-   *
-   * The description must not contain Unicode non-characters as well as C0
-   * and C1 control codes except tabs (HT), new lines (LF), carriage returns
-   * (CR), and page breaks (FF).
-   * The maximum size is 2000 bytes when encoded in UTF-8.
-   * Default value is an empty string.
-   * 
- * - * string description = 4; - * - * @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; - } - } - - /** - * - * - *
-   * Entry description that can consist of several sentences or paragraphs
-   * that describe entry contents.
-   *
-   * The description must not contain Unicode non-characters as well as C0
-   * and C1 control codes except tabs (HT), new lines (LF), carriage returns
-   * (CR), and page breaks (FF).
-   * The maximum size is 2000 bytes when encoded in UTF-8.
-   * Default value is an empty string.
-   * 
- * - * string description = 4; - * - * @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 BUSINESS_CONTEXT_FIELD_NUMBER = 37; - private com.google.cloud.datacatalog.v1.BusinessContext businessContext_; - - /** - * - * - *
-   * Business Context of the entry. Not supported for BigQuery datasets
-   * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - * - * @return Whether the businessContext field is set. - */ - @java.lang.Override - public boolean hasBusinessContext() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Business Context of the entry. Not supported for BigQuery datasets
-   * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - * - * @return The businessContext. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BusinessContext getBusinessContext() { - return businessContext_ == null - ? com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance() - : businessContext_; - } - - /** - * - * - *
-   * Business Context of the entry. Not supported for BigQuery datasets
-   * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BusinessContextOrBuilder getBusinessContextOrBuilder() { - return businessContext_ == null - ? com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance() - : businessContext_; - } - - public static final int SCHEMA_FIELD_NUMBER = 5; - private com.google.cloud.datacatalog.v1.Schema schema_; - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - * - * @return Whether the schema field is set. - */ - @java.lang.Override - public boolean hasSchema() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - * - * @return The schema. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Schema getSchema() { - return schema_ == null ? com.google.cloud.datacatalog.v1.Schema.getDefaultInstance() : schema_; - } - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SchemaOrBuilder getSchemaOrBuilder() { - return schema_ == null ? com.google.cloud.datacatalog.v1.Schema.getDefaultInstance() : schema_; - } - - public static final int SOURCE_SYSTEM_TIMESTAMPS_FIELD_NUMBER = 7; - private com.google.cloud.datacatalog.v1.SystemTimestamps sourceSystemTimestamps_; - - /** - * - * - *
-   * Timestamps from the underlying resource, not from the Data Catalog
-   * entry.
-   *
-   * Output only when the entry has a system listed in the `IntegratedSystem`
-   * enum. For entries with `user_specified_system`, this field is optional
-   * and defaults to an empty timestamp.
-   * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - * - * @return Whether the sourceSystemTimestamps field is set. - */ - @java.lang.Override - public boolean hasSourceSystemTimestamps() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-   * Timestamps from the underlying resource, not from the Data Catalog
-   * entry.
-   *
-   * Output only when the entry has a system listed in the `IntegratedSystem`
-   * enum. For entries with `user_specified_system`, this field is optional
-   * and defaults to an empty timestamp.
-   * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - * - * @return The sourceSystemTimestamps. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestamps getSourceSystemTimestamps() { - return sourceSystemTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : sourceSystemTimestamps_; - } - - /** - * - * - *
-   * Timestamps from the underlying resource, not from the Data Catalog
-   * entry.
-   *
-   * Output only when the entry has a system listed in the `IntegratedSystem`
-   * enum. For entries with `user_specified_system`, this field is optional
-   * and defaults to an empty timestamp.
-   * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder - getSourceSystemTimestampsOrBuilder() { - return sourceSystemTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : sourceSystemTimestamps_; - } - - public static final int USAGE_SIGNAL_FIELD_NUMBER = 13; - private com.google.cloud.datacatalog.v1.UsageSignal usageSignal_; - - /** - * - * - *
-   * Resource usage statistics.
-   * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - * - * @return Whether the usageSignal field is set. - */ - @java.lang.Override - public boolean hasUsageSignal() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-   * Resource usage statistics.
-   * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - * - * @return The usageSignal. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageSignal getUsageSignal() { - return usageSignal_ == null - ? com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance() - : usageSignal_; - } - - /** - * - * - *
-   * Resource usage statistics.
-   * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageSignalOrBuilder getUsageSignalOrBuilder() { - return usageSignal_ == null - ? com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance() - : usageSignal_; - } - - public static final int LABELS_FIELD_NUMBER = 14; - - private static final class LabelsDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Entry_LabelsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - - /** - * - * - *
-   * Cloud labels attached to the entry.
-   *
-   * In Data Catalog, you can create and modify labels attached only to custom
-   * entries. Synced entries have unmodifiable labels that come from the source
-   * system.
-   * 
- * - * map<string, string> labels = 14; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - - /** - * - * - *
-   * Cloud labels attached to the entry.
-   *
-   * In Data Catalog, you can create and modify labels attached only to custom
-   * entries. Synced entries have unmodifiable labels that come from the source
-   * system.
-   * 
- * - * map<string, string> labels = 14; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - - /** - * - * - *
-   * Cloud labels attached to the entry.
-   *
-   * In Data Catalog, you can create and modify labels attached only to custom
-   * entries. Synced entries have unmodifiable labels that come from the source
-   * system.
-   * 
- * - * map<string, string> labels = 14; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-   * Cloud labels attached to the entry.
-   *
-   * In Data Catalog, you can create and modify labels attached only to custom
-   * entries. Synced entries have unmodifiable labels that come from the source
-   * system.
-   * 
- * - * map<string, string> labels = 14; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int DATA_SOURCE_FIELD_NUMBER = 20; - private com.google.cloud.datacatalog.v1.DataSource dataSource_; - - /** - * - * - *
-   * Output only. Physical location of the entry.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataSource field is set. - */ - @java.lang.Override - public boolean hasDataSource() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
-   * Output only. Physical location of the entry.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataSource. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSource getDataSource() { - return dataSource_ == null - ? com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance() - : dataSource_; - } - - /** - * - * - *
-   * Output only. Physical location of the entry.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSourceOrBuilder getDataSourceOrBuilder() { - return dataSource_ == null - ? com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance() - : dataSource_; - } - - public static final int PERSONAL_DETAILS_FIELD_NUMBER = 26; - private com.google.cloud.datacatalog.v1.PersonalDetails personalDetails_; - - /** - * - * - *
-   * Output only. Additional information related to the entry. Private to the
-   * current user.
-   * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the personalDetails field is set. - */ - @java.lang.Override - public boolean hasPersonalDetails() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
-   * Output only. Additional information related to the entry. Private to the
-   * current user.
-   * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The personalDetails. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PersonalDetails getPersonalDetails() { - return personalDetails_ == null - ? com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance() - : personalDetails_; - } - - /** - * - * - *
-   * Output only. Additional information related to the entry. Private to the
-   * current user.
-   * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder getPersonalDetailsOrBuilder() { - return personalDetails_ == null - ? com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance() - : personalDetails_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (entryTypeCase_ == 2) { - output.writeEnum(2, ((java.lang.Integer) entryType_)); - } - 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 (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getSchema()); - } - if (typeSpecCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(7, getSourceSystemTimestamps()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(linkedResource_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 9, linkedResource_); - } - if (typeSpecCase_ == 12) { - output.writeMessage(12, (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_); - } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(13, getUsageSignal()); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 14); - if (typeSpecCase_ == 15) { - output.writeMessage(15, (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_); - } - if (entryTypeCase_ == 16) { - com.google.protobuf.GeneratedMessage.writeString(output, 16, entryType_); - } - if (systemCase_ == 17) { - output.writeEnum(17, ((java.lang.Integer) system_)); - } - if (systemCase_ == 18) { - com.google.protobuf.GeneratedMessage.writeString(output, 18, system_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeMessage(20, getDataSource()); - } - if (specCase_ == 24) { - output.writeMessage(24, (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_); - } - if (((bitField0_ & 0x00000020) != 0)) { - output.writeMessage(26, getPersonalDetails()); - } - if (specCase_ == 27) { - output.writeMessage(27, (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_); - } - if (specCase_ == 28) { - output.writeMessage(28, (com.google.cloud.datacatalog.v1.RoutineSpec) spec_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullyQualifiedName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 29, fullyQualifiedName_); - } - if (specCase_ == 32) { - output.writeMessage(32, (com.google.cloud.datacatalog.v1.DatasetSpec) spec_); - } - if (specCase_ == 33) { - output.writeMessage(33, (com.google.cloud.datacatalog.v1.FilesetSpec) spec_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(37, getBusinessContext()); - } - if (systemSpecCase_ == 39) { - output.writeMessage(39, (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_); - } - if (systemSpecCase_ == 40) { - output.writeMessage(40, (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_); - } - if (systemSpecCase_ == 41) { - output.writeMessage( - 41, (com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) systemSpec_); - } - if (specCase_ == 42) { - output.writeMessage(42, (com.google.cloud.datacatalog.v1.ServiceSpec) spec_); - } - if (specCase_ == 43) { - output.writeMessage(43, (com.google.cloud.datacatalog.v1.ModelSpec) spec_); - } - if (specCase_ == 45) { - output.writeMessage(45, (com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) spec_); - } - 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 (entryTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 2, ((java.lang.Integer) entryType_)); - } - 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 (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSchema()); - } - if (typeSpecCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSourceSystemTimestamps()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(linkedResource_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(9, linkedResource_); - } - if (typeSpecCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_); - } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getUsageSignal()); - } - for (java.util.Map.Entry entry : - internalGetLabels().getMap().entrySet()) { - com.google.protobuf.MapEntry labels__ = - LabelsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(14, labels__); - } - if (typeSpecCase_ == 15) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_); - } - if (entryTypeCase_ == 16) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(16, entryType_); - } - if (systemCase_ == 17) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(17, ((java.lang.Integer) system_)); - } - if (systemCase_ == 18) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(18, system_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(20, getDataSource()); - } - if (specCase_ == 24) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 24, (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_); - } - if (((bitField0_ & 0x00000020) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(26, getPersonalDetails()); - } - if (specCase_ == 27) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 27, (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_); - } - if (specCase_ == 28) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 28, (com.google.cloud.datacatalog.v1.RoutineSpec) spec_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullyQualifiedName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(29, fullyQualifiedName_); - } - if (specCase_ == 32) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 32, (com.google.cloud.datacatalog.v1.DatasetSpec) spec_); - } - if (specCase_ == 33) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 33, (com.google.cloud.datacatalog.v1.FilesetSpec) spec_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(37, getBusinessContext()); - } - if (systemSpecCase_ == 39) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 39, (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_); - } - if (systemSpecCase_ == 40) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 40, (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_); - } - if (systemSpecCase_ == 41) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 41, (com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) systemSpec_); - } - if (specCase_ == 42) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 42, (com.google.cloud.datacatalog.v1.ServiceSpec) spec_); - } - if (specCase_ == 43) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 43, (com.google.cloud.datacatalog.v1.ModelSpec) spec_); - } - if (specCase_ == 45) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 45, (com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) spec_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.Entry)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.Entry other = (com.google.cloud.datacatalog.v1.Entry) obj; - - if (!getName().equals(other.getName())) return false; - if (!getLinkedResource().equals(other.getLinkedResource())) return false; - if (!getFullyQualifiedName().equals(other.getFullyQualifiedName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (hasBusinessContext() != other.hasBusinessContext()) return false; - if (hasBusinessContext()) { - if (!getBusinessContext().equals(other.getBusinessContext())) return false; - } - if (hasSchema() != other.hasSchema()) return false; - if (hasSchema()) { - if (!getSchema().equals(other.getSchema())) return false; - } - if (hasSourceSystemTimestamps() != other.hasSourceSystemTimestamps()) return false; - if (hasSourceSystemTimestamps()) { - if (!getSourceSystemTimestamps().equals(other.getSourceSystemTimestamps())) return false; - } - if (hasUsageSignal() != other.hasUsageSignal()) return false; - if (hasUsageSignal()) { - if (!getUsageSignal().equals(other.getUsageSignal())) return false; - } - if (!internalGetLabels().equals(other.internalGetLabels())) return false; - if (hasDataSource() != other.hasDataSource()) return false; - if (hasDataSource()) { - if (!getDataSource().equals(other.getDataSource())) return false; - } - if (hasPersonalDetails() != other.hasPersonalDetails()) return false; - if (hasPersonalDetails()) { - if (!getPersonalDetails().equals(other.getPersonalDetails())) return false; - } - if (!getEntryTypeCase().equals(other.getEntryTypeCase())) return false; - switch (entryTypeCase_) { - case 2: - if (getTypeValue() != other.getTypeValue()) return false; - break; - case 16: - if (!getUserSpecifiedType().equals(other.getUserSpecifiedType())) return false; - break; - case 0: - default: - } - if (!getSystemCase().equals(other.getSystemCase())) return false; - switch (systemCase_) { - case 17: - if (getIntegratedSystemValue() != other.getIntegratedSystemValue()) return false; - break; - case 18: - if (!getUserSpecifiedSystem().equals(other.getUserSpecifiedSystem())) return false; - break; - case 0: - default: - } - if (!getSystemSpecCase().equals(other.getSystemSpecCase())) return false; - switch (systemSpecCase_) { - case 39: - if (!getSqlDatabaseSystemSpec().equals(other.getSqlDatabaseSystemSpec())) return false; - break; - case 40: - if (!getLookerSystemSpec().equals(other.getLookerSystemSpec())) return false; - break; - case 41: - if (!getCloudBigtableSystemSpec().equals(other.getCloudBigtableSystemSpec())) return false; - break; - case 0: - default: - } - if (!getTypeSpecCase().equals(other.getTypeSpecCase())) return false; - switch (typeSpecCase_) { - case 6: - if (!getGcsFilesetSpec().equals(other.getGcsFilesetSpec())) return false; - break; - case 12: - if (!getBigqueryTableSpec().equals(other.getBigqueryTableSpec())) return false; - break; - case 15: - if (!getBigqueryDateShardedSpec().equals(other.getBigqueryDateShardedSpec())) return false; - break; - case 0: - default: - } - if (!getSpecCase().equals(other.getSpecCase())) return false; - switch (specCase_) { - case 24: - if (!getDatabaseTableSpec().equals(other.getDatabaseTableSpec())) return false; - break; - case 27: - if (!getDataSourceConnectionSpec().equals(other.getDataSourceConnectionSpec())) - return false; - break; - case 28: - if (!getRoutineSpec().equals(other.getRoutineSpec())) return false; - break; - case 32: - if (!getDatasetSpec().equals(other.getDatasetSpec())) return false; - break; - case 33: - if (!getFilesetSpec().equals(other.getFilesetSpec())) return false; - break; - case 42: - if (!getServiceSpec().equals(other.getServiceSpec())) return false; - break; - case 43: - if (!getModelSpec().equals(other.getModelSpec())) return false; - break; - case 45: - if (!getFeatureOnlineStoreSpec().equals(other.getFeatureOnlineStoreSpec())) 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) + LINKED_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getLinkedResource().hashCode(); - hash = (37 * hash) + FULLY_QUALIFIED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFullyQualifiedName().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 (hasBusinessContext()) { - hash = (37 * hash) + BUSINESS_CONTEXT_FIELD_NUMBER; - hash = (53 * hash) + getBusinessContext().hashCode(); - } - if (hasSchema()) { - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - } - if (hasSourceSystemTimestamps()) { - hash = (37 * hash) + SOURCE_SYSTEM_TIMESTAMPS_FIELD_NUMBER; - hash = (53 * hash) + getSourceSystemTimestamps().hashCode(); - } - if (hasUsageSignal()) { - hash = (37 * hash) + USAGE_SIGNAL_FIELD_NUMBER; - hash = (53 * hash) + getUsageSignal().hashCode(); - } - if (!internalGetLabels().getMap().isEmpty()) { - hash = (37 * hash) + LABELS_FIELD_NUMBER; - hash = (53 * hash) + internalGetLabels().hashCode(); - } - if (hasDataSource()) { - hash = (37 * hash) + DATA_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getDataSource().hashCode(); - } - if (hasPersonalDetails()) { - hash = (37 * hash) + PERSONAL_DETAILS_FIELD_NUMBER; - hash = (53 * hash) + getPersonalDetails().hashCode(); - } - switch (entryTypeCase_) { - case 2: - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getTypeValue(); - break; - case 16: - hash = (37 * hash) + USER_SPECIFIED_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getUserSpecifiedType().hashCode(); - break; - case 0: - default: - } - switch (systemCase_) { - case 17: - hash = (37 * hash) + INTEGRATED_SYSTEM_FIELD_NUMBER; - hash = (53 * hash) + getIntegratedSystemValue(); - break; - case 18: - hash = (37 * hash) + USER_SPECIFIED_SYSTEM_FIELD_NUMBER; - hash = (53 * hash) + getUserSpecifiedSystem().hashCode(); - break; - case 0: - default: - } - switch (systemSpecCase_) { - case 39: - hash = (37 * hash) + SQL_DATABASE_SYSTEM_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getSqlDatabaseSystemSpec().hashCode(); - break; - case 40: - hash = (37 * hash) + LOOKER_SYSTEM_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getLookerSystemSpec().hashCode(); - break; - case 41: - hash = (37 * hash) + CLOUD_BIGTABLE_SYSTEM_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getCloudBigtableSystemSpec().hashCode(); - break; - case 0: - default: - } - switch (typeSpecCase_) { - case 6: - hash = (37 * hash) + GCS_FILESET_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getGcsFilesetSpec().hashCode(); - break; - case 12: - hash = (37 * hash) + BIGQUERY_TABLE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryTableSpec().hashCode(); - break; - case 15: - hash = (37 * hash) + BIGQUERY_DATE_SHARDED_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryDateShardedSpec().hashCode(); - break; - case 0: - default: - } - switch (specCase_) { - case 24: - hash = (37 * hash) + DATABASE_TABLE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getDatabaseTableSpec().hashCode(); - break; - case 27: - hash = (37 * hash) + DATA_SOURCE_CONNECTION_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getDataSourceConnectionSpec().hashCode(); - break; - case 28: - hash = (37 * hash) + ROUTINE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getRoutineSpec().hashCode(); - break; - case 32: - hash = (37 * hash) + DATASET_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getDatasetSpec().hashCode(); - break; - case 33: - hash = (37 * hash) + FILESET_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getFilesetSpec().hashCode(); - break; - case 42: - hash = (37 * hash) + SERVICE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getServiceSpec().hashCode(); - break; - case 43: - hash = (37 * hash) + MODEL_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getModelSpec().hashCode(); - break; - case 45: - hash = (37 * hash) + FEATURE_ONLINE_STORE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getFeatureOnlineStoreSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.Entry parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Entry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Entry parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Entry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Entry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Entry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Entry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Entry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Entry parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Entry parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Entry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Entry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.Entry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Entry metadata.
-   * A Data Catalog entry represents another resource in Google
-   * Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic) or
-   * outside of it. You can use the `linked_resource` field
-   * in the entry resource to refer to the original resource ID of the source
-   * system.
-   *
-   * An entry resource contains resource details, for example, its schema.
-   * Additionally, you can attach flexible metadata to an entry in the form of a
-   * [Tag][google.cloud.datacatalog.v1.Tag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Entry} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.Entry) - com.google.cloud.datacatalog.v1.EntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Entry_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 14: - return internalGetLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 14: - return internalGetMutableLabels(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Entry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Entry.class, - com.google.cloud.datacatalog.v1.Entry.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.Entry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetBusinessContextFieldBuilder(); - internalGetSchemaFieldBuilder(); - internalGetSourceSystemTimestampsFieldBuilder(); - internalGetUsageSignalFieldBuilder(); - internalGetDataSourceFieldBuilder(); - internalGetPersonalDetailsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - linkedResource_ = ""; - fullyQualifiedName_ = ""; - if (sqlDatabaseSystemSpecBuilder_ != null) { - sqlDatabaseSystemSpecBuilder_.clear(); - } - if (lookerSystemSpecBuilder_ != null) { - lookerSystemSpecBuilder_.clear(); - } - if (cloudBigtableSystemSpecBuilder_ != null) { - cloudBigtableSystemSpecBuilder_.clear(); - } - if (gcsFilesetSpecBuilder_ != null) { - gcsFilesetSpecBuilder_.clear(); - } - if (bigqueryTableSpecBuilder_ != null) { - bigqueryTableSpecBuilder_.clear(); - } - if (bigqueryDateShardedSpecBuilder_ != null) { - bigqueryDateShardedSpecBuilder_.clear(); - } - if (databaseTableSpecBuilder_ != null) { - databaseTableSpecBuilder_.clear(); - } - if (dataSourceConnectionSpecBuilder_ != null) { - dataSourceConnectionSpecBuilder_.clear(); - } - if (routineSpecBuilder_ != null) { - routineSpecBuilder_.clear(); - } - if (datasetSpecBuilder_ != null) { - datasetSpecBuilder_.clear(); - } - if (filesetSpecBuilder_ != null) { - filesetSpecBuilder_.clear(); - } - if (serviceSpecBuilder_ != null) { - serviceSpecBuilder_.clear(); - } - if (modelSpecBuilder_ != null) { - modelSpecBuilder_.clear(); - } - if (featureOnlineStoreSpecBuilder_ != null) { - featureOnlineStoreSpecBuilder_.clear(); - } - displayName_ = ""; - description_ = ""; - businessContext_ = null; - if (businessContextBuilder_ != null) { - businessContextBuilder_.dispose(); - businessContextBuilder_ = null; - } - schema_ = null; - if (schemaBuilder_ != null) { - schemaBuilder_.dispose(); - schemaBuilder_ = null; - } - sourceSystemTimestamps_ = null; - if (sourceSystemTimestampsBuilder_ != null) { - sourceSystemTimestampsBuilder_.dispose(); - sourceSystemTimestampsBuilder_ = null; - } - usageSignal_ = null; - if (usageSignalBuilder_ != null) { - usageSignalBuilder_.dispose(); - usageSignalBuilder_ = null; - } - internalGetMutableLabels().clear(); - dataSource_ = null; - if (dataSourceBuilder_ != null) { - dataSourceBuilder_.dispose(); - dataSourceBuilder_ = null; - } - personalDetails_ = null; - if (personalDetailsBuilder_ != null) { - personalDetailsBuilder_.dispose(); - personalDetailsBuilder_ = null; - } - entryTypeCase_ = 0; - entryType_ = null; - systemCase_ = 0; - system_ = null; - systemSpecCase_ = 0; - systemSpec_ = null; - typeSpecCase_ = 0; - typeSpec_ = null; - specCase_ = 0; - spec_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_Entry_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Entry getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.Entry.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Entry build() { - com.google.cloud.datacatalog.v1.Entry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Entry buildPartial() { - com.google.cloud.datacatalog.v1.Entry result = - new com.google.cloud.datacatalog.v1.Entry(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.Entry result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.linkedResource_ = linkedResource_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.fullyQualifiedName_ = fullyQualifiedName_; - } - if (((from_bitField0_ & 0x00200000) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00400000) != 0)) { - result.description_ = description_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00800000) != 0)) { - result.businessContext_ = - businessContextBuilder_ == null ? businessContext_ : businessContextBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x01000000) != 0)) { - result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x02000000) != 0)) { - result.sourceSystemTimestamps_ = - sourceSystemTimestampsBuilder_ == null - ? sourceSystemTimestamps_ - : sourceSystemTimestampsBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x04000000) != 0)) { - result.usageSignal_ = - usageSignalBuilder_ == null ? usageSignal_ : usageSignalBuilder_.build(); - to_bitField0_ |= 0x00000008; - } - if (((from_bitField0_ & 0x08000000) != 0)) { - result.labels_ = internalGetLabels(); - result.labels_.makeImmutable(); - } - if (((from_bitField0_ & 0x10000000) != 0)) { - result.dataSource_ = dataSourceBuilder_ == null ? dataSource_ : dataSourceBuilder_.build(); - to_bitField0_ |= 0x00000010; - } - if (((from_bitField0_ & 0x20000000) != 0)) { - result.personalDetails_ = - personalDetailsBuilder_ == null ? personalDetails_ : personalDetailsBuilder_.build(); - to_bitField0_ |= 0x00000020; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.Entry result) { - result.entryTypeCase_ = entryTypeCase_; - result.entryType_ = this.entryType_; - result.systemCase_ = systemCase_; - result.system_ = this.system_; - result.systemSpecCase_ = systemSpecCase_; - result.systemSpec_ = this.systemSpec_; - if (systemSpecCase_ == 39 && sqlDatabaseSystemSpecBuilder_ != null) { - result.systemSpec_ = sqlDatabaseSystemSpecBuilder_.build(); - } - if (systemSpecCase_ == 40 && lookerSystemSpecBuilder_ != null) { - result.systemSpec_ = lookerSystemSpecBuilder_.build(); - } - if (systemSpecCase_ == 41 && cloudBigtableSystemSpecBuilder_ != null) { - result.systemSpec_ = cloudBigtableSystemSpecBuilder_.build(); - } - result.typeSpecCase_ = typeSpecCase_; - result.typeSpec_ = this.typeSpec_; - if (typeSpecCase_ == 6 && gcsFilesetSpecBuilder_ != null) { - result.typeSpec_ = gcsFilesetSpecBuilder_.build(); - } - if (typeSpecCase_ == 12 && bigqueryTableSpecBuilder_ != null) { - result.typeSpec_ = bigqueryTableSpecBuilder_.build(); - } - if (typeSpecCase_ == 15 && bigqueryDateShardedSpecBuilder_ != null) { - result.typeSpec_ = bigqueryDateShardedSpecBuilder_.build(); - } - result.specCase_ = specCase_; - result.spec_ = this.spec_; - if (specCase_ == 24 && databaseTableSpecBuilder_ != null) { - result.spec_ = databaseTableSpecBuilder_.build(); - } - if (specCase_ == 27 && dataSourceConnectionSpecBuilder_ != null) { - result.spec_ = dataSourceConnectionSpecBuilder_.build(); - } - if (specCase_ == 28 && routineSpecBuilder_ != null) { - result.spec_ = routineSpecBuilder_.build(); - } - if (specCase_ == 32 && datasetSpecBuilder_ != null) { - result.spec_ = datasetSpecBuilder_.build(); - } - if (specCase_ == 33 && filesetSpecBuilder_ != null) { - result.spec_ = filesetSpecBuilder_.build(); - } - if (specCase_ == 42 && serviceSpecBuilder_ != null) { - result.spec_ = serviceSpecBuilder_.build(); - } - if (specCase_ == 43 && modelSpecBuilder_ != null) { - result.spec_ = modelSpecBuilder_.build(); - } - if (specCase_ == 45 && featureOnlineStoreSpecBuilder_ != null) { - result.spec_ = featureOnlineStoreSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.Entry) { - return mergeFrom((com.google.cloud.datacatalog.v1.Entry) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.Entry other) { - if (other == com.google.cloud.datacatalog.v1.Entry.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getLinkedResource().isEmpty()) { - linkedResource_ = other.linkedResource_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getFullyQualifiedName().isEmpty()) { - fullyQualifiedName_ = other.fullyQualifiedName_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00200000; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00400000; - onChanged(); - } - if (other.hasBusinessContext()) { - mergeBusinessContext(other.getBusinessContext()); - } - if (other.hasSchema()) { - mergeSchema(other.getSchema()); - } - if (other.hasSourceSystemTimestamps()) { - mergeSourceSystemTimestamps(other.getSourceSystemTimestamps()); - } - if (other.hasUsageSignal()) { - mergeUsageSignal(other.getUsageSignal()); - } - internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x08000000; - if (other.hasDataSource()) { - mergeDataSource(other.getDataSource()); - } - if (other.hasPersonalDetails()) { - mergePersonalDetails(other.getPersonalDetails()); - } - switch (other.getEntryTypeCase()) { - case TYPE: - { - setTypeValue(other.getTypeValue()); - break; - } - case USER_SPECIFIED_TYPE: - { - entryTypeCase_ = 16; - entryType_ = other.entryType_; - onChanged(); - break; - } - case ENTRYTYPE_NOT_SET: - { - break; - } - } - switch (other.getSystemCase()) { - case INTEGRATED_SYSTEM: - { - setIntegratedSystemValue(other.getIntegratedSystemValue()); - break; - } - case USER_SPECIFIED_SYSTEM: - { - systemCase_ = 18; - system_ = other.system_; - onChanged(); - break; - } - case SYSTEM_NOT_SET: - { - break; - } - } - switch (other.getSystemSpecCase()) { - case SQL_DATABASE_SYSTEM_SPEC: - { - mergeSqlDatabaseSystemSpec(other.getSqlDatabaseSystemSpec()); - break; - } - case LOOKER_SYSTEM_SPEC: - { - mergeLookerSystemSpec(other.getLookerSystemSpec()); - break; - } - case CLOUD_BIGTABLE_SYSTEM_SPEC: - { - mergeCloudBigtableSystemSpec(other.getCloudBigtableSystemSpec()); - break; - } - case SYSTEMSPEC_NOT_SET: - { - break; - } - } - switch (other.getTypeSpecCase()) { - case GCS_FILESET_SPEC: - { - mergeGcsFilesetSpec(other.getGcsFilesetSpec()); - break; - } - case BIGQUERY_TABLE_SPEC: - { - mergeBigqueryTableSpec(other.getBigqueryTableSpec()); - break; - } - case BIGQUERY_DATE_SHARDED_SPEC: - { - mergeBigqueryDateShardedSpec(other.getBigqueryDateShardedSpec()); - break; - } - case TYPESPEC_NOT_SET: - { - break; - } - } - switch (other.getSpecCase()) { - case DATABASE_TABLE_SPEC: - { - mergeDatabaseTableSpec(other.getDatabaseTableSpec()); - break; - } - case DATA_SOURCE_CONNECTION_SPEC: - { - mergeDataSourceConnectionSpec(other.getDataSourceConnectionSpec()); - break; - } - case ROUTINE_SPEC: - { - mergeRoutineSpec(other.getRoutineSpec()); - break; - } - case DATASET_SPEC: - { - mergeDatasetSpec(other.getDatasetSpec()); - break; - } - case FILESET_SPEC: - { - mergeFilesetSpec(other.getFilesetSpec()); - break; - } - case SERVICE_SPEC: - { - mergeServiceSpec(other.getServiceSpec()); - break; - } - case MODEL_SPEC: - { - mergeModelSpec(other.getModelSpec()); - break; - } - case FEATURE_ONLINE_STORE_SPEC: - { - mergeFeatureOnlineStoreSpec(other.getFeatureOnlineStoreSpec()); - break; - } - case SPEC_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_ |= 0x00000001; - break; - } // case 10 - case 16: - { - int rawValue = input.readEnum(); - entryTypeCase_ = 2; - entryType_ = rawValue; - break; - } // case 16 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00200000; - break; - } // case 26 - case 34: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; - break; - } // case 34 - case 42: - { - input.readMessage(internalGetSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x01000000; - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetGcsFilesetSpecFieldBuilder().getBuilder(), extensionRegistry); - typeSpecCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - internalGetSourceSystemTimestampsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x02000000; - break; - } // case 58 - case 74: - { - linkedResource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 74 - case 98: - { - input.readMessage( - internalGetBigqueryTableSpecFieldBuilder().getBuilder(), extensionRegistry); - typeSpecCase_ = 12; - break; - } // case 98 - case 106: - { - input.readMessage( - internalGetUsageSignalFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x04000000; - break; - } // case 106 - case 114: - { - com.google.protobuf.MapEntry labels__ = - input.readMessage( - LabelsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableLabels() - .getMutableMap() - .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x08000000; - break; - } // case 114 - case 122: - { - input.readMessage( - internalGetBigqueryDateShardedSpecFieldBuilder().getBuilder(), - extensionRegistry); - typeSpecCase_ = 15; - break; - } // case 122 - case 130: - { - java.lang.String s = input.readStringRequireUtf8(); - entryTypeCase_ = 16; - entryType_ = s; - break; - } // case 130 - case 136: - { - int rawValue = input.readEnum(); - systemCase_ = 17; - system_ = rawValue; - break; - } // case 136 - case 146: - { - java.lang.String s = input.readStringRequireUtf8(); - systemCase_ = 18; - system_ = s; - break; - } // case 146 - case 162: - { - input.readMessage( - internalGetDataSourceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x10000000; - break; - } // case 162 - case 194: - { - input.readMessage( - internalGetDatabaseTableSpecFieldBuilder().getBuilder(), extensionRegistry); - specCase_ = 24; - break; - } // case 194 - case 210: - { - input.readMessage( - internalGetPersonalDetailsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x20000000; - break; - } // case 210 - case 218: - { - input.readMessage( - internalGetDataSourceConnectionSpecFieldBuilder().getBuilder(), - extensionRegistry); - specCase_ = 27; - break; - } // case 218 - case 226: - { - input.readMessage( - internalGetRoutineSpecFieldBuilder().getBuilder(), extensionRegistry); - specCase_ = 28; - break; - } // case 226 - case 234: - { - fullyQualifiedName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 234 - case 258: - { - input.readMessage( - internalGetDatasetSpecFieldBuilder().getBuilder(), extensionRegistry); - specCase_ = 32; - break; - } // case 258 - case 266: - { - input.readMessage( - internalGetFilesetSpecFieldBuilder().getBuilder(), extensionRegistry); - specCase_ = 33; - break; - } // case 266 - case 298: - { - input.readMessage( - internalGetBusinessContextFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00800000; - break; - } // case 298 - case 314: - { - input.readMessage( - internalGetSqlDatabaseSystemSpecFieldBuilder().getBuilder(), extensionRegistry); - systemSpecCase_ = 39; - break; - } // case 314 - case 322: - { - input.readMessage( - internalGetLookerSystemSpecFieldBuilder().getBuilder(), extensionRegistry); - systemSpecCase_ = 40; - break; - } // case 322 - case 330: - { - input.readMessage( - internalGetCloudBigtableSystemSpecFieldBuilder().getBuilder(), - extensionRegistry); - systemSpecCase_ = 41; - break; - } // case 330 - case 338: - { - input.readMessage( - internalGetServiceSpecFieldBuilder().getBuilder(), extensionRegistry); - specCase_ = 42; - break; - } // case 338 - case 346: - { - input.readMessage( - internalGetModelSpecFieldBuilder().getBuilder(), extensionRegistry); - specCase_ = 43; - break; - } // case 346 - case 362: - { - input.readMessage( - internalGetFeatureOnlineStoreSpecFieldBuilder().getBuilder(), - extensionRegistry); - specCase_ = 45; - break; - } // case 362 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int entryTypeCase_ = 0; - private java.lang.Object entryType_; - - public EntryTypeCase getEntryTypeCase() { - return EntryTypeCase.forNumber(entryTypeCase_); - } - - public Builder clearEntryType() { - entryTypeCase_ = 0; - entryType_ = null; - onChanged(); - return this; - } - - private int systemCase_ = 0; - private java.lang.Object system_; - - public SystemCase getSystemCase() { - return SystemCase.forNumber(systemCase_); - } - - public Builder clearSystem() { - systemCase_ = 0; - system_ = null; - onChanged(); - return this; - } - - private int systemSpecCase_ = 0; - private java.lang.Object systemSpec_; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public Builder clearSystemSpec() { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - return this; - } - - private int typeSpecCase_ = 0; - private java.lang.Object typeSpec_; - - public TypeSpecCase getTypeSpecCase() { - return TypeSpecCase.forNumber(typeSpecCase_); - } - - public Builder clearTypeSpec() { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - return this; - } - - private int specCase_ = 0; - private java.lang.Object spec_; - - public SpecCase getSpecCase() { - return SpecCase.forNumber(specCase_); - } - - public Builder clearSpec() { - specCase_ = 0; - spec_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - - /** - * - * - *
-     * Output only. Identifier. The resource name of an entry in URL format.
-     *
-     * Note: The entry itself and its child resources might not be
-     * stored in the location specified in its name.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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; - } - } - - /** - * - * - *
-     * Output only. Identifier. The resource name of an entry in URL format.
-     *
-     * Note: The entry itself and its child resources might not be
-     * stored in the location specified in its name.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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; - } - } - - /** - * - * - *
-     * Output only. Identifier. The resource name of an entry in URL format.
-     *
-     * Note: The entry itself and its child resources might not be
-     * stored in the location specified in its name.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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; - } - - /** - * - * - *
-     * Output only. Identifier. The resource name of an entry in URL format.
-     *
-     * Note: The entry itself and its child resources might not be
-     * stored in the location specified in its name.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Identifier. The resource name of an entry in URL format.
-     *
-     * Note: The entry itself and its child resources might not be
-     * stored in the location specified in its name.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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 linkedResource_ = ""; - - /** - * - * - *
-     * The resource this metadata entry refers to.
-     *
-     * For Google Cloud Platform resources, `linked_resource` is the
-     * [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     * For example, the `linked_resource` for a table resource from BigQuery is:
-     *
-     * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     *
-     * Output only when the entry is one of the types in the `EntryType` enum.
-     *
-     * For entries with a `user_specified_type`, this field is optional and
-     * defaults to an empty string.
-     *
-     * The resource string must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), periods (.), colons (:), slashes (/), dashes (-),
-     * and hashes (#).
-     * The maximum size is 200 bytes when encoded in UTF-8.
-     * 
- * - * string linked_resource = 9; - * - * @return The linkedResource. - */ - public java.lang.String getLinkedResource() { - java.lang.Object ref = linkedResource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - linkedResource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The resource this metadata entry refers to.
-     *
-     * For Google Cloud Platform resources, `linked_resource` is the
-     * [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     * For example, the `linked_resource` for a table resource from BigQuery is:
-     *
-     * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     *
-     * Output only when the entry is one of the types in the `EntryType` enum.
-     *
-     * For entries with a `user_specified_type`, this field is optional and
-     * defaults to an empty string.
-     *
-     * The resource string must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), periods (.), colons (:), slashes (/), dashes (-),
-     * and hashes (#).
-     * The maximum size is 200 bytes when encoded in UTF-8.
-     * 
- * - * string linked_resource = 9; - * - * @return The bytes for linkedResource. - */ - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = linkedResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - linkedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The resource this metadata entry refers to.
-     *
-     * For Google Cloud Platform resources, `linked_resource` is the
-     * [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     * For example, the `linked_resource` for a table resource from BigQuery is:
-     *
-     * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     *
-     * Output only when the entry is one of the types in the `EntryType` enum.
-     *
-     * For entries with a `user_specified_type`, this field is optional and
-     * defaults to an empty string.
-     *
-     * The resource string must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), periods (.), colons (:), slashes (/), dashes (-),
-     * and hashes (#).
-     * The maximum size is 200 bytes when encoded in UTF-8.
-     * 
- * - * string linked_resource = 9; - * - * @param value The linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - linkedResource_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The resource this metadata entry refers to.
-     *
-     * For Google Cloud Platform resources, `linked_resource` is the
-     * [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     * For example, the `linked_resource` for a table resource from BigQuery is:
-     *
-     * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     *
-     * Output only when the entry is one of the types in the `EntryType` enum.
-     *
-     * For entries with a `user_specified_type`, this field is optional and
-     * defaults to an empty string.
-     *
-     * The resource string must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), periods (.), colons (:), slashes (/), dashes (-),
-     * and hashes (#).
-     * The maximum size is 200 bytes when encoded in UTF-8.
-     * 
- * - * string linked_resource = 9; - * - * @return This builder for chaining. - */ - public Builder clearLinkedResource() { - linkedResource_ = getDefaultInstance().getLinkedResource(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * The resource this metadata entry refers to.
-     *
-     * For Google Cloud Platform resources, `linked_resource` is the
-     * [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     * For example, the `linked_resource` for a table resource from BigQuery is:
-     *
-     * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     *
-     * Output only when the entry is one of the types in the `EntryType` enum.
-     *
-     * For entries with a `user_specified_type`, this field is optional and
-     * defaults to an empty string.
-     *
-     * The resource string must contain only letters (a-z, A-Z), numbers (0-9),
-     * underscores (_), periods (.), colons (:), slashes (/), dashes (-),
-     * and hashes (#).
-     * The maximum size is 200 bytes when encoded in UTF-8.
-     * 
- * - * string linked_resource = 9; - * - * @param value The bytes for linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - linkedResource_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object fullyQualifiedName_ = ""; - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource. Set automatically for entries representing resources from
-     * synced systems. Settable only during creation, and read-only later. Can
-     * be used for search and lookup of the entries.
-     * 
- * - * string fully_qualified_name = 29; - * - * @return The fullyQualifiedName. - */ - public java.lang.String getFullyQualifiedName() { - java.lang.Object ref = fullyQualifiedName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullyQualifiedName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource. Set automatically for entries representing resources from
-     * synced systems. Settable only during creation, and read-only later. Can
-     * be used for search and lookup of the entries.
-     * 
- * - * string fully_qualified_name = 29; - * - * @return The bytes for fullyQualifiedName. - */ - public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { - java.lang.Object ref = fullyQualifiedName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fullyQualifiedName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource. Set automatically for entries representing resources from
-     * synced systems. Settable only during creation, and read-only later. Can
-     * be used for search and lookup of the entries.
-     * 
- * - * string fully_qualified_name = 29; - * - * @param value The fullyQualifiedName to set. - * @return This builder for chaining. - */ - public Builder setFullyQualifiedName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - fullyQualifiedName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource. Set automatically for entries representing resources from
-     * synced systems. Settable only during creation, and read-only later. Can
-     * be used for search and lookup of the entries.
-     * 
- * - * string fully_qualified_name = 29; - * - * @return This builder for chaining. - */ - public Builder clearFullyQualifiedName() { - fullyQualifiedName_ = getDefaultInstance().getFullyQualifiedName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource. Set automatically for entries representing resources from
-     * synced systems. Settable only during creation, and read-only later. Can
-     * be used for search and lookup of the entries.
-     * 
- * - * string fully_qualified_name = 29; - * - * @param value The bytes for fullyQualifiedName to set. - * @return This builder for chaining. - */ - public Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - fullyQualifiedName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The type of the entry.
-     *
-     * For details, see [`EntryType`](#entrytype).
-     * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @return Whether the type field is set. - */ - @java.lang.Override - public boolean hasType() { - return entryTypeCase_ == 2; - } - - /** - * - * - *
-     * The type of the entry.
-     *
-     * For details, see [`EntryType`](#entrytype).
-     * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - if (entryTypeCase_ == 2) { - return ((java.lang.Integer) entryType_).intValue(); - } - return 0; - } - - /** - * - * - *
-     * The type of the entry.
-     *
-     * For details, see [`EntryType`](#entrytype).
-     * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - entryTypeCase_ = 2; - entryType_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The type of the entry.
-     *
-     * For details, see [`EntryType`](#entrytype).
-     * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryType getType() { - if (entryTypeCase_ == 2) { - com.google.cloud.datacatalog.v1.EntryType result = - com.google.cloud.datacatalog.v1.EntryType.forNumber((java.lang.Integer) entryType_); - return result == null ? com.google.cloud.datacatalog.v1.EntryType.UNRECOGNIZED : result; - } - return com.google.cloud.datacatalog.v1.EntryType.ENTRY_TYPE_UNSPECIFIED; - } - - /** - * - * - *
-     * The type of the entry.
-     *
-     * For details, see [`EntryType`](#entrytype).
-     * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.datacatalog.v1.EntryType value) { - if (value == null) { - throw new NullPointerException(); - } - entryTypeCase_ = 2; - entryType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * The type of the entry.
-     *
-     * For details, see [`EntryType`](#entrytype).
-     * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @return This builder for chaining. - */ - public Builder clearType() { - if (entryTypeCase_ == 2) { - entryTypeCase_ = 0; - entryType_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Custom entry type that doesn't match any of the values allowed for input
-     * and listed in the `EntryType` enum.
-     *
-     * When creating an entry, first check the type values in the enum.
-     * If there are no appropriate types for the new entry,
-     * provide a custom value, for example, `my_special_type`.
-     *
-     * The `user_specified_type` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_type = 16; - * - * @return Whether the userSpecifiedType field is set. - */ - @java.lang.Override - public boolean hasUserSpecifiedType() { - return entryTypeCase_ == 16; - } - - /** - * - * - *
-     * Custom entry type that doesn't match any of the values allowed for input
-     * and listed in the `EntryType` enum.
-     *
-     * When creating an entry, first check the type values in the enum.
-     * If there are no appropriate types for the new entry,
-     * provide a custom value, for example, `my_special_type`.
-     *
-     * The `user_specified_type` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_type = 16; - * - * @return The userSpecifiedType. - */ - @java.lang.Override - public java.lang.String getUserSpecifiedType() { - java.lang.Object ref = ""; - if (entryTypeCase_ == 16) { - ref = entryType_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (entryTypeCase_ == 16) { - entryType_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Custom entry type that doesn't match any of the values allowed for input
-     * and listed in the `EntryType` enum.
-     *
-     * When creating an entry, first check the type values in the enum.
-     * If there are no appropriate types for the new entry,
-     * provide a custom value, for example, `my_special_type`.
-     *
-     * The `user_specified_type` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_type = 16; - * - * @return The bytes for userSpecifiedType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUserSpecifiedTypeBytes() { - java.lang.Object ref = ""; - if (entryTypeCase_ == 16) { - ref = entryType_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (entryTypeCase_ == 16) { - entryType_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Custom entry type that doesn't match any of the values allowed for input
-     * and listed in the `EntryType` enum.
-     *
-     * When creating an entry, first check the type values in the enum.
-     * If there are no appropriate types for the new entry,
-     * provide a custom value, for example, `my_special_type`.
-     *
-     * The `user_specified_type` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_type = 16; - * - * @param value The userSpecifiedType to set. - * @return This builder for chaining. - */ - public Builder setUserSpecifiedType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - entryTypeCase_ = 16; - entryType_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Custom entry type that doesn't match any of the values allowed for input
-     * and listed in the `EntryType` enum.
-     *
-     * When creating an entry, first check the type values in the enum.
-     * If there are no appropriate types for the new entry,
-     * provide a custom value, for example, `my_special_type`.
-     *
-     * The `user_specified_type` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_type = 16; - * - * @return This builder for chaining. - */ - public Builder clearUserSpecifiedType() { - if (entryTypeCase_ == 16) { - entryTypeCase_ = 0; - entryType_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Custom entry type that doesn't match any of the values allowed for input
-     * and listed in the `EntryType` enum.
-     *
-     * When creating an entry, first check the type values in the enum.
-     * If there are no appropriate types for the new entry,
-     * provide a custom value, for example, `my_special_type`.
-     *
-     * The `user_specified_type` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_type = 16; - * - * @param value The bytes for userSpecifiedType to set. - * @return This builder for chaining. - */ - public Builder setUserSpecifiedTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - entryTypeCase_ = 16; - entryType_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Indicates the entry's source system that Data Catalog
-     * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the integratedSystem field is set. - */ - @java.lang.Override - public boolean hasIntegratedSystem() { - return systemCase_ == 17; - } - - /** - * - * - *
-     * Output only. Indicates the entry's source system that Data Catalog
-     * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for integratedSystem. - */ - @java.lang.Override - public int getIntegratedSystemValue() { - if (systemCase_ == 17) { - return ((java.lang.Integer) system_).intValue(); - } - return 0; - } - - /** - * - * - *
-     * Output only. Indicates the entry's source system that Data Catalog
-     * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for integratedSystem to set. - * @return This builder for chaining. - */ - public Builder setIntegratedSystemValue(int value) { - systemCase_ = 17; - system_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Indicates the entry's source system that Data Catalog
-     * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The integratedSystem. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.IntegratedSystem getIntegratedSystem() { - if (systemCase_ == 17) { - com.google.cloud.datacatalog.v1.IntegratedSystem result = - com.google.cloud.datacatalog.v1.IntegratedSystem.forNumber((java.lang.Integer) system_); - return result == null - ? com.google.cloud.datacatalog.v1.IntegratedSystem.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED; - } - - /** - * - * - *
-     * Output only. Indicates the entry's source system that Data Catalog
-     * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The integratedSystem to set. - * @return This builder for chaining. - */ - public Builder setIntegratedSystem(com.google.cloud.datacatalog.v1.IntegratedSystem value) { - if (value == null) { - throw new NullPointerException(); - } - systemCase_ = 17; - system_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Indicates the entry's source system that Data Catalog
-     * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearIntegratedSystem() { - if (systemCase_ == 17) { - systemCase_ = 0; - system_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Indicates the entry's source system that Data Catalog doesn't
-     * automatically integrate with.
-     *
-     * The `user_specified_system` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_system = 18; - * - * @return Whether the userSpecifiedSystem field is set. - */ - @java.lang.Override - public boolean hasUserSpecifiedSystem() { - return systemCase_ == 18; - } - - /** - * - * - *
-     * Indicates the entry's source system that Data Catalog doesn't
-     * automatically integrate with.
-     *
-     * The `user_specified_system` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_system = 18; - * - * @return The userSpecifiedSystem. - */ - @java.lang.Override - public java.lang.String getUserSpecifiedSystem() { - java.lang.Object ref = ""; - if (systemCase_ == 18) { - ref = system_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (systemCase_ == 18) { - system_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Indicates the entry's source system that Data Catalog doesn't
-     * automatically integrate with.
-     *
-     * The `user_specified_system` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_system = 18; - * - * @return The bytes for userSpecifiedSystem. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() { - java.lang.Object ref = ""; - if (systemCase_ == 18) { - ref = system_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (systemCase_ == 18) { - system_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Indicates the entry's source system that Data Catalog doesn't
-     * automatically integrate with.
-     *
-     * The `user_specified_system` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_system = 18; - * - * @param value The userSpecifiedSystem to set. - * @return This builder for chaining. - */ - public Builder setUserSpecifiedSystem(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - systemCase_ = 18; - system_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Indicates the entry's source system that Data Catalog doesn't
-     * automatically integrate with.
-     *
-     * The `user_specified_system` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_system = 18; - * - * @return This builder for chaining. - */ - public Builder clearUserSpecifiedSystem() { - if (systemCase_ == 18) { - systemCase_ = 0; - system_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Indicates the entry's source system that Data Catalog doesn't
-     * automatically integrate with.
-     *
-     * The `user_specified_system` string has the following limitations:
-     *
-     * * Is case insensitive.
-     * * Must begin with a letter or underscore.
-     * * Can only contain letters, numbers, and underscores.
-     * * Must be at least 1 character and at most 64 characters long.
-     * 
- * - * string user_specified_system = 18; - * - * @param value The bytes for userSpecifiedSystem to set. - * @return This builder for chaining. - */ - public Builder setUserSpecifiedSystemBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - systemCase_ = 18; - system_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec, - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder, - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder> - sqlDatabaseSystemSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to a relational database system. Only settable
-     * when `user_specified_system` is equal to `SQL_DATABASE`
-     * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - * - * @return Whether the sqlDatabaseSystemSpec field is set. - */ - @java.lang.Override - public boolean hasSqlDatabaseSystemSpec() { - return systemSpecCase_ == 39; - } - - /** - * - * - *
-     * Specification that applies to a relational database system. Only settable
-     * when `user_specified_system` is equal to `SQL_DATABASE`
-     * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - * - * @return The sqlDatabaseSystemSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec getSqlDatabaseSystemSpec() { - if (sqlDatabaseSystemSpecBuilder_ == null) { - if (systemSpecCase_ == 39) { - return (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); - } else { - if (systemSpecCase_ == 39) { - return sqlDatabaseSystemSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a relational database system. Only settable
-     * when `user_specified_system` is equal to `SQL_DATABASE`
-     * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - */ - public Builder setSqlDatabaseSystemSpec( - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec value) { - if (sqlDatabaseSystemSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemSpec_ = value; - onChanged(); - } else { - sqlDatabaseSystemSpecBuilder_.setMessage(value); - } - systemSpecCase_ = 39; - return this; - } - - /** - * - * - *
-     * Specification that applies to a relational database system. Only settable
-     * when `user_specified_system` is equal to `SQL_DATABASE`
-     * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - */ - public Builder setSqlDatabaseSystemSpec( - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder builderForValue) { - if (sqlDatabaseSystemSpecBuilder_ == null) { - systemSpec_ = builderForValue.build(); - onChanged(); - } else { - sqlDatabaseSystemSpecBuilder_.setMessage(builderForValue.build()); - } - systemSpecCase_ = 39; - return this; - } - - /** - * - * - *
-     * Specification that applies to a relational database system. Only settable
-     * when `user_specified_system` is equal to `SQL_DATABASE`
-     * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - */ - public Builder mergeSqlDatabaseSystemSpec( - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec value) { - if (sqlDatabaseSystemSpecBuilder_ == null) { - if (systemSpecCase_ == 39 - && systemSpec_ - != com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance()) { - systemSpec_ = - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.newBuilder( - (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - systemSpec_ = value; - } - onChanged(); - } else { - if (systemSpecCase_ == 39) { - sqlDatabaseSystemSpecBuilder_.mergeFrom(value); - } else { - sqlDatabaseSystemSpecBuilder_.setMessage(value); - } - } - systemSpecCase_ = 39; - return this; - } - - /** - * - * - *
-     * Specification that applies to a relational database system. Only settable
-     * when `user_specified_system` is equal to `SQL_DATABASE`
-     * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - */ - public Builder clearSqlDatabaseSystemSpec() { - if (sqlDatabaseSystemSpecBuilder_ == null) { - if (systemSpecCase_ == 39) { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - } - } else { - if (systemSpecCase_ == 39) { - systemSpecCase_ = 0; - systemSpec_ = null; - } - sqlDatabaseSystemSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to a relational database system. Only settable
-     * when `user_specified_system` is equal to `SQL_DATABASE`
-     * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - */ - public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder - getSqlDatabaseSystemSpecBuilder() { - return internalGetSqlDatabaseSystemSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to a relational database system. Only settable
-     * when `user_specified_system` is equal to `SQL_DATABASE`
-     * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder - getSqlDatabaseSystemSpecOrBuilder() { - if ((systemSpecCase_ == 39) && (sqlDatabaseSystemSpecBuilder_ != null)) { - return sqlDatabaseSystemSpecBuilder_.getMessageOrBuilder(); - } else { - if (systemSpecCase_ == 39) { - return (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a relational database system. Only settable
-     * when `user_specified_system` is equal to `SQL_DATABASE`
-     * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec, - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder, - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder> - internalGetSqlDatabaseSystemSpecFieldBuilder() { - if (sqlDatabaseSystemSpecBuilder_ == null) { - if (!(systemSpecCase_ == 39)) { - systemSpec_ = com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); - } - sqlDatabaseSystemSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec, - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder, - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) systemSpec_, - getParentForChildren(), - isClean()); - systemSpec_ = null; - } - systemSpecCase_ = 39; - onChanged(); - return sqlDatabaseSystemSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.LookerSystemSpec, - com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder, - com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder> - lookerSystemSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to Looker sysstem. Only settable when
-     * `user_specified_system` is equal to `LOOKER`
-     * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - * - * @return Whether the lookerSystemSpec field is set. - */ - @java.lang.Override - public boolean hasLookerSystemSpec() { - return systemSpecCase_ == 40; - } - - /** - * - * - *
-     * Specification that applies to Looker sysstem. Only settable when
-     * `user_specified_system` is equal to `LOOKER`
-     * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - * - * @return The lookerSystemSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookerSystemSpec getLookerSystemSpec() { - if (lookerSystemSpecBuilder_ == null) { - if (systemSpecCase_ == 40) { - return (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); - } else { - if (systemSpecCase_ == 40) { - return lookerSystemSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to Looker sysstem. Only settable when
-     * `user_specified_system` is equal to `LOOKER`
-     * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - */ - public Builder setLookerSystemSpec(com.google.cloud.datacatalog.v1.LookerSystemSpec value) { - if (lookerSystemSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemSpec_ = value; - onChanged(); - } else { - lookerSystemSpecBuilder_.setMessage(value); - } - systemSpecCase_ = 40; - return this; - } - - /** - * - * - *
-     * Specification that applies to Looker sysstem. Only settable when
-     * `user_specified_system` is equal to `LOOKER`
-     * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - */ - public Builder setLookerSystemSpec( - com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder builderForValue) { - if (lookerSystemSpecBuilder_ == null) { - systemSpec_ = builderForValue.build(); - onChanged(); - } else { - lookerSystemSpecBuilder_.setMessage(builderForValue.build()); - } - systemSpecCase_ = 40; - return this; - } - - /** - * - * - *
-     * Specification that applies to Looker sysstem. Only settable when
-     * `user_specified_system` is equal to `LOOKER`
-     * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - */ - public Builder mergeLookerSystemSpec(com.google.cloud.datacatalog.v1.LookerSystemSpec value) { - if (lookerSystemSpecBuilder_ == null) { - if (systemSpecCase_ == 40 - && systemSpec_ - != com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance()) { - systemSpec_ = - com.google.cloud.datacatalog.v1.LookerSystemSpec.newBuilder( - (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - systemSpec_ = value; - } - onChanged(); - } else { - if (systemSpecCase_ == 40) { - lookerSystemSpecBuilder_.mergeFrom(value); - } else { - lookerSystemSpecBuilder_.setMessage(value); - } - } - systemSpecCase_ = 40; - return this; - } - - /** - * - * - *
-     * Specification that applies to Looker sysstem. Only settable when
-     * `user_specified_system` is equal to `LOOKER`
-     * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - */ - public Builder clearLookerSystemSpec() { - if (lookerSystemSpecBuilder_ == null) { - if (systemSpecCase_ == 40) { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - } - } else { - if (systemSpecCase_ == 40) { - systemSpecCase_ = 0; - systemSpec_ = null; - } - lookerSystemSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to Looker sysstem. Only settable when
-     * `user_specified_system` is equal to `LOOKER`
-     * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - */ - public com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder getLookerSystemSpecBuilder() { - return internalGetLookerSystemSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to Looker sysstem. Only settable when
-     * `user_specified_system` is equal to `LOOKER`
-     * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder - getLookerSystemSpecOrBuilder() { - if ((systemSpecCase_ == 40) && (lookerSystemSpecBuilder_ != null)) { - return lookerSystemSpecBuilder_.getMessageOrBuilder(); - } else { - if (systemSpecCase_ == 40) { - return (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to Looker sysstem. Only settable when
-     * `user_specified_system` is equal to `LOOKER`
-     * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.LookerSystemSpec, - com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder, - com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder> - internalGetLookerSystemSpecFieldBuilder() { - if (lookerSystemSpecBuilder_ == null) { - if (!(systemSpecCase_ == 40)) { - systemSpec_ = com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); - } - lookerSystemSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.LookerSystemSpec, - com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder, - com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.LookerSystemSpec) systemSpec_, - getParentForChildren(), - isClean()); - systemSpec_ = null; - } - systemSpecCase_ = 40; - onChanged(); - return lookerSystemSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec, - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.Builder, - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpecOrBuilder> - cloudBigtableSystemSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to Cloud Bigtable system. Only settable when
-     * `integrated_system` is equal to `CLOUD_BIGTABLE`
-     * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - * - * @return Whether the cloudBigtableSystemSpec field is set. - */ - @java.lang.Override - public boolean hasCloudBigtableSystemSpec() { - return systemSpecCase_ == 41; - } - - /** - * - * - *
-     * Specification that applies to Cloud Bigtable system. Only settable when
-     * `integrated_system` is equal to `CLOUD_BIGTABLE`
-     * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - * - * @return The cloudBigtableSystemSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec getCloudBigtableSystemSpec() { - if (cloudBigtableSystemSpecBuilder_ == null) { - if (systemSpecCase_ == 41) { - return (com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance(); - } else { - if (systemSpecCase_ == 41) { - return cloudBigtableSystemSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to Cloud Bigtable system. Only settable when
-     * `integrated_system` is equal to `CLOUD_BIGTABLE`
-     * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - */ - public Builder setCloudBigtableSystemSpec( - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec value) { - if (cloudBigtableSystemSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemSpec_ = value; - onChanged(); - } else { - cloudBigtableSystemSpecBuilder_.setMessage(value); - } - systemSpecCase_ = 41; - return this; - } - - /** - * - * - *
-     * Specification that applies to Cloud Bigtable system. Only settable when
-     * `integrated_system` is equal to `CLOUD_BIGTABLE`
-     * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - */ - public Builder setCloudBigtableSystemSpec( - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.Builder builderForValue) { - if (cloudBigtableSystemSpecBuilder_ == null) { - systemSpec_ = builderForValue.build(); - onChanged(); - } else { - cloudBigtableSystemSpecBuilder_.setMessage(builderForValue.build()); - } - systemSpecCase_ = 41; - return this; - } - - /** - * - * - *
-     * Specification that applies to Cloud Bigtable system. Only settable when
-     * `integrated_system` is equal to `CLOUD_BIGTABLE`
-     * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - */ - public Builder mergeCloudBigtableSystemSpec( - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec value) { - if (cloudBigtableSystemSpecBuilder_ == null) { - if (systemSpecCase_ == 41 - && systemSpec_ - != com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance()) { - systemSpec_ = - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.newBuilder( - (com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) systemSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - systemSpec_ = value; - } - onChanged(); - } else { - if (systemSpecCase_ == 41) { - cloudBigtableSystemSpecBuilder_.mergeFrom(value); - } else { - cloudBigtableSystemSpecBuilder_.setMessage(value); - } - } - systemSpecCase_ = 41; - return this; - } - - /** - * - * - *
-     * Specification that applies to Cloud Bigtable system. Only settable when
-     * `integrated_system` is equal to `CLOUD_BIGTABLE`
-     * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - */ - public Builder clearCloudBigtableSystemSpec() { - if (cloudBigtableSystemSpecBuilder_ == null) { - if (systemSpecCase_ == 41) { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - } - } else { - if (systemSpecCase_ == 41) { - systemSpecCase_ = 0; - systemSpec_ = null; - } - cloudBigtableSystemSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to Cloud Bigtable system. Only settable when
-     * `integrated_system` is equal to `CLOUD_BIGTABLE`
-     * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - */ - public com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.Builder - getCloudBigtableSystemSpecBuilder() { - return internalGetCloudBigtableSystemSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to Cloud Bigtable system. Only settable when
-     * `integrated_system` is equal to `CLOUD_BIGTABLE`
-     * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableSystemSpecOrBuilder - getCloudBigtableSystemSpecOrBuilder() { - if ((systemSpecCase_ == 41) && (cloudBigtableSystemSpecBuilder_ != null)) { - return cloudBigtableSystemSpecBuilder_.getMessageOrBuilder(); - } else { - if (systemSpecCase_ == 41) { - return (com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to Cloud Bigtable system. Only settable when
-     * `integrated_system` is equal to `CLOUD_BIGTABLE`
-     * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec, - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.Builder, - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpecOrBuilder> - internalGetCloudBigtableSystemSpecFieldBuilder() { - if (cloudBigtableSystemSpecBuilder_ == null) { - if (!(systemSpecCase_ == 41)) { - systemSpec_ = - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.getDefaultInstance(); - } - cloudBigtableSystemSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec, - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec.Builder, - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec) systemSpec_, - getParentForChildren(), - isClean()); - systemSpec_ = null; - } - systemSpecCase_ = 41; - onChanged(); - return cloudBigtableSystemSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.GcsFilesetSpec, - com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder, - com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder> - gcsFilesetSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return Whether the gcsFilesetSpec field is set. - */ - @java.lang.Override - public boolean hasGcsFilesetSpec() { - return typeSpecCase_ == 6; - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return The gcsFilesetSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFilesetSpec getGcsFilesetSpec() { - if (gcsFilesetSpecBuilder_ == null) { - if (typeSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); - } else { - if (typeSpecCase_ == 6) { - return gcsFilesetSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - public Builder setGcsFilesetSpec(com.google.cloud.datacatalog.v1.GcsFilesetSpec value) { - if (gcsFilesetSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpec_ = value; - onChanged(); - } else { - gcsFilesetSpecBuilder_.setMessage(value); - } - typeSpecCase_ = 6; - return this; - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - public Builder setGcsFilesetSpec( - com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder builderForValue) { - if (gcsFilesetSpecBuilder_ == null) { - typeSpec_ = builderForValue.build(); - onChanged(); - } else { - gcsFilesetSpecBuilder_.setMessage(builderForValue.build()); - } - typeSpecCase_ = 6; - return this; - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - public Builder mergeGcsFilesetSpec(com.google.cloud.datacatalog.v1.GcsFilesetSpec value) { - if (gcsFilesetSpecBuilder_ == null) { - if (typeSpecCase_ == 6 - && typeSpec_ != com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance()) { - typeSpec_ = - com.google.cloud.datacatalog.v1.GcsFilesetSpec.newBuilder( - (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - typeSpec_ = value; - } - onChanged(); - } else { - if (typeSpecCase_ == 6) { - gcsFilesetSpecBuilder_.mergeFrom(value); - } else { - gcsFilesetSpecBuilder_.setMessage(value); - } - } - typeSpecCase_ = 6; - return this; - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - public Builder clearGcsFilesetSpec() { - if (gcsFilesetSpecBuilder_ == null) { - if (typeSpecCase_ == 6) { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - } - } else { - if (typeSpecCase_ == 6) { - typeSpecCase_ = 0; - typeSpec_ = null; - } - gcsFilesetSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - public com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder getGcsFilesetSpecBuilder() { - return internalGetGcsFilesetSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder getGcsFilesetSpecOrBuilder() { - if ((typeSpecCase_ == 6) && (gcsFilesetSpecBuilder_ != null)) { - return gcsFilesetSpecBuilder_.getMessageOrBuilder(); - } else { - if (typeSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.GcsFilesetSpec, - com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder, - com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder> - internalGetGcsFilesetSpecFieldBuilder() { - if (gcsFilesetSpecBuilder_ == null) { - if (!(typeSpecCase_ == 6)) { - typeSpec_ = com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); - } - gcsFilesetSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.GcsFilesetSpec, - com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder, - com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.GcsFilesetSpec) typeSpec_, - getParentForChildren(), - isClean()); - typeSpec_ = null; - } - typeSpecCase_ = 6; - onChanged(); - return gcsFilesetSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryTableSpec, - com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder> - bigqueryTableSpecBuilder_; - - /** - * - * - *
-     * Output only. Specification that applies to a BigQuery table. Valid only
-     * for entries with the `TABLE` type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the bigqueryTableSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryTableSpec() { - return typeSpecCase_ == 12; - } - - /** - * - * - *
-     * Output only. Specification that applies to a BigQuery table. Valid only
-     * for entries with the `TABLE` type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bigqueryTableSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryTableSpec getBigqueryTableSpec() { - if (bigqueryTableSpecBuilder_ == null) { - if (typeSpecCase_ == 12) { - return (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); - } else { - if (typeSpecCase_ == 12) { - return bigqueryTableSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Output only. Specification that applies to a BigQuery table. Valid only
-     * for entries with the `TABLE` type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setBigqueryTableSpec(com.google.cloud.datacatalog.v1.BigQueryTableSpec value) { - if (bigqueryTableSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpec_ = value; - onChanged(); - } else { - bigqueryTableSpecBuilder_.setMessage(value); - } - typeSpecCase_ = 12; - return this; - } - - /** - * - * - *
-     * Output only. Specification that applies to a BigQuery table. Valid only
-     * for entries with the `TABLE` type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setBigqueryTableSpec( - com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder builderForValue) { - if (bigqueryTableSpecBuilder_ == null) { - typeSpec_ = builderForValue.build(); - onChanged(); - } else { - bigqueryTableSpecBuilder_.setMessage(builderForValue.build()); - } - typeSpecCase_ = 12; - return this; - } - - /** - * - * - *
-     * Output only. Specification that applies to a BigQuery table. Valid only
-     * for entries with the `TABLE` type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeBigqueryTableSpec(com.google.cloud.datacatalog.v1.BigQueryTableSpec value) { - if (bigqueryTableSpecBuilder_ == null) { - if (typeSpecCase_ == 12 - && typeSpec_ - != com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance()) { - typeSpec_ = - com.google.cloud.datacatalog.v1.BigQueryTableSpec.newBuilder( - (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - typeSpec_ = value; - } - onChanged(); - } else { - if (typeSpecCase_ == 12) { - bigqueryTableSpecBuilder_.mergeFrom(value); - } else { - bigqueryTableSpecBuilder_.setMessage(value); - } - } - typeSpecCase_ = 12; - return this; - } - - /** - * - * - *
-     * Output only. Specification that applies to a BigQuery table. Valid only
-     * for entries with the `TABLE` type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearBigqueryTableSpec() { - if (bigqueryTableSpecBuilder_ == null) { - if (typeSpecCase_ == 12) { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - } - } else { - if (typeSpecCase_ == 12) { - typeSpecCase_ = 0; - typeSpec_ = null; - } - bigqueryTableSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Output only. Specification that applies to a BigQuery table. Valid only
-     * for entries with the `TABLE` type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder getBigqueryTableSpecBuilder() { - return internalGetBigqueryTableSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Specification that applies to a BigQuery table. Valid only
-     * for entries with the `TABLE` type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder - getBigqueryTableSpecOrBuilder() { - if ((typeSpecCase_ == 12) && (bigqueryTableSpecBuilder_ != null)) { - return bigqueryTableSpecBuilder_.getMessageOrBuilder(); - } else { - if (typeSpecCase_ == 12) { - return (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Output only. Specification that applies to a BigQuery table. Valid only
-     * for entries with the `TABLE` type.
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryTableSpec, - com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder> - internalGetBigqueryTableSpecFieldBuilder() { - if (bigqueryTableSpecBuilder_ == null) { - if (!(typeSpecCase_ == 12)) { - typeSpec_ = com.google.cloud.datacatalog.v1.BigQueryTableSpec.getDefaultInstance(); - } - bigqueryTableSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryTableSpec, - com.google.cloud.datacatalog.v1.BigQueryTableSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.BigQueryTableSpec) typeSpec_, - getParentForChildren(), - isClean()); - typeSpec_ = null; - } - typeSpecCase_ = 12; - onChanged(); - return bigqueryTableSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec, - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder> - bigqueryDateShardedSpecBuilder_; - - /** - * - * - *
-     * Output only. Specification for a group of BigQuery tables with
-     * the `[prefix]YYYYMMDD` name pattern.
-     *
-     * For more information, see [Introduction to partitioned tables]
-     * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the bigqueryDateShardedSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryDateShardedSpec() { - return typeSpecCase_ == 15; - } - - /** - * - * - *
-     * Output only. Specification for a group of BigQuery tables with
-     * the `[prefix]YYYYMMDD` name pattern.
-     *
-     * For more information, see [Introduction to partitioned tables]
-     * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bigqueryDateShardedSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec getBigqueryDateShardedSpec() { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (typeSpecCase_ == 15) { - return (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); - } else { - if (typeSpecCase_ == 15) { - return bigqueryDateShardedSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Output only. Specification for a group of BigQuery tables with
-     * the `[prefix]YYYYMMDD` name pattern.
-     *
-     * For more information, see [Introduction to partitioned tables]
-     * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setBigqueryDateShardedSpec( - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec value) { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpec_ = value; - onChanged(); - } else { - bigqueryDateShardedSpecBuilder_.setMessage(value); - } - typeSpecCase_ = 15; - return this; - } - - /** - * - * - *
-     * Output only. Specification for a group of BigQuery tables with
-     * the `[prefix]YYYYMMDD` name pattern.
-     *
-     * For more information, see [Introduction to partitioned tables]
-     * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setBigqueryDateShardedSpec( - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder builderForValue) { - if (bigqueryDateShardedSpecBuilder_ == null) { - typeSpec_ = builderForValue.build(); - onChanged(); - } else { - bigqueryDateShardedSpecBuilder_.setMessage(builderForValue.build()); - } - typeSpecCase_ = 15; - return this; - } - - /** - * - * - *
-     * Output only. Specification for a group of BigQuery tables with
-     * the `[prefix]YYYYMMDD` name pattern.
-     *
-     * For more information, see [Introduction to partitioned tables]
-     * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeBigqueryDateShardedSpec( - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec value) { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (typeSpecCase_ == 15 - && typeSpec_ - != com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance()) { - typeSpec_ = - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.newBuilder( - (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - typeSpec_ = value; - } - onChanged(); - } else { - if (typeSpecCase_ == 15) { - bigqueryDateShardedSpecBuilder_.mergeFrom(value); - } else { - bigqueryDateShardedSpecBuilder_.setMessage(value); - } - } - typeSpecCase_ = 15; - return this; - } - - /** - * - * - *
-     * Output only. Specification for a group of BigQuery tables with
-     * the `[prefix]YYYYMMDD` name pattern.
-     *
-     * For more information, see [Introduction to partitioned tables]
-     * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearBigqueryDateShardedSpec() { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (typeSpecCase_ == 15) { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - } - } else { - if (typeSpecCase_ == 15) { - typeSpecCase_ = 0; - typeSpec_ = null; - } - bigqueryDateShardedSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Output only. Specification for a group of BigQuery tables with
-     * the `[prefix]YYYYMMDD` name pattern.
-     *
-     * For more information, see [Introduction to partitioned tables]
-     * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder - getBigqueryDateShardedSpecBuilder() { - return internalGetBigqueryDateShardedSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Specification for a group of BigQuery tables with
-     * the `[prefix]YYYYMMDD` name pattern.
-     *
-     * For more information, see [Introduction to partitioned tables]
-     * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder - getBigqueryDateShardedSpecOrBuilder() { - if ((typeSpecCase_ == 15) && (bigqueryDateShardedSpecBuilder_ != null)) { - return bigqueryDateShardedSpecBuilder_.getMessageOrBuilder(); - } else { - if (typeSpecCase_ == 15) { - return (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Output only. Specification for a group of BigQuery tables with
-     * the `[prefix]YYYYMMDD` name pattern.
-     *
-     * For more information, see [Introduction to partitioned tables]
-     * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-     * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec, - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder> - internalGetBigqueryDateShardedSpecFieldBuilder() { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (!(typeSpecCase_ == 15)) { - typeSpec_ = com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.getDefaultInstance(); - } - bigqueryDateShardedSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec, - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec) typeSpec_, - getParentForChildren(), - isClean()); - typeSpec_ = null; - } - typeSpecCase_ = 15; - onChanged(); - return bigqueryDateShardedSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DatabaseTableSpec, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder, - com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder> - databaseTableSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to a table resource. Valid only
-     * for entries with the `TABLE` or `EXPLORE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - * - * @return Whether the databaseTableSpec field is set. - */ - @java.lang.Override - public boolean hasDatabaseTableSpec() { - return specCase_ == 24; - } - - /** - * - * - *
-     * Specification that applies to a table resource. Valid only
-     * for entries with the `TABLE` or `EXPLORE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - * - * @return The databaseTableSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpec getDatabaseTableSpec() { - if (databaseTableSpecBuilder_ == null) { - if (specCase_ == 24) { - return (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); - } else { - if (specCase_ == 24) { - return databaseTableSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a table resource. Valid only
-     * for entries with the `TABLE` or `EXPLORE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - */ - public Builder setDatabaseTableSpec(com.google.cloud.datacatalog.v1.DatabaseTableSpec value) { - if (databaseTableSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - databaseTableSpecBuilder_.setMessage(value); - } - specCase_ = 24; - return this; - } - - /** - * - * - *
-     * Specification that applies to a table resource. Valid only
-     * for entries with the `TABLE` or `EXPLORE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - */ - public Builder setDatabaseTableSpec( - com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder builderForValue) { - if (databaseTableSpecBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - databaseTableSpecBuilder_.setMessage(builderForValue.build()); - } - specCase_ = 24; - return this; - } - - /** - * - * - *
-     * Specification that applies to a table resource. Valid only
-     * for entries with the `TABLE` or `EXPLORE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - */ - public Builder mergeDatabaseTableSpec(com.google.cloud.datacatalog.v1.DatabaseTableSpec value) { - if (databaseTableSpecBuilder_ == null) { - if (specCase_ == 24 - && spec_ != com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance()) { - spec_ = - com.google.cloud.datacatalog.v1.DatabaseTableSpec.newBuilder( - (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_) - .mergeFrom(value) - .buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - if (specCase_ == 24) { - databaseTableSpecBuilder_.mergeFrom(value); - } else { - databaseTableSpecBuilder_.setMessage(value); - } - } - specCase_ = 24; - return this; - } - - /** - * - * - *
-     * Specification that applies to a table resource. Valid only
-     * for entries with the `TABLE` or `EXPLORE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - */ - public Builder clearDatabaseTableSpec() { - if (databaseTableSpecBuilder_ == null) { - if (specCase_ == 24) { - specCase_ = 0; - spec_ = null; - onChanged(); - } - } else { - if (specCase_ == 24) { - specCase_ = 0; - spec_ = null; - } - databaseTableSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to a table resource. Valid only
-     * for entries with the `TABLE` or `EXPLORE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - */ - public com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder getDatabaseTableSpecBuilder() { - return internalGetDatabaseTableSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to a table resource. Valid only
-     * for entries with the `TABLE` or `EXPLORE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder - getDatabaseTableSpecOrBuilder() { - if ((specCase_ == 24) && (databaseTableSpecBuilder_ != null)) { - return databaseTableSpecBuilder_.getMessageOrBuilder(); - } else { - if (specCase_ == 24) { - return (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a table resource. Valid only
-     * for entries with the `TABLE` or `EXPLORE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DatabaseTableSpec, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder, - com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder> - internalGetDatabaseTableSpecFieldBuilder() { - if (databaseTableSpecBuilder_ == null) { - if (!(specCase_ == 24)) { - spec_ = com.google.cloud.datacatalog.v1.DatabaseTableSpec.getDefaultInstance(); - } - databaseTableSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DatabaseTableSpec, - com.google.cloud.datacatalog.v1.DatabaseTableSpec.Builder, - com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.DatabaseTableSpec) spec_, - getParentForChildren(), - isClean()); - spec_ = null; - } - specCase_ = 24; - onChanged(); - return databaseTableSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec, - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder, - com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder> - dataSourceConnectionSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to a data source connection. Valid only
-     * for entries with the `DATA_SOURCE_CONNECTION` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - * - * @return Whether the dataSourceConnectionSpec field is set. - */ - @java.lang.Override - public boolean hasDataSourceConnectionSpec() { - return specCase_ == 27; - } - - /** - * - * - *
-     * Specification that applies to a data source connection. Valid only
-     * for entries with the `DATA_SOURCE_CONNECTION` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - * - * @return The dataSourceConnectionSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSourceConnectionSpec getDataSourceConnectionSpec() { - if (dataSourceConnectionSpecBuilder_ == null) { - if (specCase_ == 27) { - return (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); - } else { - if (specCase_ == 27) { - return dataSourceConnectionSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a data source connection. Valid only
-     * for entries with the `DATA_SOURCE_CONNECTION` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - */ - public Builder setDataSourceConnectionSpec( - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec value) { - if (dataSourceConnectionSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - dataSourceConnectionSpecBuilder_.setMessage(value); - } - specCase_ = 27; - return this; - } - - /** - * - * - *
-     * Specification that applies to a data source connection. Valid only
-     * for entries with the `DATA_SOURCE_CONNECTION` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - */ - public Builder setDataSourceConnectionSpec( - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder builderForValue) { - if (dataSourceConnectionSpecBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - dataSourceConnectionSpecBuilder_.setMessage(builderForValue.build()); - } - specCase_ = 27; - return this; - } - - /** - * - * - *
-     * Specification that applies to a data source connection. Valid only
-     * for entries with the `DATA_SOURCE_CONNECTION` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - */ - public Builder mergeDataSourceConnectionSpec( - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec value) { - if (dataSourceConnectionSpecBuilder_ == null) { - if (specCase_ == 27 - && spec_ - != com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance()) { - spec_ = - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.newBuilder( - (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_) - .mergeFrom(value) - .buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - if (specCase_ == 27) { - dataSourceConnectionSpecBuilder_.mergeFrom(value); - } else { - dataSourceConnectionSpecBuilder_.setMessage(value); - } - } - specCase_ = 27; - return this; - } - - /** - * - * - *
-     * Specification that applies to a data source connection. Valid only
-     * for entries with the `DATA_SOURCE_CONNECTION` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - */ - public Builder clearDataSourceConnectionSpec() { - if (dataSourceConnectionSpecBuilder_ == null) { - if (specCase_ == 27) { - specCase_ = 0; - spec_ = null; - onChanged(); - } - } else { - if (specCase_ == 27) { - specCase_ = 0; - spec_ = null; - } - dataSourceConnectionSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to a data source connection. Valid only
-     * for entries with the `DATA_SOURCE_CONNECTION` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - */ - public com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder - getDataSourceConnectionSpecBuilder() { - return internalGetDataSourceConnectionSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to a data source connection. Valid only
-     * for entries with the `DATA_SOURCE_CONNECTION` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder - getDataSourceConnectionSpecOrBuilder() { - if ((specCase_ == 27) && (dataSourceConnectionSpecBuilder_ != null)) { - return dataSourceConnectionSpecBuilder_.getMessageOrBuilder(); - } else { - if (specCase_ == 27) { - return (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a data source connection. Valid only
-     * for entries with the `DATA_SOURCE_CONNECTION` type.
-     * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec, - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder, - com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder> - internalGetDataSourceConnectionSpecFieldBuilder() { - if (dataSourceConnectionSpecBuilder_ == null) { - if (!(specCase_ == 27)) { - spec_ = com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.getDefaultInstance(); - } - dataSourceConnectionSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec, - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec.Builder, - com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.DataSourceConnectionSpec) spec_, - getParentForChildren(), - isClean()); - spec_ = null; - } - specCase_ = 27; - onChanged(); - return dataSourceConnectionSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.RoutineSpec, - com.google.cloud.datacatalog.v1.RoutineSpec.Builder, - com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder> - routineSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to a user-defined function or procedure. Valid
-     * only for entries with the `ROUTINE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - * - * @return Whether the routineSpec field is set. - */ - @java.lang.Override - public boolean hasRoutineSpec() { - return specCase_ == 28; - } - - /** - * - * - *
-     * Specification that applies to a user-defined function or procedure. Valid
-     * only for entries with the `ROUTINE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - * - * @return The routineSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec getRoutineSpec() { - if (routineSpecBuilder_ == null) { - if (specCase_ == 28) { - return (com.google.cloud.datacatalog.v1.RoutineSpec) spec_; - } - return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); - } else { - if (specCase_ == 28) { - return routineSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a user-defined function or procedure. Valid
-     * only for entries with the `ROUTINE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - */ - public Builder setRoutineSpec(com.google.cloud.datacatalog.v1.RoutineSpec value) { - if (routineSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - routineSpecBuilder_.setMessage(value); - } - specCase_ = 28; - return this; - } - - /** - * - * - *
-     * Specification that applies to a user-defined function or procedure. Valid
-     * only for entries with the `ROUTINE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - */ - public Builder setRoutineSpec( - com.google.cloud.datacatalog.v1.RoutineSpec.Builder builderForValue) { - if (routineSpecBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - routineSpecBuilder_.setMessage(builderForValue.build()); - } - specCase_ = 28; - return this; - } - - /** - * - * - *
-     * Specification that applies to a user-defined function or procedure. Valid
-     * only for entries with the `ROUTINE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - */ - public Builder mergeRoutineSpec(com.google.cloud.datacatalog.v1.RoutineSpec value) { - if (routineSpecBuilder_ == null) { - if (specCase_ == 28 - && spec_ != com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance()) { - spec_ = - com.google.cloud.datacatalog.v1.RoutineSpec.newBuilder( - (com.google.cloud.datacatalog.v1.RoutineSpec) spec_) - .mergeFrom(value) - .buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - if (specCase_ == 28) { - routineSpecBuilder_.mergeFrom(value); - } else { - routineSpecBuilder_.setMessage(value); - } - } - specCase_ = 28; - return this; - } - - /** - * - * - *
-     * Specification that applies to a user-defined function or procedure. Valid
-     * only for entries with the `ROUTINE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - */ - public Builder clearRoutineSpec() { - if (routineSpecBuilder_ == null) { - if (specCase_ == 28) { - specCase_ = 0; - spec_ = null; - onChanged(); - } - } else { - if (specCase_ == 28) { - specCase_ = 0; - spec_ = null; - } - routineSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to a user-defined function or procedure. Valid
-     * only for entries with the `ROUTINE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - */ - public com.google.cloud.datacatalog.v1.RoutineSpec.Builder getRoutineSpecBuilder() { - return internalGetRoutineSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to a user-defined function or procedure. Valid
-     * only for entries with the `ROUTINE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder getRoutineSpecOrBuilder() { - if ((specCase_ == 28) && (routineSpecBuilder_ != null)) { - return routineSpecBuilder_.getMessageOrBuilder(); - } else { - if (specCase_ == 28) { - return (com.google.cloud.datacatalog.v1.RoutineSpec) spec_; - } - return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a user-defined function or procedure. Valid
-     * only for entries with the `ROUTINE` type.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.RoutineSpec, - com.google.cloud.datacatalog.v1.RoutineSpec.Builder, - com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder> - internalGetRoutineSpecFieldBuilder() { - if (routineSpecBuilder_ == null) { - if (!(specCase_ == 28)) { - spec_ = com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); - } - routineSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.RoutineSpec, - com.google.cloud.datacatalog.v1.RoutineSpec.Builder, - com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.RoutineSpec) spec_, - getParentForChildren(), - isClean()); - spec_ = null; - } - specCase_ = 28; - onChanged(); - return routineSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DatasetSpec, - com.google.cloud.datacatalog.v1.DatasetSpec.Builder, - com.google.cloud.datacatalog.v1.DatasetSpecOrBuilder> - datasetSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to a dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - * - * @return Whether the datasetSpec field is set. - */ - @java.lang.Override - public boolean hasDatasetSpec() { - return specCase_ == 32; - } - - /** - * - * - *
-     * Specification that applies to a dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - * - * @return The datasetSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatasetSpec getDatasetSpec() { - if (datasetSpecBuilder_ == null) { - if (specCase_ == 32) { - return (com.google.cloud.datacatalog.v1.DatasetSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance(); - } else { - if (specCase_ == 32) { - return datasetSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - */ - public Builder setDatasetSpec(com.google.cloud.datacatalog.v1.DatasetSpec value) { - if (datasetSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - datasetSpecBuilder_.setMessage(value); - } - specCase_ = 32; - return this; - } - - /** - * - * - *
-     * Specification that applies to a dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - */ - public Builder setDatasetSpec( - com.google.cloud.datacatalog.v1.DatasetSpec.Builder builderForValue) { - if (datasetSpecBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - datasetSpecBuilder_.setMessage(builderForValue.build()); - } - specCase_ = 32; - return this; - } - - /** - * - * - *
-     * Specification that applies to a dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - */ - public Builder mergeDatasetSpec(com.google.cloud.datacatalog.v1.DatasetSpec value) { - if (datasetSpecBuilder_ == null) { - if (specCase_ == 32 - && spec_ != com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance()) { - spec_ = - com.google.cloud.datacatalog.v1.DatasetSpec.newBuilder( - (com.google.cloud.datacatalog.v1.DatasetSpec) spec_) - .mergeFrom(value) - .buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - if (specCase_ == 32) { - datasetSpecBuilder_.mergeFrom(value); - } else { - datasetSpecBuilder_.setMessage(value); - } - } - specCase_ = 32; - return this; - } - - /** - * - * - *
-     * Specification that applies to a dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - */ - public Builder clearDatasetSpec() { - if (datasetSpecBuilder_ == null) { - if (specCase_ == 32) { - specCase_ = 0; - spec_ = null; - onChanged(); - } - } else { - if (specCase_ == 32) { - specCase_ = 0; - spec_ = null; - } - datasetSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to a dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - */ - public com.google.cloud.datacatalog.v1.DatasetSpec.Builder getDatasetSpecBuilder() { - return internalGetDatasetSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to a dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DatasetSpecOrBuilder getDatasetSpecOrBuilder() { - if ((specCase_ == 32) && (datasetSpecBuilder_ != null)) { - return datasetSpecBuilder_.getMessageOrBuilder(); - } else { - if (specCase_ == 32) { - return (com.google.cloud.datacatalog.v1.DatasetSpec) spec_; - } - return com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DatasetSpec, - com.google.cloud.datacatalog.v1.DatasetSpec.Builder, - com.google.cloud.datacatalog.v1.DatasetSpecOrBuilder> - internalGetDatasetSpecFieldBuilder() { - if (datasetSpecBuilder_ == null) { - if (!(specCase_ == 32)) { - spec_ = com.google.cloud.datacatalog.v1.DatasetSpec.getDefaultInstance(); - } - datasetSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DatasetSpec, - com.google.cloud.datacatalog.v1.DatasetSpec.Builder, - com.google.cloud.datacatalog.v1.DatasetSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.DatasetSpec) spec_, - getParentForChildren(), - isClean()); - spec_ = null; - } - specCase_ = 32; - onChanged(); - return datasetSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FilesetSpec, - com.google.cloud.datacatalog.v1.FilesetSpec.Builder, - com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder> - filesetSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to a fileset resource. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - * - * @return Whether the filesetSpec field is set. - */ - @java.lang.Override - public boolean hasFilesetSpec() { - return specCase_ == 33; - } - - /** - * - * - *
-     * Specification that applies to a fileset resource. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - * - * @return The filesetSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FilesetSpec getFilesetSpec() { - if (filesetSpecBuilder_ == null) { - if (specCase_ == 33) { - return (com.google.cloud.datacatalog.v1.FilesetSpec) spec_; - } - return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); - } else { - if (specCase_ == 33) { - return filesetSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a fileset resource. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - */ - public Builder setFilesetSpec(com.google.cloud.datacatalog.v1.FilesetSpec value) { - if (filesetSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - filesetSpecBuilder_.setMessage(value); - } - specCase_ = 33; - return this; - } - - /** - * - * - *
-     * Specification that applies to a fileset resource. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - */ - public Builder setFilesetSpec( - com.google.cloud.datacatalog.v1.FilesetSpec.Builder builderForValue) { - if (filesetSpecBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - filesetSpecBuilder_.setMessage(builderForValue.build()); - } - specCase_ = 33; - return this; - } - - /** - * - * - *
-     * Specification that applies to a fileset resource. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - */ - public Builder mergeFilesetSpec(com.google.cloud.datacatalog.v1.FilesetSpec value) { - if (filesetSpecBuilder_ == null) { - if (specCase_ == 33 - && spec_ != com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance()) { - spec_ = - com.google.cloud.datacatalog.v1.FilesetSpec.newBuilder( - (com.google.cloud.datacatalog.v1.FilesetSpec) spec_) - .mergeFrom(value) - .buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - if (specCase_ == 33) { - filesetSpecBuilder_.mergeFrom(value); - } else { - filesetSpecBuilder_.setMessage(value); - } - } - specCase_ = 33; - return this; - } - - /** - * - * - *
-     * Specification that applies to a fileset resource. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - */ - public Builder clearFilesetSpec() { - if (filesetSpecBuilder_ == null) { - if (specCase_ == 33) { - specCase_ = 0; - spec_ = null; - onChanged(); - } - } else { - if (specCase_ == 33) { - specCase_ = 0; - spec_ = null; - } - filesetSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to a fileset resource. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - */ - public com.google.cloud.datacatalog.v1.FilesetSpec.Builder getFilesetSpecBuilder() { - return internalGetFilesetSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to a fileset resource. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder getFilesetSpecOrBuilder() { - if ((specCase_ == 33) && (filesetSpecBuilder_ != null)) { - return filesetSpecBuilder_.getMessageOrBuilder(); - } else { - if (specCase_ == 33) { - return (com.google.cloud.datacatalog.v1.FilesetSpec) spec_; - } - return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a fileset resource. Valid only
-     * for entries with the `FILESET` type.
-     * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FilesetSpec, - com.google.cloud.datacatalog.v1.FilesetSpec.Builder, - com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder> - internalGetFilesetSpecFieldBuilder() { - if (filesetSpecBuilder_ == null) { - if (!(specCase_ == 33)) { - spec_ = com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); - } - filesetSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FilesetSpec, - com.google.cloud.datacatalog.v1.FilesetSpec.Builder, - com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.FilesetSpec) spec_, - getParentForChildren(), - isClean()); - spec_ = null; - } - specCase_ = 33; - onChanged(); - return filesetSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ServiceSpec, - com.google.cloud.datacatalog.v1.ServiceSpec.Builder, - com.google.cloud.datacatalog.v1.ServiceSpecOrBuilder> - serviceSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to a Service resource.
-     * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - * - * @return Whether the serviceSpec field is set. - */ - @java.lang.Override - public boolean hasServiceSpec() { - return specCase_ == 42; - } - - /** - * - * - *
-     * Specification that applies to a Service resource.
-     * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - * - * @return The serviceSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ServiceSpec getServiceSpec() { - if (serviceSpecBuilder_ == null) { - if (specCase_ == 42) { - return (com.google.cloud.datacatalog.v1.ServiceSpec) spec_; - } - return com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance(); - } else { - if (specCase_ == 42) { - return serviceSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a Service resource.
-     * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - */ - public Builder setServiceSpec(com.google.cloud.datacatalog.v1.ServiceSpec value) { - if (serviceSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - serviceSpecBuilder_.setMessage(value); - } - specCase_ = 42; - return this; - } - - /** - * - * - *
-     * Specification that applies to a Service resource.
-     * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - */ - public Builder setServiceSpec( - com.google.cloud.datacatalog.v1.ServiceSpec.Builder builderForValue) { - if (serviceSpecBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - serviceSpecBuilder_.setMessage(builderForValue.build()); - } - specCase_ = 42; - return this; - } - - /** - * - * - *
-     * Specification that applies to a Service resource.
-     * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - */ - public Builder mergeServiceSpec(com.google.cloud.datacatalog.v1.ServiceSpec value) { - if (serviceSpecBuilder_ == null) { - if (specCase_ == 42 - && spec_ != com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance()) { - spec_ = - com.google.cloud.datacatalog.v1.ServiceSpec.newBuilder( - (com.google.cloud.datacatalog.v1.ServiceSpec) spec_) - .mergeFrom(value) - .buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - if (specCase_ == 42) { - serviceSpecBuilder_.mergeFrom(value); - } else { - serviceSpecBuilder_.setMessage(value); - } - } - specCase_ = 42; - return this; - } - - /** - * - * - *
-     * Specification that applies to a Service resource.
-     * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - */ - public Builder clearServiceSpec() { - if (serviceSpecBuilder_ == null) { - if (specCase_ == 42) { - specCase_ = 0; - spec_ = null; - onChanged(); - } - } else { - if (specCase_ == 42) { - specCase_ = 0; - spec_ = null; - } - serviceSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to a Service resource.
-     * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - */ - public com.google.cloud.datacatalog.v1.ServiceSpec.Builder getServiceSpecBuilder() { - return internalGetServiceSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to a Service resource.
-     * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ServiceSpecOrBuilder getServiceSpecOrBuilder() { - if ((specCase_ == 42) && (serviceSpecBuilder_ != null)) { - return serviceSpecBuilder_.getMessageOrBuilder(); - } else { - if (specCase_ == 42) { - return (com.google.cloud.datacatalog.v1.ServiceSpec) spec_; - } - return com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a Service resource.
-     * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ServiceSpec, - com.google.cloud.datacatalog.v1.ServiceSpec.Builder, - com.google.cloud.datacatalog.v1.ServiceSpecOrBuilder> - internalGetServiceSpecFieldBuilder() { - if (serviceSpecBuilder_ == null) { - if (!(specCase_ == 42)) { - spec_ = com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance(); - } - serviceSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ServiceSpec, - com.google.cloud.datacatalog.v1.ServiceSpec.Builder, - com.google.cloud.datacatalog.v1.ServiceSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.ServiceSpec) spec_, - getParentForChildren(), - isClean()); - spec_ = null; - } - specCase_ = 42; - onChanged(); - return serviceSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ModelSpec, - com.google.cloud.datacatalog.v1.ModelSpec.Builder, - com.google.cloud.datacatalog.v1.ModelSpecOrBuilder> - modelSpecBuilder_; - - /** - * - * - *
-     * Model specification.
-     * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - * - * @return Whether the modelSpec field is set. - */ - @java.lang.Override - public boolean hasModelSpec() { - return specCase_ == 43; - } - - /** - * - * - *
-     * Model specification.
-     * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - * - * @return The modelSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModelSpec getModelSpec() { - if (modelSpecBuilder_ == null) { - if (specCase_ == 43) { - return (com.google.cloud.datacatalog.v1.ModelSpec) spec_; - } - return com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance(); - } else { - if (specCase_ == 43) { - return modelSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Model specification.
-     * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - */ - public Builder setModelSpec(com.google.cloud.datacatalog.v1.ModelSpec value) { - if (modelSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - modelSpecBuilder_.setMessage(value); - } - specCase_ = 43; - return this; - } - - /** - * - * - *
-     * Model specification.
-     * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - */ - public Builder setModelSpec(com.google.cloud.datacatalog.v1.ModelSpec.Builder builderForValue) { - if (modelSpecBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - modelSpecBuilder_.setMessage(builderForValue.build()); - } - specCase_ = 43; - return this; - } - - /** - * - * - *
-     * Model specification.
-     * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - */ - public Builder mergeModelSpec(com.google.cloud.datacatalog.v1.ModelSpec value) { - if (modelSpecBuilder_ == null) { - if (specCase_ == 43 - && spec_ != com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance()) { - spec_ = - com.google.cloud.datacatalog.v1.ModelSpec.newBuilder( - (com.google.cloud.datacatalog.v1.ModelSpec) spec_) - .mergeFrom(value) - .buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - if (specCase_ == 43) { - modelSpecBuilder_.mergeFrom(value); - } else { - modelSpecBuilder_.setMessage(value); - } - } - specCase_ = 43; - return this; - } - - /** - * - * - *
-     * Model specification.
-     * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - */ - public Builder clearModelSpec() { - if (modelSpecBuilder_ == null) { - if (specCase_ == 43) { - specCase_ = 0; - spec_ = null; - onChanged(); - } - } else { - if (specCase_ == 43) { - specCase_ = 0; - spec_ = null; - } - modelSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Model specification.
-     * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - */ - public com.google.cloud.datacatalog.v1.ModelSpec.Builder getModelSpecBuilder() { - return internalGetModelSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Model specification.
-     * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModelSpecOrBuilder getModelSpecOrBuilder() { - if ((specCase_ == 43) && (modelSpecBuilder_ != null)) { - return modelSpecBuilder_.getMessageOrBuilder(); - } else { - if (specCase_ == 43) { - return (com.google.cloud.datacatalog.v1.ModelSpec) spec_; - } - return com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Model specification.
-     * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ModelSpec, - com.google.cloud.datacatalog.v1.ModelSpec.Builder, - com.google.cloud.datacatalog.v1.ModelSpecOrBuilder> - internalGetModelSpecFieldBuilder() { - if (modelSpecBuilder_ == null) { - if (!(specCase_ == 43)) { - spec_ = com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance(); - } - modelSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.ModelSpec, - com.google.cloud.datacatalog.v1.ModelSpec.Builder, - com.google.cloud.datacatalog.v1.ModelSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.ModelSpec) spec_, - getParentForChildren(), - isClean()); - spec_ = null; - } - specCase_ = 43; - onChanged(); - return modelSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec, - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.Builder, - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpecOrBuilder> - featureOnlineStoreSpecBuilder_; - - /** - * - * - *
-     * FeatureonlineStore spec for Vertex AI Feature Store.
-     * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - * - * @return Whether the featureOnlineStoreSpec field is set. - */ - @java.lang.Override - public boolean hasFeatureOnlineStoreSpec() { - return specCase_ == 45; - } - - /** - * - * - *
-     * FeatureonlineStore spec for Vertex AI Feature Store.
-     * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - * - * @return The featureOnlineStoreSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec getFeatureOnlineStoreSpec() { - if (featureOnlineStoreSpecBuilder_ == null) { - if (specCase_ == 45) { - return (com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) spec_; - } - return com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.getDefaultInstance(); - } else { - if (specCase_ == 45) { - return featureOnlineStoreSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * FeatureonlineStore spec for Vertex AI Feature Store.
-     * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - */ - public Builder setFeatureOnlineStoreSpec( - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec value) { - if (featureOnlineStoreSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - spec_ = value; - onChanged(); - } else { - featureOnlineStoreSpecBuilder_.setMessage(value); - } - specCase_ = 45; - return this; - } - - /** - * - * - *
-     * FeatureonlineStore spec for Vertex AI Feature Store.
-     * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - */ - public Builder setFeatureOnlineStoreSpec( - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.Builder builderForValue) { - if (featureOnlineStoreSpecBuilder_ == null) { - spec_ = builderForValue.build(); - onChanged(); - } else { - featureOnlineStoreSpecBuilder_.setMessage(builderForValue.build()); - } - specCase_ = 45; - return this; - } - - /** - * - * - *
-     * FeatureonlineStore spec for Vertex AI Feature Store.
-     * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - */ - public Builder mergeFeatureOnlineStoreSpec( - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec value) { - if (featureOnlineStoreSpecBuilder_ == null) { - if (specCase_ == 45 - && spec_ - != com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.getDefaultInstance()) { - spec_ = - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.newBuilder( - (com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) spec_) - .mergeFrom(value) - .buildPartial(); - } else { - spec_ = value; - } - onChanged(); - } else { - if (specCase_ == 45) { - featureOnlineStoreSpecBuilder_.mergeFrom(value); - } else { - featureOnlineStoreSpecBuilder_.setMessage(value); - } - } - specCase_ = 45; - return this; - } - - /** - * - * - *
-     * FeatureonlineStore spec for Vertex AI Feature Store.
-     * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - */ - public Builder clearFeatureOnlineStoreSpec() { - if (featureOnlineStoreSpecBuilder_ == null) { - if (specCase_ == 45) { - specCase_ = 0; - spec_ = null; - onChanged(); - } - } else { - if (specCase_ == 45) { - specCase_ = 0; - spec_ = null; - } - featureOnlineStoreSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * FeatureonlineStore spec for Vertex AI Feature Store.
-     * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - */ - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.Builder - getFeatureOnlineStoreSpecBuilder() { - return internalGetFeatureOnlineStoreSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * FeatureonlineStore spec for Vertex AI Feature Store.
-     * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpecOrBuilder - getFeatureOnlineStoreSpecOrBuilder() { - if ((specCase_ == 45) && (featureOnlineStoreSpecBuilder_ != null)) { - return featureOnlineStoreSpecBuilder_.getMessageOrBuilder(); - } else { - if (specCase_ == 45) { - return (com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) spec_; - } - return com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * FeatureonlineStore spec for Vertex AI Feature Store.
-     * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec, - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.Builder, - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpecOrBuilder> - internalGetFeatureOnlineStoreSpecFieldBuilder() { - if (featureOnlineStoreSpecBuilder_ == null) { - if (!(specCase_ == 45)) { - spec_ = com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.getDefaultInstance(); - } - featureOnlineStoreSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec, - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.Builder, - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) spec_, - getParentForChildren(), - isClean()); - spec_ = null; - } - specCase_ = 45; - onChanged(); - return featureOnlineStoreSpecBuilder_; - } - - private java.lang.Object displayName_ = ""; - - /** - * - * - *
-     * Display name of an entry.
-     *
-     * The maximum size is 500 bytes when encoded in UTF-8.
-     * Default value is an empty string.
-     * 
- * - * string display_name = 3; - * - * @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; - } - } - - /** - * - * - *
-     * Display name of an entry.
-     *
-     * The maximum size is 500 bytes when encoded in UTF-8.
-     * Default value is an empty string.
-     * 
- * - * string display_name = 3; - * - * @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; - } - } - - /** - * - * - *
-     * Display name of an entry.
-     *
-     * The maximum size is 500 bytes when encoded in UTF-8.
-     * Default value is an empty string.
-     * 
- * - * string display_name = 3; - * - * @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_ |= 0x00200000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Display name of an entry.
-     *
-     * The maximum size is 500 bytes when encoded in UTF-8.
-     * Default value is an empty string.
-     * 
- * - * string display_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00200000); - onChanged(); - return this; - } - - /** - * - * - *
-     * Display name of an entry.
-     *
-     * The maximum size is 500 bytes when encoded in UTF-8.
-     * Default value is an empty string.
-     * 
- * - * string display_name = 3; - * - * @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_ |= 0x00200000; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - - /** - * - * - *
-     * Entry description that can consist of several sentences or paragraphs
-     * that describe entry contents.
-     *
-     * The description must not contain Unicode non-characters as well as C0
-     * and C1 control codes except tabs (HT), new lines (LF), carriage returns
-     * (CR), and page breaks (FF).
-     * The maximum size is 2000 bytes when encoded in UTF-8.
-     * Default value is an empty string.
-     * 
- * - * string description = 4; - * - * @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; - } - } - - /** - * - * - *
-     * Entry description that can consist of several sentences or paragraphs
-     * that describe entry contents.
-     *
-     * The description must not contain Unicode non-characters as well as C0
-     * and C1 control codes except tabs (HT), new lines (LF), carriage returns
-     * (CR), and page breaks (FF).
-     * The maximum size is 2000 bytes when encoded in UTF-8.
-     * Default value is an empty string.
-     * 
- * - * string description = 4; - * - * @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; - } - } - - /** - * - * - *
-     * Entry description that can consist of several sentences or paragraphs
-     * that describe entry contents.
-     *
-     * The description must not contain Unicode non-characters as well as C0
-     * and C1 control codes except tabs (HT), new lines (LF), carriage returns
-     * (CR), and page breaks (FF).
-     * The maximum size is 2000 bytes when encoded in UTF-8.
-     * Default value is an empty string.
-     * 
- * - * string description = 4; - * - * @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_ |= 0x00400000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry description that can consist of several sentences or paragraphs
-     * that describe entry contents.
-     *
-     * The description must not contain Unicode non-characters as well as C0
-     * and C1 control codes except tabs (HT), new lines (LF), carriage returns
-     * (CR), and page breaks (FF).
-     * The maximum size is 2000 bytes when encoded in UTF-8.
-     * Default value is an empty string.
-     * 
- * - * string description = 4; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00400000); - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry description that can consist of several sentences or paragraphs
-     * that describe entry contents.
-     *
-     * The description must not contain Unicode non-characters as well as C0
-     * and C1 control codes except tabs (HT), new lines (LF), carriage returns
-     * (CR), and page breaks (FF).
-     * The maximum size is 2000 bytes when encoded in UTF-8.
-     * Default value is an empty string.
-     * 
- * - * string description = 4; - * - * @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_ |= 0x00400000; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.BusinessContext businessContext_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BusinessContext, - com.google.cloud.datacatalog.v1.BusinessContext.Builder, - com.google.cloud.datacatalog.v1.BusinessContextOrBuilder> - businessContextBuilder_; - - /** - * - * - *
-     * Business Context of the entry. Not supported for BigQuery datasets
-     * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - * - * @return Whether the businessContext field is set. - */ - public boolean hasBusinessContext() { - return ((bitField0_ & 0x00800000) != 0); - } - - /** - * - * - *
-     * Business Context of the entry. Not supported for BigQuery datasets
-     * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - * - * @return The businessContext. - */ - public com.google.cloud.datacatalog.v1.BusinessContext getBusinessContext() { - if (businessContextBuilder_ == null) { - return businessContext_ == null - ? com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance() - : businessContext_; - } else { - return businessContextBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Business Context of the entry. Not supported for BigQuery datasets
-     * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - */ - public Builder setBusinessContext(com.google.cloud.datacatalog.v1.BusinessContext value) { - if (businessContextBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - businessContext_ = value; - } else { - businessContextBuilder_.setMessage(value); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Business Context of the entry. Not supported for BigQuery datasets
-     * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - */ - public Builder setBusinessContext( - com.google.cloud.datacatalog.v1.BusinessContext.Builder builderForValue) { - if (businessContextBuilder_ == null) { - businessContext_ = builderForValue.build(); - } else { - businessContextBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00800000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Business Context of the entry. Not supported for BigQuery datasets
-     * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - */ - public Builder mergeBusinessContext(com.google.cloud.datacatalog.v1.BusinessContext value) { - if (businessContextBuilder_ == null) { - if (((bitField0_ & 0x00800000) != 0) - && businessContext_ != null - && businessContext_ - != com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance()) { - getBusinessContextBuilder().mergeFrom(value); - } else { - businessContext_ = value; - } - } else { - businessContextBuilder_.mergeFrom(value); - } - if (businessContext_ != null) { - bitField0_ |= 0x00800000; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Business Context of the entry. Not supported for BigQuery datasets
-     * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - */ - public Builder clearBusinessContext() { - bitField0_ = (bitField0_ & ~0x00800000); - businessContext_ = null; - if (businessContextBuilder_ != null) { - businessContextBuilder_.dispose(); - businessContextBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Business Context of the entry. Not supported for BigQuery datasets
-     * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - */ - public com.google.cloud.datacatalog.v1.BusinessContext.Builder getBusinessContextBuilder() { - bitField0_ |= 0x00800000; - onChanged(); - return internalGetBusinessContextFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Business Context of the entry. Not supported for BigQuery datasets
-     * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - */ - public com.google.cloud.datacatalog.v1.BusinessContextOrBuilder getBusinessContextOrBuilder() { - if (businessContextBuilder_ != null) { - return businessContextBuilder_.getMessageOrBuilder(); - } else { - return businessContext_ == null - ? com.google.cloud.datacatalog.v1.BusinessContext.getDefaultInstance() - : businessContext_; - } - } - - /** - * - * - *
-     * Business Context of the entry. Not supported for BigQuery datasets
-     * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BusinessContext, - com.google.cloud.datacatalog.v1.BusinessContext.Builder, - com.google.cloud.datacatalog.v1.BusinessContextOrBuilder> - internalGetBusinessContextFieldBuilder() { - if (businessContextBuilder_ == null) { - businessContextBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BusinessContext, - com.google.cloud.datacatalog.v1.BusinessContext.Builder, - com.google.cloud.datacatalog.v1.BusinessContextOrBuilder>( - getBusinessContext(), getParentForChildren(), isClean()); - businessContext_ = null; - } - return businessContextBuilder_; - } - - private com.google.cloud.datacatalog.v1.Schema schema_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Schema, - com.google.cloud.datacatalog.v1.Schema.Builder, - com.google.cloud.datacatalog.v1.SchemaOrBuilder> - schemaBuilder_; - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - * - * @return Whether the schema field is set. - */ - public boolean hasSchema() { - return ((bitField0_ & 0x01000000) != 0); - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - * - * @return The schema. - */ - public com.google.cloud.datacatalog.v1.Schema getSchema() { - if (schemaBuilder_ == null) { - return schema_ == null - ? com.google.cloud.datacatalog.v1.Schema.getDefaultInstance() - : schema_; - } else { - return schemaBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - */ - public Builder setSchema(com.google.cloud.datacatalog.v1.Schema value) { - if (schemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schema_ = value; - } else { - schemaBuilder_.setMessage(value); - } - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - */ - public Builder setSchema(com.google.cloud.datacatalog.v1.Schema.Builder builderForValue) { - if (schemaBuilder_ == null) { - schema_ = builderForValue.build(); - } else { - schemaBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x01000000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - */ - public Builder mergeSchema(com.google.cloud.datacatalog.v1.Schema value) { - if (schemaBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0) - && schema_ != null - && schema_ != com.google.cloud.datacatalog.v1.Schema.getDefaultInstance()) { - getSchemaBuilder().mergeFrom(value); - } else { - schema_ = value; - } - } else { - schemaBuilder_.mergeFrom(value); - } - if (schema_ != null) { - bitField0_ |= 0x01000000; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - */ - public Builder clearSchema() { - bitField0_ = (bitField0_ & ~0x01000000); - schema_ = null; - if (schemaBuilder_ != null) { - schemaBuilder_.dispose(); - schemaBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - */ - public com.google.cloud.datacatalog.v1.Schema.Builder getSchemaBuilder() { - bitField0_ |= 0x01000000; - onChanged(); - return internalGetSchemaFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - */ - public com.google.cloud.datacatalog.v1.SchemaOrBuilder getSchemaOrBuilder() { - if (schemaBuilder_ != null) { - return schemaBuilder_.getMessageOrBuilder(); - } else { - return schema_ == null - ? com.google.cloud.datacatalog.v1.Schema.getDefaultInstance() - : schema_; - } - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Schema, - com.google.cloud.datacatalog.v1.Schema.Builder, - com.google.cloud.datacatalog.v1.SchemaOrBuilder> - internalGetSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Schema, - com.google.cloud.datacatalog.v1.Schema.Builder, - com.google.cloud.datacatalog.v1.SchemaOrBuilder>( - getSchema(), getParentForChildren(), isClean()); - schema_ = null; - } - return schemaBuilder_; - } - - private com.google.cloud.datacatalog.v1.SystemTimestamps sourceSystemTimestamps_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - sourceSystemTimestampsBuilder_; - - /** - * - * - *
-     * Timestamps from the underlying resource, not from the Data Catalog
-     * entry.
-     *
-     * Output only when the entry has a system listed in the `IntegratedSystem`
-     * enum. For entries with `user_specified_system`, this field is optional
-     * and defaults to an empty timestamp.
-     * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - * - * @return Whether the sourceSystemTimestamps field is set. - */ - public boolean hasSourceSystemTimestamps() { - return ((bitField0_ & 0x02000000) != 0); - } - - /** - * - * - *
-     * Timestamps from the underlying resource, not from the Data Catalog
-     * entry.
-     *
-     * Output only when the entry has a system listed in the `IntegratedSystem`
-     * enum. For entries with `user_specified_system`, this field is optional
-     * and defaults to an empty timestamp.
-     * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - * - * @return The sourceSystemTimestamps. - */ - public com.google.cloud.datacatalog.v1.SystemTimestamps getSourceSystemTimestamps() { - if (sourceSystemTimestampsBuilder_ == null) { - return sourceSystemTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : sourceSystemTimestamps_; - } else { - return sourceSystemTimestampsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Timestamps from the underlying resource, not from the Data Catalog
-     * entry.
-     *
-     * Output only when the entry has a system listed in the `IntegratedSystem`
-     * enum. For entries with `user_specified_system`, this field is optional
-     * and defaults to an empty timestamp.
-     * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - */ - public Builder setSourceSystemTimestamps( - com.google.cloud.datacatalog.v1.SystemTimestamps value) { - if (sourceSystemTimestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sourceSystemTimestamps_ = value; - } else { - sourceSystemTimestampsBuilder_.setMessage(value); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Timestamps from the underlying resource, not from the Data Catalog
-     * entry.
-     *
-     * Output only when the entry has a system listed in the `IntegratedSystem`
-     * enum. For entries with `user_specified_system`, this field is optional
-     * and defaults to an empty timestamp.
-     * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - */ - public Builder setSourceSystemTimestamps( - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder builderForValue) { - if (sourceSystemTimestampsBuilder_ == null) { - sourceSystemTimestamps_ = builderForValue.build(); - } else { - sourceSystemTimestampsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x02000000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Timestamps from the underlying resource, not from the Data Catalog
-     * entry.
-     *
-     * Output only when the entry has a system listed in the `IntegratedSystem`
-     * enum. For entries with `user_specified_system`, this field is optional
-     * and defaults to an empty timestamp.
-     * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - */ - public Builder mergeSourceSystemTimestamps( - com.google.cloud.datacatalog.v1.SystemTimestamps value) { - if (sourceSystemTimestampsBuilder_ == null) { - if (((bitField0_ & 0x02000000) != 0) - && sourceSystemTimestamps_ != null - && sourceSystemTimestamps_ - != com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance()) { - getSourceSystemTimestampsBuilder().mergeFrom(value); - } else { - sourceSystemTimestamps_ = value; - } - } else { - sourceSystemTimestampsBuilder_.mergeFrom(value); - } - if (sourceSystemTimestamps_ != null) { - bitField0_ |= 0x02000000; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Timestamps from the underlying resource, not from the Data Catalog
-     * entry.
-     *
-     * Output only when the entry has a system listed in the `IntegratedSystem`
-     * enum. For entries with `user_specified_system`, this field is optional
-     * and defaults to an empty timestamp.
-     * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - */ - public Builder clearSourceSystemTimestamps() { - bitField0_ = (bitField0_ & ~0x02000000); - sourceSystemTimestamps_ = null; - if (sourceSystemTimestampsBuilder_ != null) { - sourceSystemTimestampsBuilder_.dispose(); - sourceSystemTimestampsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Timestamps from the underlying resource, not from the Data Catalog
-     * entry.
-     *
-     * Output only when the entry has a system listed in the `IntegratedSystem`
-     * enum. For entries with `user_specified_system`, this field is optional
-     * and defaults to an empty timestamp.
-     * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - */ - public com.google.cloud.datacatalog.v1.SystemTimestamps.Builder - getSourceSystemTimestampsBuilder() { - bitField0_ |= 0x02000000; - onChanged(); - return internalGetSourceSystemTimestampsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Timestamps from the underlying resource, not from the Data Catalog
-     * entry.
-     *
-     * Output only when the entry has a system listed in the `IntegratedSystem`
-     * enum. For entries with `user_specified_system`, this field is optional
-     * and defaults to an empty timestamp.
-     * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - */ - public com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder - getSourceSystemTimestampsOrBuilder() { - if (sourceSystemTimestampsBuilder_ != null) { - return sourceSystemTimestampsBuilder_.getMessageOrBuilder(); - } else { - return sourceSystemTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : sourceSystemTimestamps_; - } - } - - /** - * - * - *
-     * Timestamps from the underlying resource, not from the Data Catalog
-     * entry.
-     *
-     * Output only when the entry has a system listed in the `IntegratedSystem`
-     * enum. For entries with `user_specified_system`, this field is optional
-     * and defaults to an empty timestamp.
-     * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - internalGetSourceSystemTimestampsFieldBuilder() { - if (sourceSystemTimestampsBuilder_ == null) { - sourceSystemTimestampsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder>( - getSourceSystemTimestamps(), getParentForChildren(), isClean()); - sourceSystemTimestamps_ = null; - } - return sourceSystemTimestampsBuilder_; - } - - private com.google.cloud.datacatalog.v1.UsageSignal usageSignal_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.UsageSignal, - com.google.cloud.datacatalog.v1.UsageSignal.Builder, - com.google.cloud.datacatalog.v1.UsageSignalOrBuilder> - usageSignalBuilder_; - - /** - * - * - *
-     * Resource usage statistics.
-     * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - * - * @return Whether the usageSignal field is set. - */ - public boolean hasUsageSignal() { - return ((bitField0_ & 0x04000000) != 0); - } - - /** - * - * - *
-     * Resource usage statistics.
-     * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - * - * @return The usageSignal. - */ - public com.google.cloud.datacatalog.v1.UsageSignal getUsageSignal() { - if (usageSignalBuilder_ == null) { - return usageSignal_ == null - ? com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance() - : usageSignal_; - } else { - return usageSignalBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Resource usage statistics.
-     * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - */ - public Builder setUsageSignal(com.google.cloud.datacatalog.v1.UsageSignal value) { - if (usageSignalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - usageSignal_ = value; - } else { - usageSignalBuilder_.setMessage(value); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource usage statistics.
-     * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - */ - public Builder setUsageSignal( - com.google.cloud.datacatalog.v1.UsageSignal.Builder builderForValue) { - if (usageSignalBuilder_ == null) { - usageSignal_ = builderForValue.build(); - } else { - usageSignalBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x04000000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource usage statistics.
-     * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - */ - public Builder mergeUsageSignal(com.google.cloud.datacatalog.v1.UsageSignal value) { - if (usageSignalBuilder_ == null) { - if (((bitField0_ & 0x04000000) != 0) - && usageSignal_ != null - && usageSignal_ != com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance()) { - getUsageSignalBuilder().mergeFrom(value); - } else { - usageSignal_ = value; - } - } else { - usageSignalBuilder_.mergeFrom(value); - } - if (usageSignal_ != null) { - bitField0_ |= 0x04000000; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Resource usage statistics.
-     * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - */ - public Builder clearUsageSignal() { - bitField0_ = (bitField0_ & ~0x04000000); - usageSignal_ = null; - if (usageSignalBuilder_ != null) { - usageSignalBuilder_.dispose(); - usageSignalBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource usage statistics.
-     * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - */ - public com.google.cloud.datacatalog.v1.UsageSignal.Builder getUsageSignalBuilder() { - bitField0_ |= 0x04000000; - onChanged(); - return internalGetUsageSignalFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Resource usage statistics.
-     * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - */ - public com.google.cloud.datacatalog.v1.UsageSignalOrBuilder getUsageSignalOrBuilder() { - if (usageSignalBuilder_ != null) { - return usageSignalBuilder_.getMessageOrBuilder(); - } else { - return usageSignal_ == null - ? com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance() - : usageSignal_; - } - } - - /** - * - * - *
-     * Resource usage statistics.
-     * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.UsageSignal, - com.google.cloud.datacatalog.v1.UsageSignal.Builder, - com.google.cloud.datacatalog.v1.UsageSignalOrBuilder> - internalGetUsageSignalFieldBuilder() { - if (usageSignalBuilder_ == null) { - usageSignalBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.UsageSignal, - com.google.cloud.datacatalog.v1.UsageSignal.Builder, - com.google.cloud.datacatalog.v1.UsageSignalOrBuilder>( - getUsageSignal(), getParentForChildren(), isClean()); - usageSignal_ = null; - } - return usageSignalBuilder_; - } - - private com.google.protobuf.MapField labels_; - - private com.google.protobuf.MapField internalGetLabels() { - if (labels_ == null) { - return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); - } - return labels_; - } - - private com.google.protobuf.MapField - internalGetMutableLabels() { - if (labels_ == null) { - labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); - } - if (!labels_.isMutable()) { - labels_ = labels_.copy(); - } - bitField0_ |= 0x08000000; - onChanged(); - return labels_; - } - - public int getLabelsCount() { - return internalGetLabels().getMap().size(); - } - - /** - * - * - *
-     * Cloud labels attached to the entry.
-     *
-     * In Data Catalog, you can create and modify labels attached only to custom
-     * entries. Synced entries have unmodifiable labels that come from the source
-     * system.
-     * 
- * - * map<string, string> labels = 14; - */ - @java.lang.Override - public boolean containsLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetLabels().getMap().containsKey(key); - } - - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getLabels() { - return getLabelsMap(); - } - - /** - * - * - *
-     * Cloud labels attached to the entry.
-     *
-     * In Data Catalog, you can create and modify labels attached only to custom
-     * entries. Synced entries have unmodifiable labels that come from the source
-     * system.
-     * 
- * - * map<string, string> labels = 14; - */ - @java.lang.Override - public java.util.Map getLabelsMap() { - return internalGetLabels().getMap(); - } - - /** - * - * - *
-     * Cloud labels attached to the entry.
-     *
-     * In Data Catalog, you can create and modify labels attached only to custom
-     * entries. Synced entries have unmodifiable labels that come from the source
-     * system.
-     * 
- * - * map<string, string> labels = 14; - */ - @java.lang.Override - public /* nullable */ java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-     * Cloud labels attached to the entry.
-     *
-     * In Data Catalog, you can create and modify labels attached only to custom
-     * entries. Synced entries have unmodifiable labels that come from the source
-     * system.
-     * 
- * - * map<string, string> labels = 14; - */ - @java.lang.Override - public java.lang.String getLabelsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetLabels().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x08000000); - internalGetMutableLabels().getMutableMap().clear(); - return this; - } - - /** - * - * - *
-     * Cloud labels attached to the entry.
-     *
-     * In Data Catalog, you can create and modify labels attached only to custom
-     * entries. Synced entries have unmodifiable labels that come from the source
-     * system.
-     * 
- * - * map<string, string> labels = 14; - */ - public Builder removeLabels(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableLabels().getMutableMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableLabels() { - bitField0_ |= 0x08000000; - return internalGetMutableLabels().getMutableMap(); - } - - /** - * - * - *
-     * Cloud labels attached to the entry.
-     *
-     * In Data Catalog, you can create and modify labels attached only to custom
-     * entries. Synced entries have unmodifiable labels that come from the source
-     * system.
-     * 
- * - * map<string, string> labels = 14; - */ - public Builder putLabels(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x08000000; - return this; - } - - /** - * - * - *
-     * Cloud labels attached to the entry.
-     *
-     * In Data Catalog, you can create and modify labels attached only to custom
-     * entries. Synced entries have unmodifiable labels that come from the source
-     * system.
-     * 
- * - * map<string, string> labels = 14; - */ - public Builder putAllLabels(java.util.Map values) { - internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x08000000; - return this; - } - - private com.google.cloud.datacatalog.v1.DataSource dataSource_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataSource, - com.google.cloud.datacatalog.v1.DataSource.Builder, - com.google.cloud.datacatalog.v1.DataSourceOrBuilder> - dataSourceBuilder_; - - /** - * - * - *
-     * Output only. Physical location of the entry.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataSource field is set. - */ - public boolean hasDataSource() { - return ((bitField0_ & 0x10000000) != 0); - } - - /** - * - * - *
-     * Output only. Physical location of the entry.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataSource. - */ - public com.google.cloud.datacatalog.v1.DataSource getDataSource() { - if (dataSourceBuilder_ == null) { - return dataSource_ == null - ? com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance() - : dataSource_; - } else { - return dataSourceBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Physical location of the entry.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDataSource(com.google.cloud.datacatalog.v1.DataSource value) { - if (dataSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataSource_ = value; - } else { - dataSourceBuilder_.setMessage(value); - } - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Physical location of the entry.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDataSource( - com.google.cloud.datacatalog.v1.DataSource.Builder builderForValue) { - if (dataSourceBuilder_ == null) { - dataSource_ = builderForValue.build(); - } else { - dataSourceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x10000000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Physical location of the entry.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDataSource(com.google.cloud.datacatalog.v1.DataSource value) { - if (dataSourceBuilder_ == null) { - if (((bitField0_ & 0x10000000) != 0) - && dataSource_ != null - && dataSource_ != com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance()) { - getDataSourceBuilder().mergeFrom(value); - } else { - dataSource_ = value; - } - } else { - dataSourceBuilder_.mergeFrom(value); - } - if (dataSource_ != null) { - bitField0_ |= 0x10000000; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Physical location of the entry.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDataSource() { - bitField0_ = (bitField0_ & ~0x10000000); - dataSource_ = null; - if (dataSourceBuilder_ != null) { - dataSourceBuilder_.dispose(); - dataSourceBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Physical location of the entry.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.DataSource.Builder getDataSourceBuilder() { - bitField0_ |= 0x10000000; - onChanged(); - return internalGetDataSourceFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Physical location of the entry.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.DataSourceOrBuilder getDataSourceOrBuilder() { - if (dataSourceBuilder_ != null) { - return dataSourceBuilder_.getMessageOrBuilder(); - } else { - return dataSource_ == null - ? com.google.cloud.datacatalog.v1.DataSource.getDefaultInstance() - : dataSource_; - } - } - - /** - * - * - *
-     * Output only. Physical location of the entry.
-     * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataSource, - com.google.cloud.datacatalog.v1.DataSource.Builder, - com.google.cloud.datacatalog.v1.DataSourceOrBuilder> - internalGetDataSourceFieldBuilder() { - if (dataSourceBuilder_ == null) { - dataSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataSource, - com.google.cloud.datacatalog.v1.DataSource.Builder, - com.google.cloud.datacatalog.v1.DataSourceOrBuilder>( - getDataSource(), getParentForChildren(), isClean()); - dataSource_ = null; - } - return dataSourceBuilder_; - } - - private com.google.cloud.datacatalog.v1.PersonalDetails personalDetails_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PersonalDetails, - com.google.cloud.datacatalog.v1.PersonalDetails.Builder, - com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder> - personalDetailsBuilder_; - - /** - * - * - *
-     * Output only. Additional information related to the entry. Private to the
-     * current user.
-     * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the personalDetails field is set. - */ - public boolean hasPersonalDetails() { - return ((bitField0_ & 0x20000000) != 0); - } - - /** - * - * - *
-     * Output only. Additional information related to the entry. Private to the
-     * current user.
-     * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The personalDetails. - */ - public com.google.cloud.datacatalog.v1.PersonalDetails getPersonalDetails() { - if (personalDetailsBuilder_ == null) { - return personalDetails_ == null - ? com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance() - : personalDetails_; - } else { - return personalDetailsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Additional information related to the entry. Private to the
-     * current user.
-     * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPersonalDetails(com.google.cloud.datacatalog.v1.PersonalDetails value) { - if (personalDetailsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - personalDetails_ = value; - } else { - personalDetailsBuilder_.setMessage(value); - } - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Additional information related to the entry. Private to the
-     * current user.
-     * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setPersonalDetails( - com.google.cloud.datacatalog.v1.PersonalDetails.Builder builderForValue) { - if (personalDetailsBuilder_ == null) { - personalDetails_ = builderForValue.build(); - } else { - personalDetailsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x20000000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Additional information related to the entry. Private to the
-     * current user.
-     * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergePersonalDetails(com.google.cloud.datacatalog.v1.PersonalDetails value) { - if (personalDetailsBuilder_ == null) { - if (((bitField0_ & 0x20000000) != 0) - && personalDetails_ != null - && personalDetails_ - != com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance()) { - getPersonalDetailsBuilder().mergeFrom(value); - } else { - personalDetails_ = value; - } - } else { - personalDetailsBuilder_.mergeFrom(value); - } - if (personalDetails_ != null) { - bitField0_ |= 0x20000000; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Additional information related to the entry. Private to the
-     * current user.
-     * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearPersonalDetails() { - bitField0_ = (bitField0_ & ~0x20000000); - personalDetails_ = null; - if (personalDetailsBuilder_ != null) { - personalDetailsBuilder_.dispose(); - personalDetailsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Additional information related to the entry. Private to the
-     * current user.
-     * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.PersonalDetails.Builder getPersonalDetailsBuilder() { - bitField0_ |= 0x20000000; - onChanged(); - return internalGetPersonalDetailsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Additional information related to the entry. Private to the
-     * current user.
-     * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder getPersonalDetailsOrBuilder() { - if (personalDetailsBuilder_ != null) { - return personalDetailsBuilder_.getMessageOrBuilder(); - } else { - return personalDetails_ == null - ? com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance() - : personalDetails_; - } - } - - /** - * - * - *
-     * Output only. Additional information related to the entry. Private to the
-     * current user.
-     * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PersonalDetails, - com.google.cloud.datacatalog.v1.PersonalDetails.Builder, - com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder> - internalGetPersonalDetailsFieldBuilder() { - if (personalDetailsBuilder_ == null) { - personalDetailsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PersonalDetails, - com.google.cloud.datacatalog.v1.PersonalDetails.Builder, - com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder>( - getPersonalDetails(), getParentForChildren(), isClean()); - personalDetails_ = null; - } - return personalDetailsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.Entry) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.Entry) - private static final com.google.cloud.datacatalog.v1.Entry DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.Entry(); - } - - public static com.google.cloud.datacatalog.v1.Entry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Entry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Entry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java deleted file mode 100644 index bb52050cc631..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroup.java +++ /dev/null @@ -1,1461 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Entry group metadata.
- *
- * An `EntryGroup` resource represents a logical grouping of zero or more
- * Data Catalog [Entry][google.cloud.datacatalog.v1.Entry] resources.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.EntryGroup} - */ -@com.google.protobuf.Generated -public final class EntryGroup extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.EntryGroup) - EntryGroupOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EntryGroup"); - } - - // Use EntryGroup.newBuilder() to construct. - private EntryGroup(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private EntryGroup() { - name_ = ""; - displayName_ = ""; - description_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_EntryGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_EntryGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.EntryGroup.class, - com.google.cloud.datacatalog.v1.EntryGroup.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. The resource name of the entry group in URL format.
-   *
-   * Note: The entry group itself and its child resources might not be
-   * stored in the location specified in its 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 resource name of the entry group in URL format.
-   *
-   * Note: The entry group itself and its child resources might not be
-   * stored in the location specified in its 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_ = ""; - - /** - * - * - *
-   * A short name to identify the entry group, for example,
-   * "analytics data - jan 2011". Default value is an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - - /** - * - * - *
-   * A short name to identify the entry group, for example,
-   * "analytics data - jan 2011". Default value is an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
-   * Entry group description. Can consist of several sentences or
-   * paragraphs that describe the entry group contents.
-   * Default value is an empty string.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - - /** - * - * - *
-   * Entry group description. Can consist of several sentences or
-   * paragraphs that describe the entry group contents.
-   * Default value is an empty string.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_CATALOG_TIMESTAMPS_FIELD_NUMBER = 4; - private com.google.cloud.datacatalog.v1.SystemTimestamps dataCatalogTimestamps_; - - /** - * - * - *
-   * Output only. Timestamps of the entry group. Default value is empty.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataCatalogTimestamps field is set. - */ - @java.lang.Override - public boolean hasDataCatalogTimestamps() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Output only. Timestamps of the entry group. Default value is empty.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataCatalogTimestamps. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestamps getDataCatalogTimestamps() { - return dataCatalogTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : dataCatalogTimestamps_; - } - - /** - * - * - *
-   * Output only. Timestamps of the entry group. Default value is empty.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder - getDataCatalogTimestampsOrBuilder() { - return dataCatalogTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : dataCatalogTimestamps_; - } - - public static final int TRANSFERRED_TO_DATAPLEX_FIELD_NUMBER = 9; - private boolean transferredToDataplex_ = false; - - /** - * - * - *
-   * Optional. When set to [true], it means DataCatalog EntryGroup was
-   * transferred to Dataplex Catalog Service. It makes EntryGroup and its
-   * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
-   * its Entries can be created. After setting the flag to [true] it cannot be
-   * unset.
-   * 
- * - * bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The transferredToDataplex. - */ - @java.lang.Override - public boolean getTransferredToDataplex() { - return transferredToDataplex_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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, getDataCatalogTimestamps()); - } - if (transferredToDataplex_ != false) { - output.writeBool(9, transferredToDataplex_); - } - 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, getDataCatalogTimestamps()); - } - if (transferredToDataplex_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, transferredToDataplex_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.EntryGroup)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.EntryGroup other = - (com.google.cloud.datacatalog.v1.EntryGroup) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (hasDataCatalogTimestamps() != other.hasDataCatalogTimestamps()) return false; - if (hasDataCatalogTimestamps()) { - if (!getDataCatalogTimestamps().equals(other.getDataCatalogTimestamps())) return false; - } - if (getTransferredToDataplex() != other.getTransferredToDataplex()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasDataCatalogTimestamps()) { - hash = (37 * hash) + DATA_CATALOG_TIMESTAMPS_FIELD_NUMBER; - hash = (53 * hash) + getDataCatalogTimestamps().hashCode(); - } - hash = (37 * hash) + TRANSFERRED_TO_DATAPLEX_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getTransferredToDataplex()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.EntryGroup prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Entry group metadata.
-   *
-   * An `EntryGroup` resource represents a logical grouping of zero or more
-   * Data Catalog [Entry][google.cloud.datacatalog.v1.Entry] resources.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.EntryGroup} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.EntryGroup) - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_EntryGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_EntryGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.EntryGroup.class, - com.google.cloud.datacatalog.v1.EntryGroup.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.EntryGroup.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetDataCatalogTimestampsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - description_ = ""; - dataCatalogTimestamps_ = null; - if (dataCatalogTimestampsBuilder_ != null) { - dataCatalogTimestampsBuilder_.dispose(); - dataCatalogTimestampsBuilder_ = null; - } - transferredToDataplex_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_EntryGroup_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryGroup getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryGroup build() { - com.google.cloud.datacatalog.v1.EntryGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryGroup buildPartial() { - com.google.cloud.datacatalog.v1.EntryGroup result = - new com.google.cloud.datacatalog.v1.EntryGroup(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.EntryGroup 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.dataCatalogTimestamps_ = - dataCatalogTimestampsBuilder_ == null - ? dataCatalogTimestamps_ - : dataCatalogTimestampsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.transferredToDataplex_ = transferredToDataplex_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.EntryGroup) { - return mergeFrom((com.google.cloud.datacatalog.v1.EntryGroup) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.EntryGroup other) { - if (other == com.google.cloud.datacatalog.v1.EntryGroup.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.hasDataCatalogTimestamps()) { - mergeDataCatalogTimestamps(other.getDataCatalogTimestamps()); - } - if (other.getTransferredToDataplex() != false) { - setTransferredToDataplex(other.getTransferredToDataplex()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetDataCatalogTimestampsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 72: - { - transferredToDataplex_ = input.readBool(); - bitField0_ |= 0x00000010; - 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 resource name of the entry group in URL format.
-     *
-     * Note: The entry group itself and its child resources might not be
-     * stored in the location specified in its 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 resource name of the entry group in URL format.
-     *
-     * Note: The entry group itself and its child resources might not be
-     * stored in the location specified in its 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 resource name of the entry group in URL format.
-     *
-     * Note: The entry group itself and its child resources might not be
-     * stored in the location specified in its 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 resource name of the entry group in URL format.
-     *
-     * Note: The entry group itself and its child resources might not be
-     * stored in the location specified in its 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 resource name of the entry group in URL format.
-     *
-     * Note: The entry group itself and its child resources might not be
-     * stored in the location specified in its 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_ = ""; - - /** - * - * - *
-     * A short name to identify the entry group, for example,
-     * "analytics data - jan 2011". Default value is an empty string.
-     * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * A short name to identify the entry group, for example,
-     * "analytics data - jan 2011". Default value is an empty string.
-     * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * A short name to identify the entry group, for example,
-     * "analytics data - jan 2011". Default value is an empty string.
-     * 
- * - * string display_name = 2; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * A short name to identify the entry group, for example,
-     * "analytics data - jan 2011". Default value is an empty string.
-     * 
- * - * string display_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * A short name to identify the entry group, for example,
-     * "analytics data - jan 2011". Default value is an empty string.
-     * 
- * - * string display_name = 2; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - - /** - * - * - *
-     * Entry group description. Can consist of several sentences or
-     * paragraphs that describe the entry group contents.
-     * Default value is an empty string.
-     * 
- * - * string description = 3; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Entry group description. Can consist of several sentences or
-     * paragraphs that describe the entry group contents.
-     * Default value is an empty string.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Entry group description. Can consist of several sentences or
-     * paragraphs that describe the entry group contents.
-     * Default value is an empty string.
-     * 
- * - * string description = 3; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry group description. Can consist of several sentences or
-     * paragraphs that describe the entry group contents.
-     * Default value is an empty string.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry group description. Can consist of several sentences or
-     * paragraphs that describe the entry group contents.
-     * Default value is an empty string.
-     * 
- * - * string description = 3; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.SystemTimestamps dataCatalogTimestamps_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - dataCatalogTimestampsBuilder_; - - /** - * - * - *
-     * Output only. Timestamps of the entry group. Default value is empty.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataCatalogTimestamps field is set. - */ - public boolean hasDataCatalogTimestamps() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-     * Output only. Timestamps of the entry group. Default value is empty.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataCatalogTimestamps. - */ - public com.google.cloud.datacatalog.v1.SystemTimestamps getDataCatalogTimestamps() { - if (dataCatalogTimestampsBuilder_ == null) { - return dataCatalogTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : dataCatalogTimestamps_; - } else { - return dataCatalogTimestampsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Timestamps of the entry group. Default value is empty.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDataCatalogTimestamps( - com.google.cloud.datacatalog.v1.SystemTimestamps value) { - if (dataCatalogTimestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataCatalogTimestamps_ = value; - } else { - dataCatalogTimestampsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps of the entry group. Default value is empty.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDataCatalogTimestamps( - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder builderForValue) { - if (dataCatalogTimestampsBuilder_ == null) { - dataCatalogTimestamps_ = builderForValue.build(); - } else { - dataCatalogTimestampsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps of the entry group. Default value is empty.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDataCatalogTimestamps( - com.google.cloud.datacatalog.v1.SystemTimestamps value) { - if (dataCatalogTimestampsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && dataCatalogTimestamps_ != null - && dataCatalogTimestamps_ - != com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance()) { - getDataCatalogTimestampsBuilder().mergeFrom(value); - } else { - dataCatalogTimestamps_ = value; - } - } else { - dataCatalogTimestampsBuilder_.mergeFrom(value); - } - if (dataCatalogTimestamps_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Timestamps of the entry group. Default value is empty.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDataCatalogTimestamps() { - bitField0_ = (bitField0_ & ~0x00000008); - dataCatalogTimestamps_ = null; - if (dataCatalogTimestampsBuilder_ != null) { - dataCatalogTimestampsBuilder_.dispose(); - dataCatalogTimestampsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps of the entry group. Default value is empty.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.SystemTimestamps.Builder - getDataCatalogTimestampsBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetDataCatalogTimestampsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Timestamps of the entry group. Default value is empty.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder - getDataCatalogTimestampsOrBuilder() { - if (dataCatalogTimestampsBuilder_ != null) { - return dataCatalogTimestampsBuilder_.getMessageOrBuilder(); - } else { - return dataCatalogTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : dataCatalogTimestamps_; - } - } - - /** - * - * - *
-     * Output only. Timestamps of the entry group. Default value is empty.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - internalGetDataCatalogTimestampsFieldBuilder() { - if (dataCatalogTimestampsBuilder_ == null) { - dataCatalogTimestampsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder>( - getDataCatalogTimestamps(), getParentForChildren(), isClean()); - dataCatalogTimestamps_ = null; - } - return dataCatalogTimestampsBuilder_; - } - - private boolean transferredToDataplex_; - - /** - * - * - *
-     * Optional. When set to [true], it means DataCatalog EntryGroup was
-     * transferred to Dataplex Catalog Service. It makes EntryGroup and its
-     * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
-     * its Entries can be created. After setting the flag to [true] it cannot be
-     * unset.
-     * 
- * - * bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The transferredToDataplex. - */ - @java.lang.Override - public boolean getTransferredToDataplex() { - return transferredToDataplex_; - } - - /** - * - * - *
-     * Optional. When set to [true], it means DataCatalog EntryGroup was
-     * transferred to Dataplex Catalog Service. It makes EntryGroup and its
-     * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
-     * its Entries can be created. After setting the flag to [true] it cannot be
-     * unset.
-     * 
- * - * bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The transferredToDataplex to set. - * @return This builder for chaining. - */ - public Builder setTransferredToDataplex(boolean value) { - - transferredToDataplex_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. When set to [true], it means DataCatalog EntryGroup was
-     * transferred to Dataplex Catalog Service. It makes EntryGroup and its
-     * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
-     * its Entries can be created. After setting the flag to [true] it cannot be
-     * unset.
-     * 
- * - * bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTransferredToDataplex() { - bitField0_ = (bitField0_ & ~0x00000010); - transferredToDataplex_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.EntryGroup) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.EntryGroup) - private static final com.google.cloud.datacatalog.v1.EntryGroup DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.EntryGroup(); - } - - public static com.google.cloud.datacatalog.v1.EntryGroup getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntryGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryGroup getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupName.java deleted file mode 100644 index 84cab2950550..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupName.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 EntryGroupName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_ENTRY_GROUP = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/entryGroups/{entry_group}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String entryGroup; - - @Deprecated - protected EntryGroupName() { - project = null; - location = null; - entryGroup = null; - } - - private EntryGroupName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - entryGroup = Preconditions.checkNotNull(builder.getEntryGroup()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static EntryGroupName of(String project, String location, String entryGroup) { - return newBuilder().setProject(project).setLocation(location).setEntryGroup(entryGroup).build(); - } - - public static String format(String project, String location, String entryGroup) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setEntryGroup(entryGroup) - .build() - .toString(); - } - - public static @Nullable EntryGroupName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_ENTRY_GROUP.validatedMatch( - formattedString, "EntryGroupName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("entry_group")); - } - - 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 EntryGroupName> values) { - List list = new ArrayList<>(values.size()); - for (EntryGroupName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_ENTRY_GROUP.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 (entryGroup != null) { - fieldMapBuilder.put("entry_group", entryGroup); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_ENTRY_GROUP.instantiate( - "project", project, "location", location, "entry_group", entryGroup); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - EntryGroupName that = ((EntryGroupName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.entryGroup, that.entryGroup); - } - 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(entryGroup); - return h; - } - - /** Builder for projects/{project}/locations/{location}/entryGroups/{entry_group}. */ - public static class Builder { - private String project; - private String location; - private String entryGroup; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setEntryGroup(String entryGroup) { - this.entryGroup = entryGroup; - return this; - } - - private Builder(EntryGroupName entryGroupName) { - this.project = entryGroupName.project; - this.location = entryGroupName.location; - this.entryGroup = entryGroupName.entryGroup; - } - - public EntryGroupName build() { - return new EntryGroupName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java deleted file mode 100644 index b67b497879f1..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryGroupOrBuilder.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface EntryGroupOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.EntryGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. The resource name of the entry group in URL format.
-   *
-   * Note: The entry group itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. The resource name of the entry group in URL format.
-   *
-   * Note: The entry group itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * A short name to identify the entry group, for example,
-   * "analytics data - jan 2011". Default value is an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * A short name to identify the entry group, for example,
-   * "analytics data - jan 2011". Default value is an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Entry group description. Can consist of several sentences or
-   * paragraphs that describe the entry group contents.
-   * Default value is an empty string.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Entry group description. Can consist of several sentences or
-   * paragraphs that describe the entry group contents.
-   * Default value is an empty string.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Output only. Timestamps of the entry group. Default value is empty.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataCatalogTimestamps field is set. - */ - boolean hasDataCatalogTimestamps(); - - /** - * - * - *
-   * Output only. Timestamps of the entry group. Default value is empty.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataCatalogTimestamps. - */ - com.google.cloud.datacatalog.v1.SystemTimestamps getDataCatalogTimestamps(); - - /** - * - * - *
-   * Output only. Timestamps of the entry group. Default value is empty.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder getDataCatalogTimestampsOrBuilder(); - - /** - * - * - *
-   * Optional. When set to [true], it means DataCatalog EntryGroup was
-   * transferred to Dataplex Catalog Service. It makes EntryGroup and its
-   * Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and
-   * its Entries can be created. After setting the flag to [true] it cannot be
-   * unset.
-   * 
- * - * bool transferred_to_dataplex = 9 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The transferredToDataplex. - */ - boolean getTransferredToDataplex(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryName.java deleted file mode 100644 index 9bf0544ca020..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryName.java +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 EntryName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_ENTRY_GROUP_ENTRY = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String entryGroup; - private final String entry; - - @Deprecated - protected EntryName() { - project = null; - location = null; - entryGroup = null; - entry = null; - } - - private EntryName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - entryGroup = Preconditions.checkNotNull(builder.getEntryGroup()); - entry = Preconditions.checkNotNull(builder.getEntry()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public String getEntry() { - return entry; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static EntryName of(String project, String location, String entryGroup, String entry) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setEntryGroup(entryGroup) - .setEntry(entry) - .build(); - } - - public static String format(String project, String location, String entryGroup, String entry) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setEntryGroup(entryGroup) - .setEntry(entry) - .build() - .toString(); - } - - public static @Nullable EntryName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_ENTRY_GROUP_ENTRY.validatedMatch( - formattedString, "EntryName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("entry_group"), - matchMap.get("entry")); - } - - 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 EntryName> values) { - List list = new ArrayList<>(values.size()); - for (EntryName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_ENTRY_GROUP_ENTRY.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 (entryGroup != null) { - fieldMapBuilder.put("entry_group", entryGroup); - } - if (entry != null) { - fieldMapBuilder.put("entry", entry); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_ENTRY_GROUP_ENTRY.instantiate( - "project", project, "location", location, "entry_group", entryGroup, "entry", entry); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - EntryName that = ((EntryName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.entryGroup, that.entryGroup) - && Objects.equals(this.entry, that.entry); - } - 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(entryGroup); - h *= 1000003; - h ^= Objects.hashCode(entry); - return h; - } - - /** - * Builder for projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}. - */ - public static class Builder { - private String project; - private String location; - private String entryGroup; - private String entry; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public String getEntry() { - return entry; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setEntryGroup(String entryGroup) { - this.entryGroup = entryGroup; - return this; - } - - public Builder setEntry(String entry) { - this.entry = entry; - return this; - } - - private Builder(EntryName entryName) { - this.project = entryName.project; - this.location = entryName.location; - this.entryGroup = entryName.entryGroup; - this.entry = entryName.entry; - } - - public EntryName build() { - return new EntryName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOrBuilder.java deleted file mode 100644 index 8792f94581eb..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOrBuilder.java +++ /dev/null @@ -1,1389 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface EntryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Entry) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Identifier. The resource name of an entry in URL format.
-   *
-   * Note: The entry itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Output only. Identifier. The resource name of an entry in URL format.
-   *
-   * Note: The entry itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The resource this metadata entry refers to.
-   *
-   * For Google Cloud Platform resources, `linked_resource` is the
-   * [Full Resource Name]
-   * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   * For example, the `linked_resource` for a table resource from BigQuery is:
-   *
-   * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   *
-   * Output only when the entry is one of the types in the `EntryType` enum.
-   *
-   * For entries with a `user_specified_type`, this field is optional and
-   * defaults to an empty string.
-   *
-   * The resource string must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), periods (.), colons (:), slashes (/), dashes (-),
-   * and hashes (#).
-   * The maximum size is 200 bytes when encoded in UTF-8.
-   * 
- * - * string linked_resource = 9; - * - * @return The linkedResource. - */ - java.lang.String getLinkedResource(); - - /** - * - * - *
-   * The resource this metadata entry refers to.
-   *
-   * For Google Cloud Platform resources, `linked_resource` is the
-   * [Full Resource Name]
-   * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   * For example, the `linked_resource` for a table resource from BigQuery is:
-   *
-   * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   *
-   * Output only when the entry is one of the types in the `EntryType` enum.
-   *
-   * For entries with a `user_specified_type`, this field is optional and
-   * defaults to an empty string.
-   *
-   * The resource string must contain only letters (a-z, A-Z), numbers (0-9),
-   * underscores (_), periods (.), colons (:), slashes (/), dashes (-),
-   * and hashes (#).
-   * The maximum size is 200 bytes when encoded in UTF-8.
-   * 
- * - * string linked_resource = 9; - * - * @return The bytes for linkedResource. - */ - com.google.protobuf.ByteString getLinkedResourceBytes(); - - /** - * - * - *
-   * [Fully Qualified Name
-   * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-   * of the resource. Set automatically for entries representing resources from
-   * synced systems. Settable only during creation, and read-only later. Can
-   * be used for search and lookup of the entries.
-   * 
- * - * string fully_qualified_name = 29; - * - * @return The fullyQualifiedName. - */ - java.lang.String getFullyQualifiedName(); - - /** - * - * - *
-   * [Fully Qualified Name
-   * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-   * of the resource. Set automatically for entries representing resources from
-   * synced systems. Settable only during creation, and read-only later. Can
-   * be used for search and lookup of the entries.
-   * 
- * - * string fully_qualified_name = 29; - * - * @return The bytes for fullyQualifiedName. - */ - com.google.protobuf.ByteString getFullyQualifiedNameBytes(); - - /** - * - * - *
-   * The type of the entry.
-   *
-   * For details, see [`EntryType`](#entrytype).
-   * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @return Whether the type field is set. - */ - boolean hasType(); - - /** - * - * - *
-   * The type of the entry.
-   *
-   * For details, see [`EntryType`](#entrytype).
-   * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - - /** - * - * - *
-   * The type of the entry.
-   *
-   * For details, see [`EntryType`](#entrytype).
-   * 
- * - * .google.cloud.datacatalog.v1.EntryType type = 2; - * - * @return The type. - */ - com.google.cloud.datacatalog.v1.EntryType getType(); - - /** - * - * - *
-   * Custom entry type that doesn't match any of the values allowed for input
-   * and listed in the `EntryType` enum.
-   *
-   * When creating an entry, first check the type values in the enum.
-   * If there are no appropriate types for the new entry,
-   * provide a custom value, for example, `my_special_type`.
-   *
-   * The `user_specified_type` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_type = 16; - * - * @return Whether the userSpecifiedType field is set. - */ - boolean hasUserSpecifiedType(); - - /** - * - * - *
-   * Custom entry type that doesn't match any of the values allowed for input
-   * and listed in the `EntryType` enum.
-   *
-   * When creating an entry, first check the type values in the enum.
-   * If there are no appropriate types for the new entry,
-   * provide a custom value, for example, `my_special_type`.
-   *
-   * The `user_specified_type` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_type = 16; - * - * @return The userSpecifiedType. - */ - java.lang.String getUserSpecifiedType(); - - /** - * - * - *
-   * Custom entry type that doesn't match any of the values allowed for input
-   * and listed in the `EntryType` enum.
-   *
-   * When creating an entry, first check the type values in the enum.
-   * If there are no appropriate types for the new entry,
-   * provide a custom value, for example, `my_special_type`.
-   *
-   * The `user_specified_type` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_type = 16; - * - * @return The bytes for userSpecifiedType. - */ - com.google.protobuf.ByteString getUserSpecifiedTypeBytes(); - - /** - * - * - *
-   * Output only. Indicates the entry's source system that Data Catalog
-   * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the integratedSystem field is set. - */ - boolean hasIntegratedSystem(); - - /** - * - * - *
-   * Output only. Indicates the entry's source system that Data Catalog
-   * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for integratedSystem. - */ - int getIntegratedSystemValue(); - - /** - * - * - *
-   * Output only. Indicates the entry's source system that Data Catalog
-   * integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The integratedSystem. - */ - com.google.cloud.datacatalog.v1.IntegratedSystem getIntegratedSystem(); - - /** - * - * - *
-   * Indicates the entry's source system that Data Catalog doesn't
-   * automatically integrate with.
-   *
-   * The `user_specified_system` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_system = 18; - * - * @return Whether the userSpecifiedSystem field is set. - */ - boolean hasUserSpecifiedSystem(); - - /** - * - * - *
-   * Indicates the entry's source system that Data Catalog doesn't
-   * automatically integrate with.
-   *
-   * The `user_specified_system` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_system = 18; - * - * @return The userSpecifiedSystem. - */ - java.lang.String getUserSpecifiedSystem(); - - /** - * - * - *
-   * Indicates the entry's source system that Data Catalog doesn't
-   * automatically integrate with.
-   *
-   * The `user_specified_system` string has the following limitations:
-   *
-   * * Is case insensitive.
-   * * Must begin with a letter or underscore.
-   * * Can only contain letters, numbers, and underscores.
-   * * Must be at least 1 character and at most 64 characters long.
-   * 
- * - * string user_specified_system = 18; - * - * @return The bytes for userSpecifiedSystem. - */ - com.google.protobuf.ByteString getUserSpecifiedSystemBytes(); - - /** - * - * - *
-   * Specification that applies to a relational database system. Only settable
-   * when `user_specified_system` is equal to `SQL_DATABASE`
-   * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - * @return Whether the sqlDatabaseSystemSpec field is set. - */ - boolean hasSqlDatabaseSystemSpec(); - - /** - * - * - *
-   * Specification that applies to a relational database system. Only settable
-   * when `user_specified_system` is equal to `SQL_DATABASE`
-   * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - * - * @return The sqlDatabaseSystemSpec. - */ - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec getSqlDatabaseSystemSpec(); - - /** - * - * - *
-   * Specification that applies to a relational database system. Only settable
-   * when `user_specified_system` is equal to `SQL_DATABASE`
-   * 
- * - * .google.cloud.datacatalog.v1.SqlDatabaseSystemSpec sql_database_system_spec = 39; - */ - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder - getSqlDatabaseSystemSpecOrBuilder(); - - /** - * - * - *
-   * Specification that applies to Looker sysstem. Only settable when
-   * `user_specified_system` is equal to `LOOKER`
-   * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - * - * @return Whether the lookerSystemSpec field is set. - */ - boolean hasLookerSystemSpec(); - - /** - * - * - *
-   * Specification that applies to Looker sysstem. Only settable when
-   * `user_specified_system` is equal to `LOOKER`
-   * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - * - * @return The lookerSystemSpec. - */ - com.google.cloud.datacatalog.v1.LookerSystemSpec getLookerSystemSpec(); - - /** - * - * - *
-   * Specification that applies to Looker sysstem. Only settable when
-   * `user_specified_system` is equal to `LOOKER`
-   * 
- * - * .google.cloud.datacatalog.v1.LookerSystemSpec looker_system_spec = 40; - */ - com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder getLookerSystemSpecOrBuilder(); - - /** - * - * - *
-   * Specification that applies to Cloud Bigtable system. Only settable when
-   * `integrated_system` is equal to `CLOUD_BIGTABLE`
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - * - * @return Whether the cloudBigtableSystemSpec field is set. - */ - boolean hasCloudBigtableSystemSpec(); - - /** - * - * - *
-   * Specification that applies to Cloud Bigtable system. Only settable when
-   * `integrated_system` is equal to `CLOUD_BIGTABLE`
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - * - * @return The cloudBigtableSystemSpec. - */ - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpec getCloudBigtableSystemSpec(); - - /** - * - * - *
-   * Specification that applies to Cloud Bigtable system. Only settable when
-   * `integrated_system` is equal to `CLOUD_BIGTABLE`
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - * - */ - com.google.cloud.datacatalog.v1.CloudBigtableSystemSpecOrBuilder - getCloudBigtableSystemSpecOrBuilder(); - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return Whether the gcsFilesetSpec field is set. - */ - boolean hasGcsFilesetSpec(); - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return The gcsFilesetSpec. - */ - com.google.cloud.datacatalog.v1.GcsFilesetSpec getGcsFilesetSpec(); - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder getGcsFilesetSpecOrBuilder(); - - /** - * - * - *
-   * Output only. Specification that applies to a BigQuery table. Valid only
-   * for entries with the `TABLE` type.
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the bigqueryTableSpec field is set. - */ - boolean hasBigqueryTableSpec(); - - /** - * - * - *
-   * Output only. Specification that applies to a BigQuery table. Valid only
-   * for entries with the `TABLE` type.
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bigqueryTableSpec. - */ - com.google.cloud.datacatalog.v1.BigQueryTableSpec getBigqueryTableSpec(); - - /** - * - * - *
-   * Output only. Specification that applies to a BigQuery table. Valid only
-   * for entries with the `TABLE` type.
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryTableSpec bigquery_table_spec = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.BigQueryTableSpecOrBuilder getBigqueryTableSpecOrBuilder(); - - /** - * - * - *
-   * Output only. Specification for a group of BigQuery tables with
-   * the `[prefix]YYYYMMDD` name pattern.
-   *
-   * For more information, see [Introduction to partitioned tables]
-   * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the bigqueryDateShardedSpec field is set. - */ - boolean hasBigqueryDateShardedSpec(); - - /** - * - * - *
-   * Output only. Specification for a group of BigQuery tables with
-   * the `[prefix]YYYYMMDD` name pattern.
-   *
-   * For more information, see [Introduction to partitioned tables]
-   * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bigqueryDateShardedSpec. - */ - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpec getBigqueryDateShardedSpec(); - - /** - * - * - *
-   * Output only. Specification for a group of BigQuery tables with
-   * the `[prefix]YYYYMMDD` name pattern.
-   *
-   * For more information, see [Introduction to partitioned tables]
-   * (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding).
-   * 
- * - * - * .google.cloud.datacatalog.v1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.BigQueryDateShardedSpecOrBuilder - getBigqueryDateShardedSpecOrBuilder(); - - /** - * - * - *
-   * Specification that applies to a table resource. Valid only
-   * for entries with the `TABLE` or `EXPLORE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - * - * @return Whether the databaseTableSpec field is set. - */ - boolean hasDatabaseTableSpec(); - - /** - * - * - *
-   * Specification that applies to a table resource. Valid only
-   * for entries with the `TABLE` or `EXPLORE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - * - * @return The databaseTableSpec. - */ - com.google.cloud.datacatalog.v1.DatabaseTableSpec getDatabaseTableSpec(); - - /** - * - * - *
-   * Specification that applies to a table resource. Valid only
-   * for entries with the `TABLE` or `EXPLORE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DatabaseTableSpec database_table_spec = 24; - */ - com.google.cloud.datacatalog.v1.DatabaseTableSpecOrBuilder getDatabaseTableSpecOrBuilder(); - - /** - * - * - *
-   * Specification that applies to a data source connection. Valid only
-   * for entries with the `DATA_SOURCE_CONNECTION` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - * - * @return Whether the dataSourceConnectionSpec field is set. - */ - boolean hasDataSourceConnectionSpec(); - - /** - * - * - *
-   * Specification that applies to a data source connection. Valid only
-   * for entries with the `DATA_SOURCE_CONNECTION` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - * - * @return The dataSourceConnectionSpec. - */ - com.google.cloud.datacatalog.v1.DataSourceConnectionSpec getDataSourceConnectionSpec(); - - /** - * - * - *
-   * Specification that applies to a data source connection. Valid only
-   * for entries with the `DATA_SOURCE_CONNECTION` type.
-   * 
- * - * .google.cloud.datacatalog.v1.DataSourceConnectionSpec data_source_connection_spec = 27; - * - */ - com.google.cloud.datacatalog.v1.DataSourceConnectionSpecOrBuilder - getDataSourceConnectionSpecOrBuilder(); - - /** - * - * - *
-   * Specification that applies to a user-defined function or procedure. Valid
-   * only for entries with the `ROUTINE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - * - * @return Whether the routineSpec field is set. - */ - boolean hasRoutineSpec(); - - /** - * - * - *
-   * Specification that applies to a user-defined function or procedure. Valid
-   * only for entries with the `ROUTINE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - * - * @return The routineSpec. - */ - com.google.cloud.datacatalog.v1.RoutineSpec getRoutineSpec(); - - /** - * - * - *
-   * Specification that applies to a user-defined function or procedure. Valid
-   * only for entries with the `ROUTINE` type.
-   * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec routine_spec = 28; - */ - com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder getRoutineSpecOrBuilder(); - - /** - * - * - *
-   * Specification that applies to a dataset.
-   * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - * - * @return Whether the datasetSpec field is set. - */ - boolean hasDatasetSpec(); - - /** - * - * - *
-   * Specification that applies to a dataset.
-   * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - * - * @return The datasetSpec. - */ - com.google.cloud.datacatalog.v1.DatasetSpec getDatasetSpec(); - - /** - * - * - *
-   * Specification that applies to a dataset.
-   * 
- * - * .google.cloud.datacatalog.v1.DatasetSpec dataset_spec = 32; - */ - com.google.cloud.datacatalog.v1.DatasetSpecOrBuilder getDatasetSpecOrBuilder(); - - /** - * - * - *
-   * Specification that applies to a fileset resource. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - * - * @return Whether the filesetSpec field is set. - */ - boolean hasFilesetSpec(); - - /** - * - * - *
-   * Specification that applies to a fileset resource. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - * - * @return The filesetSpec. - */ - com.google.cloud.datacatalog.v1.FilesetSpec getFilesetSpec(); - - /** - * - * - *
-   * Specification that applies to a fileset resource. Valid only
-   * for entries with the `FILESET` type.
-   * 
- * - * .google.cloud.datacatalog.v1.FilesetSpec fileset_spec = 33; - */ - com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder getFilesetSpecOrBuilder(); - - /** - * - * - *
-   * Specification that applies to a Service resource.
-   * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - * - * @return Whether the serviceSpec field is set. - */ - boolean hasServiceSpec(); - - /** - * - * - *
-   * Specification that applies to a Service resource.
-   * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - * - * @return The serviceSpec. - */ - com.google.cloud.datacatalog.v1.ServiceSpec getServiceSpec(); - - /** - * - * - *
-   * Specification that applies to a Service resource.
-   * 
- * - * .google.cloud.datacatalog.v1.ServiceSpec service_spec = 42; - */ - com.google.cloud.datacatalog.v1.ServiceSpecOrBuilder getServiceSpecOrBuilder(); - - /** - * - * - *
-   * Model specification.
-   * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - * - * @return Whether the modelSpec field is set. - */ - boolean hasModelSpec(); - - /** - * - * - *
-   * Model specification.
-   * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - * - * @return The modelSpec. - */ - com.google.cloud.datacatalog.v1.ModelSpec getModelSpec(); - - /** - * - * - *
-   * Model specification.
-   * 
- * - * .google.cloud.datacatalog.v1.ModelSpec model_spec = 43; - */ - com.google.cloud.datacatalog.v1.ModelSpecOrBuilder getModelSpecOrBuilder(); - - /** - * - * - *
-   * FeatureonlineStore spec for Vertex AI Feature Store.
-   * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - * - * @return Whether the featureOnlineStoreSpec field is set. - */ - boolean hasFeatureOnlineStoreSpec(); - - /** - * - * - *
-   * FeatureonlineStore spec for Vertex AI Feature Store.
-   * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - * - * @return The featureOnlineStoreSpec. - */ - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec getFeatureOnlineStoreSpec(); - - /** - * - * - *
-   * FeatureonlineStore spec for Vertex AI Feature Store.
-   * 
- * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec feature_online_store_spec = 45; - * - */ - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpecOrBuilder - getFeatureOnlineStoreSpecOrBuilder(); - - /** - * - * - *
-   * Display name of an entry.
-   *
-   * The maximum size is 500 bytes when encoded in UTF-8.
-   * Default value is an empty string.
-   * 
- * - * string display_name = 3; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Display name of an entry.
-   *
-   * The maximum size is 500 bytes when encoded in UTF-8.
-   * Default value is an empty string.
-   * 
- * - * string display_name = 3; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Entry description that can consist of several sentences or paragraphs
-   * that describe entry contents.
-   *
-   * The description must not contain Unicode non-characters as well as C0
-   * and C1 control codes except tabs (HT), new lines (LF), carriage returns
-   * (CR), and page breaks (FF).
-   * The maximum size is 2000 bytes when encoded in UTF-8.
-   * Default value is an empty string.
-   * 
- * - * string description = 4; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Entry description that can consist of several sentences or paragraphs
-   * that describe entry contents.
-   *
-   * The description must not contain Unicode non-characters as well as C0
-   * and C1 control codes except tabs (HT), new lines (LF), carriage returns
-   * (CR), and page breaks (FF).
-   * The maximum size is 2000 bytes when encoded in UTF-8.
-   * Default value is an empty string.
-   * 
- * - * string description = 4; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Business Context of the entry. Not supported for BigQuery datasets
-   * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - * - * @return Whether the businessContext field is set. - */ - boolean hasBusinessContext(); - - /** - * - * - *
-   * Business Context of the entry. Not supported for BigQuery datasets
-   * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - * - * @return The businessContext. - */ - com.google.cloud.datacatalog.v1.BusinessContext getBusinessContext(); - - /** - * - * - *
-   * Business Context of the entry. Not supported for BigQuery datasets
-   * 
- * - * .google.cloud.datacatalog.v1.BusinessContext business_context = 37; - */ - com.google.cloud.datacatalog.v1.BusinessContextOrBuilder getBusinessContextOrBuilder(); - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - * - * @return Whether the schema field is set. - */ - boolean hasSchema(); - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - * - * @return The schema. - */ - com.google.cloud.datacatalog.v1.Schema getSchema(); - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1.Schema schema = 5; - */ - com.google.cloud.datacatalog.v1.SchemaOrBuilder getSchemaOrBuilder(); - - /** - * - * - *
-   * Timestamps from the underlying resource, not from the Data Catalog
-   * entry.
-   *
-   * Output only when the entry has a system listed in the `IntegratedSystem`
-   * enum. For entries with `user_specified_system`, this field is optional
-   * and defaults to an empty timestamp.
-   * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - * - * @return Whether the sourceSystemTimestamps field is set. - */ - boolean hasSourceSystemTimestamps(); - - /** - * - * - *
-   * Timestamps from the underlying resource, not from the Data Catalog
-   * entry.
-   *
-   * Output only when the entry has a system listed in the `IntegratedSystem`
-   * enum. For entries with `user_specified_system`, this field is optional
-   * and defaults to an empty timestamp.
-   * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - * - * @return The sourceSystemTimestamps. - */ - com.google.cloud.datacatalog.v1.SystemTimestamps getSourceSystemTimestamps(); - - /** - * - * - *
-   * Timestamps from the underlying resource, not from the Data Catalog
-   * entry.
-   *
-   * Output only when the entry has a system listed in the `IntegratedSystem`
-   * enum. For entries with `user_specified_system`, this field is optional
-   * and defaults to an empty timestamp.
-   * 
- * - * .google.cloud.datacatalog.v1.SystemTimestamps source_system_timestamps = 7; - */ - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder getSourceSystemTimestampsOrBuilder(); - - /** - * - * - *
-   * Resource usage statistics.
-   * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - * - * @return Whether the usageSignal field is set. - */ - boolean hasUsageSignal(); - - /** - * - * - *
-   * Resource usage statistics.
-   * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - * - * @return The usageSignal. - */ - com.google.cloud.datacatalog.v1.UsageSignal getUsageSignal(); - - /** - * - * - *
-   * Resource usage statistics.
-   * 
- * - * .google.cloud.datacatalog.v1.UsageSignal usage_signal = 13; - */ - com.google.cloud.datacatalog.v1.UsageSignalOrBuilder getUsageSignalOrBuilder(); - - /** - * - * - *
-   * Cloud labels attached to the entry.
-   *
-   * In Data Catalog, you can create and modify labels attached only to custom
-   * entries. Synced entries have unmodifiable labels that come from the source
-   * system.
-   * 
- * - * map<string, string> labels = 14; - */ - int getLabelsCount(); - - /** - * - * - *
-   * Cloud labels attached to the entry.
-   *
-   * In Data Catalog, you can create and modify labels attached only to custom
-   * entries. Synced entries have unmodifiable labels that come from the source
-   * system.
-   * 
- * - * map<string, string> labels = 14; - */ - boolean containsLabels(java.lang.String key); - - /** Use {@link #getLabelsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getLabels(); - - /** - * - * - *
-   * Cloud labels attached to the entry.
-   *
-   * In Data Catalog, you can create and modify labels attached only to custom
-   * entries. Synced entries have unmodifiable labels that come from the source
-   * system.
-   * 
- * - * map<string, string> labels = 14; - */ - java.util.Map getLabelsMap(); - - /** - * - * - *
-   * Cloud labels attached to the entry.
-   *
-   * In Data Catalog, you can create and modify labels attached only to custom
-   * entries. Synced entries have unmodifiable labels that come from the source
-   * system.
-   * 
- * - * map<string, string> labels = 14; - */ - /* nullable */ - java.lang.String getLabelsOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - - /** - * - * - *
-   * Cloud labels attached to the entry.
-   *
-   * In Data Catalog, you can create and modify labels attached only to custom
-   * entries. Synced entries have unmodifiable labels that come from the source
-   * system.
-   * 
- * - * map<string, string> labels = 14; - */ - java.lang.String getLabelsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Output only. Physical location of the entry.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataSource field is set. - */ - boolean hasDataSource(); - - /** - * - * - *
-   * Output only. Physical location of the entry.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataSource. - */ - com.google.cloud.datacatalog.v1.DataSource getDataSource(); - - /** - * - * - *
-   * Output only. Physical location of the entry.
-   * 
- * - * - * .google.cloud.datacatalog.v1.DataSource data_source = 20 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.DataSourceOrBuilder getDataSourceOrBuilder(); - - /** - * - * - *
-   * Output only. Additional information related to the entry. Private to the
-   * current user.
-   * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the personalDetails field is set. - */ - boolean hasPersonalDetails(); - - /** - * - * - *
-   * Output only. Additional information related to the entry. Private to the
-   * current user.
-   * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The personalDetails. - */ - com.google.cloud.datacatalog.v1.PersonalDetails getPersonalDetails(); - - /** - * - * - *
-   * Output only. Additional information related to the entry. Private to the
-   * current user.
-   * 
- * - * - * .google.cloud.datacatalog.v1.PersonalDetails personal_details = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder getPersonalDetailsOrBuilder(); - - com.google.cloud.datacatalog.v1.Entry.EntryTypeCase getEntryTypeCase(); - - com.google.cloud.datacatalog.v1.Entry.SystemCase getSystemCase(); - - com.google.cloud.datacatalog.v1.Entry.SystemSpecCase getSystemSpecCase(); - - com.google.cloud.datacatalog.v1.Entry.TypeSpecCase getTypeSpecCase(); - - com.google.cloud.datacatalog.v1.Entry.SpecCase getSpecCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverview.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverview.java deleted file mode 100644 index 84d99a05d2ea..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverview.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Entry overview fields for rich text descriptions of entries.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.EntryOverview} - */ -@com.google.protobuf.Generated -public final class EntryOverview extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.EntryOverview) - EntryOverviewOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EntryOverview"); - } - - // Use EntryOverview.newBuilder() to construct. - private EntryOverview(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private EntryOverview() { - overview_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_EntryOverview_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_EntryOverview_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.EntryOverview.class, - com.google.cloud.datacatalog.v1.EntryOverview.Builder.class); - } - - public static final int OVERVIEW_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object overview_ = ""; - - /** - * - * - *
-   * Entry overview with support for rich text.
-   *
-   * The overview must only contain Unicode characters, and should be
-   * formatted using HTML.
-   * The maximum length is 10 MiB as this value holds HTML descriptions
-   * including encoded images. The maximum length of the text without images
-   * is 100 KiB.
-   * 
- * - * string overview = 1; - * - * @return The overview. - */ - @java.lang.Override - public java.lang.String getOverview() { - java.lang.Object ref = overview_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - overview_ = s; - return s; - } - } - - /** - * - * - *
-   * Entry overview with support for rich text.
-   *
-   * The overview must only contain Unicode characters, and should be
-   * formatted using HTML.
-   * The maximum length is 10 MiB as this value holds HTML descriptions
-   * including encoded images. The maximum length of the text without images
-   * is 100 KiB.
-   * 
- * - * string overview = 1; - * - * @return The bytes for overview. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOverviewBytes() { - java.lang.Object ref = overview_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - overview_ = 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(overview_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, overview_); - } - 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(overview_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, overview_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.EntryOverview)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.EntryOverview other = - (com.google.cloud.datacatalog.v1.EntryOverview) obj; - - if (!getOverview().equals(other.getOverview())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OVERVIEW_FIELD_NUMBER; - hash = (53 * hash) + getOverview().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.EntryOverview prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Entry overview fields for rich text descriptions of entries.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.EntryOverview} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.EntryOverview) - com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_EntryOverview_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_EntryOverview_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.EntryOverview.class, - com.google.cloud.datacatalog.v1.EntryOverview.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.EntryOverview.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - overview_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_EntryOverview_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOverview getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOverview build() { - com.google.cloud.datacatalog.v1.EntryOverview result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOverview buildPartial() { - com.google.cloud.datacatalog.v1.EntryOverview result = - new com.google.cloud.datacatalog.v1.EntryOverview(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.EntryOverview result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.overview_ = overview_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.EntryOverview) { - return mergeFrom((com.google.cloud.datacatalog.v1.EntryOverview) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.EntryOverview other) { - if (other == com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance()) return this; - if (!other.getOverview().isEmpty()) { - overview_ = other.overview_; - 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: - { - overview_ = 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 overview_ = ""; - - /** - * - * - *
-     * Entry overview with support for rich text.
-     *
-     * The overview must only contain Unicode characters, and should be
-     * formatted using HTML.
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string overview = 1; - * - * @return The overview. - */ - public java.lang.String getOverview() { - java.lang.Object ref = overview_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - overview_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Entry overview with support for rich text.
-     *
-     * The overview must only contain Unicode characters, and should be
-     * formatted using HTML.
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string overview = 1; - * - * @return The bytes for overview. - */ - public com.google.protobuf.ByteString getOverviewBytes() { - java.lang.Object ref = overview_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - overview_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Entry overview with support for rich text.
-     *
-     * The overview must only contain Unicode characters, and should be
-     * formatted using HTML.
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string overview = 1; - * - * @param value The overview to set. - * @return This builder for chaining. - */ - public Builder setOverview(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - overview_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry overview with support for rich text.
-     *
-     * The overview must only contain Unicode characters, and should be
-     * formatted using HTML.
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string overview = 1; - * - * @return This builder for chaining. - */ - public Builder clearOverview() { - overview_ = getDefaultInstance().getOverview(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry overview with support for rich text.
-     *
-     * The overview must only contain Unicode characters, and should be
-     * formatted using HTML.
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string overview = 1; - * - * @param value The bytes for overview to set. - * @return This builder for chaining. - */ - public Builder setOverviewBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - overview_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.EntryOverview) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.EntryOverview) - private static final com.google.cloud.datacatalog.v1.EntryOverview DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.EntryOverview(); - } - - public static com.google.cloud.datacatalog.v1.EntryOverview getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntryOverview parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOverview getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverviewOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverviewOrBuilder.java deleted file mode 100644 index 6c59a8903ffb..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryOverviewOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface EntryOverviewOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.EntryOverview) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Entry overview with support for rich text.
-   *
-   * The overview must only contain Unicode characters, and should be
-   * formatted using HTML.
-   * The maximum length is 10 MiB as this value holds HTML descriptions
-   * including encoded images. The maximum length of the text without images
-   * is 100 KiB.
-   * 
- * - * string overview = 1; - * - * @return The overview. - */ - java.lang.String getOverview(); - - /** - * - * - *
-   * Entry overview with support for rich text.
-   *
-   * The overview must only contain Unicode characters, and should be
-   * formatted using HTML.
-   * The maximum length is 10 MiB as this value holds HTML descriptions
-   * including encoded images. The maximum length of the text without images
-   * is 100 KiB.
-   * 
- * - * string overview = 1; - * - * @return The bytes for overview. - */ - com.google.protobuf.ByteString getOverviewBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryType.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryType.java deleted file mode 100644 index abf6a9e739bd..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/EntryType.java +++ /dev/null @@ -1,594 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Metadata automatically ingested from Google Cloud resources like BigQuery
- * tables or Pub/Sub topics always uses enum values from `EntryType` as the type
- * of entry.
- *
- * Other sources of metadata like Hive or Oracle databases can identify the type
- * by either using one of the enum values from `EntryType` (for example,
- * `FILESET` for a Cloud Storage fileset) or specifying a custom value using
- * the [`Entry`](#resource:-entry) field `user_specified_type`. For more
- * information, see
- * [Surface files from Cloud Storage with fileset
- * entries](/data-catalog/docs/how-to/filesets) or [Create custom entries for
- * your data sources](/data-catalog/docs/how-to/custom-entries).
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.EntryType} - */ -@com.google.protobuf.Generated -public enum EntryType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * ENTRY_TYPE_UNSPECIFIED = 0; - */ - ENTRY_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * The entry type that has a GoogleSQL schema, including
-   * logical views.
-   * 
- * - * TABLE = 2; - */ - TABLE(2), - /** - * - * - *
-   * The type of models.
-   *
-   * For more information, see [Supported models in BigQuery
-   * ML](/bigquery/docs/bqml-introduction#supported_models).
-   * 
- * - * MODEL = 5; - */ - MODEL(5), - /** - * - * - *
-   * An entry type for streaming entries. For example, a Pub/Sub topic.
-   * 
- * - * DATA_STREAM = 3; - */ - DATA_STREAM(3), - /** - * - * - *
-   * An entry type for a set of files or objects. For example, a
-   * Cloud Storage fileset.
-   * 
- * - * FILESET = 4; - */ - FILESET(4), - /** - * - * - *
-   * A group of servers that work together. For example, a Kafka cluster.
-   * 
- * - * CLUSTER = 6; - */ - CLUSTER(6), - /** - * - * - *
-   * A database.
-   * 
- * - * DATABASE = 7; - */ - DATABASE(7), - /** - * - * - *
-   * Connection to a data source. For example, a BigQuery
-   * connection.
-   * 
- * - * DATA_SOURCE_CONNECTION = 8; - */ - DATA_SOURCE_CONNECTION(8), - /** - * - * - *
-   * Routine, for example, a BigQuery routine.
-   * 
- * - * ROUTINE = 9; - */ - ROUTINE(9), - /** - * - * - *
-   * A Dataplex lake.
-   * 
- * - * LAKE = 10; - */ - LAKE(10), - /** - * - * - *
-   * A Dataplex zone.
-   * 
- * - * ZONE = 11; - */ - ZONE(11), - /** - * - * - *
-   * A service, for example, a Dataproc Metastore service.
-   * 
- * - * SERVICE = 14; - */ - SERVICE(14), - /** - * - * - *
-   * Schema within a relational database.
-   * 
- * - * DATABASE_SCHEMA = 15; - */ - DATABASE_SCHEMA(15), - /** - * - * - *
-   * A Dashboard, for example from Looker.
-   * 
- * - * DASHBOARD = 16; - */ - DASHBOARD(16), - /** - * - * - *
-   * A Looker Explore.
-   *
-   * For more information, see [Looker Explore API]
-   * (https://developers.looker.com/api/explorer/4.0/methods/LookmlModel/lookml_model_explore).
-   * 
- * - * EXPLORE = 17; - */ - EXPLORE(17), - /** - * - * - *
-   * A Looker Look.
-   *
-   * For more information, see [Looker Look API]
-   * (https://developers.looker.com/api/explorer/4.0/methods/Look).
-   * 
- * - * LOOK = 18; - */ - LOOK(18), - /** - * - * - *
-   * Feature Online Store resource in Vertex AI Feature Store.
-   * 
- * - * FEATURE_ONLINE_STORE = 19; - */ - FEATURE_ONLINE_STORE(19), - /** - * - * - *
-   * Feature View resource in Vertex AI Feature Store.
-   * 
- * - * FEATURE_VIEW = 20; - */ - FEATURE_VIEW(20), - /** - * - * - *
-   * Feature Group resource in Vertex AI Feature Store.
-   * 
- * - * FEATURE_GROUP = 21; - */ - FEATURE_GROUP(21), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EntryType"); - } - - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * ENTRY_TYPE_UNSPECIFIED = 0; - */ - public static final int ENTRY_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * The entry type that has a GoogleSQL schema, including
-   * logical views.
-   * 
- * - * TABLE = 2; - */ - public static final int TABLE_VALUE = 2; - - /** - * - * - *
-   * The type of models.
-   *
-   * For more information, see [Supported models in BigQuery
-   * ML](/bigquery/docs/bqml-introduction#supported_models).
-   * 
- * - * MODEL = 5; - */ - public static final int MODEL_VALUE = 5; - - /** - * - * - *
-   * An entry type for streaming entries. For example, a Pub/Sub topic.
-   * 
- * - * DATA_STREAM = 3; - */ - public static final int DATA_STREAM_VALUE = 3; - - /** - * - * - *
-   * An entry type for a set of files or objects. For example, a
-   * Cloud Storage fileset.
-   * 
- * - * FILESET = 4; - */ - public static final int FILESET_VALUE = 4; - - /** - * - * - *
-   * A group of servers that work together. For example, a Kafka cluster.
-   * 
- * - * CLUSTER = 6; - */ - public static final int CLUSTER_VALUE = 6; - - /** - * - * - *
-   * A database.
-   * 
- * - * DATABASE = 7; - */ - public static final int DATABASE_VALUE = 7; - - /** - * - * - *
-   * Connection to a data source. For example, a BigQuery
-   * connection.
-   * 
- * - * DATA_SOURCE_CONNECTION = 8; - */ - public static final int DATA_SOURCE_CONNECTION_VALUE = 8; - - /** - * - * - *
-   * Routine, for example, a BigQuery routine.
-   * 
- * - * ROUTINE = 9; - */ - public static final int ROUTINE_VALUE = 9; - - /** - * - * - *
-   * A Dataplex lake.
-   * 
- * - * LAKE = 10; - */ - public static final int LAKE_VALUE = 10; - - /** - * - * - *
-   * A Dataplex zone.
-   * 
- * - * ZONE = 11; - */ - public static final int ZONE_VALUE = 11; - - /** - * - * - *
-   * A service, for example, a Dataproc Metastore service.
-   * 
- * - * SERVICE = 14; - */ - public static final int SERVICE_VALUE = 14; - - /** - * - * - *
-   * Schema within a relational database.
-   * 
- * - * DATABASE_SCHEMA = 15; - */ - public static final int DATABASE_SCHEMA_VALUE = 15; - - /** - * - * - *
-   * A Dashboard, for example from Looker.
-   * 
- * - * DASHBOARD = 16; - */ - public static final int DASHBOARD_VALUE = 16; - - /** - * - * - *
-   * A Looker Explore.
-   *
-   * For more information, see [Looker Explore API]
-   * (https://developers.looker.com/api/explorer/4.0/methods/LookmlModel/lookml_model_explore).
-   * 
- * - * EXPLORE = 17; - */ - public static final int EXPLORE_VALUE = 17; - - /** - * - * - *
-   * A Looker Look.
-   *
-   * For more information, see [Looker Look API]
-   * (https://developers.looker.com/api/explorer/4.0/methods/Look).
-   * 
- * - * LOOK = 18; - */ - public static final int LOOK_VALUE = 18; - - /** - * - * - *
-   * Feature Online Store resource in Vertex AI Feature Store.
-   * 
- * - * FEATURE_ONLINE_STORE = 19; - */ - public static final int FEATURE_ONLINE_STORE_VALUE = 19; - - /** - * - * - *
-   * Feature View resource in Vertex AI Feature Store.
-   * 
- * - * FEATURE_VIEW = 20; - */ - public static final int FEATURE_VIEW_VALUE = 20; - - /** - * - * - *
-   * Feature Group resource in Vertex AI Feature Store.
-   * 
- * - * FEATURE_GROUP = 21; - */ - public static final int FEATURE_GROUP_VALUE = 21; - - 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 EntryType 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 EntryType forNumber(int value) { - switch (value) { - case 0: - return ENTRY_TYPE_UNSPECIFIED; - case 2: - return TABLE; - case 5: - return MODEL; - case 3: - return DATA_STREAM; - case 4: - return FILESET; - case 6: - return CLUSTER; - case 7: - return DATABASE; - case 8: - return DATA_SOURCE_CONNECTION; - case 9: - return ROUTINE; - case 10: - return LAKE; - case 11: - return ZONE; - case 14: - return SERVICE; - case 15: - return DATABASE_SCHEMA; - case 16: - return DASHBOARD; - case 17: - return EXPLORE; - case 18: - return LOOK; - case 19: - return FEATURE_ONLINE_STORE; - case 20: - return FEATURE_VIEW; - case 21: - return FEATURE_GROUP; - 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 EntryType findValueByNumber(int number) { - return EntryType.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.datacatalog.v1.Datacatalog.getDescriptor().getEnumTypes().get(0); - } - - private static final EntryType[] VALUES = values(); - - public static EntryType 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 EntryType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.EntryType) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequest.java deleted file mode 100644 index 22e9bb909539..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequest.java +++ /dev/null @@ -1,1163 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ExportTaxonomiesRequest} - */ -@com.google.protobuf.Generated -public final class ExportTaxonomiesRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ExportTaxonomiesRequest) - ExportTaxonomiesRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ExportTaxonomiesRequest"); - } - - // Use ExportTaxonomiesRequest.newBuilder() to construct. - private ExportTaxonomiesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ExportTaxonomiesRequest() { - parent_ = ""; - taxonomies_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest.Builder.class); - } - - private int destinationCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object destination_; - - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SERIALIZED_TAXONOMIES(3), - DESTINATION_NOT_SET(0); - private final int value; - - private DestinationCase(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 DestinationCase valueOf(int value) { - return forNumber(value); - } - - public static DestinationCase forNumber(int value) { - switch (value) { - case 3: - return SERIALIZED_TAXONOMIES; - case 0: - return DESTINATION_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of the project that the exported taxonomies belong
-   * to.
-   * 
- * - * - * 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. Resource name of the project that the exported taxonomies belong
-   * to.
-   * 
- * - * - * 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 TAXONOMIES_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList taxonomies_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * Required. Resource names of the taxonomies to export.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return A list containing the taxonomies. - */ - public com.google.protobuf.ProtocolStringList getTaxonomiesList() { - return taxonomies_; - } - - /** - * - * - *
-   * Required. Resource names of the taxonomies to export.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The count of taxonomies. - */ - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-   * Required. Resource names of the taxonomies to export.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the element to return. - * @return The taxonomies at the given index. - */ - public java.lang.String getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-   * Required. Resource names of the taxonomies to export.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the value to return. - * @return The bytes of the taxonomies at the given index. - */ - public com.google.protobuf.ByteString getTaxonomiesBytes(int index) { - return taxonomies_.getByteString(index); - } - - public static final int SERIALIZED_TAXONOMIES_FIELD_NUMBER = 3; - - /** - * - * - *
-   * Serialized export taxonomies that contain all the policy
-   * tags as nested protocol buffers.
-   * 
- * - * bool serialized_taxonomies = 3; - * - * @return Whether the serializedTaxonomies field is set. - */ - @java.lang.Override - public boolean hasSerializedTaxonomies() { - return destinationCase_ == 3; - } - - /** - * - * - *
-   * Serialized export taxonomies that contain all the policy
-   * tags as nested protocol buffers.
-   * 
- * - * bool serialized_taxonomies = 3; - * - * @return The serializedTaxonomies. - */ - @java.lang.Override - public boolean getSerializedTaxonomies() { - if (destinationCase_ == 3) { - return (java.lang.Boolean) destination_; - } - 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); - } - for (int i = 0; i < taxonomies_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, taxonomies_.getRaw(i)); - } - if (destinationCase_ == 3) { - output.writeBool(3, (boolean) ((java.lang.Boolean) destination_)); - } - 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 < taxonomies_.size(); i++) { - dataSize += computeStringSizeNoTag(taxonomies_.getRaw(i)); - } - size += dataSize; - size += 1 * getTaxonomiesList().size(); - } - if (destinationCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, (boolean) ((java.lang.Boolean) destination_)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest other = - (com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getTaxonomiesList().equals(other.getTaxonomiesList())) return false; - if (!getDestinationCase().equals(other.getDestinationCase())) return false; - switch (destinationCase_) { - case 3: - if (getSerializedTaxonomies() != other.getSerializedTaxonomies()) 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(); - if (getTaxonomiesCount() > 0) { - hash = (37 * hash) + TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomiesList().hashCode(); - } - switch (destinationCase_) { - case 3: - hash = (37 * hash) + SERIALIZED_TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSerializedTaxonomies()); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ExportTaxonomiesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ExportTaxonomiesRequest) - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - taxonomies_ = com.google.protobuf.LazyStringArrayList.emptyList(); - destinationCase_ = 0; - destination_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest build() { - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest buildPartial() { - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest result = - new com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - taxonomies_.makeImmutable(); - result.taxonomies_ = taxonomies_; - } - } - - private void buildPartialOneofs( - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest result) { - result.destinationCase_ = destinationCase_; - result.destination_ = this.destination_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest other) { - if (other == com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.taxonomies_.isEmpty()) { - if (taxonomies_.isEmpty()) { - taxonomies_ = other.taxonomies_; - bitField0_ |= 0x00000002; - } else { - ensureTaxonomiesIsMutable(); - taxonomies_.addAll(other.taxonomies_); - } - onChanged(); - } - switch (other.getDestinationCase()) { - case SERIALIZED_TAXONOMIES: - { - setSerializedTaxonomies(other.getSerializedTaxonomies()); - break; - } - case DESTINATION_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_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTaxonomiesIsMutable(); - taxonomies_.add(s); - break; - } // case 18 - case 24: - { - destination_ = input.readBool(); - destinationCase_ = 3; - 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 destinationCase_ = 0; - private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); - } - - public Builder clearDestination() { - destinationCase_ = 0; - destination_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. Resource name of the project that the exported taxonomies belong
-     * to.
-     * 
- * - * - * 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. Resource name of the project that the exported taxonomies belong
-     * to.
-     * 
- * - * - * 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. Resource name of the project that the exported taxonomies belong
-     * to.
-     * 
- * - * - * 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. Resource name of the project that the exported taxonomies belong
-     * to.
-     * 
- * - * - * 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. Resource name of the project that the exported taxonomies belong
-     * to.
-     * 
- * - * - * 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 com.google.protobuf.LazyStringArrayList taxonomies_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTaxonomiesIsMutable() { - if (!taxonomies_.isModifiable()) { - taxonomies_ = new com.google.protobuf.LazyStringArrayList(taxonomies_); - } - bitField0_ |= 0x00000002; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to export.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return A list containing the taxonomies. - */ - public com.google.protobuf.ProtocolStringList getTaxonomiesList() { - taxonomies_.makeImmutable(); - return taxonomies_; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to export.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The count of taxonomies. - */ - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to export.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the element to return. - * @return The taxonomies at the given index. - */ - public java.lang.String getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to export.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the value to return. - * @return The bytes of the taxonomies at the given index. - */ - public com.google.protobuf.ByteString getTaxonomiesBytes(int index) { - return taxonomies_.getByteString(index); - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to export.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index to set the value at. - * @param value The taxonomies to set. - * @return This builder for chaining. - */ - public Builder setTaxonomies(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to export.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The taxonomies to add. - * @return This builder for chaining. - */ - public Builder addTaxonomies(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to export.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param values The taxonomies to add. - * @return This builder for chaining. - */ - public Builder addAllTaxonomies(java.lang.Iterable values) { - ensureTaxonomiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taxonomies_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to export.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearTaxonomies() { - taxonomies_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to export.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes of the taxonomies to add. - * @return This builder for chaining. - */ - public Builder addTaxonomiesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Serialized export taxonomies that contain all the policy
-     * tags as nested protocol buffers.
-     * 
- * - * bool serialized_taxonomies = 3; - * - * @return Whether the serializedTaxonomies field is set. - */ - public boolean hasSerializedTaxonomies() { - return destinationCase_ == 3; - } - - /** - * - * - *
-     * Serialized export taxonomies that contain all the policy
-     * tags as nested protocol buffers.
-     * 
- * - * bool serialized_taxonomies = 3; - * - * @return The serializedTaxonomies. - */ - public boolean getSerializedTaxonomies() { - if (destinationCase_ == 3) { - return (java.lang.Boolean) destination_; - } - return false; - } - - /** - * - * - *
-     * Serialized export taxonomies that contain all the policy
-     * tags as nested protocol buffers.
-     * 
- * - * bool serialized_taxonomies = 3; - * - * @param value The serializedTaxonomies to set. - * @return This builder for chaining. - */ - public Builder setSerializedTaxonomies(boolean value) { - - destinationCase_ = 3; - destination_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Serialized export taxonomies that contain all the policy
-     * tags as nested protocol buffers.
-     * 
- * - * bool serialized_taxonomies = 3; - * - * @return This builder for chaining. - */ - public Builder clearSerializedTaxonomies() { - if (destinationCase_ == 3) { - destinationCase_ = 0; - destination_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ExportTaxonomiesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ExportTaxonomiesRequest) - private static final com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest(); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportTaxonomiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequestOrBuilder.java deleted file mode 100644 index 877696152d64..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ExportTaxonomiesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ExportTaxonomiesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the project that the exported taxonomies belong
-   * to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of the project that the exported taxonomies belong
-   * to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Resource names of the taxonomies to export.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return A list containing the taxonomies. - */ - java.util.List getTaxonomiesList(); - - /** - * - * - *
-   * Required. Resource names of the taxonomies to export.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The count of taxonomies. - */ - int getTaxonomiesCount(); - - /** - * - * - *
-   * Required. Resource names of the taxonomies to export.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the element to return. - * @return The taxonomies at the given index. - */ - java.lang.String getTaxonomies(int index); - - /** - * - * - *
-   * Required. Resource names of the taxonomies to export.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the value to return. - * @return The bytes of the taxonomies at the given index. - */ - com.google.protobuf.ByteString getTaxonomiesBytes(int index); - - /** - * - * - *
-   * Serialized export taxonomies that contain all the policy
-   * tags as nested protocol buffers.
-   * 
- * - * bool serialized_taxonomies = 3; - * - * @return Whether the serializedTaxonomies field is set. - */ - boolean hasSerializedTaxonomies(); - - /** - * - * - *
-   * Serialized export taxonomies that contain all the policy
-   * tags as nested protocol buffers.
-   * 
- * - * bool serialized_taxonomies = 3; - * - * @return The serializedTaxonomies. - */ - boolean getSerializedTaxonomies(); - - com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest.DestinationCase getDestinationCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponse.java deleted file mode 100644 index 401eefba96ae..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponse.java +++ /dev/null @@ -1,936 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for
- * [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ExportTaxonomiesResponse} - */ -@com.google.protobuf.Generated -public final class ExportTaxonomiesResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ExportTaxonomiesResponse) - ExportTaxonomiesResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ExportTaxonomiesResponse"); - } - - // Use ExportTaxonomiesResponse.newBuilder() to construct. - private ExportTaxonomiesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ExportTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse.Builder.class); - } - - public static final int TAXONOMIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List taxonomies_; - - /** - * - * - *
-   * List of taxonomies and policy tags as nested protocol buffers.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List getTaxonomiesList() { - return taxonomies_; - } - - /** - * - * - *
-   * List of taxonomies and policy tags as nested protocol buffers.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List - getTaxonomiesOrBuilderList() { - return taxonomies_; - } - - /** - * - * - *
-   * List of taxonomies and policy tags as nested protocol buffers.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - @java.lang.Override - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-   * List of taxonomies and policy tags as nested protocol buffers.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedTaxonomy getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-   * List of taxonomies and policy tags as nested protocol buffers.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder( - int index) { - return taxonomies_.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 < taxonomies_.size(); i++) { - output.writeMessage(1, taxonomies_.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 < taxonomies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taxonomies_.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.datacatalog.v1.ExportTaxonomiesResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse other = - (com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse) obj; - - if (!getTaxonomiesList().equals(other.getTaxonomiesList())) return false; - if (!getUnknownFields().equals(other.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 (getTaxonomiesCount() > 0) { - hash = (37 * hash) + TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomiesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ExportTaxonomiesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ExportTaxonomiesResponse) - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - } else { - taxonomies_ = null; - taxonomiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse build() { - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse buildPartial() { - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse result = - new com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse result) { - if (taxonomiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = java.util.Collections.unmodifiableList(taxonomies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taxonomies_ = taxonomies_; - } else { - result.taxonomies_ = taxonomiesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse other) { - if (other == com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse.getDefaultInstance()) - return this; - if (taxonomiesBuilder_ == null) { - if (!other.taxonomies_.isEmpty()) { - if (taxonomies_.isEmpty()) { - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaxonomiesIsMutable(); - taxonomies_.addAll(other.taxonomies_); - } - onChanged(); - } - } else { - if (!other.taxonomies_.isEmpty()) { - if (taxonomiesBuilder_.isEmpty()) { - taxonomiesBuilder_.dispose(); - taxonomiesBuilder_ = null; - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - taxonomiesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTaxonomiesFieldBuilder() - : null; - } else { - taxonomiesBuilder_.addAllMessages(other.taxonomies_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1.SerializedTaxonomy m = - input.readMessage( - com.google.cloud.datacatalog.v1.SerializedTaxonomy.parser(), - extensionRegistry); - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(m); - } else { - taxonomiesBuilder_.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 taxonomies_ = - java.util.Collections.emptyList(); - - private void ensureTaxonomiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = - new java.util.ArrayList( - taxonomies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> - taxonomiesBuilder_; - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public java.util.List getTaxonomiesList() { - if (taxonomiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(taxonomies_); - } else { - return taxonomiesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public int getTaxonomiesCount() { - if (taxonomiesBuilder_ == null) { - return taxonomies_.size(); - } else { - return taxonomiesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomy getTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public Builder setTaxonomies( - int index, com.google.cloud.datacatalog.v1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, value); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public Builder setTaxonomies( - int index, com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public Builder addTaxonomies(com.google.cloud.datacatalog.v1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - int index, com.google.cloud.datacatalog.v1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - int index, com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public Builder addAllTaxonomies( - java.lang.Iterable values) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taxonomies_); - onChanged(); - } else { - taxonomiesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public Builder clearTaxonomies() { - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taxonomiesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public Builder removeTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.remove(index); - onChanged(); - } else { - taxonomiesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder getTaxonomiesBuilder( - int index) { - return internalGetTaxonomiesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder( - int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesOrBuilderList() { - if (taxonomiesBuilder_ != null) { - return taxonomiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taxonomies_); - } - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder addTaxonomiesBuilder() { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder addTaxonomiesBuilder( - int index) { - return internalGetTaxonomiesFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * List of taxonomies and policy tags as nested protocol buffers.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesBuilderList() { - return internalGetTaxonomiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> - internalGetTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder>( - taxonomies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - taxonomies_ = null; - } - return taxonomiesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ExportTaxonomiesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ExportTaxonomiesResponse) - private static final com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse(); - } - - public static com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportTaxonomiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponseOrBuilder.java deleted file mode 100644 index 6a674753c650..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ExportTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ExportTaxonomiesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ExportTaxonomiesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of taxonomies and policy tags as nested protocol buffers.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - java.util.List getTaxonomiesList(); - - /** - * - * - *
-   * List of taxonomies and policy tags as nested protocol buffers.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1.SerializedTaxonomy getTaxonomies(int index); - - /** - * - * - *
-   * List of taxonomies and policy tags as nested protocol buffers.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - int getTaxonomiesCount(); - - /** - * - * - *
-   * List of taxonomies and policy tags as nested protocol buffers.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - java.util.List - getTaxonomiesOrBuilderList(); - - /** - * - * - *
-   * List of taxonomies and policy tags as nested protocol buffers.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FeatureOnlineStoreSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FeatureOnlineStoreSpec.java deleted file mode 100644 index 19c6dd77d555..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FeatureOnlineStoreSpec.java +++ /dev/null @@ -1,762 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Detail description of the source information of a Vertex Feature Online
- * Store.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.FeatureOnlineStoreSpec} - */ -@com.google.protobuf.Generated -public final class FeatureOnlineStoreSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) - FeatureOnlineStoreSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "FeatureOnlineStoreSpec"); - } - - // Use FeatureOnlineStoreSpec.newBuilder() to construct. - private FeatureOnlineStoreSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private FeatureOnlineStoreSpec() { - storageType_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_FeatureOnlineStoreSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_FeatureOnlineStoreSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.class, - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.Builder.class); - } - - /** - * - * - *
-   * Type of underlying storage type.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType} - */ - public enum StorageType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Should not be used.
-     * 
- * - * STORAGE_TYPE_UNSPECIFIED = 0; - */ - STORAGE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Underlsying storgae is Bigtable.
-     * 
- * - * BIGTABLE = 1; - */ - BIGTABLE(1), - /** - * - * - *
-     * Underlying is optimized online server (Lightning).
-     * 
- * - * OPTIMIZED = 2; - */ - OPTIMIZED(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "StorageType"); - } - - /** - * - * - *
-     * Should not be used.
-     * 
- * - * STORAGE_TYPE_UNSPECIFIED = 0; - */ - public static final int STORAGE_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * Underlsying storgae is Bigtable.
-     * 
- * - * BIGTABLE = 1; - */ - public static final int BIGTABLE_VALUE = 1; - - /** - * - * - *
-     * Underlying is optimized online server (Lightning).
-     * 
- * - * OPTIMIZED = 2; - */ - public static final int OPTIMIZED_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 StorageType 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 StorageType forNumber(int value) { - switch (value) { - case 0: - return STORAGE_TYPE_UNSPECIFIED; - case 1: - return BIGTABLE; - case 2: - return OPTIMIZED; - 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 StorageType findValueByNumber(int number) { - return StorageType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - - public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { - return getDescriptor(); - } - - public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final StorageType[] VALUES = values(); - - public static StorageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private StorageType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType) - } - - public static final int STORAGE_TYPE_FIELD_NUMBER = 1; - private int storageType_ = 0; - - /** - * - * - *
-   * Output only. Type of underlying storage for the FeatureOnlineStore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType storage_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for storageType. - */ - @java.lang.Override - public int getStorageTypeValue() { - return storageType_; - } - - /** - * - * - *
-   * Output only. Type of underlying storage for the FeatureOnlineStore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType storage_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The storageType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType getStorageType() { - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType result = - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType.forNumber(storageType_); - return result == null - ? com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType.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 (storageType_ - != com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType - .STORAGE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, storageType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (storageType_ - != com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType - .STORAGE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, storageType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec other = - (com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) obj; - - if (storageType_ != other.storageType_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STORAGE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + storageType_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Detail description of the source information of a Vertex Feature Online
-   * Store.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.FeatureOnlineStoreSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_FeatureOnlineStoreSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_FeatureOnlineStoreSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.class, - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - storageType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_FeatureOnlineStoreSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec build() { - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec buildPartial() { - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec result = - new com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.storageType_ = storageType_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec other) { - if (other == com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.getDefaultInstance()) - return this; - if (other.storageType_ != 0) { - setStorageTypeValue(other.getStorageTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - storageType_ = 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 storageType_ = 0; - - /** - * - * - *
-     * Output only. Type of underlying storage for the FeatureOnlineStore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType storage_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for storageType. - */ - @java.lang.Override - public int getStorageTypeValue() { - return storageType_; - } - - /** - * - * - *
-     * Output only. Type of underlying storage for the FeatureOnlineStore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType storage_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for storageType to set. - * @return This builder for chaining. - */ - public Builder setStorageTypeValue(int value) { - storageType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Type of underlying storage for the FeatureOnlineStore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType storage_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The storageType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType getStorageType() { - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType result = - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType.forNumber( - storageType_); - return result == null - ? com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Output only. Type of underlying storage for the FeatureOnlineStore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType storage_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The storageType to set. - * @return This builder for chaining. - */ - public Builder setStorageType( - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - storageType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Type of underlying storage for the FeatureOnlineStore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType storage_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearStorageType() { - bitField0_ = (bitField0_ & ~0x00000001); - storageType_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) - private static final com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec(); - } - - public static com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FeatureOnlineStoreSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FeatureOnlineStoreSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FeatureOnlineStoreSpecOrBuilder.java deleted file mode 100644 index b8a79294e72a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FeatureOnlineStoreSpecOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface FeatureOnlineStoreSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.FeatureOnlineStoreSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Type of underlying storage for the FeatureOnlineStore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType storage_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for storageType. - */ - int getStorageTypeValue(); - - /** - * - * - *
-   * Output only. Type of underlying storage for the FeatureOnlineStore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType storage_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The storageType. - */ - com.google.cloud.datacatalog.v1.FeatureOnlineStoreSpec.StorageType getStorageType(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldType.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldType.java deleted file mode 100644 index 6d07a2460dd5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldType.java +++ /dev/null @@ -1,3109 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** Protobuf type {@code google.cloud.datacatalog.v1.FieldType} */ -@com.google.protobuf.Generated -public final class FieldType extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FieldType) - FieldTypeOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "FieldType"); - } - - // Use FieldType.newBuilder() to construct. - private FieldType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private FieldType() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.FieldType.class, - com.google.cloud.datacatalog.v1.FieldType.Builder.class); - } - - /** Protobuf enum {@code google.cloud.datacatalog.v1.FieldType.PrimitiveType} */ - public enum PrimitiveType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * The default invalid value for a type.
-     * 
- * - * PRIMITIVE_TYPE_UNSPECIFIED = 0; - */ - PRIMITIVE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * A double precision number.
-     * 
- * - * DOUBLE = 1; - */ - DOUBLE(1), - /** - * - * - *
-     * An UTF-8 string.
-     * 
- * - * STRING = 2; - */ - STRING(2), - /** - * - * - *
-     * A boolean value.
-     * 
- * - * BOOL = 3; - */ - BOOL(3), - /** - * - * - *
-     * A timestamp.
-     * 
- * - * TIMESTAMP = 4; - */ - TIMESTAMP(4), - /** - * - * - *
-     * A Richtext description.
-     * 
- * - * RICHTEXT = 5; - */ - RICHTEXT(5), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PrimitiveType"); - } - - /** - * - * - *
-     * The default invalid value for a type.
-     * 
- * - * PRIMITIVE_TYPE_UNSPECIFIED = 0; - */ - public static final int PRIMITIVE_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * A double precision number.
-     * 
- * - * DOUBLE = 1; - */ - public static final int DOUBLE_VALUE = 1; - - /** - * - * - *
-     * An UTF-8 string.
-     * 
- * - * STRING = 2; - */ - public static final int STRING_VALUE = 2; - - /** - * - * - *
-     * A boolean value.
-     * 
- * - * BOOL = 3; - */ - public static final int BOOL_VALUE = 3; - - /** - * - * - *
-     * A timestamp.
-     * 
- * - * TIMESTAMP = 4; - */ - public static final int TIMESTAMP_VALUE = 4; - - /** - * - * - *
-     * A Richtext description.
-     * 
- * - * RICHTEXT = 5; - */ - public static final int RICHTEXT_VALUE = 5; - - 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 PrimitiveType 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 PrimitiveType forNumber(int value) { - switch (value) { - case 0: - return PRIMITIVE_TYPE_UNSPECIFIED; - case 1: - return DOUBLE; - case 2: - return STRING; - case 3: - return BOOL; - case 4: - return TIMESTAMP; - case 5: - return RICHTEXT; - 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 PrimitiveType findValueByNumber(int number) { - return PrimitiveType.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.datacatalog.v1.FieldType.getDescriptor().getEnumTypes().get(0); - } - - private static final PrimitiveType[] VALUES = values(); - - public static PrimitiveType 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 PrimitiveType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.FieldType.PrimitiveType) - } - - public interface EnumTypeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.FieldType.EnumType) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The set of allowed values for this enum.
-     *
-     * This set must not be empty and can include up to 100 allowed values.
-     * The display names of the values in this set must not be empty and must
-     * be case-insensitively unique within this set.
-     *
-     * The order of items in this set is preserved. This field can be used to
-     * create, remove, and reorder enum values. To rename enum values, use the
-     * `RenameTagTemplateFieldEnumValue` method.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - java.util.List - getAllowedValuesList(); - - /** - * - * - *
-     * The set of allowed values for this enum.
-     *
-     * This set must not be empty and can include up to 100 allowed values.
-     * The display names of the values in this set must not be empty and must
-     * be case-insensitively unique within this set.
-     *
-     * The order of items in this set is preserved. This field can be used to
-     * create, remove, and reorder enum values. To rename enum values, use the
-     * `RenameTagTemplateFieldEnumValue` method.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue getAllowedValues(int index); - - /** - * - * - *
-     * The set of allowed values for this enum.
-     *
-     * This set must not be empty and can include up to 100 allowed values.
-     * The display names of the values in this set must not be empty and must
-     * be case-insensitively unique within this set.
-     *
-     * The order of items in this set is preserved. This field can be used to
-     * create, remove, and reorder enum values. To rename enum values, use the
-     * `RenameTagTemplateFieldEnumValue` method.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - int getAllowedValuesCount(); - - /** - * - * - *
-     * The set of allowed values for this enum.
-     *
-     * This set must not be empty and can include up to 100 allowed values.
-     * The display names of the values in this set must not be empty and must
-     * be case-insensitively unique within this set.
-     *
-     * The order of items in this set is preserved. This field can be used to
-     * create, remove, and reorder enum values. To rename enum values, use the
-     * `RenameTagTemplateFieldEnumValue` method.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - java.util.List - getAllowedValuesOrBuilderList(); - - /** - * - * - *
-     * The set of allowed values for this enum.
-     *
-     * This set must not be empty and can include up to 100 allowed values.
-     * The display names of the values in this set must not be empty and must
-     * be case-insensitively unique within this set.
-     *
-     * The order of items in this set is preserved. This field can be used to
-     * create, remove, and reorder enum values. To rename enum values, use the
-     * `RenameTagTemplateFieldEnumValue` method.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValueOrBuilder getAllowedValuesOrBuilder( - int index); - } - - /** Protobuf type {@code google.cloud.datacatalog.v1.FieldType.EnumType} */ - public static final class EnumType extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FieldType.EnumType) - EnumTypeOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EnumType"); - } - - // Use EnumType.newBuilder() to construct. - private EnumType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private EnumType() { - allowedValues_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.FieldType.EnumType.class, - com.google.cloud.datacatalog.v1.FieldType.EnumType.Builder.class); - } - - public interface EnumValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * Required. The display name of the enum value. Must not be an empty
-       * string.
-       *
-       * The name must contain only Unicode letters, numbers (0-9), underscores
-       * (_), dashes (-), spaces ( ), and can't start or end with spaces. The
-       * maximum length is 200 characters.
-       * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-       * Required. The display name of the enum value. Must not be an empty
-       * string.
-       *
-       * The name must contain only Unicode letters, numbers (0-9), underscores
-       * (_), dashes (-), spaces ( ), and can't start or end with spaces. The
-       * maximum length is 200 characters.
-       * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - } - - /** Protobuf type {@code google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue} */ - public static final class EnumValue extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue) - EnumValueOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EnumValue"); - } - - // Use EnumValue.newBuilder() to construct. - private EnumValue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private EnumValue() { - displayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.class, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-       * Required. The display name of the enum value. Must not be an empty
-       * string.
-       *
-       * The name must contain only Unicode letters, numbers (0-9), underscores
-       * (_), dashes (-), spaces ( ), and can't start or end with spaces. The
-       * maximum length is 200 characters.
-       * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-       * Required. The display name of the enum value. Must not be an empty
-       * string.
-       *
-       * The name must contain only Unicode letters, numbers (0-9), underscores
-       * (_), dashes (-), spaces ( ), and can't start or end with spaces. The
-       * maximum length is 200 characters.
-       * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue other = - (com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** Protobuf type {@code google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue) - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.class, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue build() { - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue buildPartial() { - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue result = - new com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue) { - return mergeFrom((com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue other) { - if (other - == com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.getDefaultInstance()) - return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - 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: - { - displayName_ = 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 displayName_ = ""; - - /** - * - * - *
-         * Required. The display name of the enum value. Must not be an empty
-         * string.
-         *
-         * The name must contain only Unicode letters, numbers (0-9), underscores
-         * (_), dashes (-), spaces ( ), and can't start or end with spaces. The
-         * maximum length is 200 characters.
-         * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-         * Required. The display name of the enum value. Must not be an empty
-         * string.
-         *
-         * The name must contain only Unicode letters, numbers (0-9), underscores
-         * (_), dashes (-), spaces ( ), and can't start or end with spaces. The
-         * maximum length is 200 characters.
-         * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-         * Required. The display name of the enum value. Must not be an empty
-         * string.
-         *
-         * The name must contain only Unicode letters, numbers (0-9), underscores
-         * (_), dashes (-), spaces ( ), and can't start or end with spaces. The
-         * maximum length is 200 characters.
-         * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-         * Required. The display name of the enum value. Must not be an empty
-         * string.
-         *
-         * The name must contain only Unicode letters, numbers (0-9), underscores
-         * (_), dashes (-), spaces ( ), and can't start or end with spaces. The
-         * maximum length is 200 characters.
-         * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-         * Required. The display name of the enum value. Must not be an empty
-         * string.
-         *
-         * The name must contain only Unicode letters, numbers (0-9), underscores
-         * (_), dashes (-), spaces ( ), and can't start or end with spaces. The
-         * maximum length is 200 characters.
-         * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue) - private static final com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue(); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int ALLOWED_VALUES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List - allowedValues_; - - /** - * - * - *
-     * The set of allowed values for this enum.
-     *
-     * This set must not be empty and can include up to 100 allowed values.
-     * The display names of the values in this set must not be empty and must
-     * be case-insensitively unique within this set.
-     *
-     * The order of items in this set is preserved. This field can be used to
-     * create, remove, and reorder enum values. To rename enum values, use the
-     * `RenameTagTemplateFieldEnumValue` method.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - @java.lang.Override - public java.util.List - getAllowedValuesList() { - return allowedValues_; - } - - /** - * - * - *
-     * The set of allowed values for this enum.
-     *
-     * This set must not be empty and can include up to 100 allowed values.
-     * The display names of the values in this set must not be empty and must
-     * be case-insensitively unique within this set.
-     *
-     * The order of items in this set is preserved. This field can be used to
-     * create, remove, and reorder enum values. To rename enum values, use the
-     * `RenameTagTemplateFieldEnumValue` method.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValueOrBuilder> - getAllowedValuesOrBuilderList() { - return allowedValues_; - } - - /** - * - * - *
-     * The set of allowed values for this enum.
-     *
-     * This set must not be empty and can include up to 100 allowed values.
-     * The display names of the values in this set must not be empty and must
-     * be case-insensitively unique within this set.
-     *
-     * The order of items in this set is preserved. This field can be used to
-     * create, remove, and reorder enum values. To rename enum values, use the
-     * `RenameTagTemplateFieldEnumValue` method.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - @java.lang.Override - public int getAllowedValuesCount() { - return allowedValues_.size(); - } - - /** - * - * - *
-     * The set of allowed values for this enum.
-     *
-     * This set must not be empty and can include up to 100 allowed values.
-     * The display names of the values in this set must not be empty and must
-     * be case-insensitively unique within this set.
-     *
-     * The order of items in this set is preserved. This field can be used to
-     * create, remove, and reorder enum values. To rename enum values, use the
-     * `RenameTagTemplateFieldEnumValue` method.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue getAllowedValues( - int index) { - return allowedValues_.get(index); - } - - /** - * - * - *
-     * The set of allowed values for this enum.
-     *
-     * This set must not be empty and can include up to 100 allowed values.
-     * The display names of the values in this set must not be empty and must
-     * be case-insensitively unique within this set.
-     *
-     * The order of items in this set is preserved. This field can be used to
-     * create, remove, and reorder enum values. To rename enum values, use the
-     * `RenameTagTemplateFieldEnumValue` method.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValueOrBuilder - getAllowedValuesOrBuilder(int index) { - return allowedValues_.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 < allowedValues_.size(); i++) { - output.writeMessage(1, allowedValues_.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 < allowedValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, allowedValues_.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.datacatalog.v1.FieldType.EnumType)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.FieldType.EnumType other = - (com.google.cloud.datacatalog.v1.FieldType.EnumType) obj; - - if (!getAllowedValuesList().equals(other.getAllowedValuesList())) return false; - if (!getUnknownFields().equals(other.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 (getAllowedValuesCount() > 0) { - hash = (37 * hash) + ALLOWED_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getAllowedValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.FieldType.EnumType prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** Protobuf type {@code google.cloud.datacatalog.v1.FieldType.EnumType} */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.FieldType.EnumType) - com.google.cloud.datacatalog.v1.FieldType.EnumTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.FieldType.EnumType.class, - com.google.cloud.datacatalog.v1.FieldType.EnumType.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.FieldType.EnumType.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (allowedValuesBuilder_ == null) { - allowedValues_ = java.util.Collections.emptyList(); - } else { - allowedValues_ = null; - allowedValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.FieldType.EnumType.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType build() { - com.google.cloud.datacatalog.v1.FieldType.EnumType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType buildPartial() { - com.google.cloud.datacatalog.v1.FieldType.EnumType result = - new com.google.cloud.datacatalog.v1.FieldType.EnumType(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.FieldType.EnumType result) { - if (allowedValuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - allowedValues_ = java.util.Collections.unmodifiableList(allowedValues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.allowedValues_ = allowedValues_; - } else { - result.allowedValues_ = allowedValuesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.FieldType.EnumType result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.FieldType.EnumType) { - return mergeFrom((com.google.cloud.datacatalog.v1.FieldType.EnumType) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.FieldType.EnumType other) { - if (other == com.google.cloud.datacatalog.v1.FieldType.EnumType.getDefaultInstance()) - return this; - if (allowedValuesBuilder_ == null) { - if (!other.allowedValues_.isEmpty()) { - if (allowedValues_.isEmpty()) { - allowedValues_ = other.allowedValues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAllowedValuesIsMutable(); - allowedValues_.addAll(other.allowedValues_); - } - onChanged(); - } - } else { - if (!other.allowedValues_.isEmpty()) { - if (allowedValuesBuilder_.isEmpty()) { - allowedValuesBuilder_.dispose(); - allowedValuesBuilder_ = null; - allowedValues_ = other.allowedValues_; - bitField0_ = (bitField0_ & ~0x00000001); - allowedValuesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetAllowedValuesFieldBuilder() - : null; - } else { - allowedValuesBuilder_.addAllMessages(other.allowedValues_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1.FieldType.EnumType.EnumValue m = - input.readMessage( - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.parser(), - extensionRegistry); - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - allowedValues_.add(m); - } else { - allowedValuesBuilder_.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 - allowedValues_ = java.util.Collections.emptyList(); - - private void ensureAllowedValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - allowedValues_ = - new java.util.ArrayList( - allowedValues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValueOrBuilder> - allowedValuesBuilder_; - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public java.util.List - getAllowedValuesList() { - if (allowedValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(allowedValues_); - } else { - return allowedValuesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public int getAllowedValuesCount() { - if (allowedValuesBuilder_ == null) { - return allowedValues_.size(); - } else { - return allowedValuesBuilder_.getCount(); - } - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue getAllowedValues( - int index) { - if (allowedValuesBuilder_ == null) { - return allowedValues_.get(index); - } else { - return allowedValuesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder setAllowedValues( - int index, com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue value) { - if (allowedValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllowedValuesIsMutable(); - allowedValues_.set(index, value); - onChanged(); - } else { - allowedValuesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder setAllowedValues( - int index, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder builderForValue) { - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - allowedValues_.set(index, builderForValue.build()); - onChanged(); - } else { - allowedValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder addAllowedValues( - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue value) { - if (allowedValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllowedValuesIsMutable(); - allowedValues_.add(value); - onChanged(); - } else { - allowedValuesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder addAllowedValues( - int index, com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue value) { - if (allowedValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllowedValuesIsMutable(); - allowedValues_.add(index, value); - onChanged(); - } else { - allowedValuesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder addAllowedValues( - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder builderForValue) { - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - allowedValues_.add(builderForValue.build()); - onChanged(); - } else { - allowedValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder addAllowedValues( - int index, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder builderForValue) { - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - allowedValues_.add(index, builderForValue.build()); - onChanged(); - } else { - allowedValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder addAllAllowedValues( - java.lang.Iterable - values) { - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedValues_); - onChanged(); - } else { - allowedValuesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder clearAllowedValues() { - if (allowedValuesBuilder_ == null) { - allowedValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - allowedValuesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder removeAllowedValues(int index) { - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - allowedValues_.remove(index); - onChanged(); - } else { - allowedValuesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder - getAllowedValuesBuilder(int index) { - return internalGetAllowedValuesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValueOrBuilder - getAllowedValuesOrBuilder(int index) { - if (allowedValuesBuilder_ == null) { - return allowedValues_.get(index); - } else { - return allowedValuesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public java.util.List< - ? extends com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValueOrBuilder> - getAllowedValuesOrBuilderList() { - if (allowedValuesBuilder_ != null) { - return allowedValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(allowedValues_); - } - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder - addAllowedValuesBuilder() { - return internalGetAllowedValuesFieldBuilder() - .addBuilder( - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.getDefaultInstance()); - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder - addAllowedValuesBuilder(int index) { - return internalGetAllowedValuesFieldBuilder() - .addBuilder( - index, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.getDefaultInstance()); - } - - /** - * - * - *
-       * The set of allowed values for this enum.
-       *
-       * This set must not be empty and can include up to 100 allowed values.
-       * The display names of the values in this set must not be empty and must
-       * be case-insensitively unique within this set.
-       *
-       * The order of items in this set is preserved. This field can be used to
-       * create, remove, and reorder enum values. To rename enum values, use the
-       * `RenameTagTemplateFieldEnumValue` method.
-       * 
- * - * - * repeated .google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public java.util.List - getAllowedValuesBuilderList() { - return internalGetAllowedValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValueOrBuilder> - internalGetAllowedValuesFieldBuilder() { - if (allowedValuesBuilder_ == null) { - allowedValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue.Builder, - com.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValueOrBuilder>( - allowedValues_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - allowedValues_ = null; - } - return allowedValuesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.FieldType.EnumType) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.FieldType.EnumType) - private static final com.google.cloud.datacatalog.v1.FieldType.EnumType DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.FieldType.EnumType(); - } - - public static com.google.cloud.datacatalog.v1.FieldType.EnumType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int typeDeclCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object typeDecl_; - - public enum TypeDeclCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - PRIMITIVE_TYPE(1), - ENUM_TYPE(2), - TYPEDECL_NOT_SET(0); - private final int value; - - private TypeDeclCase(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 TypeDeclCase valueOf(int value) { - return forNumber(value); - } - - public static TypeDeclCase forNumber(int value) { - switch (value) { - case 1: - return PRIMITIVE_TYPE; - case 2: - return ENUM_TYPE; - case 0: - return TYPEDECL_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TypeDeclCase getTypeDeclCase() { - return TypeDeclCase.forNumber(typeDeclCase_); - } - - public static final int PRIMITIVE_TYPE_FIELD_NUMBER = 1; - - /** - * - * - *
-   * Primitive types, such as string, boolean, etc.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @return Whether the primitiveType field is set. - */ - public boolean hasPrimitiveType() { - return typeDeclCase_ == 1; - } - - /** - * - * - *
-   * Primitive types, such as string, boolean, etc.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The enum numeric value on the wire for primitiveType. - */ - public int getPrimitiveTypeValue() { - if (typeDeclCase_ == 1) { - return (java.lang.Integer) typeDecl_; - } - return 0; - } - - /** - * - * - *
-   * Primitive types, such as string, boolean, etc.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The primitiveType. - */ - public com.google.cloud.datacatalog.v1.FieldType.PrimitiveType getPrimitiveType() { - if (typeDeclCase_ == 1) { - com.google.cloud.datacatalog.v1.FieldType.PrimitiveType result = - com.google.cloud.datacatalog.v1.FieldType.PrimitiveType.forNumber( - (java.lang.Integer) typeDecl_); - return result == null - ? com.google.cloud.datacatalog.v1.FieldType.PrimitiveType.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1.FieldType.PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED; - } - - public static final int ENUM_TYPE_FIELD_NUMBER = 2; - - /** - * - * - *
-   * An enum type.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - * - * @return Whether the enumType field is set. - */ - @java.lang.Override - public boolean hasEnumType() { - return typeDeclCase_ == 2; - } - - /** - * - * - *
-   * An enum type.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - * - * @return The enumType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType getEnumType() { - if (typeDeclCase_ == 2) { - return (com.google.cloud.datacatalog.v1.FieldType.EnumType) typeDecl_; - } - return com.google.cloud.datacatalog.v1.FieldType.EnumType.getDefaultInstance(); - } - - /** - * - * - *
-   * An enum type.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumTypeOrBuilder getEnumTypeOrBuilder() { - if (typeDeclCase_ == 2) { - return (com.google.cloud.datacatalog.v1.FieldType.EnumType) typeDecl_; - } - return com.google.cloud.datacatalog.v1.FieldType.EnumType.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 (typeDeclCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) typeDecl_)); - } - if (typeDeclCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datacatalog.v1.FieldType.EnumType) typeDecl_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeDeclCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) typeDecl_)); - } - if (typeDeclCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datacatalog.v1.FieldType.EnumType) typeDecl_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.FieldType)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.FieldType other = - (com.google.cloud.datacatalog.v1.FieldType) obj; - - if (!getTypeDeclCase().equals(other.getTypeDeclCase())) return false; - switch (typeDeclCase_) { - case 1: - if (getPrimitiveTypeValue() != other.getPrimitiveTypeValue()) return false; - break; - case 2: - if (!getEnumType().equals(other.getEnumType())) 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 (typeDeclCase_) { - case 1: - hash = (37 * hash) + PRIMITIVE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getPrimitiveTypeValue(); - break; - case 2: - hash = (37 * hash) + ENUM_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getEnumType().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.FieldType parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FieldType parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.FieldType prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** Protobuf type {@code google.cloud.datacatalog.v1.FieldType} */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.FieldType) - com.google.cloud.datacatalog.v1.FieldTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.FieldType.class, - com.google.cloud.datacatalog.v1.FieldType.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.FieldType.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (enumTypeBuilder_ != null) { - enumTypeBuilder_.clear(); - } - typeDeclCase_ = 0; - typeDecl_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_FieldType_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.FieldType.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType build() { - com.google.cloud.datacatalog.v1.FieldType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType buildPartial() { - com.google.cloud.datacatalog.v1.FieldType result = - new com.google.cloud.datacatalog.v1.FieldType(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.FieldType result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.FieldType result) { - result.typeDeclCase_ = typeDeclCase_; - result.typeDecl_ = this.typeDecl_; - if (typeDeclCase_ == 2 && enumTypeBuilder_ != null) { - result.typeDecl_ = enumTypeBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.FieldType) { - return mergeFrom((com.google.cloud.datacatalog.v1.FieldType) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.FieldType other) { - if (other == com.google.cloud.datacatalog.v1.FieldType.getDefaultInstance()) return this; - switch (other.getTypeDeclCase()) { - case PRIMITIVE_TYPE: - { - setPrimitiveTypeValue(other.getPrimitiveTypeValue()); - break; - } - case ENUM_TYPE: - { - mergeEnumType(other.getEnumType()); - break; - } - case TYPEDECL_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: - { - int rawValue = input.readEnum(); - typeDeclCase_ = 1; - typeDecl_ = rawValue; - break; - } // case 8 - case 18: - { - input.readMessage( - internalGetEnumTypeFieldBuilder().getBuilder(), extensionRegistry); - typeDeclCase_ = 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 typeDeclCase_ = 0; - private java.lang.Object typeDecl_; - - public TypeDeclCase getTypeDeclCase() { - return TypeDeclCase.forNumber(typeDeclCase_); - } - - public Builder clearTypeDecl() { - typeDeclCase_ = 0; - typeDecl_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * Primitive types, such as string, boolean, etc.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @return Whether the primitiveType field is set. - */ - @java.lang.Override - public boolean hasPrimitiveType() { - return typeDeclCase_ == 1; - } - - /** - * - * - *
-     * Primitive types, such as string, boolean, etc.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The enum numeric value on the wire for primitiveType. - */ - @java.lang.Override - public int getPrimitiveTypeValue() { - if (typeDeclCase_ == 1) { - return ((java.lang.Integer) typeDecl_).intValue(); - } - return 0; - } - - /** - * - * - *
-     * Primitive types, such as string, boolean, etc.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @param value The enum numeric value on the wire for primitiveType to set. - * @return This builder for chaining. - */ - public Builder setPrimitiveTypeValue(int value) { - typeDeclCase_ = 1; - typeDecl_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Primitive types, such as string, boolean, etc.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The primitiveType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.PrimitiveType getPrimitiveType() { - if (typeDeclCase_ == 1) { - com.google.cloud.datacatalog.v1.FieldType.PrimitiveType result = - com.google.cloud.datacatalog.v1.FieldType.PrimitiveType.forNumber( - (java.lang.Integer) typeDecl_); - return result == null - ? com.google.cloud.datacatalog.v1.FieldType.PrimitiveType.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1.FieldType.PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED; - } - - /** - * - * - *
-     * Primitive types, such as string, boolean, etc.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @param value The primitiveType to set. - * @return This builder for chaining. - */ - public Builder setPrimitiveType(com.google.cloud.datacatalog.v1.FieldType.PrimitiveType value) { - if (value == null) { - throw new NullPointerException(); - } - typeDeclCase_ = 1; - typeDecl_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Primitive types, such as string, boolean, etc.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearPrimitiveType() { - if (typeDeclCase_ == 1) { - typeDeclCase_ = 0; - typeDecl_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FieldType.EnumType, - com.google.cloud.datacatalog.v1.FieldType.EnumType.Builder, - com.google.cloud.datacatalog.v1.FieldType.EnumTypeOrBuilder> - enumTypeBuilder_; - - /** - * - * - *
-     * An enum type.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - * - * @return Whether the enumType field is set. - */ - @java.lang.Override - public boolean hasEnumType() { - return typeDeclCase_ == 2; - } - - /** - * - * - *
-     * An enum type.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - * - * @return The enumType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumType getEnumType() { - if (enumTypeBuilder_ == null) { - if (typeDeclCase_ == 2) { - return (com.google.cloud.datacatalog.v1.FieldType.EnumType) typeDecl_; - } - return com.google.cloud.datacatalog.v1.FieldType.EnumType.getDefaultInstance(); - } else { - if (typeDeclCase_ == 2) { - return enumTypeBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.FieldType.EnumType.getDefaultInstance(); - } - } - - /** - * - * - *
-     * An enum type.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - */ - public Builder setEnumType(com.google.cloud.datacatalog.v1.FieldType.EnumType value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeDecl_ = value; - onChanged(); - } else { - enumTypeBuilder_.setMessage(value); - } - typeDeclCase_ = 2; - return this; - } - - /** - * - * - *
-     * An enum type.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - */ - public Builder setEnumType( - com.google.cloud.datacatalog.v1.FieldType.EnumType.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - typeDecl_ = builderForValue.build(); - onChanged(); - } else { - enumTypeBuilder_.setMessage(builderForValue.build()); - } - typeDeclCase_ = 2; - return this; - } - - /** - * - * - *
-     * An enum type.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - */ - public Builder mergeEnumType(com.google.cloud.datacatalog.v1.FieldType.EnumType value) { - if (enumTypeBuilder_ == null) { - if (typeDeclCase_ == 2 - && typeDecl_ - != com.google.cloud.datacatalog.v1.FieldType.EnumType.getDefaultInstance()) { - typeDecl_ = - com.google.cloud.datacatalog.v1.FieldType.EnumType.newBuilder( - (com.google.cloud.datacatalog.v1.FieldType.EnumType) typeDecl_) - .mergeFrom(value) - .buildPartial(); - } else { - typeDecl_ = value; - } - onChanged(); - } else { - if (typeDeclCase_ == 2) { - enumTypeBuilder_.mergeFrom(value); - } else { - enumTypeBuilder_.setMessage(value); - } - } - typeDeclCase_ = 2; - return this; - } - - /** - * - * - *
-     * An enum type.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - */ - public Builder clearEnumType() { - if (enumTypeBuilder_ == null) { - if (typeDeclCase_ == 2) { - typeDeclCase_ = 0; - typeDecl_ = null; - onChanged(); - } - } else { - if (typeDeclCase_ == 2) { - typeDeclCase_ = 0; - typeDecl_ = null; - } - enumTypeBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * An enum type.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - */ - public com.google.cloud.datacatalog.v1.FieldType.EnumType.Builder getEnumTypeBuilder() { - return internalGetEnumTypeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * An enum type.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType.EnumTypeOrBuilder getEnumTypeOrBuilder() { - if ((typeDeclCase_ == 2) && (enumTypeBuilder_ != null)) { - return enumTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeDeclCase_ == 2) { - return (com.google.cloud.datacatalog.v1.FieldType.EnumType) typeDecl_; - } - return com.google.cloud.datacatalog.v1.FieldType.EnumType.getDefaultInstance(); - } - } - - /** - * - * - *
-     * An enum type.
-     * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FieldType.EnumType, - com.google.cloud.datacatalog.v1.FieldType.EnumType.Builder, - com.google.cloud.datacatalog.v1.FieldType.EnumTypeOrBuilder> - internalGetEnumTypeFieldBuilder() { - if (enumTypeBuilder_ == null) { - if (!(typeDeclCase_ == 2)) { - typeDecl_ = com.google.cloud.datacatalog.v1.FieldType.EnumType.getDefaultInstance(); - } - enumTypeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FieldType.EnumType, - com.google.cloud.datacatalog.v1.FieldType.EnumType.Builder, - com.google.cloud.datacatalog.v1.FieldType.EnumTypeOrBuilder>( - (com.google.cloud.datacatalog.v1.FieldType.EnumType) typeDecl_, - getParentForChildren(), - isClean()); - typeDecl_ = null; - } - typeDeclCase_ = 2; - onChanged(); - return enumTypeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.FieldType) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.FieldType) - private static final com.google.cloud.datacatalog.v1.FieldType DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.FieldType(); - } - - public static com.google.cloud.datacatalog.v1.FieldType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldTypeOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldTypeOrBuilder.java deleted file mode 100644 index 2161791eb2d6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FieldTypeOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface FieldTypeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.FieldType) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Primitive types, such as string, boolean, etc.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @return Whether the primitiveType field is set. - */ - boolean hasPrimitiveType(); - - /** - * - * - *
-   * Primitive types, such as string, boolean, etc.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The enum numeric value on the wire for primitiveType. - */ - int getPrimitiveTypeValue(); - - /** - * - * - *
-   * Primitive types, such as string, boolean, etc.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The primitiveType. - */ - com.google.cloud.datacatalog.v1.FieldType.PrimitiveType getPrimitiveType(); - - /** - * - * - *
-   * An enum type.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - * - * @return Whether the enumType field is set. - */ - boolean hasEnumType(); - - /** - * - * - *
-   * An enum type.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - * - * @return The enumType. - */ - com.google.cloud.datacatalog.v1.FieldType.EnumType getEnumType(); - - /** - * - * - *
-   * An enum type.
-   * 
- * - * .google.cloud.datacatalog.v1.FieldType.EnumType enum_type = 2; - */ - com.google.cloud.datacatalog.v1.FieldType.EnumTypeOrBuilder getEnumTypeOrBuilder(); - - com.google.cloud.datacatalog.v1.FieldType.TypeDeclCase getTypeDeclCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpec.java deleted file mode 100644 index c6fe44217f88..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpec.java +++ /dev/null @@ -1,716 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to a fileset. Valid only for entries with the
- * 'FILESET' type.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.FilesetSpec} - */ -@com.google.protobuf.Generated -public final class FilesetSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.FilesetSpec) - FilesetSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "FilesetSpec"); - } - - // Use FilesetSpec.newBuilder() to construct. - private FilesetSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private FilesetSpec() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_FilesetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_FilesetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.FilesetSpec.class, - com.google.cloud.datacatalog.v1.FilesetSpec.Builder.class); - } - - private int bitField0_; - public static final int DATAPLEX_FILESET_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1.DataplexFilesetSpec dataplexFileset_; - - /** - * - * - *
-   * Fields specific to a Dataplex fileset and present only in the Dataplex
-   * fileset entries.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - * - * @return Whether the dataplexFileset field is set. - */ - @java.lang.Override - public boolean hasDataplexFileset() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Fields specific to a Dataplex fileset and present only in the Dataplex
-   * fileset entries.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - * - * @return The dataplexFileset. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexFilesetSpec getDataplexFileset() { - return dataplexFileset_ == null - ? com.google.cloud.datacatalog.v1.DataplexFilesetSpec.getDefaultInstance() - : dataplexFileset_; - } - - /** - * - * - *
-   * Fields specific to a Dataplex fileset and present only in the Dataplex
-   * fileset entries.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.DataplexFilesetSpecOrBuilder - getDataplexFilesetOrBuilder() { - return dataplexFileset_ == null - ? com.google.cloud.datacatalog.v1.DataplexFilesetSpec.getDefaultInstance() - : dataplexFileset_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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, getDataplexFileset()); - } - 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, getDataplexFileset()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.FilesetSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.FilesetSpec other = - (com.google.cloud.datacatalog.v1.FilesetSpec) obj; - - if (hasDataplexFileset() != other.hasDataplexFileset()) return false; - if (hasDataplexFileset()) { - if (!getDataplexFileset().equals(other.getDataplexFileset())) return false; - } - if (!getUnknownFields().equals(other.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 (hasDataplexFileset()) { - hash = (37 * hash) + DATAPLEX_FILESET_FIELD_NUMBER; - hash = (53 * hash) + getDataplexFileset().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.FilesetSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to a fileset. Valid only for entries with the
-   * 'FILESET' type.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.FilesetSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.FilesetSpec) - com.google.cloud.datacatalog.v1.FilesetSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_FilesetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_FilesetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.FilesetSpec.class, - com.google.cloud.datacatalog.v1.FilesetSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.FilesetSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetDataplexFilesetFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataplexFileset_ = null; - if (dataplexFilesetBuilder_ != null) { - dataplexFilesetBuilder_.dispose(); - dataplexFilesetBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_FilesetSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FilesetSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FilesetSpec build() { - com.google.cloud.datacatalog.v1.FilesetSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FilesetSpec buildPartial() { - com.google.cloud.datacatalog.v1.FilesetSpec result = - new com.google.cloud.datacatalog.v1.FilesetSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.FilesetSpec result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataplexFileset_ = - dataplexFilesetBuilder_ == null ? dataplexFileset_ : dataplexFilesetBuilder_.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.datacatalog.v1.FilesetSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.FilesetSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.FilesetSpec other) { - if (other == com.google.cloud.datacatalog.v1.FilesetSpec.getDefaultInstance()) return this; - if (other.hasDataplexFileset()) { - mergeDataplexFileset(other.getDataplexFileset()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetDataplexFilesetFieldBuilder().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.datacatalog.v1.DataplexFilesetSpec dataplexFileset_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexFilesetSpec, - com.google.cloud.datacatalog.v1.DataplexFilesetSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexFilesetSpecOrBuilder> - dataplexFilesetBuilder_; - - /** - * - * - *
-     * Fields specific to a Dataplex fileset and present only in the Dataplex
-     * fileset entries.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - * - * @return Whether the dataplexFileset field is set. - */ - public boolean hasDataplexFileset() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Fields specific to a Dataplex fileset and present only in the Dataplex
-     * fileset entries.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - * - * @return The dataplexFileset. - */ - public com.google.cloud.datacatalog.v1.DataplexFilesetSpec getDataplexFileset() { - if (dataplexFilesetBuilder_ == null) { - return dataplexFileset_ == null - ? com.google.cloud.datacatalog.v1.DataplexFilesetSpec.getDefaultInstance() - : dataplexFileset_; - } else { - return dataplexFilesetBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Fields specific to a Dataplex fileset and present only in the Dataplex
-     * fileset entries.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - */ - public Builder setDataplexFileset(com.google.cloud.datacatalog.v1.DataplexFilesetSpec value) { - if (dataplexFilesetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataplexFileset_ = value; - } else { - dataplexFilesetBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Fields specific to a Dataplex fileset and present only in the Dataplex
-     * fileset entries.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - */ - public Builder setDataplexFileset( - com.google.cloud.datacatalog.v1.DataplexFilesetSpec.Builder builderForValue) { - if (dataplexFilesetBuilder_ == null) { - dataplexFileset_ = builderForValue.build(); - } else { - dataplexFilesetBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Fields specific to a Dataplex fileset and present only in the Dataplex
-     * fileset entries.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - */ - public Builder mergeDataplexFileset(com.google.cloud.datacatalog.v1.DataplexFilesetSpec value) { - if (dataplexFilesetBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && dataplexFileset_ != null - && dataplexFileset_ - != com.google.cloud.datacatalog.v1.DataplexFilesetSpec.getDefaultInstance()) { - getDataplexFilesetBuilder().mergeFrom(value); - } else { - dataplexFileset_ = value; - } - } else { - dataplexFilesetBuilder_.mergeFrom(value); - } - if (dataplexFileset_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Fields specific to a Dataplex fileset and present only in the Dataplex
-     * fileset entries.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - */ - public Builder clearDataplexFileset() { - bitField0_ = (bitField0_ & ~0x00000001); - dataplexFileset_ = null; - if (dataplexFilesetBuilder_ != null) { - dataplexFilesetBuilder_.dispose(); - dataplexFilesetBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Fields specific to a Dataplex fileset and present only in the Dataplex
-     * fileset entries.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - */ - public com.google.cloud.datacatalog.v1.DataplexFilesetSpec.Builder getDataplexFilesetBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetDataplexFilesetFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Fields specific to a Dataplex fileset and present only in the Dataplex
-     * fileset entries.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - */ - public com.google.cloud.datacatalog.v1.DataplexFilesetSpecOrBuilder - getDataplexFilesetOrBuilder() { - if (dataplexFilesetBuilder_ != null) { - return dataplexFilesetBuilder_.getMessageOrBuilder(); - } else { - return dataplexFileset_ == null - ? com.google.cloud.datacatalog.v1.DataplexFilesetSpec.getDefaultInstance() - : dataplexFileset_; - } - } - - /** - * - * - *
-     * Fields specific to a Dataplex fileset and present only in the Dataplex
-     * fileset entries.
-     * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexFilesetSpec, - com.google.cloud.datacatalog.v1.DataplexFilesetSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexFilesetSpecOrBuilder> - internalGetDataplexFilesetFieldBuilder() { - if (dataplexFilesetBuilder_ == null) { - dataplexFilesetBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.DataplexFilesetSpec, - com.google.cloud.datacatalog.v1.DataplexFilesetSpec.Builder, - com.google.cloud.datacatalog.v1.DataplexFilesetSpecOrBuilder>( - getDataplexFileset(), getParentForChildren(), isClean()); - dataplexFileset_ = null; - } - return dataplexFilesetBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.FilesetSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.FilesetSpec) - private static final com.google.cloud.datacatalog.v1.FilesetSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.FilesetSpec(); - } - - public static com.google.cloud.datacatalog.v1.FilesetSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FilesetSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.FilesetSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpecOrBuilder.java deleted file mode 100644 index 0da8a570c8d4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/FilesetSpecOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface FilesetSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.FilesetSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Fields specific to a Dataplex fileset and present only in the Dataplex
-   * fileset entries.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - * - * @return Whether the dataplexFileset field is set. - */ - boolean hasDataplexFileset(); - - /** - * - * - *
-   * Fields specific to a Dataplex fileset and present only in the Dataplex
-   * fileset entries.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - * - * @return The dataplexFileset. - */ - com.google.cloud.datacatalog.v1.DataplexFilesetSpec getDataplexFileset(); - - /** - * - * - *
-   * Fields specific to a Dataplex fileset and present only in the Dataplex
-   * fileset entries.
-   * 
- * - * .google.cloud.datacatalog.v1.DataplexFilesetSpec dataplex_fileset = 1; - */ - com.google.cloud.datacatalog.v1.DataplexFilesetSpecOrBuilder getDataplexFilesetOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpec.java deleted file mode 100644 index 50f38d71c3db..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpec.java +++ /dev/null @@ -1,1023 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification of a single file in Cloud Storage.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GcsFileSpec} - */ -@com.google.protobuf.Generated -public final class GcsFileSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GcsFileSpec) - GcsFileSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GcsFileSpec"); - } - - // Use GcsFileSpec.newBuilder() to construct. - private GcsFileSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GcsFileSpec() { - filePath_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_GcsFileSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_GcsFileSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GcsFileSpec.class, - com.google.cloud.datacatalog.v1.GcsFileSpec.Builder.class); - } - - private int bitField0_; - public static final int FILE_PATH_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object filePath_ = ""; - - /** - * - * - *
-   * Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
-   * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filePath. - */ - @java.lang.Override - public java.lang.String getFilePath() { - java.lang.Object ref = filePath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filePath_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
-   * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filePath. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilePathBytes() { - java.lang.Object ref = filePath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filePath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GCS_TIMESTAMPS_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.SystemTimestamps gcsTimestamps_; - - /** - * - * - *
-   * Output only. Creation, modification, and expiration timestamps of a Cloud
-   * Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the gcsTimestamps field is set. - */ - @java.lang.Override - public boolean hasGcsTimestamps() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Output only. Creation, modification, and expiration timestamps of a Cloud
-   * Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The gcsTimestamps. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestamps getGcsTimestamps() { - return gcsTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : gcsTimestamps_; - } - - /** - * - * - *
-   * Output only. Creation, modification, and expiration timestamps of a Cloud
-   * Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder getGcsTimestampsOrBuilder() { - return gcsTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : gcsTimestamps_; - } - - public static final int SIZE_BYTES_FIELD_NUMBER = 4; - private long sizeBytes_ = 0L; - - /** - * - * - *
-   * Output only. File size in bytes.
-   * 
- * - * int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sizeBytes. - */ - @java.lang.Override - public long getSizeBytes() { - return sizeBytes_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(filePath_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, filePath_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getGcsTimestamps()); - } - if (sizeBytes_ != 0L) { - output.writeInt64(4, sizeBytes_); - } - 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(filePath_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, filePath_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGcsTimestamps()); - } - if (sizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, sizeBytes_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.GcsFileSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.GcsFileSpec other = - (com.google.cloud.datacatalog.v1.GcsFileSpec) obj; - - if (!getFilePath().equals(other.getFilePath())) return false; - if (hasGcsTimestamps() != other.hasGcsTimestamps()) return false; - if (hasGcsTimestamps()) { - if (!getGcsTimestamps().equals(other.getGcsTimestamps())) return false; - } - if (getSizeBytes() != other.getSizeBytes()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; - hash = (53 * hash) + getFilePath().hashCode(); - if (hasGcsTimestamps()) { - hash = (37 * hash) + GCS_TIMESTAMPS_FIELD_NUMBER; - hash = (53 * hash) + getGcsTimestamps().hashCode(); - } - hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.GcsFileSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification of a single file in Cloud Storage.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GcsFileSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.GcsFileSpec) - com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_GcsFileSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_GcsFileSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GcsFileSpec.class, - com.google.cloud.datacatalog.v1.GcsFileSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.GcsFileSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetGcsTimestampsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filePath_ = ""; - gcsTimestamps_ = null; - if (gcsTimestampsBuilder_ != null) { - gcsTimestampsBuilder_.dispose(); - gcsTimestampsBuilder_ = null; - } - sizeBytes_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_GcsFileSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFileSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.GcsFileSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFileSpec build() { - com.google.cloud.datacatalog.v1.GcsFileSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFileSpec buildPartial() { - com.google.cloud.datacatalog.v1.GcsFileSpec result = - new com.google.cloud.datacatalog.v1.GcsFileSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.GcsFileSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.filePath_ = filePath_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gcsTimestamps_ = - gcsTimestampsBuilder_ == null ? gcsTimestamps_ : gcsTimestampsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.sizeBytes_ = sizeBytes_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.GcsFileSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.GcsFileSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.GcsFileSpec other) { - if (other == com.google.cloud.datacatalog.v1.GcsFileSpec.getDefaultInstance()) return this; - if (!other.getFilePath().isEmpty()) { - filePath_ = other.filePath_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasGcsTimestamps()) { - mergeGcsTimestamps(other.getGcsTimestamps()); - } - if (other.getSizeBytes() != 0L) { - setSizeBytes(other.getSizeBytes()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - filePath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetGcsTimestampsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 32: - { - sizeBytes_ = input.readInt64(); - 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 filePath_ = ""; - - /** - * - * - *
-     * Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
-     * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filePath. - */ - public java.lang.String getFilePath() { - java.lang.Object ref = filePath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filePath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
-     * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filePath. - */ - public com.google.protobuf.ByteString getFilePathBytes() { - java.lang.Object ref = filePath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filePath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
-     * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The filePath to set. - * @return This builder for chaining. - */ - public Builder setFilePath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - filePath_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
-     * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearFilePath() { - filePath_ = getDefaultInstance().getFilePath(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
-     * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for filePath to set. - * @return This builder for chaining. - */ - public Builder setFilePathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - filePath_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.SystemTimestamps gcsTimestamps_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - gcsTimestampsBuilder_; - - /** - * - * - *
-     * Output only. Creation, modification, and expiration timestamps of a Cloud
-     * Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the gcsTimestamps field is set. - */ - public boolean hasGcsTimestamps() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Output only. Creation, modification, and expiration timestamps of a Cloud
-     * Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The gcsTimestamps. - */ - public com.google.cloud.datacatalog.v1.SystemTimestamps getGcsTimestamps() { - if (gcsTimestampsBuilder_ == null) { - return gcsTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : gcsTimestamps_; - } else { - return gcsTimestampsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Creation, modification, and expiration timestamps of a Cloud
-     * Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setGcsTimestamps(com.google.cloud.datacatalog.v1.SystemTimestamps value) { - if (gcsTimestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcsTimestamps_ = value; - } else { - gcsTimestampsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Creation, modification, and expiration timestamps of a Cloud
-     * Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setGcsTimestamps( - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder builderForValue) { - if (gcsTimestampsBuilder_ == null) { - gcsTimestamps_ = builderForValue.build(); - } else { - gcsTimestampsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Creation, modification, and expiration timestamps of a Cloud
-     * Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeGcsTimestamps(com.google.cloud.datacatalog.v1.SystemTimestamps value) { - if (gcsTimestampsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && gcsTimestamps_ != null - && gcsTimestamps_ - != com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance()) { - getGcsTimestampsBuilder().mergeFrom(value); - } else { - gcsTimestamps_ = value; - } - } else { - gcsTimestampsBuilder_.mergeFrom(value); - } - if (gcsTimestamps_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Creation, modification, and expiration timestamps of a Cloud
-     * Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearGcsTimestamps() { - bitField0_ = (bitField0_ & ~0x00000002); - gcsTimestamps_ = null; - if (gcsTimestampsBuilder_ != null) { - gcsTimestampsBuilder_.dispose(); - gcsTimestampsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Creation, modification, and expiration timestamps of a Cloud
-     * Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.SystemTimestamps.Builder getGcsTimestampsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetGcsTimestampsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Creation, modification, and expiration timestamps of a Cloud
-     * Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder getGcsTimestampsOrBuilder() { - if (gcsTimestampsBuilder_ != null) { - return gcsTimestampsBuilder_.getMessageOrBuilder(); - } else { - return gcsTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : gcsTimestamps_; - } - } - - /** - * - * - *
-     * Output only. Creation, modification, and expiration timestamps of a Cloud
-     * Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - internalGetGcsTimestampsFieldBuilder() { - if (gcsTimestampsBuilder_ == null) { - gcsTimestampsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder>( - getGcsTimestamps(), getParentForChildren(), isClean()); - gcsTimestamps_ = null; - } - return gcsTimestampsBuilder_; - } - - private long sizeBytes_; - - /** - * - * - *
-     * Output only. File size in bytes.
-     * 
- * - * int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sizeBytes. - */ - @java.lang.Override - public long getSizeBytes() { - return sizeBytes_; - } - - /** - * - * - *
-     * Output only. File size in bytes.
-     * 
- * - * int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The sizeBytes to set. - * @return This builder for chaining. - */ - public Builder setSizeBytes(long value) { - - sizeBytes_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. File size in bytes.
-     * 
- * - * int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSizeBytes() { - bitField0_ = (bitField0_ & ~0x00000004); - sizeBytes_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.GcsFileSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.GcsFileSpec) - private static final com.google.cloud.datacatalog.v1.GcsFileSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.GcsFileSpec(); - } - - public static com.google.cloud.datacatalog.v1.GcsFileSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsFileSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFileSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpecOrBuilder.java deleted file mode 100644 index 3fc2e3aa9c52..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFileSpecOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface GcsFileSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.GcsFileSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
-   * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filePath. - */ - java.lang.String getFilePath(); - - /** - * - * - *
-   * Required. Full file path. Example: `gs://bucket_name/a/b.txt`.
-   * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filePath. - */ - com.google.protobuf.ByteString getFilePathBytes(); - - /** - * - * - *
-   * Output only. Creation, modification, and expiration timestamps of a Cloud
-   * Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the gcsTimestamps field is set. - */ - boolean hasGcsTimestamps(); - - /** - * - * - *
-   * Output only. Creation, modification, and expiration timestamps of a Cloud
-   * Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The gcsTimestamps. - */ - com.google.cloud.datacatalog.v1.SystemTimestamps getGcsTimestamps(); - - /** - * - * - *
-   * Output only. Creation, modification, and expiration timestamps of a Cloud
-   * Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder getGcsTimestampsOrBuilder(); - - /** - * - * - *
-   * Output only. File size in bytes.
-   * 
- * - * int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sizeBytes. - */ - long getSizeBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpec.java deleted file mode 100644 index 3fe74e8a86d4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpec.java +++ /dev/null @@ -1,1656 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Describes a Cloud Storage fileset entry.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GcsFilesetSpec} - */ -@com.google.protobuf.Generated -public final class GcsFilesetSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GcsFilesetSpec) - GcsFilesetSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GcsFilesetSpec"); - } - - // Use GcsFilesetSpec.newBuilder() to construct. - private GcsFilesetSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GcsFilesetSpec() { - filePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - sampleGcsFileSpecs_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GcsFilesetSpec.class, - com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder.class); - } - - public static final int FILE_PATTERNS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList filePatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   *
-   * For more information, see [Wildcard Names]
-   * (https://cloud.google.com/storage/docs/wildcards).
-   *
-   * Note: Currently, bucket wildcards are not supported.
-   *
-   * Examples of valid `file_patterns`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * and all subdirectories
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to match complex sets of files, for example:
-   *
-   * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the filePatterns. - */ - public com.google.protobuf.ProtocolStringList getFilePatternsList() { - return filePatterns_; - } - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   *
-   * For more information, see [Wildcard Names]
-   * (https://cloud.google.com/storage/docs/wildcards).
-   *
-   * Note: Currently, bucket wildcards are not supported.
-   *
-   * Examples of valid `file_patterns`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * and all subdirectories
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to match complex sets of files, for example:
-   *
-   * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of filePatterns. - */ - public int getFilePatternsCount() { - return filePatterns_.size(); - } - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   *
-   * For more information, see [Wildcard Names]
-   * (https://cloud.google.com/storage/docs/wildcards).
-   *
-   * Note: Currently, bucket wildcards are not supported.
-   *
-   * Examples of valid `file_patterns`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * and all subdirectories
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to match complex sets of files, for example:
-   *
-   * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The filePatterns at the given index. - */ - public java.lang.String getFilePatterns(int index) { - return filePatterns_.get(index); - } - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   *
-   * For more information, see [Wildcard Names]
-   * (https://cloud.google.com/storage/docs/wildcards).
-   *
-   * Note: Currently, bucket wildcards are not supported.
-   *
-   * Examples of valid `file_patterns`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * and all subdirectories
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to match complex sets of files, for example:
-   *
-   * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the filePatterns at the given index. - */ - public com.google.protobuf.ByteString getFilePatternsBytes(int index) { - return filePatterns_.getByteString(index); - } - - public static final int SAMPLE_GCS_FILE_SPECS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List sampleGcsFileSpecs_; - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List getSampleGcsFileSpecsList() { - return sampleGcsFileSpecs_; - } - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getSampleGcsFileSpecsOrBuilderList() { - return sampleGcsFileSpecs_; - } - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getSampleGcsFileSpecsCount() { - return sampleGcsFileSpecs_.size(); - } - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFileSpec getSampleGcsFileSpecs(int index) { - return sampleGcsFileSpecs_.get(index); - } - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder getSampleGcsFileSpecsOrBuilder( - int index) { - return sampleGcsFileSpecs_.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 < filePatterns_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, filePatterns_.getRaw(i)); - } - for (int i = 0; i < sampleGcsFileSpecs_.size(); i++) { - output.writeMessage(2, sampleGcsFileSpecs_.get(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 < filePatterns_.size(); i++) { - dataSize += computeStringSizeNoTag(filePatterns_.getRaw(i)); - } - size += dataSize; - size += 1 * getFilePatternsList().size(); - } - for (int i = 0; i < sampleGcsFileSpecs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, sampleGcsFileSpecs_.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.datacatalog.v1.GcsFilesetSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.GcsFilesetSpec other = - (com.google.cloud.datacatalog.v1.GcsFilesetSpec) obj; - - if (!getFilePatternsList().equals(other.getFilePatternsList())) return false; - if (!getSampleGcsFileSpecsList().equals(other.getSampleGcsFileSpecsList())) return false; - if (!getUnknownFields().equals(other.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 (getFilePatternsCount() > 0) { - hash = (37 * hash) + FILE_PATTERNS_FIELD_NUMBER; - hash = (53 * hash) + getFilePatternsList().hashCode(); - } - if (getSampleGcsFileSpecsCount() > 0) { - hash = (37 * hash) + SAMPLE_GCS_FILE_SPECS_FIELD_NUMBER; - hash = (53 * hash) + getSampleGcsFileSpecsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.GcsFilesetSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Describes a Cloud Storage fileset entry.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GcsFilesetSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.GcsFilesetSpec) - com.google.cloud.datacatalog.v1.GcsFilesetSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GcsFilesetSpec.class, - com.google.cloud.datacatalog.v1.GcsFilesetSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.GcsFilesetSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (sampleGcsFileSpecsBuilder_ == null) { - sampleGcsFileSpecs_ = java.util.Collections.emptyList(); - } else { - sampleGcsFileSpecs_ = null; - sampleGcsFileSpecsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFilesetSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFilesetSpec build() { - com.google.cloud.datacatalog.v1.GcsFilesetSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFilesetSpec buildPartial() { - com.google.cloud.datacatalog.v1.GcsFilesetSpec result = - new com.google.cloud.datacatalog.v1.GcsFilesetSpec(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.GcsFilesetSpec result) { - if (sampleGcsFileSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - sampleGcsFileSpecs_ = java.util.Collections.unmodifiableList(sampleGcsFileSpecs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.sampleGcsFileSpecs_ = sampleGcsFileSpecs_; - } else { - result.sampleGcsFileSpecs_ = sampleGcsFileSpecsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.GcsFilesetSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - filePatterns_.makeImmutable(); - result.filePatterns_ = filePatterns_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.GcsFilesetSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.GcsFilesetSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.GcsFilesetSpec other) { - if (other == com.google.cloud.datacatalog.v1.GcsFilesetSpec.getDefaultInstance()) return this; - if (!other.filePatterns_.isEmpty()) { - if (filePatterns_.isEmpty()) { - filePatterns_ = other.filePatterns_; - bitField0_ |= 0x00000001; - } else { - ensureFilePatternsIsMutable(); - filePatterns_.addAll(other.filePatterns_); - } - onChanged(); - } - if (sampleGcsFileSpecsBuilder_ == null) { - if (!other.sampleGcsFileSpecs_.isEmpty()) { - if (sampleGcsFileSpecs_.isEmpty()) { - sampleGcsFileSpecs_ = other.sampleGcsFileSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.addAll(other.sampleGcsFileSpecs_); - } - onChanged(); - } - } else { - if (!other.sampleGcsFileSpecs_.isEmpty()) { - if (sampleGcsFileSpecsBuilder_.isEmpty()) { - sampleGcsFileSpecsBuilder_.dispose(); - sampleGcsFileSpecsBuilder_ = null; - sampleGcsFileSpecs_ = other.sampleGcsFileSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); - sampleGcsFileSpecsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSampleGcsFileSpecsFieldBuilder() - : null; - } else { - sampleGcsFileSpecsBuilder_.addAllMessages(other.sampleGcsFileSpecs_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - ensureFilePatternsIsMutable(); - filePatterns_.add(s); - break; - } // case 10 - case 18: - { - com.google.cloud.datacatalog.v1.GcsFileSpec m = - input.readMessage( - com.google.cloud.datacatalog.v1.GcsFileSpec.parser(), extensionRegistry); - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.add(m); - } else { - sampleGcsFileSpecsBuilder_.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.protobuf.LazyStringArrayList filePatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureFilePatternsIsMutable() { - if (!filePatterns_.isModifiable()) { - filePatterns_ = new com.google.protobuf.LazyStringArrayList(filePatterns_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     *
-     * For more information, see [Wildcard Names]
-     * (https://cloud.google.com/storage/docs/wildcards).
-     *
-     * Note: Currently, bucket wildcards are not supported.
-     *
-     * Examples of valid `file_patterns`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * and all subdirectories
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to match complex sets of files, for example:
-     *
-     * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the filePatterns. - */ - public com.google.protobuf.ProtocolStringList getFilePatternsList() { - filePatterns_.makeImmutable(); - return filePatterns_; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     *
-     * For more information, see [Wildcard Names]
-     * (https://cloud.google.com/storage/docs/wildcards).
-     *
-     * Note: Currently, bucket wildcards are not supported.
-     *
-     * Examples of valid `file_patterns`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * and all subdirectories
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to match complex sets of files, for example:
-     *
-     * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of filePatterns. - */ - public int getFilePatternsCount() { - return filePatterns_.size(); - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     *
-     * For more information, see [Wildcard Names]
-     * (https://cloud.google.com/storage/docs/wildcards).
-     *
-     * Note: Currently, bucket wildcards are not supported.
-     *
-     * Examples of valid `file_patterns`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * and all subdirectories
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to match complex sets of files, for example:
-     *
-     * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The filePatterns at the given index. - */ - public java.lang.String getFilePatterns(int index) { - return filePatterns_.get(index); - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     *
-     * For more information, see [Wildcard Names]
-     * (https://cloud.google.com/storage/docs/wildcards).
-     *
-     * Note: Currently, bucket wildcards are not supported.
-     *
-     * Examples of valid `file_patterns`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * and all subdirectories
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to match complex sets of files, for example:
-     *
-     * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the filePatterns at the given index. - */ - public com.google.protobuf.ByteString getFilePatternsBytes(int index) { - return filePatterns_.getByteString(index); - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     *
-     * For more information, see [Wildcard Names]
-     * (https://cloud.google.com/storage/docs/wildcards).
-     *
-     * Note: Currently, bucket wildcards are not supported.
-     *
-     * Examples of valid `file_patterns`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * and all subdirectories
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to match complex sets of files, for example:
-     *
-     * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The filePatterns to set. - * @return This builder for chaining. - */ - public Builder setFilePatterns(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilePatternsIsMutable(); - filePatterns_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     *
-     * For more information, see [Wildcard Names]
-     * (https://cloud.google.com/storage/docs/wildcards).
-     *
-     * Note: Currently, bucket wildcards are not supported.
-     *
-     * Examples of valid `file_patterns`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * and all subdirectories
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to match complex sets of files, for example:
-     *
-     * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The filePatterns to add. - * @return This builder for chaining. - */ - public Builder addFilePatterns(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilePatternsIsMutable(); - filePatterns_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     *
-     * For more information, see [Wildcard Names]
-     * (https://cloud.google.com/storage/docs/wildcards).
-     *
-     * Note: Currently, bucket wildcards are not supported.
-     *
-     * Examples of valid `file_patterns`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * and all subdirectories
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to match complex sets of files, for example:
-     *
-     * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The filePatterns to add. - * @return This builder for chaining. - */ - public Builder addAllFilePatterns(java.lang.Iterable values) { - ensureFilePatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filePatterns_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     *
-     * For more information, see [Wildcard Names]
-     * (https://cloud.google.com/storage/docs/wildcards).
-     *
-     * Note: Currently, bucket wildcards are not supported.
-     *
-     * Examples of valid `file_patterns`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * and all subdirectories
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to match complex sets of files, for example:
-     *
-     * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearFilePatterns() { - filePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     *
-     * For more information, see [Wildcard Names]
-     * (https://cloud.google.com/storage/docs/wildcards).
-     *
-     * Note: Currently, bucket wildcards are not supported.
-     *
-     * Examples of valid `file_patterns`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * and all subdirectories
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to match complex sets of files, for example:
-     *
-     * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the filePatterns to add. - * @return This builder for chaining. - */ - public Builder addFilePatternsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFilePatternsIsMutable(); - filePatterns_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List sampleGcsFileSpecs_ = - java.util.Collections.emptyList(); - - private void ensureSampleGcsFileSpecsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - sampleGcsFileSpecs_ = - new java.util.ArrayList( - sampleGcsFileSpecs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.GcsFileSpec, - com.google.cloud.datacatalog.v1.GcsFileSpec.Builder, - com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder> - sampleGcsFileSpecsBuilder_; - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List getSampleGcsFileSpecsList() { - if (sampleGcsFileSpecsBuilder_ == null) { - return java.util.Collections.unmodifiableList(sampleGcsFileSpecs_); - } else { - return sampleGcsFileSpecsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getSampleGcsFileSpecsCount() { - if (sampleGcsFileSpecsBuilder_ == null) { - return sampleGcsFileSpecs_.size(); - } else { - return sampleGcsFileSpecsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.GcsFileSpec getSampleGcsFileSpecs(int index) { - if (sampleGcsFileSpecsBuilder_ == null) { - return sampleGcsFileSpecs_.get(index); - } else { - return sampleGcsFileSpecsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setSampleGcsFileSpecs( - int index, com.google.cloud.datacatalog.v1.GcsFileSpec value) { - if (sampleGcsFileSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.set(index, value); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setSampleGcsFileSpecs( - int index, com.google.cloud.datacatalog.v1.GcsFileSpec.Builder builderForValue) { - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.set(index, builderForValue.build()); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addSampleGcsFileSpecs(com.google.cloud.datacatalog.v1.GcsFileSpec value) { - if (sampleGcsFileSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.add(value); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addSampleGcsFileSpecs( - int index, com.google.cloud.datacatalog.v1.GcsFileSpec value) { - if (sampleGcsFileSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.add(index, value); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addSampleGcsFileSpecs( - com.google.cloud.datacatalog.v1.GcsFileSpec.Builder builderForValue) { - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.add(builderForValue.build()); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addSampleGcsFileSpecs( - int index, com.google.cloud.datacatalog.v1.GcsFileSpec.Builder builderForValue) { - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.add(index, builderForValue.build()); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllSampleGcsFileSpecs( - java.lang.Iterable values) { - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleGcsFileSpecs_); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearSampleGcsFileSpecs() { - if (sampleGcsFileSpecsBuilder_ == null) { - sampleGcsFileSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeSampleGcsFileSpecs(int index) { - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.remove(index); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.GcsFileSpec.Builder getSampleGcsFileSpecsBuilder( - int index) { - return internalGetSampleGcsFileSpecsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder getSampleGcsFileSpecsOrBuilder( - int index) { - if (sampleGcsFileSpecsBuilder_ == null) { - return sampleGcsFileSpecs_.get(index); - } else { - return sampleGcsFileSpecsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getSampleGcsFileSpecsOrBuilderList() { - if (sampleGcsFileSpecsBuilder_ != null) { - return sampleGcsFileSpecsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sampleGcsFileSpecs_); - } - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.GcsFileSpec.Builder addSampleGcsFileSpecsBuilder() { - return internalGetSampleGcsFileSpecsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.GcsFileSpec.getDefaultInstance()); - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.GcsFileSpec.Builder addSampleGcsFileSpecsBuilder( - int index) { - return internalGetSampleGcsFileSpecsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.GcsFileSpec.getDefaultInstance()); - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getSampleGcsFileSpecsBuilderList() { - return internalGetSampleGcsFileSpecsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.GcsFileSpec, - com.google.cloud.datacatalog.v1.GcsFileSpec.Builder, - com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder> - internalGetSampleGcsFileSpecsFieldBuilder() { - if (sampleGcsFileSpecsBuilder_ == null) { - sampleGcsFileSpecsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.GcsFileSpec, - com.google.cloud.datacatalog.v1.GcsFileSpec.Builder, - com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder>( - sampleGcsFileSpecs_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - sampleGcsFileSpecs_ = null; - } - return sampleGcsFileSpecsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.GcsFilesetSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.GcsFilesetSpec) - private static final com.google.cloud.datacatalog.v1.GcsFilesetSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.GcsFilesetSpec(); - } - - public static com.google.cloud.datacatalog.v1.GcsFilesetSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsFilesetSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GcsFilesetSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOrBuilder.java deleted file mode 100644 index 87898a79c092..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOrBuilder.java +++ /dev/null @@ -1,265 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface GcsFilesetSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.GcsFilesetSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   *
-   * For more information, see [Wildcard Names]
-   * (https://cloud.google.com/storage/docs/wildcards).
-   *
-   * Note: Currently, bucket wildcards are not supported.
-   *
-   * Examples of valid `file_patterns`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * and all subdirectories
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to match complex sets of files, for example:
-   *
-   * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the filePatterns. - */ - java.util.List getFilePatternsList(); - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   *
-   * For more information, see [Wildcard Names]
-   * (https://cloud.google.com/storage/docs/wildcards).
-   *
-   * Note: Currently, bucket wildcards are not supported.
-   *
-   * Examples of valid `file_patterns`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * and all subdirectories
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to match complex sets of files, for example:
-   *
-   * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of filePatterns. - */ - int getFilePatternsCount(); - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   *
-   * For more information, see [Wildcard Names]
-   * (https://cloud.google.com/storage/docs/wildcards).
-   *
-   * Note: Currently, bucket wildcards are not supported.
-   *
-   * Examples of valid `file_patterns`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * and all subdirectories
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to match complex sets of files, for example:
-   *
-   * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The filePatterns at the given index. - */ - java.lang.String getFilePatterns(int index); - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   *
-   * For more information, see [Wildcard Names]
-   * (https://cloud.google.com/storage/docs/wildcards).
-   *
-   * Note: Currently, bucket wildcards are not supported.
-   *
-   * Examples of valid `file_patterns`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * and all subdirectories
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to match complex sets of files, for example:
-   *
-   * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the filePatterns at the given index. - */ - com.google.protobuf.ByteString getFilePatternsBytes(int index); - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getSampleGcsFileSpecsList(); - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.GcsFileSpec getSampleGcsFileSpecs(int index); - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getSampleGcsFileSpecsCount(); - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getSampleGcsFileSpecsOrBuilderList(); - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.GcsFileSpecOrBuilder getSampleGcsFileSpecsOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java deleted file mode 100644 index 67b7e5647728..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GcsFilesetSpecOuterClass.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/gcs_fileset_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class GcsFilesetSpecOuterClass extends com.google.protobuf.GeneratedFile { - private GcsFilesetSpecOuterClass() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GcsFilesetSpecOuterClass"); - } - - 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_datacatalog_v1_GcsFilesetSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_GcsFileSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_GcsFileSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n2google/cloud/datacatalog/v1/gcs_filese" - + "t_spec.proto\022\033google.cloud.datacatalog.v" - + "1\032\037google/api/field_behavior.proto\032,goog" - + "le/cloud/datacatalog/v1/timestamps.proto" - + "\"z\n\016GcsFilesetSpec\022\032\n\rfile_patterns\030\001 \003(" - + "\tB\003\340A\002\022L\n\025sample_gcs_file_specs\030\002 \003(\0132(." - + "google.cloud.datacatalog.v1.GcsFileSpecB" - + "\003\340A\003\"\212\001\n\013GcsFileSpec\022\026\n\tfile_path\030\001 \001(\tB" - + "\003\340A\002\022J\n\016gcs_timestamps\030\002 \001(\0132-.google.cl" - + "oud.datacatalog.v1.SystemTimestampsB\003\340A\003" - + "\022\027\n\nsize_bytes\030\004 \001(\003B\003\340A\003B\303\001\n\037com.google" - + ".cloud.datacatalog.v1P\001ZAcloud.google.co" - + "m/go/datacatalog/apiv1/datacatalogpb;dat" - + "acatalogpb\252\002\033Google.Cloud.DataCatalog.V1" - + "\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Google:" - + ":Cloud::DataCatalog::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.datacatalog.v1.Timestamps.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GcsFilesetSpec_descriptor, - new java.lang.String[] { - "FilePatterns", "SampleGcsFileSpecs", - }); - internal_static_google_cloud_datacatalog_v1_GcsFileSpec_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_GcsFileSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GcsFileSpec_descriptor, - new java.lang.String[] { - "FilePath", "GcsTimestamps", "SizeBytes", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.datacatalog.v1.Timestamps.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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequest.java deleted file mode 100644 index 21bf7d05744a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequest.java +++ /dev/null @@ -1,896 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [GetEntryGroup][google.cloud.datacatalog.v1.DataCatalog.GetEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetEntryGroupRequest} - */ -@com.google.protobuf.Generated -public final class GetEntryGroupRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetEntryGroupRequest) - GetEntryGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GetEntryGroupRequest"); - } - - // Use GetEntryGroupRequest.newBuilder() to construct. - private GetEntryGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GetEntryGroupRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GetEntryGroupRequest.class, - com.google.cloud.datacatalog.v1.GetEntryGroupRequest.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 entry group to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the entry group to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int READ_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask readMask_; - - /** - * - * - *
-   * The fields to return. If empty or omitted, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return Whether the readMask field is set. - */ - @java.lang.Override - public boolean hasReadMask() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The fields to return. If empty or omitted, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return The readMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getReadMask() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - - /** - * - * - *
-   * The fields to return. If empty or omitted, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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, getReadMask()); - } - 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, getReadMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.GetEntryGroupRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.GetEntryGroupRequest other = - (com.google.cloud.datacatalog.v1.GetEntryGroupRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasReadMask() != other.hasReadMask()) return false; - if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasReadMask()) { - hash = (37 * hash) + READ_MASK_FIELD_NUMBER; - hash = (53 * hash) + getReadMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.GetEntryGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [GetEntryGroup][google.cloud.datacatalog.v1.DataCatalog.GetEntryGroup].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetEntryGroupRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.GetEntryGroupRequest) - com.google.cloud.datacatalog.v1.GetEntryGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GetEntryGroupRequest.class, - com.google.cloud.datacatalog.v1.GetEntryGroupRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.GetEntryGroupRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetReadMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - readMask_ = null; - if (readMaskBuilder_ != null) { - readMaskBuilder_.dispose(); - readMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetEntryGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetEntryGroupRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.GetEntryGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetEntryGroupRequest build() { - com.google.cloud.datacatalog.v1.GetEntryGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetEntryGroupRequest buildPartial() { - com.google.cloud.datacatalog.v1.GetEntryGroupRequest result = - new com.google.cloud.datacatalog.v1.GetEntryGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.GetEntryGroupRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.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.datacatalog.v1.GetEntryGroupRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.GetEntryGroupRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.GetEntryGroupRequest other) { - if (other == com.google.cloud.datacatalog.v1.GetEntryGroupRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasReadMask()) { - mergeReadMask(other.getReadMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetReadMaskFieldBuilder().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 entry group to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.FieldMask readMask_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; - - /** - * - * - *
-     * The fields to return. If empty or omitted, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return Whether the readMask field is set. - */ - public boolean hasReadMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * The fields to return. If empty or omitted, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return The readMask. - */ - public com.google.protobuf.FieldMask getReadMask() { - if (readMaskBuilder_ == null) { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } else { - return readMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The fields to return. If empty or omitted, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public Builder setReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - readMask_ = value; - } else { - readMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return. If empty or omitted, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (readMaskBuilder_ == null) { - readMask_ = builderForValue.build(); - } else { - readMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return. If empty or omitted, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public Builder mergeReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && readMask_ != null - && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getReadMaskBuilder().mergeFrom(value); - } else { - readMask_ = value; - } - } else { - readMaskBuilder_.mergeFrom(value); - } - if (readMask_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The fields to return. If empty or omitted, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public Builder clearReadMask() { - bitField0_ = (bitField0_ & ~0x00000002); - readMask_ = null; - if (readMaskBuilder_ != null) { - readMaskBuilder_.dispose(); - readMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return. If empty or omitted, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetReadMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The fields to return. If empty or omitted, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - if (readMaskBuilder_ != null) { - return readMaskBuilder_.getMessageOrBuilder(); - } else { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - } - - /** - * - * - *
-     * The fields to return. If empty or omitted, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - internalGetReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), getParentForChildren(), isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.GetEntryGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.GetEntryGroupRequest) - private static final com.google.cloud.datacatalog.v1.GetEntryGroupRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.GetEntryGroupRequest(); - } - - public static com.google.cloud.datacatalog.v1.GetEntryGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEntryGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetEntryGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequestOrBuilder.java deleted file mode 100644 index 7ee009e3cc15..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface GetEntryGroupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.GetEntryGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry group to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the entry group to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The fields to return. If empty or omitted, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return Whether the readMask field is set. - */ - boolean hasReadMask(); - - /** - * - * - *
-   * The fields to return. If empty or omitted, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return The readMask. - */ - com.google.protobuf.FieldMask getReadMask(); - - /** - * - * - *
-   * The fields to return. If empty or omitted, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequest.java deleted file mode 100644 index c38ffb7733a5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequest.java +++ /dev/null @@ -1,612 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [GetEntry][google.cloud.datacatalog.v1.DataCatalog.GetEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetEntryRequest} - */ -@com.google.protobuf.Generated -public final class GetEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetEntryRequest) - GetEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GetEntryRequest"); - } - - // Use GetEntryRequest.newBuilder() to construct. - private GetEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GetEntryRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GetEntryRequest.class, - com.google.cloud.datacatalog.v1.GetEntryRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the entry to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the entry to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1.GetEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.GetEntryRequest other = - (com.google.cloud.datacatalog.v1.GetEntryRequest) 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.datacatalog.v1.GetEntryRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.GetEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [GetEntry][google.cloud.datacatalog.v1.DataCatalog.GetEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.GetEntryRequest) - com.google.cloud.datacatalog.v1.GetEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GetEntryRequest.class, - com.google.cloud.datacatalog.v1.GetEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.GetEntryRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.GetEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetEntryRequest build() { - com.google.cloud.datacatalog.v1.GetEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1.GetEntryRequest result = - new com.google.cloud.datacatalog.v1.GetEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.GetEntryRequest 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.datacatalog.v1.GetEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.GetEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.GetEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1.GetEntryRequest.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 entry to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.GetEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.GetEntryRequest) - private static final com.google.cloud.datacatalog.v1.GetEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.GetEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1.GetEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequestOrBuilder.java deleted file mode 100644 index d0be5ee3b0a6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetEntryRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface GetEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.GetEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the entry to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequest.java deleted file mode 100644 index e4d9b4aa2949..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequest.java +++ /dev/null @@ -1,612 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [GetPolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.GetPolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetPolicyTagRequest} - */ -@com.google.protobuf.Generated -public final class GetPolicyTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetPolicyTagRequest) - GetPolicyTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GetPolicyTagRequest"); - } - - // Use GetPolicyTagRequest.newBuilder() to construct. - private GetPolicyTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GetPolicyTagRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GetPolicyTagRequest.class, - com.google.cloud.datacatalog.v1.GetPolicyTagRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. Resource name of the policy tag.
-   * 
- * - * - * 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. Resource name of the policy tag.
-   * 
- * - * - * 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.datacatalog.v1.GetPolicyTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.GetPolicyTagRequest other = - (com.google.cloud.datacatalog.v1.GetPolicyTagRequest) 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.datacatalog.v1.GetPolicyTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.GetPolicyTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [GetPolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.GetPolicyTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetPolicyTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.GetPolicyTagRequest) - com.google.cloud.datacatalog.v1.GetPolicyTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GetPolicyTagRequest.class, - com.google.cloud.datacatalog.v1.GetPolicyTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.GetPolicyTagRequest.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.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetPolicyTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.GetPolicyTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetPolicyTagRequest build() { - com.google.cloud.datacatalog.v1.GetPolicyTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetPolicyTagRequest buildPartial() { - com.google.cloud.datacatalog.v1.GetPolicyTagRequest result = - new com.google.cloud.datacatalog.v1.GetPolicyTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.GetPolicyTagRequest 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.datacatalog.v1.GetPolicyTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.GetPolicyTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.GetPolicyTagRequest other) { - if (other == com.google.cloud.datacatalog.v1.GetPolicyTagRequest.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. Resource name of the policy tag.
-     * 
- * - * - * 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. Resource name of the policy tag.
-     * 
- * - * - * 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. Resource name of the policy tag.
-     * 
- * - * - * 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. Resource name of the policy tag.
-     * 
- * - * - * 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. Resource name of the policy tag.
-     * 
- * - * - * 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.datacatalog.v1.GetPolicyTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.GetPolicyTagRequest) - private static final com.google.cloud.datacatalog.v1.GetPolicyTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.GetPolicyTagRequest(); - } - - public static com.google.cloud.datacatalog.v1.GetPolicyTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetPolicyTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequestOrBuilder.java deleted file mode 100644 index 6972e15b71a7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetPolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface GetPolicyTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.GetPolicyTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the policy tag.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. Resource name of the policy tag.
-   * 
- * - * - * 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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequest.java deleted file mode 100644 index c6e5b1013995..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequest.java +++ /dev/null @@ -1,613 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [GetTagTemplate][google.cloud.datacatalog.v1.DataCatalog.GetTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetTagTemplateRequest} - */ -@com.google.protobuf.Generated -public final class GetTagTemplateRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetTagTemplateRequest) - GetTagTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GetTagTemplateRequest"); - } - - // Use GetTagTemplateRequest.newBuilder() to construct. - private GetTagTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GetTagTemplateRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GetTagTemplateRequest.class, - com.google.cloud.datacatalog.v1.GetTagTemplateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the tag template to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag template to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1.GetTagTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.GetTagTemplateRequest other = - (com.google.cloud.datacatalog.v1.GetTagTemplateRequest) 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.datacatalog.v1.GetTagTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.GetTagTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [GetTagTemplate][google.cloud.datacatalog.v1.DataCatalog.GetTagTemplate].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetTagTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.GetTagTemplateRequest) - com.google.cloud.datacatalog.v1.GetTagTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GetTagTemplateRequest.class, - com.google.cloud.datacatalog.v1.GetTagTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.GetTagTemplateRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_GetTagTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetTagTemplateRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.GetTagTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetTagTemplateRequest build() { - com.google.cloud.datacatalog.v1.GetTagTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetTagTemplateRequest buildPartial() { - com.google.cloud.datacatalog.v1.GetTagTemplateRequest result = - new com.google.cloud.datacatalog.v1.GetTagTemplateRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.GetTagTemplateRequest 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.datacatalog.v1.GetTagTemplateRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.GetTagTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.GetTagTemplateRequest other) { - if (other == com.google.cloud.datacatalog.v1.GetTagTemplateRequest.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 tag template to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.GetTagTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.GetTagTemplateRequest) - private static final com.google.cloud.datacatalog.v1.GetTagTemplateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.GetTagTemplateRequest(); - } - - public static com.google.cloud.datacatalog.v1.GetTagTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTagTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetTagTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequestOrBuilder.java deleted file mode 100644 index 92691ba38d45..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface GetTagTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.GetTagTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag template to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag template to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequest.java deleted file mode 100644 index 4f115e32edf1..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequest.java +++ /dev/null @@ -1,612 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [GetTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.GetTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetTaxonomyRequest} - */ -@com.google.protobuf.Generated -public final class GetTaxonomyRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.GetTaxonomyRequest) - GetTaxonomyRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GetTaxonomyRequest"); - } - - // Use GetTaxonomyRequest.newBuilder() to construct. - private GetTaxonomyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GetTaxonomyRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GetTaxonomyRequest.class, - com.google.cloud.datacatalog.v1.GetTaxonomyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. Resource name of the taxonomy to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. Resource name of the taxonomy to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1.GetTaxonomyRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.GetTaxonomyRequest other = - (com.google.cloud.datacatalog.v1.GetTaxonomyRequest) 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.datacatalog.v1.GetTaxonomyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.GetTaxonomyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [GetTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.GetTaxonomy].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.GetTaxonomyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.GetTaxonomyRequest) - com.google.cloud.datacatalog.v1.GetTaxonomyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.GetTaxonomyRequest.class, - com.google.cloud.datacatalog.v1.GetTaxonomyRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.GetTaxonomyRequest.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.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetTaxonomyRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.GetTaxonomyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetTaxonomyRequest build() { - com.google.cloud.datacatalog.v1.GetTaxonomyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetTaxonomyRequest buildPartial() { - com.google.cloud.datacatalog.v1.GetTaxonomyRequest result = - new com.google.cloud.datacatalog.v1.GetTaxonomyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.GetTaxonomyRequest 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.datacatalog.v1.GetTaxonomyRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.GetTaxonomyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.GetTaxonomyRequest other) { - if (other == com.google.cloud.datacatalog.v1.GetTaxonomyRequest.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. Resource name of the taxonomy to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. Resource name of the taxonomy to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. Resource name of the taxonomy to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Resource name of the taxonomy to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Resource name of the taxonomy to get.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.GetTaxonomyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.GetTaxonomyRequest) - private static final com.google.cloud.datacatalog.v1.GetTaxonomyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.GetTaxonomyRequest(); - } - - public static com.google.cloud.datacatalog.v1.GetTaxonomyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTaxonomyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.GetTaxonomyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequestOrBuilder.java deleted file mode 100644 index 508a24f91682..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/GetTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface GetTaxonomyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.GetTaxonomyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the taxonomy to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. Resource name of the taxonomy to get.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadata.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadata.java deleted file mode 100644 index 8d1e7d72888f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadata.java +++ /dev/null @@ -1,1366 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Metadata message for [long-running operation][google.longrunning.Operation]
- * returned by the
- * [ImportEntries][google.cloud.datacatalog.v1.DataCatalog.ImportEntries].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportEntriesMetadata} - */ -@com.google.protobuf.Generated -public final class ImportEntriesMetadata extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportEntriesMetadata) - ImportEntriesMetadataOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ImportEntriesMetadata"); - } - - // Use ImportEntriesMetadata.newBuilder() to construct. - private ImportEntriesMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ImportEntriesMetadata() { - state_ = 0; - errors_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ImportEntriesMetadata.class, - com.google.cloud.datacatalog.v1.ImportEntriesMetadata.Builder.class); - } - - /** - * - * - *
-   * Enum holding possible states of the import operation.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState} - */ - public enum ImportState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This value is unused.
-     * 
- * - * IMPORT_STATE_UNSPECIFIED = 0; - */ - IMPORT_STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The dump with entries has been queued for import.
-     * 
- * - * IMPORT_QUEUED = 1; - */ - IMPORT_QUEUED(1), - /** - * - * - *
-     * The import of entries is in progress.
-     * 
- * - * IMPORT_IN_PROGRESS = 2; - */ - IMPORT_IN_PROGRESS(2), - /** - * - * - *
-     * The import of entries has been finished.
-     * 
- * - * IMPORT_DONE = 3; - */ - IMPORT_DONE(3), - /** - * - * - *
-     * The import of entries has been abandoned in favor of a newer request.
-     * 
- * - * IMPORT_OBSOLETE = 4; - */ - IMPORT_OBSOLETE(4), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ImportState"); - } - - /** - * - * - *
-     * Default value. This value is unused.
-     * 
- * - * IMPORT_STATE_UNSPECIFIED = 0; - */ - public static final int IMPORT_STATE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * The dump with entries has been queued for import.
-     * 
- * - * IMPORT_QUEUED = 1; - */ - public static final int IMPORT_QUEUED_VALUE = 1; - - /** - * - * - *
-     * The import of entries is in progress.
-     * 
- * - * IMPORT_IN_PROGRESS = 2; - */ - public static final int IMPORT_IN_PROGRESS_VALUE = 2; - - /** - * - * - *
-     * The import of entries has been finished.
-     * 
- * - * IMPORT_DONE = 3; - */ - public static final int IMPORT_DONE_VALUE = 3; - - /** - * - * - *
-     * The import of entries has been abandoned in favor of a newer request.
-     * 
- * - * IMPORT_OBSOLETE = 4; - */ - public static final int IMPORT_OBSOLETE_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 ImportState 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 ImportState forNumber(int value) { - switch (value) { - case 0: - return IMPORT_STATE_UNSPECIFIED; - case 1: - return IMPORT_QUEUED; - case 2: - return IMPORT_IN_PROGRESS; - case 3: - return IMPORT_DONE; - case 4: - return IMPORT_OBSOLETE; - 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 ImportState findValueByNumber(int number) { - return ImportState.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.datacatalog.v1.ImportEntriesMetadata.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final ImportState[] VALUES = values(); - - public static ImportState 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 ImportState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState) - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_ = 0; - - /** - * - * - *
-   * State of the import operation.
-   * 
- * - * .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - - /** - * - * - *
-   * State of the import operation.
-   * 
- * - * .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState getState() { - com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState result = - com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState.forNumber(state_); - return result == null - ? com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState.UNRECOGNIZED - : result; - } - - public static final int ERRORS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List errors_; - - /** - * - * - *
-   * Partial errors that are encountered during the ImportEntries operation.
-   * There is no guarantee that all the encountered errors are reported.
-   * However, if no errors are reported, it means that no errors were
-   * encountered.
-   * 
- * - * repeated .google.rpc.Status errors = 2; - */ - @java.lang.Override - public java.util.List getErrorsList() { - return errors_; - } - - /** - * - * - *
-   * Partial errors that are encountered during the ImportEntries operation.
-   * There is no guarantee that all the encountered errors are reported.
-   * However, if no errors are reported, it means that no errors were
-   * encountered.
-   * 
- * - * repeated .google.rpc.Status errors = 2; - */ - @java.lang.Override - public java.util.List getErrorsOrBuilderList() { - return errors_; - } - - /** - * - * - *
-   * Partial errors that are encountered during the ImportEntries operation.
-   * There is no guarantee that all the encountered errors are reported.
-   * However, if no errors are reported, it means that no errors were
-   * encountered.
-   * 
- * - * repeated .google.rpc.Status errors = 2; - */ - @java.lang.Override - public int getErrorsCount() { - return errors_.size(); - } - - /** - * - * - *
-   * Partial errors that are encountered during the ImportEntries operation.
-   * There is no guarantee that all the encountered errors are reported.
-   * However, if no errors are reported, it means that no errors were
-   * encountered.
-   * 
- * - * repeated .google.rpc.Status errors = 2; - */ - @java.lang.Override - public com.google.rpc.Status getErrors(int index) { - return errors_.get(index); - } - - /** - * - * - *
-   * Partial errors that are encountered during the ImportEntries operation.
-   * There is no guarantee that all the encountered errors are reported.
-   * However, if no errors are reported, it means that no errors were
-   * encountered.
-   * 
- * - * repeated .google.rpc.Status errors = 2; - */ - @java.lang.Override - public com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index) { - return errors_.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 (state_ - != com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState - .IMPORT_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, state_); - } - for (int i = 0; i < errors_.size(); i++) { - output.writeMessage(2, errors_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ - != com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState - .IMPORT_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - for (int i = 0; i < errors_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errors_.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.datacatalog.v1.ImportEntriesMetadata)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ImportEntriesMetadata other = - (com.google.cloud.datacatalog.v1.ImportEntriesMetadata) obj; - - if (state_ != other.state_) return false; - if (!getErrorsList().equals(other.getErrorsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (getErrorsCount() > 0) { - hash = (37 * hash) + ERRORS_FIELD_NUMBER; - hash = (53 * hash) + getErrorsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ImportEntriesMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 message for [long-running operation][google.longrunning.Operation]
-   * returned by the
-   * [ImportEntries][google.cloud.datacatalog.v1.DataCatalog.ImportEntries].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportEntriesMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ImportEntriesMetadata) - com.google.cloud.datacatalog.v1.ImportEntriesMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ImportEntriesMetadata.class, - com.google.cloud.datacatalog.v1.ImportEntriesMetadata.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ImportEntriesMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - state_ = 0; - if (errorsBuilder_ == null) { - errors_ = java.util.Collections.emptyList(); - } else { - errors_ = null; - errorsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesMetadata getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ImportEntriesMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesMetadata build() { - com.google.cloud.datacatalog.v1.ImportEntriesMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesMetadata buildPartial() { - com.google.cloud.datacatalog.v1.ImportEntriesMetadata result = - new com.google.cloud.datacatalog.v1.ImportEntriesMetadata(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.ImportEntriesMetadata 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.datacatalog.v1.ImportEntriesMetadata result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.state_ = state_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ImportEntriesMetadata) { - return mergeFrom((com.google.cloud.datacatalog.v1.ImportEntriesMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ImportEntriesMetadata other) { - if (other == com.google.cloud.datacatalog.v1.ImportEntriesMetadata.getDefaultInstance()) - return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - 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_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.rpc.Status m = - input.readMessage(com.google.rpc.Status.parser(), extensionRegistry); - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(m); - } else { - errorsBuilder_.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 state_ = 0; - - /** - * - * - *
-     * State of the import operation.
-     * 
- * - * .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - - /** - * - * - *
-     * State of the import operation.
-     * 
- * - * .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * State of the import operation.
-     * 
- * - * .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState getState() { - com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState result = - com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState.forNumber(state_); - return result == null - ? com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * State of the import operation.
-     * 
- * - * .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState( - com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - state_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * State of the import operation.
-     * 
- * - * .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000001); - state_ = 0; - onChanged(); - return this; - } - - 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.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - errorsBuilder_; - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public java.util.List getErrorsList() { - if (errorsBuilder_ == null) { - return java.util.Collections.unmodifiableList(errors_); - } else { - return errorsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public int getErrorsCount() { - if (errorsBuilder_ == null) { - return errors_.size(); - } else { - return errorsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public com.google.rpc.Status getErrors(int index) { - if (errorsBuilder_ == null) { - return errors_.get(index); - } else { - return errorsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public Builder setErrors(int index, com.google.rpc.Status value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.set(index, value); - onChanged(); - } else { - errorsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public Builder setErrors(int index, com.google.rpc.Status.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.set(index, builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public Builder addErrors(com.google.rpc.Status value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(value); - onChanged(); - } else { - errorsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public Builder addErrors(int index, com.google.rpc.Status value) { - if (errorsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureErrorsIsMutable(); - errors_.add(index, value); - onChanged(); - } else { - errorsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public Builder addErrors(com.google.rpc.Status.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public Builder addErrors(int index, com.google.rpc.Status.Builder builderForValue) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.add(index, builderForValue.build()); - onChanged(); - } else { - errorsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status 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; - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public Builder clearErrors() { - if (errorsBuilder_ == null) { - errors_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - errorsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public Builder removeErrors(int index) { - if (errorsBuilder_ == null) { - ensureErrorsIsMutable(); - errors_.remove(index); - onChanged(); - } else { - errorsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public com.google.rpc.Status.Builder getErrorsBuilder(int index) { - return internalGetErrorsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index) { - if (errorsBuilder_ == null) { - return errors_.get(index); - } else { - return errorsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public java.util.List getErrorsOrBuilderList() { - if (errorsBuilder_ != null) { - return errorsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(errors_); - } - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public com.google.rpc.Status.Builder addErrorsBuilder() { - return internalGetErrorsFieldBuilder().addBuilder(com.google.rpc.Status.getDefaultInstance()); - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public com.google.rpc.Status.Builder addErrorsBuilder(int index) { - return internalGetErrorsFieldBuilder() - .addBuilder(index, com.google.rpc.Status.getDefaultInstance()); - } - - /** - * - * - *
-     * Partial errors that are encountered during the ImportEntries operation.
-     * There is no guarantee that all the encountered errors are reported.
-     * However, if no errors are reported, it means that no errors were
-     * encountered.
-     * 
- * - * repeated .google.rpc.Status errors = 2; - */ - public java.util.List getErrorsBuilderList() { - return internalGetErrorsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> - internalGetErrorsFieldBuilder() { - if (errorsBuilder_ == null) { - errorsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.rpc.Status, - com.google.rpc.Status.Builder, - com.google.rpc.StatusOrBuilder>( - errors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - errors_ = null; - } - return errorsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ImportEntriesMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ImportEntriesMetadata) - private static final com.google.cloud.datacatalog.v1.ImportEntriesMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ImportEntriesMetadata(); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportEntriesMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadataOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadataOrBuilder.java deleted file mode 100644 index 169e84bbebcb..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesMetadataOrBuilder.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ImportEntriesMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ImportEntriesMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * State of the import operation.
-   * 
- * - * .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - - /** - * - * - *
-   * State of the import operation.
-   * 
- * - * .google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState state = 1; - * - * @return The state. - */ - com.google.cloud.datacatalog.v1.ImportEntriesMetadata.ImportState getState(); - - /** - * - * - *
-   * Partial errors that are encountered during the ImportEntries operation.
-   * There is no guarantee that all the encountered errors are reported.
-   * However, if no errors are reported, it means that no errors were
-   * encountered.
-   * 
- * - * repeated .google.rpc.Status errors = 2; - */ - java.util.List getErrorsList(); - - /** - * - * - *
-   * Partial errors that are encountered during the ImportEntries operation.
-   * There is no guarantee that all the encountered errors are reported.
-   * However, if no errors are reported, it means that no errors were
-   * encountered.
-   * 
- * - * repeated .google.rpc.Status errors = 2; - */ - com.google.rpc.Status getErrors(int index); - - /** - * - * - *
-   * Partial errors that are encountered during the ImportEntries operation.
-   * There is no guarantee that all the encountered errors are reported.
-   * However, if no errors are reported, it means that no errors were
-   * encountered.
-   * 
- * - * repeated .google.rpc.Status errors = 2; - */ - int getErrorsCount(); - - /** - * - * - *
-   * Partial errors that are encountered during the ImportEntries operation.
-   * There is no guarantee that all the encountered errors are reported.
-   * However, if no errors are reported, it means that no errors were
-   * encountered.
-   * 
- * - * repeated .google.rpc.Status errors = 2; - */ - java.util.List getErrorsOrBuilderList(); - - /** - * - * - *
-   * Partial errors that are encountered during the ImportEntries operation.
-   * There is no guarantee that all the encountered errors are reported.
-   * However, if no errors are reported, it means that no errors were
-   * encountered.
-   * 
- * - * repeated .google.rpc.Status errors = 2; - */ - com.google.rpc.StatusOrBuilder getErrorsOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequest.java deleted file mode 100644 index 8161c910f537..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequest.java +++ /dev/null @@ -1,1133 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ImportEntries][google.cloud.datacatalog.v1.DataCatalog.ImportEntries]
- * method.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportEntriesRequest} - */ -@com.google.protobuf.Generated -public final class ImportEntriesRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportEntriesRequest) - ImportEntriesRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ImportEntriesRequest"); - } - - // Use ImportEntriesRequest.newBuilder() to construct. - private ImportEntriesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ImportEntriesRequest() { - parent_ = ""; - jobId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ImportEntriesRequest.class, - com.google.cloud.datacatalog.v1.ImportEntriesRequest.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_BUCKET_PATH(2), - 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_BUCKET_PATH; - 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 PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Target entry group for ingested entries.
-   * 
- * - * - * 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. Target entry group for ingested entries.
-   * 
- * - * - * 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 GCS_BUCKET_PATH_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-   * 
- * - * string gcs_bucket_path = 2; - * - * @return Whether the gcsBucketPath field is set. - */ - public boolean hasGcsBucketPath() { - return sourceCase_ == 2; - } - - /** - * - * - *
-   * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-   * 
- * - * string gcs_bucket_path = 2; - * - * @return The gcsBucketPath. - */ - public java.lang.String getGcsBucketPath() { - 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; - } - } - - /** - * - * - *
-   * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-   * 
- * - * string gcs_bucket_path = 2; - * - * @return The bytes for gcsBucketPath. - */ - public com.google.protobuf.ByteString getGcsBucketPathBytes() { - 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 JOB_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object jobId_ = ""; - - /** - * - * - *
-   * Optional. (Optional) Dataplex task job id, if specified will be used as
-   * part of ImportEntries LRO ID
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The jobId. - */ - @java.lang.Override - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } - } - - /** - * - * - *
-   * Optional. (Optional) Dataplex task job id, if specified will be used as
-   * part of ImportEntries LRO ID
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for jobId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = 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 (sourceCase_ == 2) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, source_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jobId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, jobId_); - } - 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 (sourceCase_ == 2) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, source_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(jobId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, jobId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ImportEntriesRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ImportEntriesRequest other = - (com.google.cloud.datacatalog.v1.ImportEntriesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getJobId().equals(other.getJobId())) return false; - if (!getSourceCase().equals(other.getSourceCase())) return false; - switch (sourceCase_) { - case 2: - if (!getGcsBucketPath().equals(other.getGcsBucketPath())) 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) + JOB_ID_FIELD_NUMBER; - hash = (53 * hash) + getJobId().hashCode(); - switch (sourceCase_) { - case 2: - hash = (37 * hash) + GCS_BUCKET_PATH_FIELD_NUMBER; - hash = (53 * hash) + getGcsBucketPath().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.ImportEntriesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ImportEntries][google.cloud.datacatalog.v1.DataCatalog.ImportEntries]
-   * method.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportEntriesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ImportEntriesRequest) - com.google.cloud.datacatalog.v1.ImportEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ImportEntriesRequest.class, - com.google.cloud.datacatalog.v1.ImportEntriesRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ImportEntriesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - jobId_ = ""; - sourceCase_ = 0; - source_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ImportEntriesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesRequest build() { - com.google.cloud.datacatalog.v1.ImportEntriesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesRequest buildPartial() { - com.google.cloud.datacatalog.v1.ImportEntriesRequest result = - new com.google.cloud.datacatalog.v1.ImportEntriesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ImportEntriesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.jobId_ = jobId_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.ImportEntriesRequest 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.datacatalog.v1.ImportEntriesRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ImportEntriesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ImportEntriesRequest other) { - if (other == com.google.cloud.datacatalog.v1.ImportEntriesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getJobId().isEmpty()) { - jobId_ = other.jobId_; - bitField0_ |= 0x00000004; - onChanged(); - } - switch (other.getSourceCase()) { - case GCS_BUCKET_PATH: - { - sourceCase_ = 2; - 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: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - sourceCase_ = 2; - source_ = s; - break; - } // case 18 - case 26: - { - jobId_ = 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 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_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. Target entry group for ingested entries.
-     * 
- * - * - * 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. Target entry group for ingested entries.
-     * 
- * - * - * 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. Target entry group for ingested entries.
-     * 
- * - * - * 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. Target entry group for ingested entries.
-     * 
- * - * - * 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. Target entry group for ingested entries.
-     * 
- * - * - * 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; - } - - /** - * - * - *
-     * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-     * 
- * - * string gcs_bucket_path = 2; - * - * @return Whether the gcsBucketPath field is set. - */ - @java.lang.Override - public boolean hasGcsBucketPath() { - return sourceCase_ == 2; - } - - /** - * - * - *
-     * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-     * 
- * - * string gcs_bucket_path = 2; - * - * @return The gcsBucketPath. - */ - @java.lang.Override - public java.lang.String getGcsBucketPath() { - 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; - } - } - - /** - * - * - *
-     * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-     * 
- * - * string gcs_bucket_path = 2; - * - * @return The bytes for gcsBucketPath. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGcsBucketPathBytes() { - 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; - } - } - - /** - * - * - *
-     * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-     * 
- * - * string gcs_bucket_path = 2; - * - * @param value The gcsBucketPath to set. - * @return This builder for chaining. - */ - public Builder setGcsBucketPath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - sourceCase_ = 2; - source_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-     * 
- * - * string gcs_bucket_path = 2; - * - * @return This builder for chaining. - */ - public Builder clearGcsBucketPath() { - if (sourceCase_ == 2) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-     * 
- * - * string gcs_bucket_path = 2; - * - * @param value The bytes for gcsBucketPath to set. - * @return This builder for chaining. - */ - public Builder setGcsBucketPathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - sourceCase_ = 2; - source_ = value; - onChanged(); - return this; - } - - private java.lang.Object jobId_ = ""; - - /** - * - * - *
-     * Optional. (Optional) Dataplex task job id, if specified will be used as
-     * part of ImportEntries LRO ID
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The jobId. - */ - public java.lang.String getJobId() { - java.lang.Object ref = jobId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - jobId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Optional. (Optional) Dataplex task job id, if specified will be used as
-     * part of ImportEntries LRO ID
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for jobId. - */ - public com.google.protobuf.ByteString getJobIdBytes() { - java.lang.Object ref = jobId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - jobId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Optional. (Optional) Dataplex task job id, if specified will be used as
-     * part of ImportEntries LRO ID
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The jobId to set. - * @return This builder for chaining. - */ - public Builder setJobId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - jobId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. (Optional) Dataplex task job id, if specified will be used as
-     * part of ImportEntries LRO ID
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearJobId() { - jobId_ = getDefaultInstance().getJobId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. (Optional) Dataplex task job id, if specified will be used as
-     * part of ImportEntries LRO ID
-     * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for jobId to set. - * @return This builder for chaining. - */ - public Builder setJobIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - jobId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ImportEntriesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ImportEntriesRequest) - private static final com.google.cloud.datacatalog.v1.ImportEntriesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ImportEntriesRequest(); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequestOrBuilder.java deleted file mode 100644 index 240e08b7185e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesRequestOrBuilder.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ImportEntriesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ImportEntriesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Target entry group for ingested entries.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Target entry group for ingested entries.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-   * 
- * - * string gcs_bucket_path = 2; - * - * @return Whether the gcsBucketPath field is set. - */ - boolean hasGcsBucketPath(); - - /** - * - * - *
-   * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-   * 
- * - * string gcs_bucket_path = 2; - * - * @return The gcsBucketPath. - */ - java.lang.String getGcsBucketPath(); - - /** - * - * - *
-   * Path to a Cloud Storage bucket that contains a dump ready for ingestion.
-   * 
- * - * string gcs_bucket_path = 2; - * - * @return The bytes for gcsBucketPath. - */ - com.google.protobuf.ByteString getGcsBucketPathBytes(); - - /** - * - * - *
-   * Optional. (Optional) Dataplex task job id, if specified will be used as
-   * part of ImportEntries LRO ID
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The jobId. - */ - java.lang.String getJobId(); - - /** - * - * - *
-   * Optional. (Optional) Dataplex task job id, if specified will be used as
-   * part of ImportEntries LRO ID
-   * 
- * - * string job_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for jobId. - */ - com.google.protobuf.ByteString getJobIdBytes(); - - com.google.cloud.datacatalog.v1.ImportEntriesRequest.SourceCase getSourceCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponse.java deleted file mode 100644 index 4701121bb52a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponse.java +++ /dev/null @@ -1,690 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for [long-running operation][google.longrunning.Operation]
- * returned by the
- * [ImportEntries][google.cloud.datacatalog.v1.DataCatalog.ImportEntries].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportEntriesResponse} - */ -@com.google.protobuf.Generated -public final class ImportEntriesResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportEntriesResponse) - ImportEntriesResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ImportEntriesResponse"); - } - - // Use ImportEntriesResponse.newBuilder() to construct. - private ImportEntriesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ImportEntriesResponse() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ImportEntriesResponse.class, - com.google.cloud.datacatalog.v1.ImportEntriesResponse.Builder.class); - } - - private int bitField0_; - public static final int UPSERTED_ENTRIES_COUNT_FIELD_NUMBER = 5; - private long upsertedEntriesCount_ = 0L; - - /** - * - * - *
-   * Cumulative number of entries created and entries updated as a result of
-   * import operation.
-   * 
- * - * optional int64 upserted_entries_count = 5; - * - * @return Whether the upsertedEntriesCount field is set. - */ - @java.lang.Override - public boolean hasUpsertedEntriesCount() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Cumulative number of entries created and entries updated as a result of
-   * import operation.
-   * 
- * - * optional int64 upserted_entries_count = 5; - * - * @return The upsertedEntriesCount. - */ - @java.lang.Override - public long getUpsertedEntriesCount() { - return upsertedEntriesCount_; - } - - public static final int DELETED_ENTRIES_COUNT_FIELD_NUMBER = 6; - private long deletedEntriesCount_ = 0L; - - /** - * - * - *
-   * Number of entries deleted as a result of import operation.
-   * 
- * - * optional int64 deleted_entries_count = 6; - * - * @return Whether the deletedEntriesCount field is set. - */ - @java.lang.Override - public boolean hasDeletedEntriesCount() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Number of entries deleted as a result of import operation.
-   * 
- * - * optional int64 deleted_entries_count = 6; - * - * @return The deletedEntriesCount. - */ - @java.lang.Override - public long getDeletedEntriesCount() { - return deletedEntriesCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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.writeInt64(5, upsertedEntriesCount_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(6, deletedEntriesCount_); - } - 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.computeInt64Size(5, upsertedEntriesCount_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(6, deletedEntriesCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ImportEntriesResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ImportEntriesResponse other = - (com.google.cloud.datacatalog.v1.ImportEntriesResponse) obj; - - if (hasUpsertedEntriesCount() != other.hasUpsertedEntriesCount()) return false; - if (hasUpsertedEntriesCount()) { - if (getUpsertedEntriesCount() != other.getUpsertedEntriesCount()) return false; - } - if (hasDeletedEntriesCount() != other.hasDeletedEntriesCount()) return false; - if (hasDeletedEntriesCount()) { - if (getDeletedEntriesCount() != other.getDeletedEntriesCount()) return false; - } - if (!getUnknownFields().equals(other.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 (hasUpsertedEntriesCount()) { - hash = (37 * hash) + UPSERTED_ENTRIES_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUpsertedEntriesCount()); - } - if (hasDeletedEntriesCount()) { - hash = (37 * hash) + DELETED_ENTRIES_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDeletedEntriesCount()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ImportEntriesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 [long-running operation][google.longrunning.Operation]
-   * returned by the
-   * [ImportEntries][google.cloud.datacatalog.v1.DataCatalog.ImportEntries].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportEntriesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ImportEntriesResponse) - com.google.cloud.datacatalog.v1.ImportEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ImportEntriesResponse.class, - com.google.cloud.datacatalog.v1.ImportEntriesResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ImportEntriesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - upsertedEntriesCount_ = 0L; - deletedEntriesCount_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ImportEntriesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ImportEntriesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesResponse build() { - com.google.cloud.datacatalog.v1.ImportEntriesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesResponse buildPartial() { - com.google.cloud.datacatalog.v1.ImportEntriesResponse result = - new com.google.cloud.datacatalog.v1.ImportEntriesResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ImportEntriesResponse result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.upsertedEntriesCount_ = upsertedEntriesCount_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.deletedEntriesCount_ = deletedEntriesCount_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ImportEntriesResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.ImportEntriesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ImportEntriesResponse other) { - if (other == com.google.cloud.datacatalog.v1.ImportEntriesResponse.getDefaultInstance()) - return this; - if (other.hasUpsertedEntriesCount()) { - setUpsertedEntriesCount(other.getUpsertedEntriesCount()); - } - if (other.hasDeletedEntriesCount()) { - setDeletedEntriesCount(other.getDeletedEntriesCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 40: - { - upsertedEntriesCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 40 - case 48: - { - deletedEntriesCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - 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 long upsertedEntriesCount_; - - /** - * - * - *
-     * Cumulative number of entries created and entries updated as a result of
-     * import operation.
-     * 
- * - * optional int64 upserted_entries_count = 5; - * - * @return Whether the upsertedEntriesCount field is set. - */ - @java.lang.Override - public boolean hasUpsertedEntriesCount() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Cumulative number of entries created and entries updated as a result of
-     * import operation.
-     * 
- * - * optional int64 upserted_entries_count = 5; - * - * @return The upsertedEntriesCount. - */ - @java.lang.Override - public long getUpsertedEntriesCount() { - return upsertedEntriesCount_; - } - - /** - * - * - *
-     * Cumulative number of entries created and entries updated as a result of
-     * import operation.
-     * 
- * - * optional int64 upserted_entries_count = 5; - * - * @param value The upsertedEntriesCount to set. - * @return This builder for chaining. - */ - public Builder setUpsertedEntriesCount(long value) { - - upsertedEntriesCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Cumulative number of entries created and entries updated as a result of
-     * import operation.
-     * 
- * - * optional int64 upserted_entries_count = 5; - * - * @return This builder for chaining. - */ - public Builder clearUpsertedEntriesCount() { - bitField0_ = (bitField0_ & ~0x00000001); - upsertedEntriesCount_ = 0L; - onChanged(); - return this; - } - - private long deletedEntriesCount_; - - /** - * - * - *
-     * Number of entries deleted as a result of import operation.
-     * 
- * - * optional int64 deleted_entries_count = 6; - * - * @return Whether the deletedEntriesCount field is set. - */ - @java.lang.Override - public boolean hasDeletedEntriesCount() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Number of entries deleted as a result of import operation.
-     * 
- * - * optional int64 deleted_entries_count = 6; - * - * @return The deletedEntriesCount. - */ - @java.lang.Override - public long getDeletedEntriesCount() { - return deletedEntriesCount_; - } - - /** - * - * - *
-     * Number of entries deleted as a result of import operation.
-     * 
- * - * optional int64 deleted_entries_count = 6; - * - * @param value The deletedEntriesCount to set. - * @return This builder for chaining. - */ - public Builder setDeletedEntriesCount(long value) { - - deletedEntriesCount_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Number of entries deleted as a result of import operation.
-     * 
- * - * optional int64 deleted_entries_count = 6; - * - * @return This builder for chaining. - */ - public Builder clearDeletedEntriesCount() { - bitField0_ = (bitField0_ & ~0x00000002); - deletedEntriesCount_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ImportEntriesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ImportEntriesResponse) - private static final com.google.cloud.datacatalog.v1.ImportEntriesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ImportEntriesResponse(); - } - - public static com.google.cloud.datacatalog.v1.ImportEntriesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportEntriesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponseOrBuilder.java deleted file mode 100644 index 91487015807a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportEntriesResponseOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ImportEntriesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ImportEntriesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Cumulative number of entries created and entries updated as a result of
-   * import operation.
-   * 
- * - * optional int64 upserted_entries_count = 5; - * - * @return Whether the upsertedEntriesCount field is set. - */ - boolean hasUpsertedEntriesCount(); - - /** - * - * - *
-   * Cumulative number of entries created and entries updated as a result of
-   * import operation.
-   * 
- * - * optional int64 upserted_entries_count = 5; - * - * @return The upsertedEntriesCount. - */ - long getUpsertedEntriesCount(); - - /** - * - * - *
-   * Number of entries deleted as a result of import operation.
-   * 
- * - * optional int64 deleted_entries_count = 6; - * - * @return Whether the deletedEntriesCount field is set. - */ - boolean hasDeletedEntriesCount(); - - /** - * - * - *
-   * Number of entries deleted as a result of import operation.
-   * 
- * - * optional int64 deleted_entries_count = 6; - * - * @return The deletedEntriesCount. - */ - long getDeletedEntriesCount(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequest.java deleted file mode 100644 index af1dffe45de4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequest.java +++ /dev/null @@ -1,1324 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ImportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportTaxonomiesRequest} - */ -@com.google.protobuf.Generated -public final class ImportTaxonomiesRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportTaxonomiesRequest) - ImportTaxonomiesRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ImportTaxonomiesRequest"); - } - - // Use ImportTaxonomiesRequest.newBuilder() to construct. - private ImportTaxonomiesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ImportTaxonomiesRequest() { - parent_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest.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 { - INLINE_SOURCE(2), - CROSS_REGIONAL_SOURCE(3), - 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 INLINE_SOURCE; - case 3: - return CROSS_REGIONAL_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 PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of project that the imported taxonomies will belong
-   * to.
-   * 
- * - * - * 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. Resource name of project that the imported taxonomies will belong
-   * to.
-   * 
- * - * - * 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 INLINE_SOURCE_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Inline source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - * - * @return Whether the inlineSource field is set. - */ - @java.lang.Override - public boolean hasInlineSource() { - return sourceCase_ == 2; - } - - /** - * - * - *
-   * Inline source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - * - * @return The inlineSource. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.InlineSource getInlineSource() { - if (sourceCase_ == 2) { - return (com.google.cloud.datacatalog.v1.InlineSource) source_; - } - return com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance(); - } - - /** - * - * - *
-   * Inline source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.InlineSourceOrBuilder getInlineSourceOrBuilder() { - if (sourceCase_ == 2) { - return (com.google.cloud.datacatalog.v1.InlineSource) source_; - } - return com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance(); - } - - public static final int CROSS_REGIONAL_SOURCE_FIELD_NUMBER = 3; - - /** - * - * - *
-   * Cross-regional source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - * - * @return Whether the crossRegionalSource field is set. - */ - @java.lang.Override - public boolean hasCrossRegionalSource() { - return sourceCase_ == 3; - } - - /** - * - * - *
-   * Cross-regional source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - * - * @return The crossRegionalSource. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CrossRegionalSource getCrossRegionalSource() { - if (sourceCase_ == 3) { - return (com.google.cloud.datacatalog.v1.CrossRegionalSource) source_; - } - return com.google.cloud.datacatalog.v1.CrossRegionalSource.getDefaultInstance(); - } - - /** - * - * - *
-   * Cross-regional source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CrossRegionalSourceOrBuilder - getCrossRegionalSourceOrBuilder() { - if (sourceCase_ == 3) { - return (com.google.cloud.datacatalog.v1.CrossRegionalSource) source_; - } - return com.google.cloud.datacatalog.v1.CrossRegionalSource.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); - } - if (sourceCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datacatalog.v1.InlineSource) source_); - } - if (sourceCase_ == 3) { - output.writeMessage(3, (com.google.cloud.datacatalog.v1.CrossRegionalSource) 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(parent_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); - } - if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datacatalog.v1.InlineSource) source_); - } - if (sourceCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.datacatalog.v1.CrossRegionalSource) 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.datacatalog.v1.ImportTaxonomiesRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest other = - (com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getSourceCase().equals(other.getSourceCase())) return false; - switch (sourceCase_) { - case 2: - if (!getInlineSource().equals(other.getInlineSource())) return false; - break; - case 3: - if (!getCrossRegionalSource().equals(other.getCrossRegionalSource())) 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(); - switch (sourceCase_) { - case 2: - hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getInlineSource().hashCode(); - break; - case 3: - hash = (37 * hash) + CROSS_REGIONAL_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getCrossRegionalSource().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ImportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportTaxonomiesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ImportTaxonomiesRequest) - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - if (inlineSourceBuilder_ != null) { - inlineSourceBuilder_.clear(); - } - if (crossRegionalSourceBuilder_ != null) { - crossRegionalSourceBuilder_.clear(); - } - sourceCase_ = 0; - source_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest build() { - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest buildPartial() { - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest result = - new com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - private void buildPartialOneofs( - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { - result.source_ = inlineSourceBuilder_.build(); - } - if (sourceCase_ == 3 && crossRegionalSourceBuilder_ != null) { - result.source_ = crossRegionalSourceBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest other) { - if (other == com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - switch (other.getSourceCase()) { - case INLINE_SOURCE: - { - mergeInlineSource(other.getInlineSource()); - break; - } - case CROSS_REGIONAL_SOURCE: - { - mergeCrossRegionalSource(other.getCrossRegionalSource()); - 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: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetInlineSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetCrossRegionalSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 3; - 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 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_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. Resource name of project that the imported taxonomies will belong
-     * to.
-     * 
- * - * - * 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. Resource name of project that the imported taxonomies will belong
-     * to.
-     * 
- * - * - * 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. Resource name of project that the imported taxonomies will belong
-     * to.
-     * 
- * - * - * 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. Resource name of project that the imported taxonomies will belong
-     * to.
-     * 
- * - * - * 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. Resource name of project that the imported taxonomies will belong
-     * to.
-     * 
- * - * - * 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 com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.InlineSource, - com.google.cloud.datacatalog.v1.InlineSource.Builder, - com.google.cloud.datacatalog.v1.InlineSourceOrBuilder> - inlineSourceBuilder_; - - /** - * - * - *
-     * Inline source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - * - * @return Whether the inlineSource field is set. - */ - @java.lang.Override - public boolean hasInlineSource() { - return sourceCase_ == 2; - } - - /** - * - * - *
-     * Inline source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - * - * @return The inlineSource. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.InlineSource getInlineSource() { - if (inlineSourceBuilder_ == null) { - if (sourceCase_ == 2) { - return (com.google.cloud.datacatalog.v1.InlineSource) source_; - } - return com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance(); - } else { - if (sourceCase_ == 2) { - return inlineSourceBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Inline source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - */ - public Builder setInlineSource(com.google.cloud.datacatalog.v1.InlineSource value) { - if (inlineSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); - } else { - inlineSourceBuilder_.setMessage(value); - } - sourceCase_ = 2; - return this; - } - - /** - * - * - *
-     * Inline source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - */ - public Builder setInlineSource( - com.google.cloud.datacatalog.v1.InlineSource.Builder builderForValue) { - if (inlineSourceBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - inlineSourceBuilder_.setMessage(builderForValue.build()); - } - sourceCase_ = 2; - return this; - } - - /** - * - * - *
-     * Inline source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - */ - public Builder mergeInlineSource(com.google.cloud.datacatalog.v1.InlineSource value) { - if (inlineSourceBuilder_ == null) { - if (sourceCase_ == 2 - && source_ != com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance()) { - source_ = - com.google.cloud.datacatalog.v1.InlineSource.newBuilder( - (com.google.cloud.datacatalog.v1.InlineSource) source_) - .mergeFrom(value) - .buildPartial(); - } else { - source_ = value; - } - onChanged(); - } else { - if (sourceCase_ == 2) { - inlineSourceBuilder_.mergeFrom(value); - } else { - inlineSourceBuilder_.setMessage(value); - } - } - sourceCase_ = 2; - return this; - } - - /** - * - * - *
-     * Inline source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - */ - public Builder clearInlineSource() { - if (inlineSourceBuilder_ == null) { - if (sourceCase_ == 2) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - } else { - if (sourceCase_ == 2) { - sourceCase_ = 0; - source_ = null; - } - inlineSourceBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Inline source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - */ - public com.google.cloud.datacatalog.v1.InlineSource.Builder getInlineSourceBuilder() { - return internalGetInlineSourceFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Inline source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.InlineSourceOrBuilder getInlineSourceOrBuilder() { - if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { - return inlineSourceBuilder_.getMessageOrBuilder(); - } else { - if (sourceCase_ == 2) { - return (com.google.cloud.datacatalog.v1.InlineSource) source_; - } - return com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Inline source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.InlineSource, - com.google.cloud.datacatalog.v1.InlineSource.Builder, - com.google.cloud.datacatalog.v1.InlineSourceOrBuilder> - internalGetInlineSourceFieldBuilder() { - if (inlineSourceBuilder_ == null) { - if (!(sourceCase_ == 2)) { - source_ = com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance(); - } - inlineSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.InlineSource, - com.google.cloud.datacatalog.v1.InlineSource.Builder, - com.google.cloud.datacatalog.v1.InlineSourceOrBuilder>( - (com.google.cloud.datacatalog.v1.InlineSource) source_, - getParentForChildren(), - isClean()); - source_ = null; - } - sourceCase_ = 2; - onChanged(); - return inlineSourceBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CrossRegionalSource, - com.google.cloud.datacatalog.v1.CrossRegionalSource.Builder, - com.google.cloud.datacatalog.v1.CrossRegionalSourceOrBuilder> - crossRegionalSourceBuilder_; - - /** - * - * - *
-     * Cross-regional source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - * - * @return Whether the crossRegionalSource field is set. - */ - @java.lang.Override - public boolean hasCrossRegionalSource() { - return sourceCase_ == 3; - } - - /** - * - * - *
-     * Cross-regional source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - * - * @return The crossRegionalSource. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CrossRegionalSource getCrossRegionalSource() { - if (crossRegionalSourceBuilder_ == null) { - if (sourceCase_ == 3) { - return (com.google.cloud.datacatalog.v1.CrossRegionalSource) source_; - } - return com.google.cloud.datacatalog.v1.CrossRegionalSource.getDefaultInstance(); - } else { - if (sourceCase_ == 3) { - return crossRegionalSourceBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.CrossRegionalSource.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Cross-regional source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - */ - public Builder setCrossRegionalSource( - com.google.cloud.datacatalog.v1.CrossRegionalSource value) { - if (crossRegionalSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); - } else { - crossRegionalSourceBuilder_.setMessage(value); - } - sourceCase_ = 3; - return this; - } - - /** - * - * - *
-     * Cross-regional source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - */ - public Builder setCrossRegionalSource( - com.google.cloud.datacatalog.v1.CrossRegionalSource.Builder builderForValue) { - if (crossRegionalSourceBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - crossRegionalSourceBuilder_.setMessage(builderForValue.build()); - } - sourceCase_ = 3; - return this; - } - - /** - * - * - *
-     * Cross-regional source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - */ - public Builder mergeCrossRegionalSource( - com.google.cloud.datacatalog.v1.CrossRegionalSource value) { - if (crossRegionalSourceBuilder_ == null) { - if (sourceCase_ == 3 - && source_ - != com.google.cloud.datacatalog.v1.CrossRegionalSource.getDefaultInstance()) { - source_ = - com.google.cloud.datacatalog.v1.CrossRegionalSource.newBuilder( - (com.google.cloud.datacatalog.v1.CrossRegionalSource) source_) - .mergeFrom(value) - .buildPartial(); - } else { - source_ = value; - } - onChanged(); - } else { - if (sourceCase_ == 3) { - crossRegionalSourceBuilder_.mergeFrom(value); - } else { - crossRegionalSourceBuilder_.setMessage(value); - } - } - sourceCase_ = 3; - return this; - } - - /** - * - * - *
-     * Cross-regional source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - */ - public Builder clearCrossRegionalSource() { - if (crossRegionalSourceBuilder_ == null) { - if (sourceCase_ == 3) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - } else { - if (sourceCase_ == 3) { - sourceCase_ = 0; - source_ = null; - } - crossRegionalSourceBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Cross-regional source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - */ - public com.google.cloud.datacatalog.v1.CrossRegionalSource.Builder - getCrossRegionalSourceBuilder() { - return internalGetCrossRegionalSourceFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Cross-regional source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CrossRegionalSourceOrBuilder - getCrossRegionalSourceOrBuilder() { - if ((sourceCase_ == 3) && (crossRegionalSourceBuilder_ != null)) { - return crossRegionalSourceBuilder_.getMessageOrBuilder(); - } else { - if (sourceCase_ == 3) { - return (com.google.cloud.datacatalog.v1.CrossRegionalSource) source_; - } - return com.google.cloud.datacatalog.v1.CrossRegionalSource.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Cross-regional source taxonomy to import.
-     * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CrossRegionalSource, - com.google.cloud.datacatalog.v1.CrossRegionalSource.Builder, - com.google.cloud.datacatalog.v1.CrossRegionalSourceOrBuilder> - internalGetCrossRegionalSourceFieldBuilder() { - if (crossRegionalSourceBuilder_ == null) { - if (!(sourceCase_ == 3)) { - source_ = com.google.cloud.datacatalog.v1.CrossRegionalSource.getDefaultInstance(); - } - crossRegionalSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CrossRegionalSource, - com.google.cloud.datacatalog.v1.CrossRegionalSource.Builder, - com.google.cloud.datacatalog.v1.CrossRegionalSourceOrBuilder>( - (com.google.cloud.datacatalog.v1.CrossRegionalSource) source_, - getParentForChildren(), - isClean()); - source_ = null; - } - sourceCase_ = 3; - onChanged(); - return crossRegionalSourceBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ImportTaxonomiesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ImportTaxonomiesRequest) - private static final com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest(); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportTaxonomiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequestOrBuilder.java deleted file mode 100644 index b29269bb108d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ImportTaxonomiesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ImportTaxonomiesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of project that the imported taxonomies will belong
-   * to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of project that the imported taxonomies will belong
-   * to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Inline source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - * - * @return Whether the inlineSource field is set. - */ - boolean hasInlineSource(); - - /** - * - * - *
-   * Inline source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - * - * @return The inlineSource. - */ - com.google.cloud.datacatalog.v1.InlineSource getInlineSource(); - - /** - * - * - *
-   * Inline source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.InlineSource inline_source = 2; - */ - com.google.cloud.datacatalog.v1.InlineSourceOrBuilder getInlineSourceOrBuilder(); - - /** - * - * - *
-   * Cross-regional source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - * - * @return Whether the crossRegionalSource field is set. - */ - boolean hasCrossRegionalSource(); - - /** - * - * - *
-   * Cross-regional source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - * - * @return The crossRegionalSource. - */ - com.google.cloud.datacatalog.v1.CrossRegionalSource getCrossRegionalSource(); - - /** - * - * - *
-   * Cross-regional source taxonomy to import.
-   * 
- * - * .google.cloud.datacatalog.v1.CrossRegionalSource cross_regional_source = 3; - */ - com.google.cloud.datacatalog.v1.CrossRegionalSourceOrBuilder getCrossRegionalSourceOrBuilder(); - - com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest.SourceCase getSourceCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponse.java deleted file mode 100644 index 770734ac5955..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponse.java +++ /dev/null @@ -1,926 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for
- * [ImportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportTaxonomiesResponse} - */ -@com.google.protobuf.Generated -public final class ImportTaxonomiesResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ImportTaxonomiesResponse) - ImportTaxonomiesResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ImportTaxonomiesResponse"); - } - - // Use ImportTaxonomiesResponse.newBuilder() to construct. - private ImportTaxonomiesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ImportTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse.Builder.class); - } - - public static final int TAXONOMIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List taxonomies_; - - /** - * - * - *
-   * Imported taxonomies.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List getTaxonomiesList() { - return taxonomies_; - } - - /** - * - * - *
-   * Imported taxonomies.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List - getTaxonomiesOrBuilderList() { - return taxonomies_; - } - - /** - * - * - *
-   * Imported taxonomies.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-   * Imported taxonomies.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-   * Imported taxonomies.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomiesOrBuilder(int index) { - return taxonomies_.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 < taxonomies_.size(); i++) { - output.writeMessage(1, taxonomies_.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 < taxonomies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taxonomies_.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.datacatalog.v1.ImportTaxonomiesResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse other = - (com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse) obj; - - if (!getTaxonomiesList().equals(other.getTaxonomiesList())) return false; - if (!getUnknownFields().equals(other.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 (getTaxonomiesCount() > 0) { - hash = (37 * hash) + TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomiesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ImportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ImportTaxonomiesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ImportTaxonomiesResponse) - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - } else { - taxonomies_ = null; - taxonomiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse build() { - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse buildPartial() { - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse result = - new com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse result) { - if (taxonomiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = java.util.Collections.unmodifiableList(taxonomies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taxonomies_ = taxonomies_; - } else { - result.taxonomies_ = taxonomiesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse other) { - if (other == com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse.getDefaultInstance()) - return this; - if (taxonomiesBuilder_ == null) { - if (!other.taxonomies_.isEmpty()) { - if (taxonomies_.isEmpty()) { - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaxonomiesIsMutable(); - taxonomies_.addAll(other.taxonomies_); - } - onChanged(); - } - } else { - if (!other.taxonomies_.isEmpty()) { - if (taxonomiesBuilder_.isEmpty()) { - taxonomiesBuilder_.dispose(); - taxonomiesBuilder_ = null; - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - taxonomiesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTaxonomiesFieldBuilder() - : null; - } else { - taxonomiesBuilder_.addAllMessages(other.taxonomies_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1.Taxonomy m = - input.readMessage( - com.google.cloud.datacatalog.v1.Taxonomy.parser(), extensionRegistry); - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(m); - } else { - taxonomiesBuilder_.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 taxonomies_ = - java.util.Collections.emptyList(); - - private void ensureTaxonomiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = - new java.util.ArrayList(taxonomies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - taxonomiesBuilder_; - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public java.util.List getTaxonomiesList() { - if (taxonomiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(taxonomies_); - } else { - return taxonomiesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public int getTaxonomiesCount() { - if (taxonomiesBuilder_ == null) { - return taxonomies_.size(); - } else { - return taxonomiesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder setTaxonomies(int index, com.google.cloud.datacatalog.v1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, value); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder setTaxonomies( - int index, com.google.cloud.datacatalog.v1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies(com.google.cloud.datacatalog.v1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies(int index, com.google.cloud.datacatalog.v1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies(com.google.cloud.datacatalog.v1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - int index, com.google.cloud.datacatalog.v1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder addAllTaxonomies( - java.lang.Iterable values) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taxonomies_); - onChanged(); - } else { - taxonomiesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder clearTaxonomies() { - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taxonomiesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder removeTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.remove(index); - onChanged(); - } else { - taxonomiesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.Taxonomy.Builder getTaxonomiesBuilder(int index) { - return internalGetTaxonomiesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomiesOrBuilder(int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesOrBuilderList() { - if (taxonomiesBuilder_ != null) { - return taxonomiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taxonomies_); - } - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.Taxonomy.Builder addTaxonomiesBuilder() { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.Taxonomy.Builder addTaxonomiesBuilder(int index) { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Imported taxonomies.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesBuilderList() { - return internalGetTaxonomiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - internalGetTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder>( - taxonomies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - taxonomies_ = null; - } - return taxonomiesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ImportTaxonomiesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ImportTaxonomiesResponse) - private static final com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse(); - } - - public static com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportTaxonomiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponseOrBuilder.java deleted file mode 100644 index 56c7e523ffc4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ImportTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ImportTaxonomiesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ImportTaxonomiesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Imported taxonomies.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - java.util.List getTaxonomiesList(); - - /** - * - * - *
-   * Imported taxonomies.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1.Taxonomy getTaxonomies(int index); - - /** - * - * - *
-   * Imported taxonomies.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - int getTaxonomiesCount(); - - /** - * - * - *
-   * Imported taxonomies.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - java.util.List - getTaxonomiesOrBuilderList(); - - /** - * - * - *
-   * Imported taxonomies.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomiesOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSource.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSource.java deleted file mode 100644 index 98e37e62e315..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSource.java +++ /dev/null @@ -1,977 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Inline source containing taxonomies to import.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.InlineSource} - */ -@com.google.protobuf.Generated -public final class InlineSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.InlineSource) - InlineSourceOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "InlineSource"); - } - - // Use InlineSource.newBuilder() to construct. - private InlineSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private InlineSource() { - taxonomies_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_InlineSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_InlineSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.InlineSource.class, - com.google.cloud.datacatalog.v1.InlineSource.Builder.class); - } - - public static final int TAXONOMIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List taxonomies_; - - /** - * - * - *
-   * Required. Taxonomies to import.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getTaxonomiesList() { - return taxonomies_; - } - - /** - * - * - *
-   * Required. Taxonomies to import.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getTaxonomiesOrBuilderList() { - return taxonomies_; - } - - /** - * - * - *
-   * Required. Taxonomies to import.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-   * Required. Taxonomies to import.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedTaxonomy getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-   * Required. Taxonomies to import.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder( - int index) { - return taxonomies_.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 < taxonomies_.size(); i++) { - output.writeMessage(1, taxonomies_.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 < taxonomies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taxonomies_.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.datacatalog.v1.InlineSource)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.InlineSource other = - (com.google.cloud.datacatalog.v1.InlineSource) obj; - - if (!getTaxonomiesList().equals(other.getTaxonomiesList())) return false; - if (!getUnknownFields().equals(other.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 (getTaxonomiesCount() > 0) { - hash = (37 * hash) + TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomiesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.InlineSource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.InlineSource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Inline source containing taxonomies to import.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.InlineSource} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.InlineSource) - com.google.cloud.datacatalog.v1.InlineSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_InlineSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_InlineSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.InlineSource.class, - com.google.cloud.datacatalog.v1.InlineSource.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.InlineSource.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - } else { - taxonomies_ = null; - taxonomiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_InlineSource_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.InlineSource getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.InlineSource build() { - com.google.cloud.datacatalog.v1.InlineSource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.InlineSource buildPartial() { - com.google.cloud.datacatalog.v1.InlineSource result = - new com.google.cloud.datacatalog.v1.InlineSource(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.InlineSource result) { - if (taxonomiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = java.util.Collections.unmodifiableList(taxonomies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taxonomies_ = taxonomies_; - } else { - result.taxonomies_ = taxonomiesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.InlineSource result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.InlineSource) { - return mergeFrom((com.google.cloud.datacatalog.v1.InlineSource) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.InlineSource other) { - if (other == com.google.cloud.datacatalog.v1.InlineSource.getDefaultInstance()) return this; - if (taxonomiesBuilder_ == null) { - if (!other.taxonomies_.isEmpty()) { - if (taxonomies_.isEmpty()) { - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaxonomiesIsMutable(); - taxonomies_.addAll(other.taxonomies_); - } - onChanged(); - } - } else { - if (!other.taxonomies_.isEmpty()) { - if (taxonomiesBuilder_.isEmpty()) { - taxonomiesBuilder_.dispose(); - taxonomiesBuilder_ = null; - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - taxonomiesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTaxonomiesFieldBuilder() - : null; - } else { - taxonomiesBuilder_.addAllMessages(other.taxonomies_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1.SerializedTaxonomy m = - input.readMessage( - com.google.cloud.datacatalog.v1.SerializedTaxonomy.parser(), - extensionRegistry); - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(m); - } else { - taxonomiesBuilder_.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 taxonomies_ = - java.util.Collections.emptyList(); - - private void ensureTaxonomiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = - new java.util.ArrayList( - taxonomies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> - taxonomiesBuilder_; - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List getTaxonomiesList() { - if (taxonomiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(taxonomies_); - } else { - return taxonomiesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getTaxonomiesCount() { - if (taxonomiesBuilder_ == null) { - return taxonomies_.size(); - } else { - return taxonomiesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomy getTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTaxonomies( - int index, com.google.cloud.datacatalog.v1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, value); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTaxonomies( - int index, com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addTaxonomies(com.google.cloud.datacatalog.v1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addTaxonomies( - int index, com.google.cloud.datacatalog.v1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addTaxonomies( - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addTaxonomies( - int index, com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllTaxonomies( - java.lang.Iterable values) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taxonomies_); - onChanged(); - } else { - taxonomiesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTaxonomies() { - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taxonomiesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.remove(index); - onChanged(); - } else { - taxonomiesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder getTaxonomiesBuilder( - int index) { - return internalGetTaxonomiesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder( - int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getTaxonomiesOrBuilderList() { - if (taxonomiesBuilder_ != null) { - return taxonomiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taxonomies_); - } - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder addTaxonomiesBuilder() { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder addTaxonomiesBuilder( - int index) { - return internalGetTaxonomiesFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Required. Taxonomies to import.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getTaxonomiesBuilderList() { - return internalGetTaxonomiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> - internalGetTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder>( - taxonomies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - taxonomies_ = null; - } - return taxonomiesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.InlineSource) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.InlineSource) - private static final com.google.cloud.datacatalog.v1.InlineSource DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.InlineSource(); - } - - public static com.google.cloud.datacatalog.v1.InlineSource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InlineSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.InlineSource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSourceOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSourceOrBuilder.java deleted file mode 100644 index 322d91130edb..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/InlineSourceOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface InlineSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.InlineSource) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Taxonomies to import.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getTaxonomiesList(); - - /** - * - * - *
-   * Required. Taxonomies to import.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.SerializedTaxonomy getTaxonomies(int index); - - /** - * - * - *
-   * Required. Taxonomies to import.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getTaxonomiesCount(); - - /** - * - * - *
-   * Required. Taxonomies to import.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getTaxonomiesOrBuilderList(); - - /** - * - * - *
-   * Required. Taxonomies to import.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/IntegratedSystem.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/IntegratedSystem.java deleted file mode 100644 index af095d0576e5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/IntegratedSystem.java +++ /dev/null @@ -1,352 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/common.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * This enum lists all the systems that Data Catalog integrates with.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.IntegratedSystem} - */ -@com.google.protobuf.Generated -public enum IntegratedSystem implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default unknown system.
-   * 
- * - * INTEGRATED_SYSTEM_UNSPECIFIED = 0; - */ - INTEGRATED_SYSTEM_UNSPECIFIED(0), - /** - * - * - *
-   * BigQuery.
-   * 
- * - * BIGQUERY = 1; - */ - BIGQUERY(1), - /** - * - * - *
-   * Cloud Pub/Sub.
-   * 
- * - * CLOUD_PUBSUB = 2; - */ - CLOUD_PUBSUB(2), - /** - * - * - *
-   * Dataproc Metastore.
-   * 
- * - * DATAPROC_METASTORE = 3; - */ - DATAPROC_METASTORE(3), - /** - * - * - *
-   * Dataplex.
-   * 
- * - * DATAPLEX = 4; - */ - DATAPLEX(4), - /** - * - * - *
-   * Cloud Spanner
-   * 
- * - * CLOUD_SPANNER = 6; - */ - CLOUD_SPANNER(6), - /** - * - * - *
-   * Cloud Bigtable
-   * 
- * - * CLOUD_BIGTABLE = 7; - */ - CLOUD_BIGTABLE(7), - /** - * - * - *
-   * Cloud Sql
-   * 
- * - * CLOUD_SQL = 8; - */ - CLOUD_SQL(8), - /** - * - * - *
-   * Looker
-   * 
- * - * LOOKER = 9; - */ - LOOKER(9), - /** - * - * - *
-   * Vertex AI
-   * 
- * - * VERTEX_AI = 10; - */ - VERTEX_AI(10), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "IntegratedSystem"); - } - - /** - * - * - *
-   * Default unknown system.
-   * 
- * - * INTEGRATED_SYSTEM_UNSPECIFIED = 0; - */ - public static final int INTEGRATED_SYSTEM_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * BigQuery.
-   * 
- * - * BIGQUERY = 1; - */ - public static final int BIGQUERY_VALUE = 1; - - /** - * - * - *
-   * Cloud Pub/Sub.
-   * 
- * - * CLOUD_PUBSUB = 2; - */ - public static final int CLOUD_PUBSUB_VALUE = 2; - - /** - * - * - *
-   * Dataproc Metastore.
-   * 
- * - * DATAPROC_METASTORE = 3; - */ - public static final int DATAPROC_METASTORE_VALUE = 3; - - /** - * - * - *
-   * Dataplex.
-   * 
- * - * DATAPLEX = 4; - */ - public static final int DATAPLEX_VALUE = 4; - - /** - * - * - *
-   * Cloud Spanner
-   * 
- * - * CLOUD_SPANNER = 6; - */ - public static final int CLOUD_SPANNER_VALUE = 6; - - /** - * - * - *
-   * Cloud Bigtable
-   * 
- * - * CLOUD_BIGTABLE = 7; - */ - public static final int CLOUD_BIGTABLE_VALUE = 7; - - /** - * - * - *
-   * Cloud Sql
-   * 
- * - * CLOUD_SQL = 8; - */ - public static final int CLOUD_SQL_VALUE = 8; - - /** - * - * - *
-   * Looker
-   * 
- * - * LOOKER = 9; - */ - public static final int LOOKER_VALUE = 9; - - /** - * - * - *
-   * Vertex AI
-   * 
- * - * VERTEX_AI = 10; - */ - public static final int VERTEX_AI_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 IntegratedSystem 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 IntegratedSystem forNumber(int value) { - switch (value) { - case 0: - return INTEGRATED_SYSTEM_UNSPECIFIED; - case 1: - return BIGQUERY; - case 2: - return CLOUD_PUBSUB; - case 3: - return DATAPROC_METASTORE; - case 4: - return DATAPLEX; - case 6: - return CLOUD_SPANNER; - case 7: - return CLOUD_BIGTABLE; - case 8: - return CLOUD_SQL; - case 9: - return LOOKER; - case 10: - return VERTEX_AI; - 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 IntegratedSystem findValueByNumber(int number) { - return IntegratedSystem.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.datacatalog.v1.Common.getDescriptor().getEnumTypes().get(0); - } - - private static final IntegratedSystem[] VALUES = values(); - - public static IntegratedSystem 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 IntegratedSystem(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.IntegratedSystem) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequest.java deleted file mode 100644 index cb27c033d90b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequest.java +++ /dev/null @@ -1,1255 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ListEntries][google.cloud.datacatalog.v1.DataCatalog.ListEntries].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntriesRequest} - */ -@com.google.protobuf.Generated -public final class ListEntriesRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntriesRequest) - ListEntriesRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListEntriesRequest"); - } - - // Use ListEntriesRequest.newBuilder() to construct. - private ListEntriesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListEntriesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListEntriesRequest.class, - com.google.cloud.datacatalog.v1.ListEntriesRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the entry group that contains the entries to list.
-   *
-   * Can be provided in URL format.
-   * 
- * - * - * 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 entry group that contains the entries to list.
-   *
-   * Can be provided in URL format.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * The maximum number of items to return. Default is 10. Maximum limit is
-   * 1000. Throws an invalid argument if `page_size` is more than 1000.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - - /** - * - * - *
-   * Pagination token that specifies the next page to return. If empty, the
-   * first page is returned.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Pagination token that specifies the next page to return. If empty, the
-   * first page is returned.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int READ_MASK_FIELD_NUMBER = 4; - private com.google.protobuf.FieldMask readMask_; - - /** - * - * - *
-   * The fields to return for each entry. If empty or omitted, all
-   * fields are returned.
-   *
-   * For example, to return a list of entries with only the `name` field,
-   * set `read_mask` to only one path with the `name` value.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return Whether the readMask field is set. - */ - @java.lang.Override - public boolean hasReadMask() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The fields to return for each entry. If empty or omitted, all
-   * fields are returned.
-   *
-   * For example, to return a list of entries with only the `name` field,
-   * set `read_mask` to only one path with the `name` value.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return The readMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getReadMask() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - - /** - * - * - *
-   * The fields to return for each entry. If empty or omitted, all
-   * fields are returned.
-   *
-   * For example, to return a list of entries with only the `name` field,
-   * set `read_mask` to only one path with the `name` value.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getReadMask()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ListEntriesRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ListEntriesRequest other = - (com.google.cloud.datacatalog.v1.ListEntriesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (hasReadMask() != other.hasReadMask()) return false; - if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - if (hasReadMask()) { - hash = (37 * hash) + READ_MASK_FIELD_NUMBER; - hash = (53 * hash) + getReadMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.ListEntriesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListEntries][google.cloud.datacatalog.v1.DataCatalog.ListEntries].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntriesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ListEntriesRequest) - com.google.cloud.datacatalog.v1.ListEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListEntriesRequest.class, - com.google.cloud.datacatalog.v1.ListEntriesRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ListEntriesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetReadMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - readMask_ = null; - if (readMaskBuilder_ != null) { - readMaskBuilder_.dispose(); - readMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntriesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntriesRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ListEntriesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntriesRequest build() { - com.google.cloud.datacatalog.v1.ListEntriesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntriesRequest buildPartial() { - com.google.cloud.datacatalog.v1.ListEntriesRequest result = - new com.google.cloud.datacatalog.v1.ListEntriesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ListEntriesRequest 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_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.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.datacatalog.v1.ListEntriesRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ListEntriesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ListEntriesRequest other) { - if (other == com.google.cloud.datacatalog.v1.ListEntriesRequest.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.hasReadMask()) { - mergeReadMask(other.getReadMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage( - internalGetReadMaskFieldBuilder().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 parent_ = ""; - - /** - * - * - *
-     * Required. The name of the entry group that contains the entries to list.
-     *
-     * Can be provided in URL format.
-     * 
- * - * - * 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 entry group that contains the entries to list.
-     *
-     * Can be provided in URL format.
-     * 
- * - * - * 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 entry group that contains the entries to list.
-     *
-     * Can be provided in URL format.
-     * 
- * - * - * 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 entry group that contains the entries to list.
-     *
-     * Can be provided in URL format.
-     * 
- * - * - * 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 entry group that contains the entries to list.
-     *
-     * Can be provided in URL format.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_; - - /** - * - * - *
-     * The maximum number of items to return. Default is 10. Maximum limit is
-     * 1000. Throws an invalid argument if `page_size` is more than 1000.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
-     * The maximum number of items to return. Default is 10. Maximum limit is
-     * 1000. Throws an invalid argument if `page_size` is more than 1000.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The maximum number of items to return. Default is 10. Maximum limit is
-     * 1000. Throws an invalid argument if `page_size` is more than 1000.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - - /** - * - * - *
-     * Pagination token that specifies the next page to return. If empty, the
-     * first page is returned.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Pagination token that specifies the next page to return. If empty, the
-     * first page is returned.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Pagination token that specifies the next page to return. If empty, the
-     * first page is returned.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token that specifies the next page to return. If empty, the
-     * first page is returned.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token that specifies the next page to return. If empty, the
-     * first page is returned.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.FieldMask readMask_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; - - /** - * - * - *
-     * The fields to return for each entry. If empty or omitted, all
-     * fields are returned.
-     *
-     * For example, to return a list of entries with only the `name` field,
-     * set `read_mask` to only one path with the `name` value.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return Whether the readMask field is set. - */ - public boolean hasReadMask() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-     * The fields to return for each entry. If empty or omitted, all
-     * fields are returned.
-     *
-     * For example, to return a list of entries with only the `name` field,
-     * set `read_mask` to only one path with the `name` value.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return The readMask. - */ - public com.google.protobuf.FieldMask getReadMask() { - if (readMaskBuilder_ == null) { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } else { - return readMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The fields to return for each entry. If empty or omitted, all
-     * fields are returned.
-     *
-     * For example, to return a list of entries with only the `name` field,
-     * set `read_mask` to only one path with the `name` value.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder setReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - readMask_ = value; - } else { - readMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return for each entry. If empty or omitted, all
-     * fields are returned.
-     *
-     * For example, to return a list of entries with only the `name` field,
-     * set `read_mask` to only one path with the `name` value.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (readMaskBuilder_ == null) { - readMask_ = builderForValue.build(); - } else { - readMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return for each entry. If empty or omitted, all
-     * fields are returned.
-     *
-     * For example, to return a list of entries with only the `name` field,
-     * set `read_mask` to only one path with the `name` value.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder mergeReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && readMask_ != null - && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getReadMaskBuilder().mergeFrom(value); - } else { - readMask_ = value; - } - } else { - readMaskBuilder_.mergeFrom(value); - } - if (readMask_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The fields to return for each entry. If empty or omitted, all
-     * fields are returned.
-     *
-     * For example, to return a list of entries with only the `name` field,
-     * set `read_mask` to only one path with the `name` value.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder clearReadMask() { - bitField0_ = (bitField0_ & ~0x00000008); - readMask_ = null; - if (readMaskBuilder_ != null) { - readMaskBuilder_.dispose(); - readMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return for each entry. If empty or omitted, all
-     * fields are returned.
-     *
-     * For example, to return a list of entries with only the `name` field,
-     * set `read_mask` to only one path with the `name` value.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetReadMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The fields to return for each entry. If empty or omitted, all
-     * fields are returned.
-     *
-     * For example, to return a list of entries with only the `name` field,
-     * set `read_mask` to only one path with the `name` value.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - if (readMaskBuilder_ != null) { - return readMaskBuilder_.getMessageOrBuilder(); - } else { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - } - - /** - * - * - *
-     * The fields to return for each entry. If empty or omitted, all
-     * fields are returned.
-     *
-     * For example, to return a list of entries with only the `name` field,
-     * set `read_mask` to only one path with the `name` value.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - internalGetReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), getParentForChildren(), isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ListEntriesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ListEntriesRequest) - private static final com.google.cloud.datacatalog.v1.ListEntriesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ListEntriesRequest(); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntriesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequestOrBuilder.java deleted file mode 100644 index 581b4de2b29b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesRequestOrBuilder.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ListEntriesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ListEntriesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry group that contains the entries to list.
-   *
-   * Can be provided in URL format.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the entry group that contains the entries to list.
-   *
-   * Can be provided in URL format.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of items to return. Default is 10. Maximum limit is
-   * 1000. Throws an invalid argument if `page_size` is more than 1000.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Pagination token that specifies the next page to return. If empty, the
-   * first page is returned.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * Pagination token that specifies the next page to return. If empty, the
-   * first page is returned.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * The fields to return for each entry. If empty or omitted, all
-   * fields are returned.
-   *
-   * For example, to return a list of entries with only the `name` field,
-   * set `read_mask` to only one path with the `name` value.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return Whether the readMask field is set. - */ - boolean hasReadMask(); - - /** - * - * - *
-   * The fields to return for each entry. If empty or omitted, all
-   * fields are returned.
-   *
-   * For example, to return a list of entries with only the `name` field,
-   * set `read_mask` to only one path with the `name` value.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return The readMask. - */ - com.google.protobuf.FieldMask getReadMask(); - - /** - * - * - *
-   * The fields to return for each entry. If empty or omitted, all
-   * fields are returned.
-   *
-   * For example, to return a list of entries with only the `name` field,
-   * set `read_mask` to only one path with the `name` value.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponse.java deleted file mode 100644 index 63ca887e8e41..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponse.java +++ /dev/null @@ -1,1119 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for
- * [ListEntries][google.cloud.datacatalog.v1.DataCatalog.ListEntries].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntriesResponse} - */ -@com.google.protobuf.Generated -public final class ListEntriesResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntriesResponse) - ListEntriesResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListEntriesResponse"); - } - - // Use ListEntriesResponse.newBuilder() to construct. - private ListEntriesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListEntriesResponse() { - entries_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListEntriesResponse.class, - com.google.cloud.datacatalog.v1.ListEntriesResponse.Builder.class); - } - - public static final int ENTRIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List entries_; - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - @java.lang.Override - public java.util.List getEntriesList() { - return entries_; - } - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - @java.lang.Override - public java.util.List - getEntriesOrBuilderList() { - return entries_; - } - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - @java.lang.Override - public int getEntriesCount() { - return entries_.size(); - } - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Entry getEntries(int index) { - return entries_.get(index); - } - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOrBuilder getEntriesOrBuilder(int index) { - return entries_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no more items
-   * in results.
-   * 
- * - * 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; - } - } - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no more items
-   * in results.
-   * 
- * - * 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 < entries_.size(); i++) { - output.writeMessage(1, entries_.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 < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.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.datacatalog.v1.ListEntriesResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ListEntriesResponse other = - (com.google.cloud.datacatalog.v1.ListEntriesResponse) obj; - - if (!getEntriesList().equals(other.getEntriesList())) 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 (getEntriesCount() > 0) { - hash = (37 * hash) + ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getEntriesList().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.datacatalog.v1.ListEntriesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.ListEntriesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListEntries][google.cloud.datacatalog.v1.DataCatalog.ListEntries].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntriesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ListEntriesResponse) - com.google.cloud.datacatalog.v1.ListEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListEntriesResponse.class, - com.google.cloud.datacatalog.v1.ListEntriesResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ListEntriesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - } else { - entries_ = null; - entriesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntriesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntriesResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ListEntriesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntriesResponse build() { - com.google.cloud.datacatalog.v1.ListEntriesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntriesResponse buildPartial() { - com.google.cloud.datacatalog.v1.ListEntriesResponse result = - new com.google.cloud.datacatalog.v1.ListEntriesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.ListEntriesResponse result) { - if (entriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entries_ = entries_; - } else { - result.entries_ = entriesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ListEntriesResponse 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.datacatalog.v1.ListEntriesResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.ListEntriesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ListEntriesResponse other) { - if (other == com.google.cloud.datacatalog.v1.ListEntriesResponse.getDefaultInstance()) - return this; - if (entriesBuilder_ == null) { - if (!other.entries_.isEmpty()) { - if (entries_.isEmpty()) { - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntriesIsMutable(); - entries_.addAll(other.entries_); - } - onChanged(); - } - } else { - if (!other.entries_.isEmpty()) { - if (entriesBuilder_.isEmpty()) { - entriesBuilder_.dispose(); - entriesBuilder_ = null; - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000001); - entriesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetEntriesFieldBuilder() - : null; - } else { - entriesBuilder_.addAllMessages(other.entries_); - } - } - } - 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.datacatalog.v1.Entry m = - input.readMessage( - com.google.cloud.datacatalog.v1.Entry.parser(), extensionRegistry); - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(m); - } else { - entriesBuilder_.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 entries_ = - java.util.Collections.emptyList(); - - private void ensureEntriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(entries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder> - entriesBuilder_; - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public java.util.List getEntriesList() { - if (entriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entries_); - } else { - return entriesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public int getEntriesCount() { - if (entriesBuilder_ == null) { - return entries_.size(); - } else { - return entriesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public com.google.cloud.datacatalog.v1.Entry getEntries(int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); - } else { - return entriesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public Builder setEntries(int index, com.google.cloud.datacatalog.v1.Entry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.set(index, value); - onChanged(); - } else { - entriesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public Builder setEntries( - int index, com.google.cloud.datacatalog.v1.Entry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.set(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public Builder addEntries(com.google.cloud.datacatalog.v1.Entry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(value); - onChanged(); - } else { - entriesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public Builder addEntries(int index, com.google.cloud.datacatalog.v1.Entry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(index, value); - onChanged(); - } else { - entriesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public Builder addEntries(com.google.cloud.datacatalog.v1.Entry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public Builder addEntries( - int index, com.google.cloud.datacatalog.v1.Entry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public Builder addAllEntries( - java.lang.Iterable values) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); - onChanged(); - } else { - entriesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public Builder clearEntries() { - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entriesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public Builder removeEntries(int index) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.remove(index); - onChanged(); - } else { - entriesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public com.google.cloud.datacatalog.v1.Entry.Builder getEntriesBuilder(int index) { - return internalGetEntriesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public com.google.cloud.datacatalog.v1.EntryOrBuilder getEntriesOrBuilder(int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); - } else { - return entriesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public java.util.List - getEntriesOrBuilderList() { - if (entriesBuilder_ != null) { - return entriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entries_); - } - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public com.google.cloud.datacatalog.v1.Entry.Builder addEntriesBuilder() { - return internalGetEntriesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.Entry.getDefaultInstance()); - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public com.google.cloud.datacatalog.v1.Entry.Builder addEntriesBuilder(int index) { - return internalGetEntriesFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.Entry.getDefaultInstance()); - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - public java.util.List getEntriesBuilderList() { - return internalGetEntriesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder> - internalGetEntriesFieldBuilder() { - if (entriesBuilder_ == null) { - entriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder>( - entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - entries_ = null; - } - return entriesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no more items
-     * in results.
-     * 
- * - * 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; - } - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no more items
-     * in results.
-     * 
- * - * 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; - } - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no more items
-     * in results.
-     * 
- * - * 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; - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no more items
-     * in results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no more items
-     * in results.
-     * 
- * - * 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.datacatalog.v1.ListEntriesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ListEntriesResponse) - private static final com.google.cloud.datacatalog.v1.ListEntriesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ListEntriesResponse(); - } - - public static com.google.cloud.datacatalog.v1.ListEntriesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntriesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponseOrBuilder.java deleted file mode 100644 index 4cef1873d90c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntriesResponseOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ListEntriesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ListEntriesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - java.util.List getEntriesList(); - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - com.google.cloud.datacatalog.v1.Entry getEntries(int index); - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - int getEntriesCount(); - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - java.util.List - getEntriesOrBuilderList(); - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Entry entries = 1; - */ - com.google.cloud.datacatalog.v1.EntryOrBuilder getEntriesOrBuilder(int index); - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no more items
-   * in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no more items
-   * in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequest.java deleted file mode 100644 index 479979d1b6b1..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequest.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ListEntryGroups][google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntryGroupsRequest} - */ -@com.google.protobuf.Generated -public final class ListEntryGroupsRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntryGroupsRequest) - ListEntryGroupsRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListEntryGroupsRequest"); - } - - // Use ListEntryGroupsRequest.newBuilder() to construct. - private ListEntryGroupsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListEntryGroupsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest.class, - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the location that contains the entry groups to list.
-   *
-   * Can be provided as a URL.
-   * 
- * - * - * 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 location that contains the entry groups to list.
-   *
-   * Can be provided as a URL.
-   * 
- * - * - * 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 items to return.
-   *
-   * Default is 10. Maximum limit is 1000.
-   * Throws an invalid argument if `page_size` is greater than 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. Pagination token that specifies the next page to return.
-   * If empty, returns the first page.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Optional. Pagination token that specifies the next page to return.
-   * If empty, returns the first page.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ListEntryGroupsRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest other = - (com.google.cloud.datacatalog.v1.ListEntryGroupsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListEntryGroups][google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntryGroupsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ListEntryGroupsRequest) - com.google.cloud.datacatalog.v1.ListEntryGroupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest.class, - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ListEntryGroupsRequest.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_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntryGroupsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntryGroupsRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ListEntryGroupsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntryGroupsRequest build() { - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntryGroupsRequest buildPartial() { - com.google.cloud.datacatalog.v1.ListEntryGroupsRequest result = - new com.google.cloud.datacatalog.v1.ListEntryGroupsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ListEntryGroupsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ListEntryGroupsRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ListEntryGroupsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ListEntryGroupsRequest other) { - if (other == com.google.cloud.datacatalog.v1.ListEntryGroupsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the location that contains the entry groups to list.
-     *
-     * Can be provided as a URL.
-     * 
- * - * - * 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 location that contains the entry groups to list.
-     *
-     * Can be provided as a URL.
-     * 
- * - * - * 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 location that contains the entry groups to list.
-     *
-     * Can be provided as a URL.
-     * 
- * - * - * 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 location that contains the entry groups to list.
-     *
-     * Can be provided as a URL.
-     * 
- * - * - * 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 location that contains the entry groups to list.
-     *
-     * Can be provided as a URL.
-     * 
- * - * - * 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 items to return.
-     *
-     * Default is 10. Maximum limit is 1000.
-     * Throws an invalid argument if `page_size` is greater than 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 items to return.
-     *
-     * Default is 10. Maximum limit is 1000.
-     * Throws an invalid argument if `page_size` is greater than 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 items to return.
-     *
-     * Default is 10. Maximum limit is 1000.
-     * Throws an invalid argument if `page_size` is greater than 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. Pagination token that specifies the next page to return.
-     * If empty, returns the first page.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Optional. Pagination token that specifies the next page to return.
-     * If empty, returns the first page.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Optional. Pagination token that specifies the next page to return.
-     * If empty, returns the first page.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Pagination token that specifies the next page to return.
-     * If empty, returns the first page.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Pagination token that specifies the next page to return.
-     * If empty, returns the first page.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ListEntryGroupsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ListEntryGroupsRequest) - private static final com.google.cloud.datacatalog.v1.ListEntryGroupsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ListEntryGroupsRequest(); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntryGroupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntryGroupsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequestOrBuilder.java deleted file mode 100644 index ad203ed5cfef..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsRequestOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ListEntryGroupsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ListEntryGroupsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the location that contains the entry groups to list.
-   *
-   * Can be provided as a URL.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the location that contains the entry groups to list.
-   *
-   * Can be provided as a URL.
-   * 
- * - * - * 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 items to return.
-   *
-   * Default is 10. Maximum limit is 1000.
-   * Throws an invalid argument if `page_size` is greater than 1000.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. Pagination token that specifies the next page to return.
-   * If empty, returns the first page.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * Optional. Pagination token that specifies the next page to return.
-   * If empty, returns the first page.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponse.java deleted file mode 100644 index a456cc2308d2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponse.java +++ /dev/null @@ -1,1123 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for
- * [ListEntryGroups][google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntryGroupsResponse} - */ -@com.google.protobuf.Generated -public final class ListEntryGroupsResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListEntryGroupsResponse) - ListEntryGroupsResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListEntryGroupsResponse"); - } - - // Use ListEntryGroupsResponse.newBuilder() to construct. - private ListEntryGroupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListEntryGroupsResponse() { - entryGroups_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse.class, - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse.Builder.class); - } - - public static final int ENTRY_GROUPS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List entryGroups_; - - /** - * - * - *
-   * Entry group details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - @java.lang.Override - public java.util.List getEntryGroupsList() { - return entryGroups_; - } - - /** - * - * - *
-   * Entry group details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - @java.lang.Override - public java.util.List - getEntryGroupsOrBuilderList() { - return entryGroups_; - } - - /** - * - * - *
-   * Entry group details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - @java.lang.Override - public int getEntryGroupsCount() { - return entryGroups_.size(); - } - - /** - * - * - *
-   * Entry group details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryGroup getEntryGroups(int index) { - return entryGroups_.get(index); - } - - /** - * - * - *
-   * Entry group details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryGroupOrBuilder getEntryGroupsOrBuilder(int index) { - return entryGroups_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Pagination token to specify in the next call to retrieve the next page of
-   * results. Empty if there are no more items.
-   * 
- * - * 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; - } - } - - /** - * - * - *
-   * Pagination token to specify in the next call to retrieve the next page of
-   * results. Empty if there are no more items.
-   * 
- * - * 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 < entryGroups_.size(); i++) { - output.writeMessage(1, entryGroups_.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 < entryGroups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entryGroups_.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.datacatalog.v1.ListEntryGroupsResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse other = - (com.google.cloud.datacatalog.v1.ListEntryGroupsResponse) obj; - - if (!getEntryGroupsList().equals(other.getEntryGroupsList())) 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 (getEntryGroupsCount() > 0) { - hash = (37 * hash) + ENTRY_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + getEntryGroupsList().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.datacatalog.v1.ListEntryGroupsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListEntryGroups][google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListEntryGroupsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ListEntryGroupsResponse) - com.google.cloud.datacatalog.v1.ListEntryGroupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse.class, - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ListEntryGroupsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (entryGroupsBuilder_ == null) { - entryGroups_ = java.util.Collections.emptyList(); - } else { - entryGroups_ = null; - entryGroupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListEntryGroupsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntryGroupsResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ListEntryGroupsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntryGroupsResponse build() { - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntryGroupsResponse buildPartial() { - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse result = - new com.google.cloud.datacatalog.v1.ListEntryGroupsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.ListEntryGroupsResponse result) { - if (entryGroupsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entryGroups_ = java.util.Collections.unmodifiableList(entryGroups_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entryGroups_ = entryGroups_; - } else { - result.entryGroups_ = entryGroupsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ListEntryGroupsResponse 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.datacatalog.v1.ListEntryGroupsResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.ListEntryGroupsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ListEntryGroupsResponse other) { - if (other == com.google.cloud.datacatalog.v1.ListEntryGroupsResponse.getDefaultInstance()) - return this; - if (entryGroupsBuilder_ == null) { - if (!other.entryGroups_.isEmpty()) { - if (entryGroups_.isEmpty()) { - entryGroups_ = other.entryGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntryGroupsIsMutable(); - entryGroups_.addAll(other.entryGroups_); - } - onChanged(); - } - } else { - if (!other.entryGroups_.isEmpty()) { - if (entryGroupsBuilder_.isEmpty()) { - entryGroupsBuilder_.dispose(); - entryGroupsBuilder_ = null; - entryGroups_ = other.entryGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - entryGroupsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetEntryGroupsFieldBuilder() - : null; - } else { - entryGroupsBuilder_.addAllMessages(other.entryGroups_); - } - } - } - 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.datacatalog.v1.EntryGroup m = - input.readMessage( - com.google.cloud.datacatalog.v1.EntryGroup.parser(), extensionRegistry); - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - entryGroups_.add(m); - } else { - entryGroupsBuilder_.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 entryGroups_ = - java.util.Collections.emptyList(); - - private void ensureEntryGroupsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entryGroups_ = - new java.util.ArrayList(entryGroups_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.EntryGroup, - com.google.cloud.datacatalog.v1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> - entryGroupsBuilder_; - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public java.util.List getEntryGroupsList() { - if (entryGroupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(entryGroups_); - } else { - return entryGroupsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public int getEntryGroupsCount() { - if (entryGroupsBuilder_ == null) { - return entryGroups_.size(); - } else { - return entryGroupsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public com.google.cloud.datacatalog.v1.EntryGroup getEntryGroups(int index) { - if (entryGroupsBuilder_ == null) { - return entryGroups_.get(index); - } else { - return entryGroupsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public Builder setEntryGroups(int index, com.google.cloud.datacatalog.v1.EntryGroup value) { - if (entryGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntryGroupsIsMutable(); - entryGroups_.set(index, value); - onChanged(); - } else { - entryGroupsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public Builder setEntryGroups( - int index, com.google.cloud.datacatalog.v1.EntryGroup.Builder builderForValue) { - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - entryGroups_.set(index, builderForValue.build()); - onChanged(); - } else { - entryGroupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public Builder addEntryGroups(com.google.cloud.datacatalog.v1.EntryGroup value) { - if (entryGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntryGroupsIsMutable(); - entryGroups_.add(value); - onChanged(); - } else { - entryGroupsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public Builder addEntryGroups(int index, com.google.cloud.datacatalog.v1.EntryGroup value) { - if (entryGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntryGroupsIsMutable(); - entryGroups_.add(index, value); - onChanged(); - } else { - entryGroupsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public Builder addEntryGroups( - com.google.cloud.datacatalog.v1.EntryGroup.Builder builderForValue) { - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - entryGroups_.add(builderForValue.build()); - onChanged(); - } else { - entryGroupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public Builder addEntryGroups( - int index, com.google.cloud.datacatalog.v1.EntryGroup.Builder builderForValue) { - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - entryGroups_.add(index, builderForValue.build()); - onChanged(); - } else { - entryGroupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public Builder addAllEntryGroups( - java.lang.Iterable values) { - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entryGroups_); - onChanged(); - } else { - entryGroupsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public Builder clearEntryGroups() { - if (entryGroupsBuilder_ == null) { - entryGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entryGroupsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public Builder removeEntryGroups(int index) { - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - entryGroups_.remove(index); - onChanged(); - } else { - entryGroupsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public com.google.cloud.datacatalog.v1.EntryGroup.Builder getEntryGroupsBuilder(int index) { - return internalGetEntryGroupsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public com.google.cloud.datacatalog.v1.EntryGroupOrBuilder getEntryGroupsOrBuilder(int index) { - if (entryGroupsBuilder_ == null) { - return entryGroups_.get(index); - } else { - return entryGroupsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public java.util.List - getEntryGroupsOrBuilderList() { - if (entryGroupsBuilder_ != null) { - return entryGroupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entryGroups_); - } - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public com.google.cloud.datacatalog.v1.EntryGroup.Builder addEntryGroupsBuilder() { - return internalGetEntryGroupsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance()); - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public com.google.cloud.datacatalog.v1.EntryGroup.Builder addEntryGroupsBuilder(int index) { - return internalGetEntryGroupsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance()); - } - - /** - * - * - *
-     * Entry group details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - public java.util.List - getEntryGroupsBuilderList() { - return internalGetEntryGroupsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.EntryGroup, - com.google.cloud.datacatalog.v1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> - internalGetEntryGroupsFieldBuilder() { - if (entryGroupsBuilder_ == null) { - entryGroupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.EntryGroup, - com.google.cloud.datacatalog.v1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder>( - entryGroups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - entryGroups_ = null; - } - return entryGroupsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Pagination token to specify in the next call to retrieve the next page of
-     * results. Empty if there are no more items.
-     * 
- * - * 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; - } - } - - /** - * - * - *
-     * Pagination token to specify in the next call to retrieve the next page of
-     * results. Empty if there are no more items.
-     * 
- * - * 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; - } - } - - /** - * - * - *
-     * Pagination token to specify in the next call to retrieve the next page of
-     * results. Empty if there are no more items.
-     * 
- * - * 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; - } - - /** - * - * - *
-     * Pagination token to specify in the next call to retrieve the next page of
-     * results. Empty if there are no more items.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token to specify in the next call to retrieve the next page of
-     * results. Empty if there are no more items.
-     * 
- * - * 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.datacatalog.v1.ListEntryGroupsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ListEntryGroupsResponse) - private static final com.google.cloud.datacatalog.v1.ListEntryGroupsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ListEntryGroupsResponse(); - } - - public static com.google.cloud.datacatalog.v1.ListEntryGroupsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntryGroupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListEntryGroupsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponseOrBuilder.java deleted file mode 100644 index 216bb195f7b0..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListEntryGroupsResponseOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ListEntryGroupsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ListEntryGroupsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Entry group details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - java.util.List getEntryGroupsList(); - - /** - * - * - *
-   * Entry group details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - com.google.cloud.datacatalog.v1.EntryGroup getEntryGroups(int index); - - /** - * - * - *
-   * Entry group details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - int getEntryGroupsCount(); - - /** - * - * - *
-   * Entry group details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - java.util.List - getEntryGroupsOrBuilderList(); - - /** - * - * - *
-   * Entry group details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.EntryGroup entry_groups = 1; - */ - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder getEntryGroupsOrBuilder(int index); - - /** - * - * - *
-   * Pagination token to specify in the next call to retrieve the next page of
-   * results. Empty if there are no more items.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Pagination token to specify in the next call to retrieve the next page of
-   * results. Empty if there are no more items.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequest.java deleted file mode 100644 index 48b65d4ac6e7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequest.java +++ /dev/null @@ -1,928 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListPolicyTagsRequest} - */ -@com.google.protobuf.Generated -public final class ListPolicyTagsRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListPolicyTagsRequest) - ListPolicyTagsRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListPolicyTagsRequest"); - } - - // Use ListPolicyTagsRequest.newBuilder() to construct. - private ListPolicyTagsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListPolicyTagsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest.class, - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of the taxonomy to list the policy tags of.
-   * 
- * - * - * 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. Resource name of the taxonomy to list the policy tags of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * The maximum number of items to return. Must be a value between 1 and 1000
-   * inclusively.
-   * If not set, defaults to 50.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - - /** - * - * - *
-   * The pagination token of the next results page. If not set, returns the
-   * first page.
-   *
-   * The token is returned in the response to a previous list request.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * The pagination token of the next results page. If not set, returns the
-   * first page.
-   *
-   * The token is returned in the response to a previous list request.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ListPolicyTagsRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest other = - (com.google.cloud.datacatalog.v1.ListPolicyTagsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListPolicyTagsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ListPolicyTagsRequest) - com.google.cloud.datacatalog.v1.ListPolicyTagsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest.class, - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ListPolicyTagsRequest.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_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListPolicyTagsRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ListPolicyTagsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListPolicyTagsRequest build() { - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListPolicyTagsRequest buildPartial() { - com.google.cloud.datacatalog.v1.ListPolicyTagsRequest result = - new com.google.cloud.datacatalog.v1.ListPolicyTagsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ListPolicyTagsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ListPolicyTagsRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ListPolicyTagsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ListPolicyTagsRequest other) { - if (other == com.google.cloud.datacatalog.v1.ListPolicyTagsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. Resource name of the taxonomy to list the policy tags of.
-     * 
- * - * - * 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. Resource name of the taxonomy to list the policy tags of.
-     * 
- * - * - * 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. Resource name of the taxonomy to list the policy tags of.
-     * 
- * - * - * 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. Resource name of the taxonomy to list the policy tags of.
-     * 
- * - * - * 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. Resource name of the taxonomy to list the policy tags of.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_; - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000
-     * inclusively.
-     * If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000
-     * inclusively.
-     * If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000
-     * inclusively.
-     * If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - - /** - * - * - *
-     * The pagination token of the next results page. If not set, returns the
-     * first page.
-     *
-     * The token is returned in the response to a previous list request.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The pagination token of the next results page. If not set, returns the
-     * first page.
-     *
-     * The token is returned in the response to a previous list request.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The pagination token of the next results page. If not set, returns the
-     * first page.
-     *
-     * The token is returned in the response to a previous list request.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The pagination token of the next results page. If not set, returns the
-     * first page.
-     *
-     * The token is returned in the response to a previous list request.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * The pagination token of the next results page. If not set, returns the
-     * first page.
-     *
-     * The token is returned in the response to a previous list request.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ListPolicyTagsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ListPolicyTagsRequest) - private static final com.google.cloud.datacatalog.v1.ListPolicyTagsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ListPolicyTagsRequest(); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPolicyTagsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListPolicyTagsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequestOrBuilder.java deleted file mode 100644 index 38282f1f95ab..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsRequestOrBuilder.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ListPolicyTagsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ListPolicyTagsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the taxonomy to list the policy tags of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of the taxonomy to list the policy tags of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of items to return. Must be a value between 1 and 1000
-   * inclusively.
-   * If not set, defaults to 50.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * The pagination token of the next results page. If not set, returns the
-   * first page.
-   *
-   * The token is returned in the response to a previous list request.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * The pagination token of the next results page. If not set, returns the
-   * first page.
-   *
-   * The token is returned in the response to a previous list request.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponse.java deleted file mode 100644 index e5608d0ba1ec..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponse.java +++ /dev/null @@ -1,1123 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for
- * [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListPolicyTagsResponse} - */ -@com.google.protobuf.Generated -public final class ListPolicyTagsResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListPolicyTagsResponse) - ListPolicyTagsResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListPolicyTagsResponse"); - } - - // Use ListPolicyTagsResponse.newBuilder() to construct. - private ListPolicyTagsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListPolicyTagsResponse() { - policyTags_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse.class, - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse.Builder.class); - } - - public static final int POLICY_TAGS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List policyTags_; - - /** - * - * - *
-   * The policy tags that belong to the taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - @java.lang.Override - public java.util.List getPolicyTagsList() { - return policyTags_; - } - - /** - * - * - *
-   * The policy tags that belong to the taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - @java.lang.Override - public java.util.List - getPolicyTagsOrBuilderList() { - return policyTags_; - } - - /** - * - * - *
-   * The policy tags that belong to the taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - @java.lang.Override - public int getPolicyTagsCount() { - return policyTags_.size(); - } - - /** - * - * - *
-   * The policy tags that belong to the taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PolicyTag getPolicyTags(int index) { - return policyTags_.get(index); - } - - /** - * - * - *
-   * The policy tags that belong to the taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PolicyTagOrBuilder getPolicyTagsOrBuilder(int index) { - return policyTags_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < policyTags_.size(); i++) { - output.writeMessage(1, policyTags_.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 < policyTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policyTags_.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.datacatalog.v1.ListPolicyTagsResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse other = - (com.google.cloud.datacatalog.v1.ListPolicyTagsResponse) obj; - - if (!getPolicyTagsList().equals(other.getPolicyTagsList())) 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 (getPolicyTagsCount() > 0) { - hash = (37 * hash) + POLICY_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTagsList().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.datacatalog.v1.ListPolicyTagsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListPolicyTagsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ListPolicyTagsResponse) - com.google.cloud.datacatalog.v1.ListPolicyTagsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse.class, - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ListPolicyTagsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (policyTagsBuilder_ == null) { - policyTags_ = java.util.Collections.emptyList(); - } else { - policyTags_ = null; - policyTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListPolicyTagsResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ListPolicyTagsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListPolicyTagsResponse build() { - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListPolicyTagsResponse buildPartial() { - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse result = - new com.google.cloud.datacatalog.v1.ListPolicyTagsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.ListPolicyTagsResponse result) { - if (policyTagsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - policyTags_ = java.util.Collections.unmodifiableList(policyTags_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.policyTags_ = policyTags_; - } else { - result.policyTags_ = policyTagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ListPolicyTagsResponse 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.datacatalog.v1.ListPolicyTagsResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.ListPolicyTagsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ListPolicyTagsResponse other) { - if (other == com.google.cloud.datacatalog.v1.ListPolicyTagsResponse.getDefaultInstance()) - return this; - if (policyTagsBuilder_ == null) { - if (!other.policyTags_.isEmpty()) { - if (policyTags_.isEmpty()) { - policyTags_ = other.policyTags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePolicyTagsIsMutable(); - policyTags_.addAll(other.policyTags_); - } - onChanged(); - } - } else { - if (!other.policyTags_.isEmpty()) { - if (policyTagsBuilder_.isEmpty()) { - policyTagsBuilder_.dispose(); - policyTagsBuilder_ = null; - policyTags_ = other.policyTags_; - bitField0_ = (bitField0_ & ~0x00000001); - policyTagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetPolicyTagsFieldBuilder() - : null; - } else { - policyTagsBuilder_.addAllMessages(other.policyTags_); - } - } - } - 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.datacatalog.v1.PolicyTag m = - input.readMessage( - com.google.cloud.datacatalog.v1.PolicyTag.parser(), extensionRegistry); - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(m); - } else { - policyTagsBuilder_.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 policyTags_ = - java.util.Collections.emptyList(); - - private void ensurePolicyTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - policyTags_ = - new java.util.ArrayList(policyTags_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.PolicyTag, - com.google.cloud.datacatalog.v1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> - policyTagsBuilder_; - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public java.util.List getPolicyTagsList() { - if (policyTagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(policyTags_); - } else { - return policyTagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public int getPolicyTagsCount() { - if (policyTagsBuilder_ == null) { - return policyTags_.size(); - } else { - return policyTagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public com.google.cloud.datacatalog.v1.PolicyTag getPolicyTags(int index) { - if (policyTagsBuilder_ == null) { - return policyTags_.get(index); - } else { - return policyTagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public Builder setPolicyTags(int index, com.google.cloud.datacatalog.v1.PolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.set(index, value); - onChanged(); - } else { - policyTagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public Builder setPolicyTags( - int index, com.google.cloud.datacatalog.v1.PolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.set(index, builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public Builder addPolicyTags(com.google.cloud.datacatalog.v1.PolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.add(value); - onChanged(); - } else { - policyTagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public Builder addPolicyTags(int index, com.google.cloud.datacatalog.v1.PolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.add(index, value); - onChanged(); - } else { - policyTagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public Builder addPolicyTags( - com.google.cloud.datacatalog.v1.PolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public Builder addPolicyTags( - int index, com.google.cloud.datacatalog.v1.PolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(index, builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public Builder addAllPolicyTags( - java.lang.Iterable values) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyTags_); - onChanged(); - } else { - policyTagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public Builder clearPolicyTags() { - if (policyTagsBuilder_ == null) { - policyTags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - policyTagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public Builder removePolicyTags(int index) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.remove(index); - onChanged(); - } else { - policyTagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public com.google.cloud.datacatalog.v1.PolicyTag.Builder getPolicyTagsBuilder(int index) { - return internalGetPolicyTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public com.google.cloud.datacatalog.v1.PolicyTagOrBuilder getPolicyTagsOrBuilder(int index) { - if (policyTagsBuilder_ == null) { - return policyTags_.get(index); - } else { - return policyTagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public java.util.List - getPolicyTagsOrBuilderList() { - if (policyTagsBuilder_ != null) { - return policyTagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policyTags_); - } - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public com.google.cloud.datacatalog.v1.PolicyTag.Builder addPolicyTagsBuilder() { - return internalGetPolicyTagsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public com.google.cloud.datacatalog.v1.PolicyTag.Builder addPolicyTagsBuilder(int index) { - return internalGetPolicyTagsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * The policy tags that belong to the taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - public java.util.List - getPolicyTagsBuilderList() { - return internalGetPolicyTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.PolicyTag, - com.google.cloud.datacatalog.v1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> - internalGetPolicyTagsFieldBuilder() { - if (policyTagsBuilder_ == null) { - policyTagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.PolicyTag, - com.google.cloud.datacatalog.v1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder>( - policyTags_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - policyTags_ = null; - } - return policyTagsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ListPolicyTagsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ListPolicyTagsResponse) - private static final com.google.cloud.datacatalog.v1.ListPolicyTagsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ListPolicyTagsResponse(); - } - - public static com.google.cloud.datacatalog.v1.ListPolicyTagsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPolicyTagsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListPolicyTagsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponseOrBuilder.java deleted file mode 100644 index 27a33a30a48d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListPolicyTagsResponseOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ListPolicyTagsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ListPolicyTagsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The policy tags that belong to the taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - java.util.List getPolicyTagsList(); - - /** - * - * - *
-   * The policy tags that belong to the taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - com.google.cloud.datacatalog.v1.PolicyTag getPolicyTags(int index); - - /** - * - * - *
-   * The policy tags that belong to the taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - int getPolicyTagsCount(); - - /** - * - * - *
-   * The policy tags that belong to the taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - java.util.List - getPolicyTagsOrBuilderList(); - - /** - * - * - *
-   * The policy tags that belong to the taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.PolicyTag policy_tags = 1; - */ - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder getPolicyTagsOrBuilder(int index); - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequest.java deleted file mode 100644 index 7496487bd1f5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequest.java +++ /dev/null @@ -1,933 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTagsRequest} - */ -@com.google.protobuf.Generated -public final class ListTagsRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTagsRequest) - ListTagsRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListTagsRequest"); - } - - // Use ListTagsRequest.newBuilder() to construct. - private ListTagsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListTagsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListTagsRequest.class, - com.google.cloud.datacatalog.v1.ListTagsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the Data Catalog resource to list the tags of.
-   *
-   * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry]
-   * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]
-   * (without `/entries/{entries}` at the end).
-   * 
- * - * - * 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 Data Catalog resource to list the tags of.
-   *
-   * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry]
-   * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]
-   * (without `/entries/{entries}` at the end).
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * The maximum number of tags to return. Default is 10. Maximum limit is 1000.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - - /** - * - * - *
-   * Pagination token that specifies the next page to return. If empty, the
-   * first page is returned.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Pagination token that specifies the next page to return. If empty, the
-   * first page is returned.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ListTagsRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ListTagsRequest other = - (com.google.cloud.datacatalog.v1.ListTagsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.ListTagsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTagsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ListTagsRequest) - com.google.cloud.datacatalog.v1.ListTagsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListTagsRequest.class, - com.google.cloud.datacatalog.v1.ListTagsRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ListTagsRequest.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_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListTagsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTagsRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ListTagsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTagsRequest build() { - com.google.cloud.datacatalog.v1.ListTagsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTagsRequest buildPartial() { - com.google.cloud.datacatalog.v1.ListTagsRequest result = - new com.google.cloud.datacatalog.v1.ListTagsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ListTagsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ListTagsRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ListTagsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ListTagsRequest other) { - if (other == com.google.cloud.datacatalog.v1.ListTagsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the Data Catalog resource to list the tags of.
-     *
-     * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry]
-     * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]
-     * (without `/entries/{entries}` at the end).
-     * 
- * - * - * 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 Data Catalog resource to list the tags of.
-     *
-     * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry]
-     * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]
-     * (without `/entries/{entries}` at the end).
-     * 
- * - * - * 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 Data Catalog resource to list the tags of.
-     *
-     * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry]
-     * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]
-     * (without `/entries/{entries}` at the end).
-     * 
- * - * - * 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 Data Catalog resource to list the tags of.
-     *
-     * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry]
-     * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]
-     * (without `/entries/{entries}` at the end).
-     * 
- * - * - * 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 Data Catalog resource to list the tags of.
-     *
-     * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry]
-     * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]
-     * (without `/entries/{entries}` at the end).
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_; - - /** - * - * - *
-     * The maximum number of tags to return. Default is 10. Maximum limit is 1000.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
-     * The maximum number of tags to return. Default is 10. Maximum limit is 1000.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The maximum number of tags to return. Default is 10. Maximum limit is 1000.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - - /** - * - * - *
-     * Pagination token that specifies the next page to return. If empty, the
-     * first page is returned.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Pagination token that specifies the next page to return. If empty, the
-     * first page is returned.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Pagination token that specifies the next page to return. If empty, the
-     * first page is returned.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token that specifies the next page to return. If empty, the
-     * first page is returned.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token that specifies the next page to return. If empty, the
-     * first page is returned.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ListTagsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ListTagsRequest) - private static final com.google.cloud.datacatalog.v1.ListTagsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ListTagsRequest(); - } - - public static com.google.cloud.datacatalog.v1.ListTagsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTagsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTagsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequestOrBuilder.java deleted file mode 100644 index 0f84a4d34a43..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsRequestOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ListTagsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ListTagsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the Data Catalog resource to list the tags of.
-   *
-   * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry]
-   * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]
-   * (without `/entries/{entries}` at the end).
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the Data Catalog resource to list the tags of.
-   *
-   * The resource can be an [Entry][google.cloud.datacatalog.v1.Entry]
-   * or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]
-   * (without `/entries/{entries}` at the end).
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of tags to return. Default is 10. Maximum limit is 1000.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Pagination token that specifies the next page to return. If empty, the
-   * first page is returned.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * Pagination token that specifies the next page to return. If empty, the
-   * first page is returned.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponse.java deleted file mode 100644 index e74a8dc7de0b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponse.java +++ /dev/null @@ -1,1117 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for
- * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTagsResponse} - */ -@com.google.protobuf.Generated -public final class ListTagsResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTagsResponse) - ListTagsResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListTagsResponse"); - } - - // Use ListTagsResponse.newBuilder() to construct. - private ListTagsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListTagsResponse() { - tags_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListTagsResponse.class, - com.google.cloud.datacatalog.v1.ListTagsResponse.Builder.class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List tags_; - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - @java.lang.Override - public java.util.List getTagsList() { - return tags_; - } - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - @java.lang.Override - public java.util.List - getTagsOrBuilderList() { - return tags_; - } - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - @java.lang.Override - public int getTagsCount() { - return tags_.size(); - } - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Tag getTags(int index) { - return tags_.get(index); - } - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagOrBuilder getTagsOrBuilder(int index) { - return tags_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are
-   * no more items in results.
-   * 
- * - * 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; - } - } - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are
-   * no more items in results.
-   * 
- * - * 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 < tags_.size(); i++) { - output.writeMessage(1, tags_.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 < tags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tags_.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.datacatalog.v1.ListTagsResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ListTagsResponse other = - (com.google.cloud.datacatalog.v1.ListTagsResponse) obj; - - if (!getTagsList().equals(other.getTagsList())) 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 (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().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.datacatalog.v1.ListTagsResponse parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.ListTagsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTagsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ListTagsResponse) - com.google.cloud.datacatalog.v1.ListTagsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListTagsResponse.class, - com.google.cloud.datacatalog.v1.ListTagsResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ListTagsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (tagsBuilder_ == null) { - tags_ = java.util.Collections.emptyList(); - } else { - tags_ = null; - tagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ListTagsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTagsResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ListTagsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTagsResponse build() { - com.google.cloud.datacatalog.v1.ListTagsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTagsResponse buildPartial() { - com.google.cloud.datacatalog.v1.ListTagsResponse result = - new com.google.cloud.datacatalog.v1.ListTagsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.ListTagsResponse result) { - if (tagsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tags_ = java.util.Collections.unmodifiableList(tags_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tags_ = tags_; - } else { - result.tags_ = tagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ListTagsResponse 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.datacatalog.v1.ListTagsResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.ListTagsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ListTagsResponse other) { - if (other == com.google.cloud.datacatalog.v1.ListTagsResponse.getDefaultInstance()) - return this; - if (tagsBuilder_ == null) { - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - } else { - if (!other.tags_.isEmpty()) { - if (tagsBuilder_.isEmpty()) { - tagsBuilder_.dispose(); - tagsBuilder_ = null; - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); - tagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTagsFieldBuilder() - : null; - } else { - tagsBuilder_.addAllMessages(other.tags_); - } - } - } - 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.datacatalog.v1.Tag m = - input.readMessage( - com.google.cloud.datacatalog.v1.Tag.parser(), extensionRegistry); - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(m); - } else { - tagsBuilder_.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 tags_ = - java.util.Collections.emptyList(); - - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tags_ = new java.util.ArrayList(tags_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - tagsBuilder_; - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public java.util.List getTagsList() { - if (tagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(tags_); - } else { - return tagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public int getTagsCount() { - if (tagsBuilder_ == null) { - return tags_.size(); - } else { - return tagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public com.google.cloud.datacatalog.v1.Tag getTags(int index) { - if (tagsBuilder_ == null) { - return tags_.get(index); - } else { - return tagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public Builder setTags(int index, com.google.cloud.datacatalog.v1.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - } else { - tagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public Builder setTags(int index, com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.set(index, builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public Builder addTags(com.google.cloud.datacatalog.v1.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - } else { - tagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public Builder addTags(int index, com.google.cloud.datacatalog.v1.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(index, value); - onChanged(); - } else { - tagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public Builder addTags(com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public Builder addTags(int index, com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(index, builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public Builder addAllTags( - java.lang.Iterable values) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - onChanged(); - } else { - tagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public Builder clearTags() { - if (tagsBuilder_ == null) { - tags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public Builder removeTags(int index) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.remove(index); - onChanged(); - } else { - tagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public com.google.cloud.datacatalog.v1.Tag.Builder getTagsBuilder(int index) { - return internalGetTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public com.google.cloud.datacatalog.v1.TagOrBuilder getTagsOrBuilder(int index) { - if (tagsBuilder_ == null) { - return tags_.get(index); - } else { - return tagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public java.util.List - getTagsOrBuilderList() { - if (tagsBuilder_ != null) { - return tagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tags_); - } - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public com.google.cloud.datacatalog.v1.Tag.Builder addTagsBuilder() { - return internalGetTagsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()); - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public com.google.cloud.datacatalog.v1.Tag.Builder addTagsBuilder(int index) { - return internalGetTagsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()); - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - public java.util.List getTagsBuilderList() { - return internalGetTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - internalGetTagsFieldBuilder() { - if (tagsBuilder_ == null) { - tagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder>( - tags_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - tags_ = null; - } - return tagsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are
-     * no more items in results.
-     * 
- * - * 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; - } - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are
-     * no more items in results.
-     * 
- * - * 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; - } - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are
-     * no more items in results.
-     * 
- * - * 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; - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are
-     * no more items in results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are
-     * no more items in results.
-     * 
- * - * 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.datacatalog.v1.ListTagsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ListTagsResponse) - private static final com.google.cloud.datacatalog.v1.ListTagsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ListTagsResponse(); - } - - public static com.google.cloud.datacatalog.v1.ListTagsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTagsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTagsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponseOrBuilder.java deleted file mode 100644 index f6d59c4cbc57..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTagsResponseOrBuilder.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ListTagsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ListTagsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - java.util.List getTagsList(); - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - com.google.cloud.datacatalog.v1.Tag getTags(int index); - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - int getTagsCount(); - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - java.util.List getTagsOrBuilderList(); - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 1; - */ - com.google.cloud.datacatalog.v1.TagOrBuilder getTagsOrBuilder(int index); - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are
-   * no more items in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are
-   * no more items in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequest.java deleted file mode 100644 index 9157c6935dda..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequest.java +++ /dev/null @@ -1,1120 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTaxonomiesRequest} - */ -@com.google.protobuf.Generated -public final class ListTaxonomiesRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTaxonomiesRequest) - ListTaxonomiesRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListTaxonomiesRequest"); - } - - // Use ListTaxonomiesRequest.newBuilder() to construct. - private ListTaxonomiesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListTaxonomiesRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of the project to list the taxonomies of.
-   * 
- * - * - * 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. Resource name of the project to list the taxonomies of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * The maximum number of items to return. Must be a value between 1 and 1000
-   * inclusively. If not set, defaults to 50.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - - /** - * - * - *
-   * The pagination token of the next results page. If not set,
-   * the first page is returned.
-   *
-   * The token is returned in the response to a previous list request.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * The pagination token of the next results page. If not set,
-   * the first page is returned.
-   *
-   * The token is returned in the response to a previous list request.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; - - /** - * - * - *
-   * Supported field for filter is 'service' and value is 'dataplex'.
-   * Eg: service=dataplex.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - - /** - * - * - *
-   * Supported field for filter is 'service' and value is 'dataplex'.
-   * Eg: service=dataplex.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1.ListTaxonomiesRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest other = - (com.google.cloud.datacatalog.v1.ListTaxonomiesRequest) 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.datacatalog.v1.ListTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTaxonomiesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ListTaxonomiesRequest) - com.google.cloud.datacatalog.v1.ListTaxonomiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ListTaxonomiesRequest.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.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTaxonomiesRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ListTaxonomiesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTaxonomiesRequest build() { - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTaxonomiesRequest buildPartial() { - com.google.cloud.datacatalog.v1.ListTaxonomiesRequest result = - new com.google.cloud.datacatalog.v1.ListTaxonomiesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ListTaxonomiesRequest 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.datacatalog.v1.ListTaxonomiesRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ListTaxonomiesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ListTaxonomiesRequest other) { - if (other == com.google.cloud.datacatalog.v1.ListTaxonomiesRequest.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. Resource name of the project to list the taxonomies of.
-     * 
- * - * - * 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. Resource name of the project to list the taxonomies of.
-     * 
- * - * - * 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. Resource name of the project to list the taxonomies of.
-     * 
- * - * - * 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. Resource name of the project to list the taxonomies of.
-     * 
- * - * - * 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. Resource name of the project to list the taxonomies of.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_; - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000
-     * inclusively. If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000
-     * inclusively. If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000
-     * inclusively. If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - - /** - * - * - *
-     * The pagination token of the next results page. If not set,
-     * the first page is returned.
-     *
-     * The token is returned in the response to a previous list request.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The pagination token of the next results page. If not set,
-     * the first page is returned.
-     *
-     * The token is returned in the response to a previous list request.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The pagination token of the next results page. If not set,
-     * the first page is returned.
-     *
-     * The token is returned in the response to a previous list request.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The pagination token of the next results page. If not set,
-     * the first page is returned.
-     *
-     * The token is returned in the response to a previous list request.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * The pagination token of the next results page. If not set,
-     * the first page is returned.
-     *
-     * The token is returned in the response to a previous list request.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - - /** - * - * - *
-     * Supported field for filter is 'service' and value is 'dataplex'.
-     * Eg: service=dataplex.
-     * 
- * - * string filter = 4; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Supported field for filter is 'service' and value is 'dataplex'.
-     * Eg: service=dataplex.
-     * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Supported field for filter is 'service' and value is 'dataplex'.
-     * Eg: service=dataplex.
-     * 
- * - * string filter = 4; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Supported field for filter is 'service' and value is 'dataplex'.
-     * Eg: service=dataplex.
-     * 
- * - * string filter = 4; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Supported field for filter is 'service' and value is 'dataplex'.
-     * Eg: service=dataplex.
-     * 
- * - * string filter = 4; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - filter_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ListTaxonomiesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ListTaxonomiesRequest) - private static final com.google.cloud.datacatalog.v1.ListTaxonomiesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ListTaxonomiesRequest(); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTaxonomiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTaxonomiesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequestOrBuilder.java deleted file mode 100644 index 5015c35f56b7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ListTaxonomiesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ListTaxonomiesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the project to list the taxonomies of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of the project to list the taxonomies of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of items to return. Must be a value between 1 and 1000
-   * inclusively. If not set, defaults to 50.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * The pagination token of the next results page. If not set,
-   * the first page is returned.
-   *
-   * The token is returned in the response to a previous list request.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * The pagination token of the next results page. If not set,
-   * the first page is returned.
-   *
-   * The token is returned in the response to a previous list request.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Supported field for filter is 'service' and value is 'dataplex'.
-   * Eg: service=dataplex.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - java.lang.String getFilter(); - - /** - * - * - *
-   * Supported field for filter is 'service' and value is 'dataplex'.
-   * Eg: service=dataplex.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponse.java deleted file mode 100644 index 10222112f946..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponse.java +++ /dev/null @@ -1,1122 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for
- * [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTaxonomiesResponse} - */ -@com.google.protobuf.Generated -public final class ListTaxonomiesResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ListTaxonomiesResponse) - ListTaxonomiesResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListTaxonomiesResponse"); - } - - // Use ListTaxonomiesResponse.newBuilder() to construct. - private ListTaxonomiesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse.Builder.class); - } - - public static final int TAXONOMIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List taxonomies_; - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List getTaxonomiesList() { - return taxonomies_; - } - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List - getTaxonomiesOrBuilderList() { - return taxonomies_; - } - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomiesOrBuilder(int index) { - return taxonomies_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < taxonomies_.size(); i++) { - output.writeMessage(1, taxonomies_.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 < taxonomies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taxonomies_.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.datacatalog.v1.ListTaxonomiesResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse other = - (com.google.cloud.datacatalog.v1.ListTaxonomiesResponse) obj; - - if (!getTaxonomiesList().equals(other.getTaxonomiesList())) 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 (getTaxonomiesCount() > 0) { - hash = (37 * hash) + TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomiesList().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.datacatalog.v1.ListTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ListTaxonomiesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ListTaxonomiesResponse) - com.google.cloud.datacatalog.v1.ListTaxonomiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ListTaxonomiesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - } else { - taxonomies_ = null; - taxonomiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTaxonomiesResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ListTaxonomiesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTaxonomiesResponse build() { - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTaxonomiesResponse buildPartial() { - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse result = - new com.google.cloud.datacatalog.v1.ListTaxonomiesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.ListTaxonomiesResponse result) { - if (taxonomiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = java.util.Collections.unmodifiableList(taxonomies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taxonomies_ = taxonomies_; - } else { - result.taxonomies_ = taxonomiesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ListTaxonomiesResponse 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.datacatalog.v1.ListTaxonomiesResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.ListTaxonomiesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ListTaxonomiesResponse other) { - if (other == com.google.cloud.datacatalog.v1.ListTaxonomiesResponse.getDefaultInstance()) - return this; - if (taxonomiesBuilder_ == null) { - if (!other.taxonomies_.isEmpty()) { - if (taxonomies_.isEmpty()) { - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaxonomiesIsMutable(); - taxonomies_.addAll(other.taxonomies_); - } - onChanged(); - } - } else { - if (!other.taxonomies_.isEmpty()) { - if (taxonomiesBuilder_.isEmpty()) { - taxonomiesBuilder_.dispose(); - taxonomiesBuilder_ = null; - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - taxonomiesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTaxonomiesFieldBuilder() - : null; - } else { - taxonomiesBuilder_.addAllMessages(other.taxonomies_); - } - } - } - 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.datacatalog.v1.Taxonomy m = - input.readMessage( - com.google.cloud.datacatalog.v1.Taxonomy.parser(), extensionRegistry); - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(m); - } else { - taxonomiesBuilder_.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 taxonomies_ = - java.util.Collections.emptyList(); - - private void ensureTaxonomiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = - new java.util.ArrayList(taxonomies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - taxonomiesBuilder_; - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public java.util.List getTaxonomiesList() { - if (taxonomiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(taxonomies_); - } else { - return taxonomiesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public int getTaxonomiesCount() { - if (taxonomiesBuilder_ == null) { - return taxonomies_.size(); - } else { - return taxonomiesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder setTaxonomies(int index, com.google.cloud.datacatalog.v1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, value); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder setTaxonomies( - int index, com.google.cloud.datacatalog.v1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies(com.google.cloud.datacatalog.v1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies(int index, com.google.cloud.datacatalog.v1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies(com.google.cloud.datacatalog.v1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - int index, com.google.cloud.datacatalog.v1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder addAllTaxonomies( - java.lang.Iterable values) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taxonomies_); - onChanged(); - } else { - taxonomiesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder clearTaxonomies() { - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taxonomiesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public Builder removeTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.remove(index); - onChanged(); - } else { - taxonomiesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.Taxonomy.Builder getTaxonomiesBuilder(int index) { - return internalGetTaxonomiesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomiesOrBuilder(int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesOrBuilderList() { - if (taxonomiesBuilder_ != null) { - return taxonomiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taxonomies_); - } - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.Taxonomy.Builder addTaxonomiesBuilder() { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1.Taxonomy.Builder addTaxonomiesBuilder(int index) { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesBuilderList() { - return internalGetTaxonomiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - internalGetTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder>( - taxonomies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - taxonomies_ = null; - } - return taxonomiesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token of the next results page. Empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ListTaxonomiesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ListTaxonomiesResponse) - private static final com.google.cloud.datacatalog.v1.ListTaxonomiesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ListTaxonomiesResponse(); - } - - public static com.google.cloud.datacatalog.v1.ListTaxonomiesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTaxonomiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ListTaxonomiesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponseOrBuilder.java deleted file mode 100644 index 129c58eabffd..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ListTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ListTaxonomiesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ListTaxonomiesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - java.util.List getTaxonomiesList(); - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1.Taxonomy getTaxonomies(int index); - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - int getTaxonomiesCount(); - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - java.util.List - getTaxonomiesOrBuilderList(); - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomiesOrBuilder(int index); - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Pagination token of the next results page. Empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LocationName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LocationName.java deleted file mode 100644 index 143aae810c6a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LocationName.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpec.java deleted file mode 100644 index 0df2ccc846fe..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpec.java +++ /dev/null @@ -1,1552 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to
- * entries that are part `LOOKER` system
- * (user_specified_type)
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.LookerSystemSpec} - */ -@com.google.protobuf.Generated -public final class LookerSystemSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.LookerSystemSpec) - LookerSystemSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "LookerSystemSpec"); - } - - // Use LookerSystemSpec.newBuilder() to construct. - private LookerSystemSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private LookerSystemSpec() { - parentInstanceId_ = ""; - parentInstanceDisplayName_ = ""; - parentModelId_ = ""; - parentModelDisplayName_ = ""; - parentViewId_ = ""; - parentViewDisplayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.LookerSystemSpec.class, - com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder.class); - } - - public static final int PARENT_INSTANCE_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parentInstanceId_ = ""; - - /** - * - * - *
-   * ID of the parent Looker Instance. Empty if it does not exist.
-   * Example value: `someinstance.looker.com`
-   * 
- * - * string parent_instance_id = 1; - * - * @return The parentInstanceId. - */ - @java.lang.Override - public java.lang.String getParentInstanceId() { - java.lang.Object ref = parentInstanceId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentInstanceId_ = s; - return s; - } - } - - /** - * - * - *
-   * ID of the parent Looker Instance. Empty if it does not exist.
-   * Example value: `someinstance.looker.com`
-   * 
- * - * string parent_instance_id = 1; - * - * @return The bytes for parentInstanceId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentInstanceIdBytes() { - java.lang.Object ref = parentInstanceId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentInstanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_INSTANCE_DISPLAY_NAME_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object parentInstanceDisplayName_ = ""; - - /** - * - * - *
-   * Name of the parent Looker Instance. Empty if it does not exist.
-   * 
- * - * string parent_instance_display_name = 2; - * - * @return The parentInstanceDisplayName. - */ - @java.lang.Override - public java.lang.String getParentInstanceDisplayName() { - java.lang.Object ref = parentInstanceDisplayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentInstanceDisplayName_ = s; - return s; - } - } - - /** - * - * - *
-   * Name of the parent Looker Instance. Empty if it does not exist.
-   * 
- * - * string parent_instance_display_name = 2; - * - * @return The bytes for parentInstanceDisplayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentInstanceDisplayNameBytes() { - java.lang.Object ref = parentInstanceDisplayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentInstanceDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_MODEL_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object parentModelId_ = ""; - - /** - * - * - *
-   * ID of the parent Model. Empty if it does not exist.
-   * 
- * - * string parent_model_id = 3; - * - * @return The parentModelId. - */ - @java.lang.Override - public java.lang.String getParentModelId() { - java.lang.Object ref = parentModelId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentModelId_ = s; - return s; - } - } - - /** - * - * - *
-   * ID of the parent Model. Empty if it does not exist.
-   * 
- * - * string parent_model_id = 3; - * - * @return The bytes for parentModelId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentModelIdBytes() { - java.lang.Object ref = parentModelId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentModelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_MODEL_DISPLAY_NAME_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object parentModelDisplayName_ = ""; - - /** - * - * - *
-   * Name of the parent Model. Empty if it does not exist.
-   * 
- * - * string parent_model_display_name = 4; - * - * @return The parentModelDisplayName. - */ - @java.lang.Override - public java.lang.String getParentModelDisplayName() { - java.lang.Object ref = parentModelDisplayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentModelDisplayName_ = s; - return s; - } - } - - /** - * - * - *
-   * Name of the parent Model. Empty if it does not exist.
-   * 
- * - * string parent_model_display_name = 4; - * - * @return The bytes for parentModelDisplayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentModelDisplayNameBytes() { - java.lang.Object ref = parentModelDisplayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentModelDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_VIEW_ID_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object parentViewId_ = ""; - - /** - * - * - *
-   * ID of the parent View. Empty if it does not exist.
-   * 
- * - * string parent_view_id = 5; - * - * @return The parentViewId. - */ - @java.lang.Override - public java.lang.String getParentViewId() { - java.lang.Object ref = parentViewId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentViewId_ = s; - return s; - } - } - - /** - * - * - *
-   * ID of the parent View. Empty if it does not exist.
-   * 
- * - * string parent_view_id = 5; - * - * @return The bytes for parentViewId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentViewIdBytes() { - java.lang.Object ref = parentViewId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentViewId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_VIEW_DISPLAY_NAME_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object parentViewDisplayName_ = ""; - - /** - * - * - *
-   * Name of the parent View. Empty if it does not exist.
-   * 
- * - * string parent_view_display_name = 6; - * - * @return The parentViewDisplayName. - */ - @java.lang.Override - public java.lang.String getParentViewDisplayName() { - java.lang.Object ref = parentViewDisplayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentViewDisplayName_ = s; - return s; - } - } - - /** - * - * - *
-   * Name of the parent View. Empty if it does not exist.
-   * 
- * - * string parent_view_display_name = 6; - * - * @return The bytes for parentViewDisplayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentViewDisplayNameBytes() { - java.lang.Object ref = parentViewDisplayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentViewDisplayName_ = 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(parentInstanceId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, parentInstanceId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentInstanceDisplayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, parentInstanceDisplayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentModelId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, parentModelId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentModelDisplayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, parentModelDisplayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentViewId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, parentViewId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentViewDisplayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, parentViewDisplayName_); - } - 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(parentInstanceId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parentInstanceId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentInstanceDisplayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, parentInstanceDisplayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentModelId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, parentModelId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentModelDisplayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parentModelDisplayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentViewId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, parentViewId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentViewDisplayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(6, parentViewDisplayName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.LookerSystemSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.LookerSystemSpec other = - (com.google.cloud.datacatalog.v1.LookerSystemSpec) obj; - - if (!getParentInstanceId().equals(other.getParentInstanceId())) return false; - if (!getParentInstanceDisplayName().equals(other.getParentInstanceDisplayName())) return false; - if (!getParentModelId().equals(other.getParentModelId())) return false; - if (!getParentModelDisplayName().equals(other.getParentModelDisplayName())) return false; - if (!getParentViewId().equals(other.getParentViewId())) return false; - if (!getParentViewDisplayName().equals(other.getParentViewDisplayName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_INSTANCE_ID_FIELD_NUMBER; - hash = (53 * hash) + getParentInstanceId().hashCode(); - hash = (37 * hash) + PARENT_INSTANCE_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getParentInstanceDisplayName().hashCode(); - hash = (37 * hash) + PARENT_MODEL_ID_FIELD_NUMBER; - hash = (53 * hash) + getParentModelId().hashCode(); - hash = (37 * hash) + PARENT_MODEL_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getParentModelDisplayName().hashCode(); - hash = (37 * hash) + PARENT_VIEW_ID_FIELD_NUMBER; - hash = (53 * hash) + getParentViewId().hashCode(); - hash = (37 * hash) + PARENT_VIEW_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getParentViewDisplayName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.LookerSystemSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to
-   * entries that are part `LOOKER` system
-   * (user_specified_type)
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.LookerSystemSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.LookerSystemSpec) - com.google.cloud.datacatalog.v1.LookerSystemSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.LookerSystemSpec.class, - com.google.cloud.datacatalog.v1.LookerSystemSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.LookerSystemSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parentInstanceId_ = ""; - parentInstanceDisplayName_ = ""; - parentModelId_ = ""; - parentModelDisplayName_ = ""; - parentViewId_ = ""; - parentViewDisplayName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_LookerSystemSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookerSystemSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookerSystemSpec build() { - com.google.cloud.datacatalog.v1.LookerSystemSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookerSystemSpec buildPartial() { - com.google.cloud.datacatalog.v1.LookerSystemSpec result = - new com.google.cloud.datacatalog.v1.LookerSystemSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.LookerSystemSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parentInstanceId_ = parentInstanceId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.parentInstanceDisplayName_ = parentInstanceDisplayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.parentModelId_ = parentModelId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.parentModelDisplayName_ = parentModelDisplayName_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.parentViewId_ = parentViewId_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.parentViewDisplayName_ = parentViewDisplayName_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.LookerSystemSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.LookerSystemSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.LookerSystemSpec other) { - if (other == com.google.cloud.datacatalog.v1.LookerSystemSpec.getDefaultInstance()) - return this; - if (!other.getParentInstanceId().isEmpty()) { - parentInstanceId_ = other.parentInstanceId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getParentInstanceDisplayName().isEmpty()) { - parentInstanceDisplayName_ = other.parentInstanceDisplayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getParentModelId().isEmpty()) { - parentModelId_ = other.parentModelId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getParentModelDisplayName().isEmpty()) { - parentModelDisplayName_ = other.parentModelDisplayName_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getParentViewId().isEmpty()) { - parentViewId_ = other.parentViewId_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (!other.getParentViewDisplayName().isEmpty()) { - parentViewDisplayName_ = other.parentViewDisplayName_; - 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 10: - { - parentInstanceId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - parentInstanceDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - parentModelId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - parentModelDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - parentViewId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - parentViewDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - 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 parentInstanceId_ = ""; - - /** - * - * - *
-     * ID of the parent Looker Instance. Empty if it does not exist.
-     * Example value: `someinstance.looker.com`
-     * 
- * - * string parent_instance_id = 1; - * - * @return The parentInstanceId. - */ - public java.lang.String getParentInstanceId() { - java.lang.Object ref = parentInstanceId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentInstanceId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * ID of the parent Looker Instance. Empty if it does not exist.
-     * Example value: `someinstance.looker.com`
-     * 
- * - * string parent_instance_id = 1; - * - * @return The bytes for parentInstanceId. - */ - public com.google.protobuf.ByteString getParentInstanceIdBytes() { - java.lang.Object ref = parentInstanceId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentInstanceId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * ID of the parent Looker Instance. Empty if it does not exist.
-     * Example value: `someinstance.looker.com`
-     * 
- * - * string parent_instance_id = 1; - * - * @param value The parentInstanceId to set. - * @return This builder for chaining. - */ - public Builder setParentInstanceId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parentInstanceId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * ID of the parent Looker Instance. Empty if it does not exist.
-     * Example value: `someinstance.looker.com`
-     * 
- * - * string parent_instance_id = 1; - * - * @return This builder for chaining. - */ - public Builder clearParentInstanceId() { - parentInstanceId_ = getDefaultInstance().getParentInstanceId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * ID of the parent Looker Instance. Empty if it does not exist.
-     * Example value: `someinstance.looker.com`
-     * 
- * - * string parent_instance_id = 1; - * - * @param value The bytes for parentInstanceId to set. - * @return This builder for chaining. - */ - public Builder setParentInstanceIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parentInstanceId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object parentInstanceDisplayName_ = ""; - - /** - * - * - *
-     * Name of the parent Looker Instance. Empty if it does not exist.
-     * 
- * - * string parent_instance_display_name = 2; - * - * @return The parentInstanceDisplayName. - */ - public java.lang.String getParentInstanceDisplayName() { - java.lang.Object ref = parentInstanceDisplayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentInstanceDisplayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Name of the parent Looker Instance. Empty if it does not exist.
-     * 
- * - * string parent_instance_display_name = 2; - * - * @return The bytes for parentInstanceDisplayName. - */ - public com.google.protobuf.ByteString getParentInstanceDisplayNameBytes() { - java.lang.Object ref = parentInstanceDisplayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentInstanceDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Name of the parent Looker Instance. Empty if it does not exist.
-     * 
- * - * string parent_instance_display_name = 2; - * - * @param value The parentInstanceDisplayName to set. - * @return This builder for chaining. - */ - public Builder setParentInstanceDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parentInstanceDisplayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Name of the parent Looker Instance. Empty if it does not exist.
-     * 
- * - * string parent_instance_display_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearParentInstanceDisplayName() { - parentInstanceDisplayName_ = getDefaultInstance().getParentInstanceDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Name of the parent Looker Instance. Empty if it does not exist.
-     * 
- * - * string parent_instance_display_name = 2; - * - * @param value The bytes for parentInstanceDisplayName to set. - * @return This builder for chaining. - */ - public Builder setParentInstanceDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parentInstanceDisplayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object parentModelId_ = ""; - - /** - * - * - *
-     * ID of the parent Model. Empty if it does not exist.
-     * 
- * - * string parent_model_id = 3; - * - * @return The parentModelId. - */ - public java.lang.String getParentModelId() { - java.lang.Object ref = parentModelId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentModelId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * ID of the parent Model. Empty if it does not exist.
-     * 
- * - * string parent_model_id = 3; - * - * @return The bytes for parentModelId. - */ - public com.google.protobuf.ByteString getParentModelIdBytes() { - java.lang.Object ref = parentModelId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentModelId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * ID of the parent Model. Empty if it does not exist.
-     * 
- * - * string parent_model_id = 3; - * - * @param value The parentModelId to set. - * @return This builder for chaining. - */ - public Builder setParentModelId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parentModelId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * ID of the parent Model. Empty if it does not exist.
-     * 
- * - * string parent_model_id = 3; - * - * @return This builder for chaining. - */ - public Builder clearParentModelId() { - parentModelId_ = getDefaultInstance().getParentModelId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * ID of the parent Model. Empty if it does not exist.
-     * 
- * - * string parent_model_id = 3; - * - * @param value The bytes for parentModelId to set. - * @return This builder for chaining. - */ - public Builder setParentModelIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parentModelId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object parentModelDisplayName_ = ""; - - /** - * - * - *
-     * Name of the parent Model. Empty if it does not exist.
-     * 
- * - * string parent_model_display_name = 4; - * - * @return The parentModelDisplayName. - */ - public java.lang.String getParentModelDisplayName() { - java.lang.Object ref = parentModelDisplayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentModelDisplayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Name of the parent Model. Empty if it does not exist.
-     * 
- * - * string parent_model_display_name = 4; - * - * @return The bytes for parentModelDisplayName. - */ - public com.google.protobuf.ByteString getParentModelDisplayNameBytes() { - java.lang.Object ref = parentModelDisplayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentModelDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Name of the parent Model. Empty if it does not exist.
-     * 
- * - * string parent_model_display_name = 4; - * - * @param value The parentModelDisplayName to set. - * @return This builder for chaining. - */ - public Builder setParentModelDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parentModelDisplayName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Name of the parent Model. Empty if it does not exist.
-     * 
- * - * string parent_model_display_name = 4; - * - * @return This builder for chaining. - */ - public Builder clearParentModelDisplayName() { - parentModelDisplayName_ = getDefaultInstance().getParentModelDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Name of the parent Model. Empty if it does not exist.
-     * 
- * - * string parent_model_display_name = 4; - * - * @param value The bytes for parentModelDisplayName to set. - * @return This builder for chaining. - */ - public Builder setParentModelDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parentModelDisplayName_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object parentViewId_ = ""; - - /** - * - * - *
-     * ID of the parent View. Empty if it does not exist.
-     * 
- * - * string parent_view_id = 5; - * - * @return The parentViewId. - */ - public java.lang.String getParentViewId() { - java.lang.Object ref = parentViewId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentViewId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * ID of the parent View. Empty if it does not exist.
-     * 
- * - * string parent_view_id = 5; - * - * @return The bytes for parentViewId. - */ - public com.google.protobuf.ByteString getParentViewIdBytes() { - java.lang.Object ref = parentViewId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentViewId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * ID of the parent View. Empty if it does not exist.
-     * 
- * - * string parent_view_id = 5; - * - * @param value The parentViewId to set. - * @return This builder for chaining. - */ - public Builder setParentViewId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parentViewId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * ID of the parent View. Empty if it does not exist.
-     * 
- * - * string parent_view_id = 5; - * - * @return This builder for chaining. - */ - public Builder clearParentViewId() { - parentViewId_ = getDefaultInstance().getParentViewId(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - /** - * - * - *
-     * ID of the parent View. Empty if it does not exist.
-     * 
- * - * string parent_view_id = 5; - * - * @param value The bytes for parentViewId to set. - * @return This builder for chaining. - */ - public Builder setParentViewIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parentViewId_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object parentViewDisplayName_ = ""; - - /** - * - * - *
-     * Name of the parent View. Empty if it does not exist.
-     * 
- * - * string parent_view_display_name = 6; - * - * @return The parentViewDisplayName. - */ - public java.lang.String getParentViewDisplayName() { - java.lang.Object ref = parentViewDisplayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentViewDisplayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Name of the parent View. Empty if it does not exist.
-     * 
- * - * string parent_view_display_name = 6; - * - * @return The bytes for parentViewDisplayName. - */ - public com.google.protobuf.ByteString getParentViewDisplayNameBytes() { - java.lang.Object ref = parentViewDisplayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentViewDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Name of the parent View. Empty if it does not exist.
-     * 
- * - * string parent_view_display_name = 6; - * - * @param value The parentViewDisplayName to set. - * @return This builder for chaining. - */ - public Builder setParentViewDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parentViewDisplayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
-     * Name of the parent View. Empty if it does not exist.
-     * 
- * - * string parent_view_display_name = 6; - * - * @return This builder for chaining. - */ - public Builder clearParentViewDisplayName() { - parentViewDisplayName_ = getDefaultInstance().getParentViewDisplayName(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - /** - * - * - *
-     * Name of the parent View. Empty if it does not exist.
-     * 
- * - * string parent_view_display_name = 6; - * - * @param value The bytes for parentViewDisplayName to set. - * @return This builder for chaining. - */ - public Builder setParentViewDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parentViewDisplayName_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.LookerSystemSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.LookerSystemSpec) - private static final com.google.cloud.datacatalog.v1.LookerSystemSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.LookerSystemSpec(); - } - - public static com.google.cloud.datacatalog.v1.LookerSystemSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LookerSystemSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookerSystemSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpecOrBuilder.java deleted file mode 100644 index acb52ac2f558..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookerSystemSpecOrBuilder.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface LookerSystemSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.LookerSystemSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * ID of the parent Looker Instance. Empty if it does not exist.
-   * Example value: `someinstance.looker.com`
-   * 
- * - * string parent_instance_id = 1; - * - * @return The parentInstanceId. - */ - java.lang.String getParentInstanceId(); - - /** - * - * - *
-   * ID of the parent Looker Instance. Empty if it does not exist.
-   * Example value: `someinstance.looker.com`
-   * 
- * - * string parent_instance_id = 1; - * - * @return The bytes for parentInstanceId. - */ - com.google.protobuf.ByteString getParentInstanceIdBytes(); - - /** - * - * - *
-   * Name of the parent Looker Instance. Empty if it does not exist.
-   * 
- * - * string parent_instance_display_name = 2; - * - * @return The parentInstanceDisplayName. - */ - java.lang.String getParentInstanceDisplayName(); - - /** - * - * - *
-   * Name of the parent Looker Instance. Empty if it does not exist.
-   * 
- * - * string parent_instance_display_name = 2; - * - * @return The bytes for parentInstanceDisplayName. - */ - com.google.protobuf.ByteString getParentInstanceDisplayNameBytes(); - - /** - * - * - *
-   * ID of the parent Model. Empty if it does not exist.
-   * 
- * - * string parent_model_id = 3; - * - * @return The parentModelId. - */ - java.lang.String getParentModelId(); - - /** - * - * - *
-   * ID of the parent Model. Empty if it does not exist.
-   * 
- * - * string parent_model_id = 3; - * - * @return The bytes for parentModelId. - */ - com.google.protobuf.ByteString getParentModelIdBytes(); - - /** - * - * - *
-   * Name of the parent Model. Empty if it does not exist.
-   * 
- * - * string parent_model_display_name = 4; - * - * @return The parentModelDisplayName. - */ - java.lang.String getParentModelDisplayName(); - - /** - * - * - *
-   * Name of the parent Model. Empty if it does not exist.
-   * 
- * - * string parent_model_display_name = 4; - * - * @return The bytes for parentModelDisplayName. - */ - com.google.protobuf.ByteString getParentModelDisplayNameBytes(); - - /** - * - * - *
-   * ID of the parent View. Empty if it does not exist.
-   * 
- * - * string parent_view_id = 5; - * - * @return The parentViewId. - */ - java.lang.String getParentViewId(); - - /** - * - * - *
-   * ID of the parent View. Empty if it does not exist.
-   * 
- * - * string parent_view_id = 5; - * - * @return The bytes for parentViewId. - */ - com.google.protobuf.ByteString getParentViewIdBytes(); - - /** - * - * - *
-   * Name of the parent View. Empty if it does not exist.
-   * 
- * - * string parent_view_display_name = 6; - * - * @return The parentViewDisplayName. - */ - java.lang.String getParentViewDisplayName(); - - /** - * - * - *
-   * Name of the parent View. Empty if it does not exist.
-   * 
- * - * string parent_view_display_name = 6; - * - * @return The bytes for parentViewDisplayName. - */ - com.google.protobuf.ByteString getParentViewDisplayNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequest.java deleted file mode 100644 index b2cd8f804eaa..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequest.java +++ /dev/null @@ -1,1937 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [LookupEntry][google.cloud.datacatalog.v1.DataCatalog.LookupEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.LookupEntryRequest} - */ -@com.google.protobuf.Generated -public final class LookupEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.LookupEntryRequest) - LookupEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "LookupEntryRequest"); - } - - // Use LookupEntryRequest.newBuilder() to construct. - private LookupEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private LookupEntryRequest() { - project_ = ""; - location_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.LookupEntryRequest.class, - com.google.cloud.datacatalog.v1.LookupEntryRequest.Builder.class); - } - - private int targetNameCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object targetName_; - - public enum TargetNameCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LINKED_RESOURCE(1), - SQL_RESOURCE(3), - FULLY_QUALIFIED_NAME(5), - TARGETNAME_NOT_SET(0); - private final int value; - - private TargetNameCase(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 TargetNameCase valueOf(int value) { - return forNumber(value); - } - - public static TargetNameCase forNumber(int value) { - switch (value) { - case 1: - return LINKED_RESOURCE; - case 3: - return SQL_RESOURCE; - case 5: - return FULLY_QUALIFIED_NAME; - case 0: - return TARGETNAME_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TargetNameCase getTargetNameCase() { - return TargetNameCase.forNumber(targetNameCase_); - } - - public static final int LINKED_RESOURCE_FIELD_NUMBER = 1; - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. For more information, see [Full Resource Name]
-   * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   *
-   * Full names are case-sensitive. For example:
-   *
-   * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-   * 
- * - * string linked_resource = 1; - * - * @return Whether the linkedResource field is set. - */ - public boolean hasLinkedResource() { - return targetNameCase_ == 1; - } - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. For more information, see [Full Resource Name]
-   * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   *
-   * Full names are case-sensitive. For example:
-   *
-   * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-   * 
- * - * string linked_resource = 1; - * - * @return The linkedResource. - */ - public java.lang.String getLinkedResource() { - java.lang.Object ref = ""; - if (targetNameCase_ == 1) { - ref = targetName_; - } - if (ref instanceof java.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 (targetNameCase_ == 1) { - targetName_ = s; - } - return s; - } - } - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. For more information, see [Full Resource Name]
-   * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   *
-   * Full names are case-sensitive. For example:
-   *
-   * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-   * 
- * - * string linked_resource = 1; - * - * @return The bytes for linkedResource. - */ - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = ""; - if (targetNameCase_ == 1) { - ref = targetName_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetNameCase_ == 1) { - targetName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SQL_RESOURCE_FIELD_NUMBER = 3; - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-   * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-   * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-   * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-   * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-   *
-   * Identifiers (`*_ID`) should comply with the
-   * [Lexical structure in GoogleSQL]
-   * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-   * 
- * - * string sql_resource = 3; - * - * @return Whether the sqlResource field is set. - */ - public boolean hasSqlResource() { - return targetNameCase_ == 3; - } - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-   * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-   * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-   * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-   * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-   *
-   * Identifiers (`*_ID`) should comply with the
-   * [Lexical structure in GoogleSQL]
-   * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-   * 
- * - * string sql_resource = 3; - * - * @return The sqlResource. - */ - public java.lang.String getSqlResource() { - java.lang.Object ref = ""; - if (targetNameCase_ == 3) { - ref = targetName_; - } - if (ref instanceof java.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 (targetNameCase_ == 3) { - targetName_ = s; - } - return s; - } - } - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-   * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-   * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-   * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-   * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-   *
-   * Identifiers (`*_ID`) should comply with the
-   * [Lexical structure in GoogleSQL]
-   * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-   * 
- * - * string sql_resource = 3; - * - * @return The bytes for sqlResource. - */ - public com.google.protobuf.ByteString getSqlResourceBytes() { - java.lang.Object ref = ""; - if (targetNameCase_ == 3) { - ref = targetName_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetNameCase_ == 3) { - targetName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FULLY_QUALIFIED_NAME_FIELD_NUMBER = 5; - - /** - * - * - *
-   * [Fully Qualified Name
-   * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-   * of the resource.
-   *
-   * FQNs take two forms:
-   *
-   * * For non-regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * * For regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * Example for a DPMS table:
-   *
-   * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-   * 
- * - * string fully_qualified_name = 5; - * - * @return Whether the fullyQualifiedName field is set. - */ - public boolean hasFullyQualifiedName() { - return targetNameCase_ == 5; - } - - /** - * - * - *
-   * [Fully Qualified Name
-   * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-   * of the resource.
-   *
-   * FQNs take two forms:
-   *
-   * * For non-regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * * For regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * Example for a DPMS table:
-   *
-   * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-   * 
- * - * string fully_qualified_name = 5; - * - * @return The fullyQualifiedName. - */ - public java.lang.String getFullyQualifiedName() { - java.lang.Object ref = ""; - if (targetNameCase_ == 5) { - ref = targetName_; - } - if (ref instanceof java.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 (targetNameCase_ == 5) { - targetName_ = s; - } - return s; - } - } - - /** - * - * - *
-   * [Fully Qualified Name
-   * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-   * of the resource.
-   *
-   * FQNs take two forms:
-   *
-   * * For non-regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * * For regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * Example for a DPMS table:
-   *
-   * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-   * 
- * - * string fully_qualified_name = 5; - * - * @return The bytes for fullyQualifiedName. - */ - public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { - java.lang.Object ref = ""; - if (targetNameCase_ == 5) { - ref = targetName_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetNameCase_ == 5) { - targetName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object project_ = ""; - - /** - * - * - *
-   * Project where the lookup should be performed. Required to lookup
-   * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-   * using its `fully_qualified_name`. Ignored in other cases.
-   * 
- * - * string project = 6; - * - * @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; - } - } - - /** - * - * - *
-   * Project where the lookup should be performed. Required to lookup
-   * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-   * using its `fully_qualified_name`. Ignored in other cases.
-   * 
- * - * string project = 6; - * - * @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 = 7; - - @SuppressWarnings("serial") - private volatile java.lang.Object location_ = ""; - - /** - * - * - *
-   * Location where the lookup should be performed. Required to lookup
-   * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-   * using its `fully_qualified_name`. Ignored in other cases.
-   * 
- * - * string location = 7; - * - * @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; - } - } - - /** - * - * - *
-   * Location where the lookup should be performed. Required to lookup
-   * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-   * using its `fully_qualified_name`. Ignored in other cases.
-   * 
- * - * string location = 7; - * - * @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 (targetNameCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, targetName_); - } - if (targetNameCase_ == 3) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, targetName_); - } - if (targetNameCase_ == 5) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, targetName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, project_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 7, location_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetNameCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, targetName_); - } - if (targetNameCase_ == 3) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, targetName_); - } - if (targetNameCase_ == 5) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, targetName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(project_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(6, project_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(7, 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.datacatalog.v1.LookupEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.LookupEntryRequest other = - (com.google.cloud.datacatalog.v1.LookupEntryRequest) obj; - - if (!getProject().equals(other.getProject())) return false; - if (!getLocation().equals(other.getLocation())) return false; - if (!getTargetNameCase().equals(other.getTargetNameCase())) return false; - switch (targetNameCase_) { - case 1: - if (!getLinkedResource().equals(other.getLinkedResource())) return false; - break; - case 3: - if (!getSqlResource().equals(other.getSqlResource())) return false; - break; - case 5: - if (!getFullyQualifiedName().equals(other.getFullyQualifiedName())) 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) + PROJECT_FIELD_NUMBER; - hash = (53 * hash) + getProject().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().hashCode(); - switch (targetNameCase_) { - case 1: - hash = (37 * hash) + LINKED_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getLinkedResource().hashCode(); - break; - case 3: - hash = (37 * hash) + SQL_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSqlResource().hashCode(); - break; - case 5: - hash = (37 * hash) + FULLY_QUALIFIED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFullyQualifiedName().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.LookupEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [LookupEntry][google.cloud.datacatalog.v1.DataCatalog.LookupEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.LookupEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.LookupEntryRequest) - com.google.cloud.datacatalog.v1.LookupEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.LookupEntryRequest.class, - com.google.cloud.datacatalog.v1.LookupEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.LookupEntryRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - project_ = ""; - location_ = ""; - targetNameCase_ = 0; - targetName_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_LookupEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookupEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.LookupEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookupEntryRequest build() { - com.google.cloud.datacatalog.v1.LookupEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookupEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1.LookupEntryRequest result = - new com.google.cloud.datacatalog.v1.LookupEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.LookupEntryRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.project_ = project_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.location_ = location_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.LookupEntryRequest result) { - result.targetNameCase_ = targetNameCase_; - result.targetName_ = this.targetName_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.LookupEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.LookupEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.LookupEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1.LookupEntryRequest.getDefaultInstance()) - return this; - if (!other.getProject().isEmpty()) { - project_ = other.project_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; - bitField0_ |= 0x00000010; - onChanged(); - } - switch (other.getTargetNameCase()) { - case LINKED_RESOURCE: - { - targetNameCase_ = 1; - targetName_ = other.targetName_; - onChanged(); - break; - } - case SQL_RESOURCE: - { - targetNameCase_ = 3; - targetName_ = other.targetName_; - onChanged(); - break; - } - case FULLY_QUALIFIED_NAME: - { - targetNameCase_ = 5; - targetName_ = other.targetName_; - onChanged(); - break; - } - case TARGETNAME_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(); - targetNameCase_ = 1; - targetName_ = s; - break; - } // case 10 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - targetNameCase_ = 3; - targetName_ = s; - break; - } // case 26 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - targetNameCase_ = 5; - targetName_ = s; - break; - } // case 42 - case 50: - { - project_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 50 - case 58: - { - location_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - 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 targetNameCase_ = 0; - private java.lang.Object targetName_; - - public TargetNameCase getTargetNameCase() { - return TargetNameCase.forNumber(targetNameCase_); - } - - public Builder clearTargetName() { - targetNameCase_ = 0; - targetName_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. For more information, see [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     *
-     * Full names are case-sensitive. For example:
-     *
-     * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-     * 
- * - * string linked_resource = 1; - * - * @return Whether the linkedResource field is set. - */ - @java.lang.Override - public boolean hasLinkedResource() { - return targetNameCase_ == 1; - } - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. For more information, see [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     *
-     * Full names are case-sensitive. For example:
-     *
-     * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-     * 
- * - * string linked_resource = 1; - * - * @return The linkedResource. - */ - @java.lang.Override - public java.lang.String getLinkedResource() { - java.lang.Object ref = ""; - if (targetNameCase_ == 1) { - ref = targetName_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (targetNameCase_ == 1) { - targetName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. For more information, see [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     *
-     * Full names are case-sensitive. For example:
-     *
-     * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-     * 
- * - * string linked_resource = 1; - * - * @return The bytes for linkedResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = ""; - if (targetNameCase_ == 1) { - ref = targetName_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetNameCase_ == 1) { - targetName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. For more information, see [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     *
-     * Full names are case-sensitive. For example:
-     *
-     * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-     * 
- * - * string linked_resource = 1; - * - * @param value The linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - targetNameCase_ = 1; - targetName_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. For more information, see [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     *
-     * Full names are case-sensitive. For example:
-     *
-     * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-     * 
- * - * string linked_resource = 1; - * - * @return This builder for chaining. - */ - public Builder clearLinkedResource() { - if (targetNameCase_ == 1) { - targetNameCase_ = 0; - targetName_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. For more information, see [Full Resource Name]
-     * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     *
-     * Full names are case-sensitive. For example:
-     *
-     * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-     * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-     * 
- * - * string linked_resource = 1; - * - * @param value The bytes for linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - targetNameCase_ = 1; - targetName_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-     * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-     * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-     * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-     * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-     *
-     * Identifiers (`*_ID`) should comply with the
-     * [Lexical structure in GoogleSQL]
-     * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-     * 
- * - * string sql_resource = 3; - * - * @return Whether the sqlResource field is set. - */ - @java.lang.Override - public boolean hasSqlResource() { - return targetNameCase_ == 3; - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-     * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-     * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-     * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-     * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-     *
-     * Identifiers (`*_ID`) should comply with the
-     * [Lexical structure in GoogleSQL]
-     * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-     * 
- * - * string sql_resource = 3; - * - * @return The sqlResource. - */ - @java.lang.Override - public java.lang.String getSqlResource() { - java.lang.Object ref = ""; - if (targetNameCase_ == 3) { - ref = targetName_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (targetNameCase_ == 3) { - targetName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-     * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-     * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-     * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-     * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-     *
-     * Identifiers (`*_ID`) should comply with the
-     * [Lexical structure in GoogleSQL]
-     * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-     * 
- * - * string sql_resource = 3; - * - * @return The bytes for sqlResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSqlResourceBytes() { - java.lang.Object ref = ""; - if (targetNameCase_ == 3) { - ref = targetName_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetNameCase_ == 3) { - targetName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-     * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-     * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-     * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-     * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-     *
-     * Identifiers (`*_ID`) should comply with the
-     * [Lexical structure in GoogleSQL]
-     * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-     * 
- * - * string sql_resource = 3; - * - * @param value The sqlResource to set. - * @return This builder for chaining. - */ - public Builder setSqlResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - targetNameCase_ = 3; - targetName_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-     * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-     * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-     * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-     * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-     *
-     * Identifiers (`*_ID`) should comply with the
-     * [Lexical structure in GoogleSQL]
-     * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-     * 
- * - * string sql_resource = 3; - * - * @return This builder for chaining. - */ - public Builder clearSqlResource() { - if (targetNameCase_ == 3) { - targetNameCase_ = 0; - targetName_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-     * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-     * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-     * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-     * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-     *
-     * Identifiers (`*_ID`) should comply with the
-     * [Lexical structure in GoogleSQL]
-     * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-     * 
- * - * string sql_resource = 3; - * - * @param value The bytes for sqlResource to set. - * @return This builder for chaining. - */ - public Builder setSqlResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - targetNameCase_ = 3; - targetName_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-     * 
- * - * string fully_qualified_name = 5; - * - * @return Whether the fullyQualifiedName field is set. - */ - @java.lang.Override - public boolean hasFullyQualifiedName() { - return targetNameCase_ == 5; - } - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-     * 
- * - * string fully_qualified_name = 5; - * - * @return The fullyQualifiedName. - */ - @java.lang.Override - public java.lang.String getFullyQualifiedName() { - java.lang.Object ref = ""; - if (targetNameCase_ == 5) { - ref = targetName_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (targetNameCase_ == 5) { - targetName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-     * 
- * - * string fully_qualified_name = 5; - * - * @return The bytes for fullyQualifiedName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { - java.lang.Object ref = ""; - if (targetNameCase_ == 5) { - ref = targetName_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetNameCase_ == 5) { - targetName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-     * 
- * - * string fully_qualified_name = 5; - * - * @param value The fullyQualifiedName to set. - * @return This builder for chaining. - */ - public Builder setFullyQualifiedName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - targetNameCase_ = 5; - targetName_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-     * 
- * - * string fully_qualified_name = 5; - * - * @return This builder for chaining. - */ - public Builder clearFullyQualifiedName() { - if (targetNameCase_ == 5) { - targetNameCase_ = 0; - targetName_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * [Fully Qualified Name
-     * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-     * of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-     * 
- * - * string fully_qualified_name = 5; - * - * @param value The bytes for fullyQualifiedName to set. - * @return This builder for chaining. - */ - public Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - targetNameCase_ = 5; - targetName_ = value; - onChanged(); - return this; - } - - private java.lang.Object project_ = ""; - - /** - * - * - *
-     * Project where the lookup should be performed. Required to lookup
-     * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-     * using its `fully_qualified_name`. Ignored in other cases.
-     * 
- * - * string project = 6; - * - * @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; - } - } - - /** - * - * - *
-     * Project where the lookup should be performed. Required to lookup
-     * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-     * using its `fully_qualified_name`. Ignored in other cases.
-     * 
- * - * string project = 6; - * - * @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; - } - } - - /** - * - * - *
-     * Project where the lookup should be performed. Required to lookup
-     * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-     * using its `fully_qualified_name`. Ignored in other cases.
-     * 
- * - * string project = 6; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Project where the lookup should be performed. Required to lookup
-     * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-     * using its `fully_qualified_name`. Ignored in other cases.
-     * 
- * - * string project = 6; - * - * @return This builder for chaining. - */ - public Builder clearProject() { - project_ = getDefaultInstance().getProject(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Project where the lookup should be performed. Required to lookup
-     * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-     * using its `fully_qualified_name`. Ignored in other cases.
-     * 
- * - * string project = 6; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object location_ = ""; - - /** - * - * - *
-     * Location where the lookup should be performed. Required to lookup
-     * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-     * using its `fully_qualified_name`. Ignored in other cases.
-     * 
- * - * string location = 7; - * - * @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; - } - } - - /** - * - * - *
-     * Location where the lookup should be performed. Required to lookup
-     * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-     * using its `fully_qualified_name`. Ignored in other cases.
-     * 
- * - * string location = 7; - * - * @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; - } - } - - /** - * - * - *
-     * Location where the lookup should be performed. Required to lookup
-     * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-     * using its `fully_qualified_name`. Ignored in other cases.
-     * 
- * - * string location = 7; - * - * @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_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Location where the lookup should be performed. Required to lookup
-     * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-     * using its `fully_qualified_name`. Ignored in other cases.
-     * 
- * - * string location = 7; - * - * @return This builder for chaining. - */ - public Builder clearLocation() { - location_ = getDefaultInstance().getLocation(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - /** - * - * - *
-     * Location where the lookup should be performed. Required to lookup
-     * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-     * using its `fully_qualified_name`. Ignored in other cases.
-     * 
- * - * string location = 7; - * - * @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_ |= 0x00000010; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.LookupEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.LookupEntryRequest) - private static final com.google.cloud.datacatalog.v1.LookupEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.LookupEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1.LookupEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LookupEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.LookupEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequestOrBuilder.java deleted file mode 100644 index a89f9661e0d5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/LookupEntryRequestOrBuilder.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface LookupEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.LookupEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. For more information, see [Full Resource Name]
-   * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   *
-   * Full names are case-sensitive. For example:
-   *
-   * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-   * 
- * - * string linked_resource = 1; - * - * @return Whether the linkedResource field is set. - */ - boolean hasLinkedResource(); - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. For more information, see [Full Resource Name]
-   * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   *
-   * Full names are case-sensitive. For example:
-   *
-   * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-   * 
- * - * string linked_resource = 1; - * - * @return The linkedResource. - */ - java.lang.String getLinkedResource(); - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. For more information, see [Full Resource Name]
-   * (https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   *
-   * Full names are case-sensitive. For example:
-   *
-   * * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}`
-   * * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}`
-   * 
- * - * string linked_resource = 1; - * - * @return The bytes for linkedResource. - */ - com.google.protobuf.ByteString getLinkedResourceBytes(); - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-   * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-   * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-   * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-   * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-   *
-   * Identifiers (`*_ID`) should comply with the
-   * [Lexical structure in GoogleSQL]
-   * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-   * 
- * - * string sql_resource = 3; - * - * @return Whether the sqlResource field is set. - */ - boolean hasSqlResource(); - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-   * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-   * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-   * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-   * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-   *
-   * Identifiers (`*_ID`) should comply with the
-   * [Lexical structure in GoogleSQL]
-   * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-   * 
- * - * string sql_resource = 3; - * - * @return The sqlResource. - */ - java.lang.String getSqlResource(); - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}`
-   * * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\`
-   * * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}`
-   * * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}`
-   * * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}`
-   *
-   * Identifiers (`*_ID`) should comply with the
-   * [Lexical structure in GoogleSQL]
-   * (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical).
-   * 
- * - * string sql_resource = 3; - * - * @return The bytes for sqlResource. - */ - com.google.protobuf.ByteString getSqlResourceBytes(); - - /** - * - * - *
-   * [Fully Qualified Name
-   * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-   * of the resource.
-   *
-   * FQNs take two forms:
-   *
-   * * For non-regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * * For regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * Example for a DPMS table:
-   *
-   * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-   * 
- * - * string fully_qualified_name = 5; - * - * @return Whether the fullyQualifiedName field is set. - */ - boolean hasFullyQualifiedName(); - - /** - * - * - *
-   * [Fully Qualified Name
-   * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-   * of the resource.
-   *
-   * FQNs take two forms:
-   *
-   * * For non-regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * * For regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * Example for a DPMS table:
-   *
-   * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-   * 
- * - * string fully_qualified_name = 5; - * - * @return The fullyQualifiedName. - */ - java.lang.String getFullyQualifiedName(); - - /** - * - * - *
-   * [Fully Qualified Name
-   * (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names)
-   * of the resource.
-   *
-   * FQNs take two forms:
-   *
-   * * For non-regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * * For regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * Example for a DPMS table:
-   *
-   * `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}`
-   * 
- * - * string fully_qualified_name = 5; - * - * @return The bytes for fullyQualifiedName. - */ - com.google.protobuf.ByteString getFullyQualifiedNameBytes(); - - /** - * - * - *
-   * Project where the lookup should be performed. Required to lookup
-   * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-   * using its `fully_qualified_name`. Ignored in other cases.
-   * 
- * - * string project = 6; - * - * @return The project. - */ - java.lang.String getProject(); - - /** - * - * - *
-   * Project where the lookup should be performed. Required to lookup
-   * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-   * using its `fully_qualified_name`. Ignored in other cases.
-   * 
- * - * string project = 6; - * - * @return The bytes for project. - */ - com.google.protobuf.ByteString getProjectBytes(); - - /** - * - * - *
-   * Location where the lookup should be performed. Required to lookup
-   * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-   * using its `fully_qualified_name`. Ignored in other cases.
-   * 
- * - * string location = 7; - * - * @return The location. - */ - java.lang.String getLocation(); - - /** - * - * - *
-   * Location where the lookup should be performed. Required to lookup
-   * entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system`
-   * using its `fully_qualified_name`. Ignored in other cases.
-   * 
- * - * string location = 7; - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); - - com.google.cloud.datacatalog.v1.LookupEntryRequest.TargetNameCase getTargetNameCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ManagingSystem.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ManagingSystem.java deleted file mode 100644 index 8e004490b743..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ManagingSystem.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/common.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * This enum describes all the systems that manage
- * Taxonomy and PolicyTag resources in DataCatalog.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.ManagingSystem} - */ -@com.google.protobuf.Generated -public enum ManagingSystem implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value
-   * 
- * - * MANAGING_SYSTEM_UNSPECIFIED = 0; - */ - MANAGING_SYSTEM_UNSPECIFIED(0), - /** - * - * - *
-   * Dataplex.
-   * 
- * - * MANAGING_SYSTEM_DATAPLEX = 1; - */ - MANAGING_SYSTEM_DATAPLEX(1), - /** - * - * - *
-   * Other
-   * 
- * - * MANAGING_SYSTEM_OTHER = 2; - */ - MANAGING_SYSTEM_OTHER(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ManagingSystem"); - } - - /** - * - * - *
-   * Default value
-   * 
- * - * MANAGING_SYSTEM_UNSPECIFIED = 0; - */ - public static final int MANAGING_SYSTEM_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * Dataplex.
-   * 
- * - * MANAGING_SYSTEM_DATAPLEX = 1; - */ - public static final int MANAGING_SYSTEM_DATAPLEX_VALUE = 1; - - /** - * - * - *
-   * Other
-   * 
- * - * MANAGING_SYSTEM_OTHER = 2; - */ - public static final int MANAGING_SYSTEM_OTHER_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 ManagingSystem 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 ManagingSystem forNumber(int value) { - switch (value) { - case 0: - return MANAGING_SYSTEM_UNSPECIFIED; - case 1: - return MANAGING_SYSTEM_DATAPLEX; - case 2: - return MANAGING_SYSTEM_OTHER; - 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 ManagingSystem findValueByNumber(int number) { - return ManagingSystem.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.datacatalog.v1.Common.getDescriptor().getEnumTypes().get(1); - } - - private static final ManagingSystem[] VALUES = values(); - - public static ManagingSystem 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 ManagingSystem(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.ManagingSystem) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfig.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfig.java deleted file mode 100644 index 69a8851ea600..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfig.java +++ /dev/null @@ -1,1056 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * The configuration related to the migration to Dataplex applied to an
- * organization or project.
- * It is the response message for
- * [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig] and
- * [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.MigrationConfig} - */ -@com.google.protobuf.Generated -public final class MigrationConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.MigrationConfig) - MigrationConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "MigrationConfig"); - } - - // Use MigrationConfig.newBuilder() to construct. - private MigrationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private MigrationConfig() { - tagTemplateMigration_ = 0; - catalogUiExperience_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_MigrationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.MigrationConfig.class, - com.google.cloud.datacatalog.v1.MigrationConfig.Builder.class); - } - - private int bitField0_; - public static final int TAG_TEMPLATE_MIGRATION_FIELD_NUMBER = 1; - private int tagTemplateMigration_ = 0; - - /** - * - * - *
-   * Opt-in status for the migration of Tag Templates to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; - * - * @return The enum numeric value on the wire for tagTemplateMigration. - */ - @java.lang.Override - public int getTagTemplateMigrationValue() { - return tagTemplateMigration_; - } - - /** - * - * - *
-   * Opt-in status for the migration of Tag Templates to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; - * - * @return The tagTemplateMigration. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration() { - com.google.cloud.datacatalog.v1.TagTemplateMigration result = - com.google.cloud.datacatalog.v1.TagTemplateMigration.forNumber(tagTemplateMigration_); - return result == null - ? com.google.cloud.datacatalog.v1.TagTemplateMigration.UNRECOGNIZED - : result; - } - - public static final int CATALOG_UI_EXPERIENCE_FIELD_NUMBER = 2; - private int catalogUiExperience_ = 0; - - /** - * - * - *
-   * Opt-in status for the UI switch to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; - * - * @return The enum numeric value on the wire for catalogUiExperience. - */ - @java.lang.Override - public int getCatalogUiExperienceValue() { - return catalogUiExperience_; - } - - /** - * - * - *
-   * Opt-in status for the UI switch to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; - * - * @return The catalogUiExperience. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience() { - com.google.cloud.datacatalog.v1.CatalogUIExperience result = - com.google.cloud.datacatalog.v1.CatalogUIExperience.forNumber(catalogUiExperience_); - return result == null - ? com.google.cloud.datacatalog.v1.CatalogUIExperience.UNRECOGNIZED - : result; - } - - public static final int TEMPLATE_MIGRATION_ENABLED_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp templateMigrationEnabledTime_; - - /** - * - * - *
-   * The time when the Tag Template migration was enabled.
-   * If the Tag Template migration is not enabled, this field is not set.
-   * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - * - * @return Whether the templateMigrationEnabledTime field is set. - */ - @java.lang.Override - public boolean hasTemplateMigrationEnabledTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The time when the Tag Template migration was enabled.
-   * If the Tag Template migration is not enabled, this field is not set.
-   * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - * - * @return The templateMigrationEnabledTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getTemplateMigrationEnabledTime() { - return templateMigrationEnabledTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : templateMigrationEnabledTime_; - } - - /** - * - * - *
-   * The time when the Tag Template migration was enabled.
-   * If the Tag Template migration is not enabled, this field is not set.
-   * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getTemplateMigrationEnabledTimeOrBuilder() { - return templateMigrationEnabledTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : templateMigrationEnabledTime_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (tagTemplateMigration_ - != com.google.cloud.datacatalog.v1.TagTemplateMigration.TAG_TEMPLATE_MIGRATION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, tagTemplateMigration_); - } - if (catalogUiExperience_ - != com.google.cloud.datacatalog.v1.CatalogUIExperience.CATALOG_UI_EXPERIENCE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, catalogUiExperience_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getTemplateMigrationEnabledTime()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tagTemplateMigration_ - != com.google.cloud.datacatalog.v1.TagTemplateMigration.TAG_TEMPLATE_MIGRATION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, tagTemplateMigration_); - } - if (catalogUiExperience_ - != com.google.cloud.datacatalog.v1.CatalogUIExperience.CATALOG_UI_EXPERIENCE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, catalogUiExperience_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getTemplateMigrationEnabledTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.MigrationConfig)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.MigrationConfig other = - (com.google.cloud.datacatalog.v1.MigrationConfig) obj; - - if (tagTemplateMigration_ != other.tagTemplateMigration_) return false; - if (catalogUiExperience_ != other.catalogUiExperience_) return false; - if (hasTemplateMigrationEnabledTime() != other.hasTemplateMigrationEnabledTime()) return false; - if (hasTemplateMigrationEnabledTime()) { - if (!getTemplateMigrationEnabledTime().equals(other.getTemplateMigrationEnabledTime())) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TAG_TEMPLATE_MIGRATION_FIELD_NUMBER; - hash = (53 * hash) + tagTemplateMigration_; - hash = (37 * hash) + CATALOG_UI_EXPERIENCE_FIELD_NUMBER; - hash = (53 * hash) + catalogUiExperience_; - if (hasTemplateMigrationEnabledTime()) { - hash = (37 * hash) + TEMPLATE_MIGRATION_ENABLED_TIME_FIELD_NUMBER; - hash = (53 * hash) + getTemplateMigrationEnabledTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.MigrationConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 configuration related to the migration to Dataplex applied to an
-   * organization or project.
-   * It is the response message for
-   * [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig] and
-   * [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.MigrationConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.MigrationConfig) - com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_MigrationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.MigrationConfig.class, - com.google.cloud.datacatalog.v1.MigrationConfig.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.MigrationConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTemplateMigrationEnabledTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tagTemplateMigration_ = 0; - catalogUiExperience_ = 0; - templateMigrationEnabledTime_ = null; - if (templateMigrationEnabledTimeBuilder_ != null) { - templateMigrationEnabledTimeBuilder_.dispose(); - templateMigrationEnabledTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_MigrationConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.MigrationConfig getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.MigrationConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.MigrationConfig build() { - com.google.cloud.datacatalog.v1.MigrationConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.MigrationConfig buildPartial() { - com.google.cloud.datacatalog.v1.MigrationConfig result = - new com.google.cloud.datacatalog.v1.MigrationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.MigrationConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tagTemplateMigration_ = tagTemplateMigration_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.catalogUiExperience_ = catalogUiExperience_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.templateMigrationEnabledTime_ = - templateMigrationEnabledTimeBuilder_ == null - ? templateMigrationEnabledTime_ - : templateMigrationEnabledTimeBuilder_.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.datacatalog.v1.MigrationConfig) { - return mergeFrom((com.google.cloud.datacatalog.v1.MigrationConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.MigrationConfig other) { - if (other == com.google.cloud.datacatalog.v1.MigrationConfig.getDefaultInstance()) - return this; - if (other.tagTemplateMigration_ != 0) { - setTagTemplateMigrationValue(other.getTagTemplateMigrationValue()); - } - if (other.catalogUiExperience_ != 0) { - setCatalogUiExperienceValue(other.getCatalogUiExperienceValue()); - } - if (other.hasTemplateMigrationEnabledTime()) { - mergeTemplateMigrationEnabledTime(other.getTemplateMigrationEnabledTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - tagTemplateMigration_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - catalogUiExperience_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - input.readMessage( - internalGetTemplateMigrationEnabledTimeFieldBuilder().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 int tagTemplateMigration_ = 0; - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; - * - * @return The enum numeric value on the wire for tagTemplateMigration. - */ - @java.lang.Override - public int getTagTemplateMigrationValue() { - return tagTemplateMigration_; - } - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; - * - * @param value The enum numeric value on the wire for tagTemplateMigration to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateMigrationValue(int value) { - tagTemplateMigration_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; - * - * @return The tagTemplateMigration. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration() { - com.google.cloud.datacatalog.v1.TagTemplateMigration result = - com.google.cloud.datacatalog.v1.TagTemplateMigration.forNumber(tagTemplateMigration_); - return result == null - ? com.google.cloud.datacatalog.v1.TagTemplateMigration.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; - * - * @param value The tagTemplateMigration to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateMigration( - com.google.cloud.datacatalog.v1.TagTemplateMigration value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - tagTemplateMigration_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; - * - * @return This builder for chaining. - */ - public Builder clearTagTemplateMigration() { - bitField0_ = (bitField0_ & ~0x00000001); - tagTemplateMigration_ = 0; - onChanged(); - return this; - } - - private int catalogUiExperience_ = 0; - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; - * - * @return The enum numeric value on the wire for catalogUiExperience. - */ - @java.lang.Override - public int getCatalogUiExperienceValue() { - return catalogUiExperience_; - } - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; - * - * @param value The enum numeric value on the wire for catalogUiExperience to set. - * @return This builder for chaining. - */ - public Builder setCatalogUiExperienceValue(int value) { - catalogUiExperience_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; - * - * @return The catalogUiExperience. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience() { - com.google.cloud.datacatalog.v1.CatalogUIExperience result = - com.google.cloud.datacatalog.v1.CatalogUIExperience.forNumber(catalogUiExperience_); - return result == null - ? com.google.cloud.datacatalog.v1.CatalogUIExperience.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; - * - * @param value The catalogUiExperience to set. - * @return This builder for chaining. - */ - public Builder setCatalogUiExperience( - com.google.cloud.datacatalog.v1.CatalogUIExperience value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - catalogUiExperience_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; - * - * @return This builder for chaining. - */ - public Builder clearCatalogUiExperience() { - bitField0_ = (bitField0_ & ~0x00000002); - catalogUiExperience_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp templateMigrationEnabledTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - templateMigrationEnabledTimeBuilder_; - - /** - * - * - *
-     * The time when the Tag Template migration was enabled.
-     * If the Tag Template migration is not enabled, this field is not set.
-     * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - * - * @return Whether the templateMigrationEnabledTime field is set. - */ - public boolean hasTemplateMigrationEnabledTime() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * The time when the Tag Template migration was enabled.
-     * If the Tag Template migration is not enabled, this field is not set.
-     * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - * - * @return The templateMigrationEnabledTime. - */ - public com.google.protobuf.Timestamp getTemplateMigrationEnabledTime() { - if (templateMigrationEnabledTimeBuilder_ == null) { - return templateMigrationEnabledTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : templateMigrationEnabledTime_; - } else { - return templateMigrationEnabledTimeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The time when the Tag Template migration was enabled.
-     * If the Tag Template migration is not enabled, this field is not set.
-     * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - */ - public Builder setTemplateMigrationEnabledTime(com.google.protobuf.Timestamp value) { - if (templateMigrationEnabledTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - templateMigrationEnabledTime_ = value; - } else { - templateMigrationEnabledTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The time when the Tag Template migration was enabled.
-     * If the Tag Template migration is not enabled, this field is not set.
-     * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - */ - public Builder setTemplateMigrationEnabledTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (templateMigrationEnabledTimeBuilder_ == null) { - templateMigrationEnabledTime_ = builderForValue.build(); - } else { - templateMigrationEnabledTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The time when the Tag Template migration was enabled.
-     * If the Tag Template migration is not enabled, this field is not set.
-     * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - */ - public Builder mergeTemplateMigrationEnabledTime(com.google.protobuf.Timestamp value) { - if (templateMigrationEnabledTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && templateMigrationEnabledTime_ != null - && templateMigrationEnabledTime_ - != com.google.protobuf.Timestamp.getDefaultInstance()) { - getTemplateMigrationEnabledTimeBuilder().mergeFrom(value); - } else { - templateMigrationEnabledTime_ = value; - } - } else { - templateMigrationEnabledTimeBuilder_.mergeFrom(value); - } - if (templateMigrationEnabledTime_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The time when the Tag Template migration was enabled.
-     * If the Tag Template migration is not enabled, this field is not set.
-     * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - */ - public Builder clearTemplateMigrationEnabledTime() { - bitField0_ = (bitField0_ & ~0x00000004); - templateMigrationEnabledTime_ = null; - if (templateMigrationEnabledTimeBuilder_ != null) { - templateMigrationEnabledTimeBuilder_.dispose(); - templateMigrationEnabledTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The time when the Tag Template migration was enabled.
-     * If the Tag Template migration is not enabled, this field is not set.
-     * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - */ - public com.google.protobuf.Timestamp.Builder getTemplateMigrationEnabledTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetTemplateMigrationEnabledTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The time when the Tag Template migration was enabled.
-     * If the Tag Template migration is not enabled, this field is not set.
-     * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - */ - public com.google.protobuf.TimestampOrBuilder getTemplateMigrationEnabledTimeOrBuilder() { - if (templateMigrationEnabledTimeBuilder_ != null) { - return templateMigrationEnabledTimeBuilder_.getMessageOrBuilder(); - } else { - return templateMigrationEnabledTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : templateMigrationEnabledTime_; - } - } - - /** - * - * - *
-     * The time when the Tag Template migration was enabled.
-     * If the Tag Template migration is not enabled, this field is not set.
-     * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetTemplateMigrationEnabledTimeFieldBuilder() { - if (templateMigrationEnabledTimeBuilder_ == null) { - templateMigrationEnabledTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getTemplateMigrationEnabledTime(), getParentForChildren(), isClean()); - templateMigrationEnabledTime_ = null; - } - return templateMigrationEnabledTimeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.MigrationConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.MigrationConfig) - private static final com.google.cloud.datacatalog.v1.MigrationConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.MigrationConfig(); - } - - public static com.google.cloud.datacatalog.v1.MigrationConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public MigrationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.MigrationConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfigOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfigOrBuilder.java deleted file mode 100644 index dfd02643b00c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/MigrationConfigOrBuilder.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface MigrationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.MigrationConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Opt-in status for the migration of Tag Templates to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; - * - * @return The enum numeric value on the wire for tagTemplateMigration. - */ - int getTagTemplateMigrationValue(); - - /** - * - * - *
-   * Opt-in status for the migration of Tag Templates to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 1; - * - * @return The tagTemplateMigration. - */ - com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration(); - - /** - * - * - *
-   * Opt-in status for the UI switch to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; - * - * @return The enum numeric value on the wire for catalogUiExperience. - */ - int getCatalogUiExperienceValue(); - - /** - * - * - *
-   * Opt-in status for the UI switch to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 2; - * - * @return The catalogUiExperience. - */ - com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience(); - - /** - * - * - *
-   * The time when the Tag Template migration was enabled.
-   * If the Tag Template migration is not enabled, this field is not set.
-   * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - * - * @return Whether the templateMigrationEnabledTime field is set. - */ - boolean hasTemplateMigrationEnabledTime(); - - /** - * - * - *
-   * The time when the Tag Template migration was enabled.
-   * If the Tag Template migration is not enabled, this field is not set.
-   * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - * - * @return The templateMigrationEnabledTime. - */ - com.google.protobuf.Timestamp getTemplateMigrationEnabledTime(); - - /** - * - * - *
-   * The time when the Tag Template migration was enabled.
-   * If the Tag Template migration is not enabled, this field is not set.
-   * 
- * - * .google.protobuf.Timestamp template_migration_enabled_time = 3; - */ - com.google.protobuf.TimestampOrBuilder getTemplateMigrationEnabledTimeOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpec.java deleted file mode 100644 index 2001ad2354f5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpec.java +++ /dev/null @@ -1,797 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to a model. Valid only for
- * entries with the `MODEL` type.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ModelSpec} - */ -@com.google.protobuf.Generated -public final class ModelSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ModelSpec) - ModelSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ModelSpec"); - } - - // Use ModelSpec.newBuilder() to construct. - private ModelSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ModelSpec() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModelSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModelSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ModelSpec.class, - com.google.cloud.datacatalog.v1.ModelSpec.Builder.class); - } - - private int systemSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object systemSpec_; - - public enum SystemSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VERTEX_MODEL_SPEC(1), - SYSTEMSPEC_NOT_SET(0); - private final int value; - - private SystemSpecCase(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 SystemSpecCase valueOf(int value) { - return forNumber(value); - } - - public static SystemSpecCase forNumber(int value) { - switch (value) { - case 1: - return VERTEX_MODEL_SPEC; - case 0: - return SYSTEMSPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public static final int VERTEX_MODEL_SPEC_FIELD_NUMBER = 1; - - /** - * - * - *
-   * Specification for vertex model resources.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - * - * @return Whether the vertexModelSpec field is set. - */ - @java.lang.Override - public boolean hasVertexModelSpec() { - return systemSpecCase_ == 1; - } - - /** - * - * - *
-   * Specification for vertex model resources.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - * - * @return The vertexModelSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSpec getVertexModelSpec() { - if (systemSpecCase_ == 1) { - return (com.google.cloud.datacatalog.v1.VertexModelSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.VertexModelSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification for vertex model resources.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSpecOrBuilder getVertexModelSpecOrBuilder() { - if (systemSpecCase_ == 1) { - return (com.google.cloud.datacatalog.v1.VertexModelSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.VertexModelSpec.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 (systemSpecCase_ == 1) { - output.writeMessage(1, (com.google.cloud.datacatalog.v1.VertexModelSpec) systemSpec_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (systemSpecCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datacatalog.v1.VertexModelSpec) systemSpec_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ModelSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ModelSpec other = - (com.google.cloud.datacatalog.v1.ModelSpec) obj; - - if (!getSystemSpecCase().equals(other.getSystemSpecCase())) return false; - switch (systemSpecCase_) { - case 1: - if (!getVertexModelSpec().equals(other.getVertexModelSpec())) 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 (systemSpecCase_) { - case 1: - hash = (37 * hash) + VERTEX_MODEL_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getVertexModelSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.ModelSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to a model. Valid only for
-   * entries with the `MODEL` type.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ModelSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ModelSpec) - com.google.cloud.datacatalog.v1.ModelSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModelSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModelSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ModelSpec.class, - com.google.cloud.datacatalog.v1.ModelSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ModelSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (vertexModelSpecBuilder_ != null) { - vertexModelSpecBuilder_.clear(); - } - systemSpecCase_ = 0; - systemSpec_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModelSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModelSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModelSpec build() { - com.google.cloud.datacatalog.v1.ModelSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModelSpec buildPartial() { - com.google.cloud.datacatalog.v1.ModelSpec result = - new com.google.cloud.datacatalog.v1.ModelSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ModelSpec result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.ModelSpec result) { - result.systemSpecCase_ = systemSpecCase_; - result.systemSpec_ = this.systemSpec_; - if (systemSpecCase_ == 1 && vertexModelSpecBuilder_ != null) { - result.systemSpec_ = vertexModelSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ModelSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.ModelSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ModelSpec other) { - if (other == com.google.cloud.datacatalog.v1.ModelSpec.getDefaultInstance()) return this; - switch (other.getSystemSpecCase()) { - case VERTEX_MODEL_SPEC: - { - mergeVertexModelSpec(other.getVertexModelSpec()); - break; - } - case SYSTEMSPEC_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( - internalGetVertexModelSpecFieldBuilder().getBuilder(), extensionRegistry); - systemSpecCase_ = 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 systemSpecCase_ = 0; - private java.lang.Object systemSpec_; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public Builder clearSystemSpec() { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.VertexModelSpec, - com.google.cloud.datacatalog.v1.VertexModelSpec.Builder, - com.google.cloud.datacatalog.v1.VertexModelSpecOrBuilder> - vertexModelSpecBuilder_; - - /** - * - * - *
-     * Specification for vertex model resources.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - * - * @return Whether the vertexModelSpec field is set. - */ - @java.lang.Override - public boolean hasVertexModelSpec() { - return systemSpecCase_ == 1; - } - - /** - * - * - *
-     * Specification for vertex model resources.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - * - * @return The vertexModelSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSpec getVertexModelSpec() { - if (vertexModelSpecBuilder_ == null) { - if (systemSpecCase_ == 1) { - return (com.google.cloud.datacatalog.v1.VertexModelSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.VertexModelSpec.getDefaultInstance(); - } else { - if (systemSpecCase_ == 1) { - return vertexModelSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.VertexModelSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification for vertex model resources.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - */ - public Builder setVertexModelSpec(com.google.cloud.datacatalog.v1.VertexModelSpec value) { - if (vertexModelSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemSpec_ = value; - onChanged(); - } else { - vertexModelSpecBuilder_.setMessage(value); - } - systemSpecCase_ = 1; - return this; - } - - /** - * - * - *
-     * Specification for vertex model resources.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - */ - public Builder setVertexModelSpec( - com.google.cloud.datacatalog.v1.VertexModelSpec.Builder builderForValue) { - if (vertexModelSpecBuilder_ == null) { - systemSpec_ = builderForValue.build(); - onChanged(); - } else { - vertexModelSpecBuilder_.setMessage(builderForValue.build()); - } - systemSpecCase_ = 1; - return this; - } - - /** - * - * - *
-     * Specification for vertex model resources.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - */ - public Builder mergeVertexModelSpec(com.google.cloud.datacatalog.v1.VertexModelSpec value) { - if (vertexModelSpecBuilder_ == null) { - if (systemSpecCase_ == 1 - && systemSpec_ - != com.google.cloud.datacatalog.v1.VertexModelSpec.getDefaultInstance()) { - systemSpec_ = - com.google.cloud.datacatalog.v1.VertexModelSpec.newBuilder( - (com.google.cloud.datacatalog.v1.VertexModelSpec) systemSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - systemSpec_ = value; - } - onChanged(); - } else { - if (systemSpecCase_ == 1) { - vertexModelSpecBuilder_.mergeFrom(value); - } else { - vertexModelSpecBuilder_.setMessage(value); - } - } - systemSpecCase_ = 1; - return this; - } - - /** - * - * - *
-     * Specification for vertex model resources.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - */ - public Builder clearVertexModelSpec() { - if (vertexModelSpecBuilder_ == null) { - if (systemSpecCase_ == 1) { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - } - } else { - if (systemSpecCase_ == 1) { - systemSpecCase_ = 0; - systemSpec_ = null; - } - vertexModelSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification for vertex model resources.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - */ - public com.google.cloud.datacatalog.v1.VertexModelSpec.Builder getVertexModelSpecBuilder() { - return internalGetVertexModelSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification for vertex model resources.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSpecOrBuilder getVertexModelSpecOrBuilder() { - if ((systemSpecCase_ == 1) && (vertexModelSpecBuilder_ != null)) { - return vertexModelSpecBuilder_.getMessageOrBuilder(); - } else { - if (systemSpecCase_ == 1) { - return (com.google.cloud.datacatalog.v1.VertexModelSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.VertexModelSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification for vertex model resources.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.VertexModelSpec, - com.google.cloud.datacatalog.v1.VertexModelSpec.Builder, - com.google.cloud.datacatalog.v1.VertexModelSpecOrBuilder> - internalGetVertexModelSpecFieldBuilder() { - if (vertexModelSpecBuilder_ == null) { - if (!(systemSpecCase_ == 1)) { - systemSpec_ = com.google.cloud.datacatalog.v1.VertexModelSpec.getDefaultInstance(); - } - vertexModelSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.VertexModelSpec, - com.google.cloud.datacatalog.v1.VertexModelSpec.Builder, - com.google.cloud.datacatalog.v1.VertexModelSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.VertexModelSpec) systemSpec_, - getParentForChildren(), - isClean()); - systemSpec_ = null; - } - systemSpecCase_ = 1; - onChanged(); - return vertexModelSpecBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ModelSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ModelSpec) - private static final com.google.cloud.datacatalog.v1.ModelSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ModelSpec(); - } - - public static com.google.cloud.datacatalog.v1.ModelSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModelSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModelSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpecOrBuilder.java deleted file mode 100644 index 1d628ee52279..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModelSpecOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ModelSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ModelSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Specification for vertex model resources.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - * - * @return Whether the vertexModelSpec field is set. - */ - boolean hasVertexModelSpec(); - - /** - * - * - *
-   * Specification for vertex model resources.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - * - * @return The vertexModelSpec. - */ - com.google.cloud.datacatalog.v1.VertexModelSpec getVertexModelSpec(); - - /** - * - * - *
-   * Specification for vertex model resources.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSpec vertex_model_spec = 1; - */ - com.google.cloud.datacatalog.v1.VertexModelSpecOrBuilder getVertexModelSpecOrBuilder(); - - com.google.cloud.datacatalog.v1.ModelSpec.SystemSpecCase getSystemSpecCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequest.java deleted file mode 100644 index 1e94e10b9039..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequest.java +++ /dev/null @@ -1,929 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ModifyEntryContacts][google.cloud.datacatalog.v1.DataCatalog.ModifyEntryContacts].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ModifyEntryContactsRequest} - */ -@com.google.protobuf.Generated -public final class ModifyEntryContactsRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ModifyEntryContactsRequest) - ModifyEntryContactsRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ModifyEntryContactsRequest"); - } - - // Use ModifyEntryContactsRequest.newBuilder() to construct. - private ModifyEntryContactsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ModifyEntryContactsRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest.class, - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The full resource name of the entry.
-   * 
- * - * - * 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 full resource name of the entry.
-   * 
- * - * - * 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 CONTACTS_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.Contacts contacts_; - - /** - * - * - *
-   * Required. The new value for the Contacts.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contacts field is set. - */ - @java.lang.Override - public boolean hasContacts() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The new value for the Contacts.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contacts. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Contacts getContacts() { - return contacts_ == null - ? com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance() - : contacts_; - } - - /** - * - * - *
-   * Required. The new value for the Contacts.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ContactsOrBuilder getContactsOrBuilder() { - return contacts_ == null - ? com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance() - : contacts_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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, getContacts()); - } - 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, getContacts()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest other = - (com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasContacts() != other.hasContacts()) return false; - if (hasContacts()) { - if (!getContacts().equals(other.getContacts())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasContacts()) { - hash = (37 * hash) + CONTACTS_FIELD_NUMBER; - hash = (53 * hash) + getContacts().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ModifyEntryContacts][google.cloud.datacatalog.v1.DataCatalog.ModifyEntryContacts].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ModifyEntryContactsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ModifyEntryContactsRequest) - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest.class, - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetContactsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - contacts_ = null; - if (contactsBuilder_ != null) { - contactsBuilder_.dispose(); - contactsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModifyEntryContactsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest build() { - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest buildPartial() { - com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest result = - new com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.contacts_ = contactsBuilder_ == null ? contacts_ : contactsBuilder_.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.datacatalog.v1.ModifyEntryContactsRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest other) { - if (other == com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasContacts()) { - mergeContacts(other.getContacts()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetContactsFieldBuilder().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 full resource name of the entry.
-     * 
- * - * - * 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 full resource name of the entry.
-     * 
- * - * - * 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 full resource name of the entry.
-     * 
- * - * - * 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 full resource name of the entry.
-     * 
- * - * - * 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 full resource name of the entry.
-     * 
- * - * - * 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.datacatalog.v1.Contacts contacts_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Contacts, - com.google.cloud.datacatalog.v1.Contacts.Builder, - com.google.cloud.datacatalog.v1.ContactsOrBuilder> - contactsBuilder_; - - /** - * - * - *
-     * Required. The new value for the Contacts.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contacts field is set. - */ - public boolean hasContacts() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Required. The new value for the Contacts.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contacts. - */ - public com.google.cloud.datacatalog.v1.Contacts getContacts() { - if (contactsBuilder_ == null) { - return contacts_ == null - ? com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance() - : contacts_; - } else { - return contactsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The new value for the Contacts.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setContacts(com.google.cloud.datacatalog.v1.Contacts value) { - if (contactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - contacts_ = value; - } else { - contactsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new value for the Contacts.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setContacts(com.google.cloud.datacatalog.v1.Contacts.Builder builderForValue) { - if (contactsBuilder_ == null) { - contacts_ = builderForValue.build(); - } else { - contactsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new value for the Contacts.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeContacts(com.google.cloud.datacatalog.v1.Contacts value) { - if (contactsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && contacts_ != null - && contacts_ != com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance()) { - getContactsBuilder().mergeFrom(value); - } else { - contacts_ = value; - } - } else { - contactsBuilder_.mergeFrom(value); - } - if (contacts_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The new value for the Contacts.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearContacts() { - bitField0_ = (bitField0_ & ~0x00000002); - contacts_ = null; - if (contactsBuilder_ != null) { - contactsBuilder_.dispose(); - contactsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new value for the Contacts.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.Contacts.Builder getContactsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetContactsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The new value for the Contacts.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.ContactsOrBuilder getContactsOrBuilder() { - if (contactsBuilder_ != null) { - return contactsBuilder_.getMessageOrBuilder(); - } else { - return contacts_ == null - ? com.google.cloud.datacatalog.v1.Contacts.getDefaultInstance() - : contacts_; - } - } - - /** - * - * - *
-     * Required. The new value for the Contacts.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Contacts, - com.google.cloud.datacatalog.v1.Contacts.Builder, - com.google.cloud.datacatalog.v1.ContactsOrBuilder> - internalGetContactsFieldBuilder() { - if (contactsBuilder_ == null) { - contactsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Contacts, - com.google.cloud.datacatalog.v1.Contacts.Builder, - com.google.cloud.datacatalog.v1.ContactsOrBuilder>( - getContacts(), getParentForChildren(), isClean()); - contacts_ = null; - } - return contactsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ModifyEntryContactsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ModifyEntryContactsRequest) - private static final com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest(); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyEntryContactsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequestOrBuilder.java deleted file mode 100644 index deb7bdadec25..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryContactsRequestOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ModifyEntryContactsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ModifyEntryContactsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full resource name of the entry.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The full resource name of the entry.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The new value for the Contacts.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the contacts field is set. - */ - boolean hasContacts(); - - /** - * - * - *
-   * Required. The new value for the Contacts.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The contacts. - */ - com.google.cloud.datacatalog.v1.Contacts getContacts(); - - /** - * - * - *
-   * Required. The new value for the Contacts.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Contacts contacts = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.ContactsOrBuilder getContactsOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequest.java deleted file mode 100644 index 0de38bde97f7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequest.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ModifyEntryOverview][google.cloud.datacatalog.v1.DataCatalog.ModifyEntryOverview].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ModifyEntryOverviewRequest} - */ -@com.google.protobuf.Generated -public final class ModifyEntryOverviewRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ModifyEntryOverviewRequest) - ModifyEntryOverviewRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ModifyEntryOverviewRequest"); - } - - // Use ModifyEntryOverviewRequest.newBuilder() to construct. - private ModifyEntryOverviewRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ModifyEntryOverviewRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest.class, - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The full resource name of the entry.
-   * 
- * - * - * 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 full resource name of the entry.
-   * 
- * - * - * 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 ENTRY_OVERVIEW_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.EntryOverview entryOverview_; - - /** - * - * - *
-   * Required. The new value for the Entry Overview.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entryOverview field is set. - */ - @java.lang.Override - public boolean hasEntryOverview() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The new value for the Entry Overview.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entryOverview. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOverview getEntryOverview() { - return entryOverview_ == null - ? com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance() - : entryOverview_; - } - - /** - * - * - *
-   * Required. The new value for the Entry Overview.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder getEntryOverviewOrBuilder() { - return entryOverview_ == null - ? com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance() - : entryOverview_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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, getEntryOverview()); - } - 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, getEntryOverview()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest other = - (com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasEntryOverview() != other.hasEntryOverview()) return false; - if (hasEntryOverview()) { - if (!getEntryOverview().equals(other.getEntryOverview())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasEntryOverview()) { - hash = (37 * hash) + ENTRY_OVERVIEW_FIELD_NUMBER; - hash = (53 * hash) + getEntryOverview().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ModifyEntryOverview][google.cloud.datacatalog.v1.DataCatalog.ModifyEntryOverview].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ModifyEntryOverviewRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ModifyEntryOverviewRequest) - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest.class, - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetEntryOverviewFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - entryOverview_ = null; - if (entryOverviewBuilder_ != null) { - entryOverviewBuilder_.dispose(); - entryOverviewBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ModifyEntryOverviewRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest build() { - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest buildPartial() { - com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest result = - new com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.entryOverview_ = - entryOverviewBuilder_ == null ? entryOverview_ : entryOverviewBuilder_.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.datacatalog.v1.ModifyEntryOverviewRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest other) { - if (other == com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasEntryOverview()) { - mergeEntryOverview(other.getEntryOverview()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetEntryOverviewFieldBuilder().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 full resource name of the entry.
-     * 
- * - * - * 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 full resource name of the entry.
-     * 
- * - * - * 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 full resource name of the entry.
-     * 
- * - * - * 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 full resource name of the entry.
-     * 
- * - * - * 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 full resource name of the entry.
-     * 
- * - * - * 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.datacatalog.v1.EntryOverview entryOverview_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryOverview, - com.google.cloud.datacatalog.v1.EntryOverview.Builder, - com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder> - entryOverviewBuilder_; - - /** - * - * - *
-     * Required. The new value for the Entry Overview.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entryOverview field is set. - */ - public boolean hasEntryOverview() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Required. The new value for the Entry Overview.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entryOverview. - */ - public com.google.cloud.datacatalog.v1.EntryOverview getEntryOverview() { - if (entryOverviewBuilder_ == null) { - return entryOverview_ == null - ? com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance() - : entryOverview_; - } else { - return entryOverviewBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The new value for the Entry Overview.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntryOverview(com.google.cloud.datacatalog.v1.EntryOverview value) { - if (entryOverviewBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entryOverview_ = value; - } else { - entryOverviewBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new value for the Entry Overview.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntryOverview( - com.google.cloud.datacatalog.v1.EntryOverview.Builder builderForValue) { - if (entryOverviewBuilder_ == null) { - entryOverview_ = builderForValue.build(); - } else { - entryOverviewBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new value for the Entry Overview.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeEntryOverview(com.google.cloud.datacatalog.v1.EntryOverview value) { - if (entryOverviewBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && entryOverview_ != null - && entryOverview_ - != com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance()) { - getEntryOverviewBuilder().mergeFrom(value); - } else { - entryOverview_ = value; - } - } else { - entryOverviewBuilder_.mergeFrom(value); - } - if (entryOverview_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The new value for the Entry Overview.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearEntryOverview() { - bitField0_ = (bitField0_ & ~0x00000002); - entryOverview_ = null; - if (entryOverviewBuilder_ != null) { - entryOverviewBuilder_.dispose(); - entryOverviewBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new value for the Entry Overview.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.EntryOverview.Builder getEntryOverviewBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetEntryOverviewFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The new value for the Entry Overview.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder getEntryOverviewOrBuilder() { - if (entryOverviewBuilder_ != null) { - return entryOverviewBuilder_.getMessageOrBuilder(); - } else { - return entryOverview_ == null - ? com.google.cloud.datacatalog.v1.EntryOverview.getDefaultInstance() - : entryOverview_; - } - } - - /** - * - * - *
-     * Required. The new value for the Entry Overview.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryOverview, - com.google.cloud.datacatalog.v1.EntryOverview.Builder, - com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder> - internalGetEntryOverviewFieldBuilder() { - if (entryOverviewBuilder_ == null) { - entryOverviewBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryOverview, - com.google.cloud.datacatalog.v1.EntryOverview.Builder, - com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder>( - getEntryOverview(), getParentForChildren(), isClean()); - entryOverview_ = null; - } - return entryOverviewBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ModifyEntryOverviewRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ModifyEntryOverviewRequest) - private static final com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest(); - } - - public static com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ModifyEntryOverviewRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequestOrBuilder.java deleted file mode 100644 index aa1131fff21d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ModifyEntryOverviewRequestOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ModifyEntryOverviewRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ModifyEntryOverviewRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full resource name of the entry.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The full resource name of the entry.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The new value for the Entry Overview.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entryOverview field is set. - */ - boolean hasEntryOverview(); - - /** - * - * - *
-   * Required. The new value for the Entry Overview.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entryOverview. - */ - com.google.cloud.datacatalog.v1.EntryOverview getEntryOverview(); - - /** - * - * - *
-   * Required. The new value for the Entry Overview.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryOverview entry_overview = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.EntryOverviewOrBuilder getEntryOverviewOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfig.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfig.java deleted file mode 100644 index 9330522afd45..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfig.java +++ /dev/null @@ -1,874 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * The configuration related to the migration from Data Catalog to Dataplex that
- * has been applied to an organization and any projects under it. It is the
- * response message for
- * [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.OrganizationConfig} - */ -@com.google.protobuf.Generated -public final class OrganizationConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.OrganizationConfig) - OrganizationConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "OrganizationConfig"); - } - - // Use OrganizationConfig.newBuilder() to construct. - private OrganizationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private OrganizationConfig() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetConfig(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.OrganizationConfig.class, - com.google.cloud.datacatalog.v1.OrganizationConfig.Builder.class); - } - - public static final int CONFIG_FIELD_NUMBER = 1; - - private static final class ConfigDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_ConfigEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.datacatalog.v1.MigrationConfig.getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> - config_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> - internalGetConfig() { - if (config_ == null) { - return com.google.protobuf.MapField.emptyMapField(ConfigDefaultEntryHolder.defaultEntry); - } - return config_; - } - - public int getConfigCount() { - return internalGetConfig().getMap().size(); - } - - /** - * - * - *
-   * Map of organizations and project resource names and their configuration.
-   * The format for the map keys is `organizations/{organizationId}` or
-   * `projects/{projectId}`.
-   * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - @java.lang.Override - public boolean containsConfig(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetConfig().getMap().containsKey(key); - } - - /** Use {@link #getConfigMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getConfig() { - return getConfigMap(); - } - - /** - * - * - *
-   * Map of organizations and project resource names and their configuration.
-   * The format for the map keys is `organizations/{organizationId}` or
-   * `projects/{projectId}`.
-   * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - @java.lang.Override - public java.util.Map - getConfigMap() { - return internalGetConfig().getMap(); - } - - /** - * - * - *
-   * Map of organizations and project resource names and their configuration.
-   * The format for the map keys is `organizations/{organizationId}` or
-   * `projects/{projectId}`.
-   * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.MigrationConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetConfig().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-   * Map of organizations and project resource names and their configuration.
-   * The format for the map keys is `organizations/{organizationId}` or
-   * `projects/{projectId}`.
-   * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetConfig().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, internalGetConfig(), ConfigDefaultEntryHolder.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 : internalGetConfig().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> - config__ = - ConfigDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, config__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.OrganizationConfig)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.OrganizationConfig other = - (com.google.cloud.datacatalog.v1.OrganizationConfig) obj; - - if (!internalGetConfig().equals(other.internalGetConfig())) return false; - if (!getUnknownFields().equals(other.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 (!internalGetConfig().getMap().isEmpty()) { - hash = (37 * hash) + CONFIG_FIELD_NUMBER; - hash = (53 * hash) + internalGetConfig().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.OrganizationConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 configuration related to the migration from Data Catalog to Dataplex that
-   * has been applied to an organization and any projects under it. It is the
-   * response message for
-   * [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.OrganizationConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.OrganizationConfig) - com.google.cloud.datacatalog.v1.OrganizationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetConfig(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableConfig(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.OrganizationConfig.class, - com.google.cloud.datacatalog.v1.OrganizationConfig.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.OrganizationConfig.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableConfig().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_OrganizationConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.OrganizationConfig getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.OrganizationConfig.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.OrganizationConfig build() { - com.google.cloud.datacatalog.v1.OrganizationConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.OrganizationConfig buildPartial() { - com.google.cloud.datacatalog.v1.OrganizationConfig result = - new com.google.cloud.datacatalog.v1.OrganizationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.OrganizationConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.config_ = internalGetConfig().build(ConfigDefaultEntryHolder.defaultEntry); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.OrganizationConfig) { - return mergeFrom((com.google.cloud.datacatalog.v1.OrganizationConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.OrganizationConfig other) { - if (other == com.google.cloud.datacatalog.v1.OrganizationConfig.getDefaultInstance()) - return this; - internalGetMutableConfig().mergeFrom(other.internalGetConfig()); - 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.datacatalog.v1.MigrationConfig> - config__ = - input.readMessage( - ConfigDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableConfig() - .ensureBuilderMap() - .put(config__.getKey(), config__.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 ConfigConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder, - com.google.cloud.datacatalog.v1.MigrationConfig> { - @java.lang.Override - public com.google.cloud.datacatalog.v1.MigrationConfig build( - com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder val) { - if (val instanceof com.google.cloud.datacatalog.v1.MigrationConfig) { - return (com.google.cloud.datacatalog.v1.MigrationConfig) val; - } - return ((com.google.cloud.datacatalog.v1.MigrationConfig.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.MigrationConfig> - defaultEntry() { - return ConfigDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final ConfigConverter configConverter = new ConfigConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder, - com.google.cloud.datacatalog.v1.MigrationConfig, - com.google.cloud.datacatalog.v1.MigrationConfig.Builder> - config_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder, - com.google.cloud.datacatalog.v1.MigrationConfig, - com.google.cloud.datacatalog.v1.MigrationConfig.Builder> - internalGetConfig() { - if (config_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(configConverter); - } - return config_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder, - com.google.cloud.datacatalog.v1.MigrationConfig, - com.google.cloud.datacatalog.v1.MigrationConfig.Builder> - internalGetMutableConfig() { - if (config_ == null) { - config_ = new com.google.protobuf.MapFieldBuilder<>(configConverter); - } - bitField0_ |= 0x00000001; - onChanged(); - return config_; - } - - public int getConfigCount() { - return internalGetConfig().ensureBuilderMap().size(); - } - - /** - * - * - *
-     * Map of organizations and project resource names and their configuration.
-     * The format for the map keys is `organizations/{organizationId}` or
-     * `projects/{projectId}`.
-     * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - @java.lang.Override - public boolean containsConfig(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetConfig().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getConfigMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getConfig() { - return getConfigMap(); - } - - /** - * - * - *
-     * Map of organizations and project resource names and their configuration.
-     * The format for the map keys is `organizations/{organizationId}` or
-     * `projects/{projectId}`.
-     * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - @java.lang.Override - public java.util.Map - getConfigMap() { - return internalGetConfig().getImmutableMap(); - } - - /** - * - * - *
-     * Map of organizations and project resource names and their configuration.
-     * The format for the map keys is `organizations/{organizationId}` or
-     * `projects/{projectId}`.
-     * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.MigrationConfig defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableConfig().ensureBuilderMap(); - return map.containsKey(key) ? configConverter.build(map.get(key)) : defaultValue; - } - - /** - * - * - *
-     * Map of organizations and project resource names and their configuration.
-     * The format for the map keys is `organizations/{organizationId}` or
-     * `projects/{projectId}`.
-     * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableConfig().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return configConverter.build(map.get(key)); - } - - public Builder clearConfig() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableConfig().clear(); - return this; - } - - /** - * - * - *
-     * Map of organizations and project resource names and their configuration.
-     * The format for the map keys is `organizations/{organizationId}` or
-     * `projects/{projectId}`.
-     * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - public Builder removeConfig(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableConfig().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableConfig() { - bitField0_ |= 0x00000001; - return internalGetMutableConfig().ensureMessageMap(); - } - - /** - * - * - *
-     * Map of organizations and project resource names and their configuration.
-     * The format for the map keys is `organizations/{organizationId}` or
-     * `projects/{projectId}`.
-     * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - public Builder putConfig( - java.lang.String key, com.google.cloud.datacatalog.v1.MigrationConfig value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableConfig().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000001; - return this; - } - - /** - * - * - *
-     * Map of organizations and project resource names and their configuration.
-     * The format for the map keys is `organizations/{organizationId}` or
-     * `projects/{projectId}`.
-     * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - public Builder putAllConfig( - java.util.Map values) { - for (java.util.Map.Entry - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableConfig().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - /** - * - * - *
-     * Map of organizations and project resource names and their configuration.
-     * The format for the map keys is `organizations/{organizationId}` or
-     * `projects/{projectId}`.
-     * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - public com.google.cloud.datacatalog.v1.MigrationConfig.Builder putConfigBuilderIfAbsent( - java.lang.String key) { - java.util.Map - builderMap = internalGetMutableConfig().ensureBuilderMap(); - com.google.cloud.datacatalog.v1.MigrationConfigOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.datacatalog.v1.MigrationConfig.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.datacatalog.v1.MigrationConfig) { - entry = ((com.google.cloud.datacatalog.v1.MigrationConfig) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.datacatalog.v1.MigrationConfig.Builder) entry; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.OrganizationConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.OrganizationConfig) - private static final com.google.cloud.datacatalog.v1.OrganizationConfig DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.OrganizationConfig(); - } - - public static com.google.cloud.datacatalog.v1.OrganizationConfig getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrganizationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.OrganizationConfig getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfigOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfigOrBuilder.java deleted file mode 100644 index 59e9e0e81ddb..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/OrganizationConfigOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface OrganizationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.OrganizationConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Map of organizations and project resource names and their configuration.
-   * The format for the map keys is `organizations/{organizationId}` or
-   * `projects/{projectId}`.
-   * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - int getConfigCount(); - - /** - * - * - *
-   * Map of organizations and project resource names and their configuration.
-   * The format for the map keys is `organizations/{organizationId}` or
-   * `projects/{projectId}`.
-   * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - boolean containsConfig(java.lang.String key); - - /** Use {@link #getConfigMap()} instead. */ - @java.lang.Deprecated - java.util.Map getConfig(); - - /** - * - * - *
-   * Map of organizations and project resource names and their configuration.
-   * The format for the map keys is `organizations/{organizationId}` or
-   * `projects/{projectId}`.
-   * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - java.util.Map getConfigMap(); - - /** - * - * - *
-   * Map of organizations and project resource names and their configuration.
-   * The format for the map keys is `organizations/{organizationId}` or
-   * `projects/{projectId}`.
-   * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - /* nullable */ - com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.MigrationConfig defaultValue); - - /** - * - * - *
-   * Map of organizations and project resource names and their configuration.
-   * The format for the map keys is `organizations/{organizationId}` or
-   * `projects/{projectId}`.
-   * 
- * - * map<string, .google.cloud.datacatalog.v1.MigrationConfig> config = 1; - */ - com.google.cloud.datacatalog.v1.MigrationConfig getConfigOrThrow(java.lang.String key); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetails.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetails.java deleted file mode 100644 index a98ef18c4cd3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetails.java +++ /dev/null @@ -1,787 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/common.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Entry metadata relevant only to the user and private to them.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PersonalDetails} - */ -@com.google.protobuf.Generated -public final class PersonalDetails extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PersonalDetails) - PersonalDetailsOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PersonalDetails"); - } - - // Use PersonalDetails.newBuilder() to construct. - private PersonalDetails(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private PersonalDetails() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Common - .internal_static_google_cloud_datacatalog_v1_PersonalDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Common - .internal_static_google_cloud_datacatalog_v1_PersonalDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PersonalDetails.class, - com.google.cloud.datacatalog.v1.PersonalDetails.Builder.class); - } - - private int bitField0_; - public static final int STARRED_FIELD_NUMBER = 1; - private boolean starred_ = false; - - /** - * - * - *
-   * True if the entry is starred by the user; false otherwise.
-   * 
- * - * bool starred = 1; - * - * @return The starred. - */ - @java.lang.Override - public boolean getStarred() { - return starred_; - } - - public static final int STAR_TIME_FIELD_NUMBER = 2; - private com.google.protobuf.Timestamp starTime_; - - /** - * - * - *
-   * Set if the entry is starred; unset otherwise.
-   * 
- * - * .google.protobuf.Timestamp star_time = 2; - * - * @return Whether the starTime field is set. - */ - @java.lang.Override - public boolean hasStarTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Set if the entry is starred; unset otherwise.
-   * 
- * - * .google.protobuf.Timestamp star_time = 2; - * - * @return The starTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getStarTime() { - return starTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : starTime_; - } - - /** - * - * - *
-   * Set if the entry is starred; unset otherwise.
-   * 
- * - * .google.protobuf.Timestamp star_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getStarTimeOrBuilder() { - return starTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : starTime_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (starred_ != false) { - output.writeBool(1, starred_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getStarTime()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (starred_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, starred_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStarTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.PersonalDetails)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.PersonalDetails other = - (com.google.cloud.datacatalog.v1.PersonalDetails) obj; - - if (getStarred() != other.getStarred()) return false; - if (hasStarTime() != other.hasStarTime()) return false; - if (hasStarTime()) { - if (!getStarTime().equals(other.getStarTime())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STARRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStarred()); - if (hasStarTime()) { - hash = (37 * hash) + STAR_TIME_FIELD_NUMBER; - hash = (53 * hash) + getStarTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.PersonalDetails prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Entry metadata relevant only to the user and private to them.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PersonalDetails} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.PersonalDetails) - com.google.cloud.datacatalog.v1.PersonalDetailsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Common - .internal_static_google_cloud_datacatalog_v1_PersonalDetails_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Common - .internal_static_google_cloud_datacatalog_v1_PersonalDetails_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PersonalDetails.class, - com.google.cloud.datacatalog.v1.PersonalDetails.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.PersonalDetails.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetStarTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - starred_ = false; - starTime_ = null; - if (starTimeBuilder_ != null) { - starTimeBuilder_.dispose(); - starTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Common - .internal_static_google_cloud_datacatalog_v1_PersonalDetails_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PersonalDetails getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PersonalDetails build() { - com.google.cloud.datacatalog.v1.PersonalDetails result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PersonalDetails buildPartial() { - com.google.cloud.datacatalog.v1.PersonalDetails result = - new com.google.cloud.datacatalog.v1.PersonalDetails(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.PersonalDetails result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.starred_ = starred_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.starTime_ = starTimeBuilder_ == null ? starTime_ : starTimeBuilder_.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.datacatalog.v1.PersonalDetails) { - return mergeFrom((com.google.cloud.datacatalog.v1.PersonalDetails) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.PersonalDetails other) { - if (other == com.google.cloud.datacatalog.v1.PersonalDetails.getDefaultInstance()) - return this; - if (other.getStarred() != false) { - setStarred(other.getStarred()); - } - if (other.hasStarTime()) { - mergeStarTime(other.getStarTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - starred_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage( - internalGetStarTimeFieldBuilder().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 boolean starred_; - - /** - * - * - *
-     * True if the entry is starred by the user; false otherwise.
-     * 
- * - * bool starred = 1; - * - * @return The starred. - */ - @java.lang.Override - public boolean getStarred() { - return starred_; - } - - /** - * - * - *
-     * True if the entry is starred by the user; false otherwise.
-     * 
- * - * bool starred = 1; - * - * @param value The starred to set. - * @return This builder for chaining. - */ - public Builder setStarred(boolean value) { - - starred_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * True if the entry is starred by the user; false otherwise.
-     * 
- * - * bool starred = 1; - * - * @return This builder for chaining. - */ - public Builder clearStarred() { - bitField0_ = (bitField0_ & ~0x00000001); - starred_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp starTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - starTimeBuilder_; - - /** - * - * - *
-     * Set if the entry is starred; unset otherwise.
-     * 
- * - * .google.protobuf.Timestamp star_time = 2; - * - * @return Whether the starTime field is set. - */ - public boolean hasStarTime() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Set if the entry is starred; unset otherwise.
-     * 
- * - * .google.protobuf.Timestamp star_time = 2; - * - * @return The starTime. - */ - public com.google.protobuf.Timestamp getStarTime() { - if (starTimeBuilder_ == null) { - return starTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : starTime_; - } else { - return starTimeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Set if the entry is starred; unset otherwise.
-     * 
- * - * .google.protobuf.Timestamp star_time = 2; - */ - public Builder setStarTime(com.google.protobuf.Timestamp value) { - if (starTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - starTime_ = value; - } else { - starTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Set if the entry is starred; unset otherwise.
-     * 
- * - * .google.protobuf.Timestamp star_time = 2; - */ - public Builder setStarTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (starTimeBuilder_ == null) { - starTime_ = builderForValue.build(); - } else { - starTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Set if the entry is starred; unset otherwise.
-     * 
- * - * .google.protobuf.Timestamp star_time = 2; - */ - public Builder mergeStarTime(com.google.protobuf.Timestamp value) { - if (starTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && starTime_ != null - && starTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getStarTimeBuilder().mergeFrom(value); - } else { - starTime_ = value; - } - } else { - starTimeBuilder_.mergeFrom(value); - } - if (starTime_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Set if the entry is starred; unset otherwise.
-     * 
- * - * .google.protobuf.Timestamp star_time = 2; - */ - public Builder clearStarTime() { - bitField0_ = (bitField0_ & ~0x00000002); - starTime_ = null; - if (starTimeBuilder_ != null) { - starTimeBuilder_.dispose(); - starTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Set if the entry is starred; unset otherwise.
-     * 
- * - * .google.protobuf.Timestamp star_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getStarTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetStarTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Set if the entry is starred; unset otherwise.
-     * 
- * - * .google.protobuf.Timestamp star_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getStarTimeOrBuilder() { - if (starTimeBuilder_ != null) { - return starTimeBuilder_.getMessageOrBuilder(); - } else { - return starTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : starTime_; - } - } - - /** - * - * - *
-     * Set if the entry is starred; unset otherwise.
-     * 
- * - * .google.protobuf.Timestamp star_time = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetStarTimeFieldBuilder() { - if (starTimeBuilder_ == null) { - starTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getStarTime(), getParentForChildren(), isClean()); - starTime_ = null; - } - return starTimeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.PersonalDetails) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.PersonalDetails) - private static final com.google.cloud.datacatalog.v1.PersonalDetails DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.PersonalDetails(); - } - - public static com.google.cloud.datacatalog.v1.PersonalDetails getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PersonalDetails parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PersonalDetails getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetailsOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetailsOrBuilder.java deleted file mode 100644 index 6d0e0ae439f2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PersonalDetailsOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/common.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface PersonalDetailsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PersonalDetails) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * True if the entry is starred by the user; false otherwise.
-   * 
- * - * bool starred = 1; - * - * @return The starred. - */ - boolean getStarred(); - - /** - * - * - *
-   * Set if the entry is starred; unset otherwise.
-   * 
- * - * .google.protobuf.Timestamp star_time = 2; - * - * @return Whether the starTime field is set. - */ - boolean hasStarTime(); - - /** - * - * - *
-   * Set if the entry is starred; unset otherwise.
-   * 
- * - * .google.protobuf.Timestamp star_time = 2; - * - * @return The starTime. - */ - com.google.protobuf.Timestamp getStarTime(); - - /** - * - * - *
-   * Set if the entry is starred; unset otherwise.
-   * 
- * - * .google.protobuf.Timestamp star_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getStarTimeOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchema.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchema.java deleted file mode 100644 index 4aef0f3e8fda..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchema.java +++ /dev/null @@ -1,5338 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/physical_schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Native schema used by a resource represented as an entry. Used by query
- * engines for deserializing and parsing source data.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema} - */ -@com.google.protobuf.Generated -public final class PhysicalSchema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema) - PhysicalSchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PhysicalSchema"); - } - - // Use PhysicalSchema.newBuilder() to construct. - private PhysicalSchema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private PhysicalSchema() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.Builder.class); - } - - public interface AvroSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * JSON source of the Avro schema.
-     * 
- * - * string text = 1; - * - * @return The text. - */ - java.lang.String getText(); - - /** - * - * - *
-     * JSON source of the Avro schema.
-     * 
- * - * string text = 1; - * - * @return The bytes for text. - */ - com.google.protobuf.ByteString getTextBytes(); - } - - /** - * - * - *
-   * Schema in Avro JSON format.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema} - */ - public static final class AvroSchema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) - AvroSchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "AvroSchema"); - } - - // Use AvroSchema.newBuilder() to construct. - private AvroSchema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private AvroSchema() { - text_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.Builder.class); - } - - public static final int TEXT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object text_ = ""; - - /** - * - * - *
-     * JSON source of the Avro schema.
-     * 
- * - * string text = 1; - * - * @return The text. - */ - @java.lang.Override - public java.lang.String getText() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - text_ = s; - return s; - } - } - - /** - * - * - *
-     * JSON source of the Avro schema.
-     * 
- * - * string text = 1; - * - * @return The bytes for text. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - text_ = 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(text_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, text_); - } - 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(text_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, text_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema other = - (com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) obj; - - if (!getText().equals(other.getText())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Schema in Avro JSON format.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - text_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema build() { - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema buildPartial() { - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema result = - new com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.text_ = text_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) { - return mergeFrom((com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema other) { - if (other == com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance()) - return this; - if (!other.getText().isEmpty()) { - text_ = other.text_; - 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: - { - text_ = 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 text_ = ""; - - /** - * - * - *
-       * JSON source of the Avro schema.
-       * 
- * - * string text = 1; - * - * @return The text. - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - text_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * JSON source of the Avro schema.
-       * 
- * - * string text = 1; - * - * @return The bytes for text. - */ - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * JSON source of the Avro schema.
-       * 
- * - * string text = 1; - * - * @param value The text to set. - * @return This builder for chaining. - */ - public Builder setText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - text_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * JSON source of the Avro schema.
-       * 
- * - * string text = 1; - * - * @return This builder for chaining. - */ - public Builder clearText() { - text_ = getDefaultInstance().getText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * JSON source of the Avro schema.
-       * 
- * - * string text = 1; - * - * @param value The bytes for text to set. - * @return This builder for chaining. - */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - text_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) - private static final com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema(); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AvroSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ThriftSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Thrift IDL source of the schema.
-     * 
- * - * string text = 1; - * - * @return The text. - */ - java.lang.String getText(); - - /** - * - * - *
-     * Thrift IDL source of the schema.
-     * 
- * - * string text = 1; - * - * @return The bytes for text. - */ - com.google.protobuf.ByteString getTextBytes(); - } - - /** - * - * - *
-   * Schema in Thrift format.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema} - */ - public static final class ThriftSchema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) - ThriftSchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ThriftSchema"); - } - - // Use ThriftSchema.newBuilder() to construct. - private ThriftSchema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ThriftSchema() { - text_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder.class); - } - - public static final int TEXT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object text_ = ""; - - /** - * - * - *
-     * Thrift IDL source of the schema.
-     * 
- * - * string text = 1; - * - * @return The text. - */ - @java.lang.Override - public java.lang.String getText() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - text_ = s; - return s; - } - } - - /** - * - * - *
-     * Thrift IDL source of the schema.
-     * 
- * - * string text = 1; - * - * @return The bytes for text. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - text_ = 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(text_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, text_); - } - 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(text_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, text_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema other = - (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) obj; - - if (!getText().equals(other.getText())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Schema in Thrift format.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - text_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema build() { - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema buildPartial() { - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema result = - new com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.text_ = text_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) { - return mergeFrom((com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema other) { - if (other - == com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance()) - return this; - if (!other.getText().isEmpty()) { - text_ = other.text_; - 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: - { - text_ = 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 text_ = ""; - - /** - * - * - *
-       * Thrift IDL source of the schema.
-       * 
- * - * string text = 1; - * - * @return The text. - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - text_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * Thrift IDL source of the schema.
-       * 
- * - * string text = 1; - * - * @return The bytes for text. - */ - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * Thrift IDL source of the schema.
-       * 
- * - * string text = 1; - * - * @param value The text to set. - * @return This builder for chaining. - */ - public Builder setText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - text_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * Thrift IDL source of the schema.
-       * 
- * - * string text = 1; - * - * @return This builder for chaining. - */ - public Builder clearText() { - text_ = getDefaultInstance().getText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * Thrift IDL source of the schema.
-       * 
- * - * string text = 1; - * - * @param value The bytes for text to set. - * @return This builder for chaining. - */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - text_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) - private static final com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema(); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ThriftSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ProtobufSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Protocol buffer source of the schema.
-     * 
- * - * string text = 1; - * - * @return The text. - */ - java.lang.String getText(); - - /** - * - * - *
-     * Protocol buffer source of the schema.
-     * 
- * - * string text = 1; - * - * @return The bytes for text. - */ - com.google.protobuf.ByteString getTextBytes(); - } - - /** - * - * - *
-   * Schema in protocol buffer format.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema} - */ - public static final class ProtobufSchema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) - ProtobufSchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ProtobufSchema"); - } - - // Use ProtobufSchema.newBuilder() to construct. - private ProtobufSchema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ProtobufSchema() { - text_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder.class); - } - - public static final int TEXT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object text_ = ""; - - /** - * - * - *
-     * Protocol buffer source of the schema.
-     * 
- * - * string text = 1; - * - * @return The text. - */ - @java.lang.Override - public java.lang.String getText() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - text_ = s; - return s; - } - } - - /** - * - * - *
-     * Protocol buffer source of the schema.
-     * 
- * - * string text = 1; - * - * @return The bytes for text. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - text_ = 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(text_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, text_); - } - 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(text_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, text_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema other = - (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) obj; - - if (!getText().equals(other.getText())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Schema in protocol buffer format.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - text_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema build() { - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema buildPartial() { - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema result = - new com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.text_ = text_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) { - return mergeFrom((com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema other) { - if (other - == com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance()) - return this; - if (!other.getText().isEmpty()) { - text_ = other.text_; - 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: - { - text_ = 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 text_ = ""; - - /** - * - * - *
-       * Protocol buffer source of the schema.
-       * 
- * - * string text = 1; - * - * @return The text. - */ - public java.lang.String getText() { - java.lang.Object ref = text_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - text_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * Protocol buffer source of the schema.
-       * 
- * - * string text = 1; - * - * @return The bytes for text. - */ - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = text_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - text_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * Protocol buffer source of the schema.
-       * 
- * - * string text = 1; - * - * @param value The text to set. - * @return This builder for chaining. - */ - public Builder setText(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - text_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * Protocol buffer source of the schema.
-       * 
- * - * string text = 1; - * - * @return This builder for chaining. - */ - public Builder clearText() { - text_ = getDefaultInstance().getText(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * Protocol buffer source of the schema.
-       * 
- * - * string text = 1; - * - * @param value The bytes for text to set. - * @return This builder for chaining. - */ - public Builder setTextBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - text_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) - private static final com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema(); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ProtobufSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ParquetSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) - com.google.protobuf.MessageOrBuilder {} - - /** - * - * - *
-   * Marks a Parquet-encoded data source.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema} - */ - public static final class ParquetSchema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) - ParquetSchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ParquetSchema"); - } - - // Use ParquetSchema.newBuilder() to construct. - private ParquetSchema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ParquetSchema() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder.class); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema other = - (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Marks a Parquet-encoded data source.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema build() { - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema buildPartial() { - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema result = - new com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) { - return mergeFrom((com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema other) { - if (other - == com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance()) - return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) - private static final com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema(); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ParquetSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface OrcSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) - com.google.protobuf.MessageOrBuilder {} - - /** - * - * - *
-   * Marks an ORC-encoded data source.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema} - */ - public static final class OrcSchema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) - OrcSchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "OrcSchema"); - } - - // Use OrcSchema.newBuilder() to construct. - private OrcSchema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private OrcSchema() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.Builder.class); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema other = - (com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Marks an ORC-encoded data source.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema build() { - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema buildPartial() { - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema result = - new com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) { - return mergeFrom((com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema other) { - if (other == com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance()) - return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) - private static final com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema(); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OrcSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface CsvSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) - com.google.protobuf.MessageOrBuilder {} - - /** - * - * - *
-   * Marks a CSV-encoded data source.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema} - */ - public static final class CsvSchema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) - CsvSchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CsvSchema"); - } - - // Use CsvSchema.newBuilder() to construct. - private CsvSchema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CsvSchema() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.Builder.class); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema other = - (com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * Marks a CSV-encoded data source.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema build() { - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema buildPartial() { - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema result = - new com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) { - return mergeFrom((com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema other) { - if (other == com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.getDefaultInstance()) - return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) - private static final com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema(); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CsvSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int schemaCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object schema_; - - public enum SchemaCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AVRO(1), - THRIFT(2), - PROTOBUF(3), - PARQUET(4), - ORC(5), - CSV(6), - SCHEMA_NOT_SET(0); - private final int value; - - private SchemaCase(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 SchemaCase valueOf(int value) { - return forNumber(value); - } - - public static SchemaCase forNumber(int value) { - switch (value) { - case 1: - return AVRO; - case 2: - return THRIFT; - case 3: - return PROTOBUF; - case 4: - return PARQUET; - case 5: - return ORC; - case 6: - return CSV; - case 0: - return SCHEMA_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); - } - - public static final int AVRO_FIELD_NUMBER = 1; - - /** - * - * - *
-   * Schema in Avro JSON format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - * - * @return Whether the avro field is set. - */ - @java.lang.Override - public boolean hasAvro() { - return schemaCase_ == 1; - } - - /** - * - * - *
-   * Schema in Avro JSON format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - * - * @return The avro. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema getAvro() { - if (schemaCase_ == 1) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance(); - } - - /** - * - * - *
-   * Schema in Avro JSON format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchemaOrBuilder getAvroOrBuilder() { - if (schemaCase_ == 1) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance(); - } - - public static final int THRIFT_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Schema in Thrift format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - * - * @return Whether the thrift field is set. - */ - @java.lang.Override - public boolean hasThrift() { - return schemaCase_ == 2; - } - - /** - * - * - *
-   * Schema in Thrift format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - * - * @return The thrift. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema getThrift() { - if (schemaCase_ == 2) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance(); - } - - /** - * - * - *
-   * Schema in Thrift format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder getThriftOrBuilder() { - if (schemaCase_ == 2) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance(); - } - - public static final int PROTOBUF_FIELD_NUMBER = 3; - - /** - * - * - *
-   * Schema in protocol buffer format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - * - * @return Whether the protobuf field is set. - */ - @java.lang.Override - public boolean hasProtobuf() { - return schemaCase_ == 3; - } - - /** - * - * - *
-   * Schema in protocol buffer format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - * - * @return The protobuf. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema getProtobuf() { - if (schemaCase_ == 3) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance(); - } - - /** - * - * - *
-   * Schema in protocol buffer format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder - getProtobufOrBuilder() { - if (schemaCase_ == 3) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance(); - } - - public static final int PARQUET_FIELD_NUMBER = 4; - - /** - * - * - *
-   * Marks a Parquet-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - * - * @return Whether the parquet field is set. - */ - @java.lang.Override - public boolean hasParquet() { - return schemaCase_ == 4; - } - - /** - * - * - *
-   * Marks a Parquet-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - * - * @return The parquet. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema getParquet() { - if (schemaCase_ == 4) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance(); - } - - /** - * - * - *
-   * Marks a Parquet-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder - getParquetOrBuilder() { - if (schemaCase_ == 4) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance(); - } - - public static final int ORC_FIELD_NUMBER = 5; - - /** - * - * - *
-   * Marks an ORC-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - * - * @return Whether the orc field is set. - */ - @java.lang.Override - public boolean hasOrc() { - return schemaCase_ == 5; - } - - /** - * - * - *
-   * Marks an ORC-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - * - * @return The orc. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema getOrc() { - if (schemaCase_ == 5) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance(); - } - - /** - * - * - *
-   * Marks an ORC-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchemaOrBuilder getOrcOrBuilder() { - if (schemaCase_ == 5) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance(); - } - - public static final int CSV_FIELD_NUMBER = 6; - - /** - * - * - *
-   * Marks a CSV-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - * - * @return Whether the csv field is set. - */ - @java.lang.Override - public boolean hasCsv() { - return schemaCase_ == 6; - } - - /** - * - * - *
-   * Marks a CSV-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - * - * @return The csv. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema getCsv() { - if (schemaCase_ == 6) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.getDefaultInstance(); - } - - /** - * - * - *
-   * Marks a CSV-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchemaOrBuilder getCsvOrBuilder() { - if (schemaCase_ == 6) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.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 (schemaCase_ == 1) { - output.writeMessage(1, (com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) schema_); - } - if (schemaCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_); - } - if (schemaCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_); - } - if (schemaCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_); - } - if (schemaCase_ == 5) { - output.writeMessage(5, (com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) schema_); - } - if (schemaCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) schema_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (schemaCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) schema_); - } - if (schemaCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_); - } - if (schemaCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_); - } - if (schemaCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_); - } - if (schemaCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) schema_); - } - if (schemaCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) schema_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.PhysicalSchema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.PhysicalSchema other = - (com.google.cloud.datacatalog.v1.PhysicalSchema) obj; - - if (!getSchemaCase().equals(other.getSchemaCase())) return false; - switch (schemaCase_) { - case 1: - if (!getAvro().equals(other.getAvro())) return false; - break; - case 2: - if (!getThrift().equals(other.getThrift())) return false; - break; - case 3: - if (!getProtobuf().equals(other.getProtobuf())) return false; - break; - case 4: - if (!getParquet().equals(other.getParquet())) return false; - break; - case 5: - if (!getOrc().equals(other.getOrc())) return false; - break; - case 6: - if (!getCsv().equals(other.getCsv())) 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 (schemaCase_) { - case 1: - hash = (37 * hash) + AVRO_FIELD_NUMBER; - hash = (53 * hash) + getAvro().hashCode(); - break; - case 2: - hash = (37 * hash) + THRIFT_FIELD_NUMBER; - hash = (53 * hash) + getThrift().hashCode(); - break; - case 3: - hash = (37 * hash) + PROTOBUF_FIELD_NUMBER; - hash = (53 * hash) + getProtobuf().hashCode(); - break; - case 4: - hash = (37 * hash) + PARQUET_FIELD_NUMBER; - hash = (53 * hash) + getParquet().hashCode(); - break; - case 5: - hash = (37 * hash) + ORC_FIELD_NUMBER; - hash = (53 * hash) + getOrc().hashCode(); - break; - case 6: - hash = (37 * hash) + CSV_FIELD_NUMBER; - hash = (53 * hash) + getCsv().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.PhysicalSchema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Native schema used by a resource represented as an entry. Used by query
-   * engines for deserializing and parsing source data.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PhysicalSchema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.PhysicalSchema) - com.google.cloud.datacatalog.v1.PhysicalSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PhysicalSchema.class, - com.google.cloud.datacatalog.v1.PhysicalSchema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.PhysicalSchema.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (avroBuilder_ != null) { - avroBuilder_.clear(); - } - if (thriftBuilder_ != null) { - thriftBuilder_.clear(); - } - if (protobufBuilder_ != null) { - protobufBuilder_.clear(); - } - if (parquetBuilder_ != null) { - parquetBuilder_.clear(); - } - if (orcBuilder_ != null) { - orcBuilder_.clear(); - } - if (csvBuilder_ != null) { - csvBuilder_.clear(); - } - schemaCase_ = 0; - schema_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchemaProto - .internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.PhysicalSchema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema build() { - com.google.cloud.datacatalog.v1.PhysicalSchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema buildPartial() { - com.google.cloud.datacatalog.v1.PhysicalSchema result = - new com.google.cloud.datacatalog.v1.PhysicalSchema(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.PhysicalSchema result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.PhysicalSchema result) { - result.schemaCase_ = schemaCase_; - result.schema_ = this.schema_; - if (schemaCase_ == 1 && avroBuilder_ != null) { - result.schema_ = avroBuilder_.build(); - } - if (schemaCase_ == 2 && thriftBuilder_ != null) { - result.schema_ = thriftBuilder_.build(); - } - if (schemaCase_ == 3 && protobufBuilder_ != null) { - result.schema_ = protobufBuilder_.build(); - } - if (schemaCase_ == 4 && parquetBuilder_ != null) { - result.schema_ = parquetBuilder_.build(); - } - if (schemaCase_ == 5 && orcBuilder_ != null) { - result.schema_ = orcBuilder_.build(); - } - if (schemaCase_ == 6 && csvBuilder_ != null) { - result.schema_ = csvBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.PhysicalSchema) { - return mergeFrom((com.google.cloud.datacatalog.v1.PhysicalSchema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.PhysicalSchema other) { - if (other == com.google.cloud.datacatalog.v1.PhysicalSchema.getDefaultInstance()) return this; - switch (other.getSchemaCase()) { - case AVRO: - { - mergeAvro(other.getAvro()); - break; - } - case THRIFT: - { - mergeThrift(other.getThrift()); - break; - } - case PROTOBUF: - { - mergeProtobuf(other.getProtobuf()); - break; - } - case PARQUET: - { - mergeParquet(other.getParquet()); - break; - } - case ORC: - { - mergeOrc(other.getOrc()); - break; - } - case CSV: - { - mergeCsv(other.getCsv()); - break; - } - case SCHEMA_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(internalGetAvroFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(internalGetThriftFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetProtobufFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(internalGetParquetFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(internalGetOrcFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(internalGetCsvFieldBuilder().getBuilder(), extensionRegistry); - schemaCase_ = 6; - 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 schemaCase_ = 0; - private java.lang.Object schema_; - - public SchemaCase getSchemaCase() { - return SchemaCase.forNumber(schemaCase_); - } - - public Builder clearSchema() { - schemaCase_ = 0; - schema_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchemaOrBuilder> - avroBuilder_; - - /** - * - * - *
-     * Schema in Avro JSON format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - * - * @return Whether the avro field is set. - */ - @java.lang.Override - public boolean hasAvro() { - return schemaCase_ == 1; - } - - /** - * - * - *
-     * Schema in Avro JSON format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - * - * @return The avro. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema getAvro() { - if (avroBuilder_ == null) { - if (schemaCase_ == 1) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance(); - } else { - if (schemaCase_ == 1) { - return avroBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Schema in Avro JSON format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - */ - public Builder setAvro(com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema value) { - if (avroBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schema_ = value; - onChanged(); - } else { - avroBuilder_.setMessage(value); - } - schemaCase_ = 1; - return this; - } - - /** - * - * - *
-     * Schema in Avro JSON format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - */ - public Builder setAvro( - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.Builder builderForValue) { - if (avroBuilder_ == null) { - schema_ = builderForValue.build(); - onChanged(); - } else { - avroBuilder_.setMessage(builderForValue.build()); - } - schemaCase_ = 1; - return this; - } - - /** - * - * - *
-     * Schema in Avro JSON format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - */ - public Builder mergeAvro(com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema value) { - if (avroBuilder_ == null) { - if (schemaCase_ == 1 - && schema_ - != com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.newBuilder( - (com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) schema_) - .mergeFrom(value) - .buildPartial(); - } else { - schema_ = value; - } - onChanged(); - } else { - if (schemaCase_ == 1) { - avroBuilder_.mergeFrom(value); - } else { - avroBuilder_.setMessage(value); - } - } - schemaCase_ = 1; - return this; - } - - /** - * - * - *
-     * Schema in Avro JSON format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - */ - public Builder clearAvro() { - if (avroBuilder_ == null) { - if (schemaCase_ == 1) { - schemaCase_ = 0; - schema_ = null; - onChanged(); - } - } else { - if (schemaCase_ == 1) { - schemaCase_ = 0; - schema_ = null; - } - avroBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Schema in Avro JSON format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - */ - public com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.Builder getAvroBuilder() { - return internalGetAvroFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Schema in Avro JSON format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchemaOrBuilder getAvroOrBuilder() { - if ((schemaCase_ == 1) && (avroBuilder_ != null)) { - return avroBuilder_.getMessageOrBuilder(); - } else { - if (schemaCase_ == 1) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Schema in Avro JSON format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchemaOrBuilder> - internalGetAvroFieldBuilder() { - if (avroBuilder_ == null) { - if (!(schemaCase_ == 1)) { - schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.getDefaultInstance(); - } - avroBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchemaOrBuilder>( - (com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema) schema_, - getParentForChildren(), - isClean()); - schema_ = null; - } - schemaCase_ = 1; - onChanged(); - return avroBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder> - thriftBuilder_; - - /** - * - * - *
-     * Schema in Thrift format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - * - * @return Whether the thrift field is set. - */ - @java.lang.Override - public boolean hasThrift() { - return schemaCase_ == 2; - } - - /** - * - * - *
-     * Schema in Thrift format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - * - * @return The thrift. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema getThrift() { - if (thriftBuilder_ == null) { - if (schemaCase_ == 2) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance(); - } else { - if (schemaCase_ == 2) { - return thriftBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Schema in Thrift format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - */ - public Builder setThrift(com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema value) { - if (thriftBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schema_ = value; - onChanged(); - } else { - thriftBuilder_.setMessage(value); - } - schemaCase_ = 2; - return this; - } - - /** - * - * - *
-     * Schema in Thrift format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - */ - public Builder setThrift( - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder builderForValue) { - if (thriftBuilder_ == null) { - schema_ = builderForValue.build(); - onChanged(); - } else { - thriftBuilder_.setMessage(builderForValue.build()); - } - schemaCase_ = 2; - return this; - } - - /** - * - * - *
-     * Schema in Thrift format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - */ - public Builder mergeThrift(com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema value) { - if (thriftBuilder_ == null) { - if (schemaCase_ == 2 - && schema_ - != com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema - .getDefaultInstance()) { - schema_ = - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.newBuilder( - (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_) - .mergeFrom(value) - .buildPartial(); - } else { - schema_ = value; - } - onChanged(); - } else { - if (schemaCase_ == 2) { - thriftBuilder_.mergeFrom(value); - } else { - thriftBuilder_.setMessage(value); - } - } - schemaCase_ = 2; - return this; - } - - /** - * - * - *
-     * Schema in Thrift format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - */ - public Builder clearThrift() { - if (thriftBuilder_ == null) { - if (schemaCase_ == 2) { - schemaCase_ = 0; - schema_ = null; - onChanged(); - } - } else { - if (schemaCase_ == 2) { - schemaCase_ = 0; - schema_ = null; - } - thriftBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Schema in Thrift format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - */ - public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder getThriftBuilder() { - return internalGetThriftFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Schema in Thrift format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder - getThriftOrBuilder() { - if ((schemaCase_ == 2) && (thriftBuilder_ != null)) { - return thriftBuilder_.getMessageOrBuilder(); - } else { - if (schemaCase_ == 2) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Schema in Thrift format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder> - internalGetThriftFieldBuilder() { - if (thriftBuilder_ == null) { - if (!(schemaCase_ == 2)) { - schema_ = - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.getDefaultInstance(); - } - thriftBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder>( - (com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema) schema_, - getParentForChildren(), - isClean()); - schema_ = null; - } - schemaCase_ = 2; - onChanged(); - return thriftBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder> - protobufBuilder_; - - /** - * - * - *
-     * Schema in protocol buffer format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - * - * @return Whether the protobuf field is set. - */ - @java.lang.Override - public boolean hasProtobuf() { - return schemaCase_ == 3; - } - - /** - * - * - *
-     * Schema in protocol buffer format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - * - * @return The protobuf. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema getProtobuf() { - if (protobufBuilder_ == null) { - if (schemaCase_ == 3) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance(); - } else { - if (schemaCase_ == 3) { - return protobufBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Schema in protocol buffer format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - */ - public Builder setProtobuf( - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema value) { - if (protobufBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schema_ = value; - onChanged(); - } else { - protobufBuilder_.setMessage(value); - } - schemaCase_ = 3; - return this; - } - - /** - * - * - *
-     * Schema in protocol buffer format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - */ - public Builder setProtobuf( - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder builderForValue) { - if (protobufBuilder_ == null) { - schema_ = builderForValue.build(); - onChanged(); - } else { - protobufBuilder_.setMessage(builderForValue.build()); - } - schemaCase_ = 3; - return this; - } - - /** - * - * - *
-     * Schema in protocol buffer format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - */ - public Builder mergeProtobuf( - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema value) { - if (protobufBuilder_ == null) { - if (schemaCase_ == 3 - && schema_ - != com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema - .getDefaultInstance()) { - schema_ = - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.newBuilder( - (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_) - .mergeFrom(value) - .buildPartial(); - } else { - schema_ = value; - } - onChanged(); - } else { - if (schemaCase_ == 3) { - protobufBuilder_.mergeFrom(value); - } else { - protobufBuilder_.setMessage(value); - } - } - schemaCase_ = 3; - return this; - } - - /** - * - * - *
-     * Schema in protocol buffer format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - */ - public Builder clearProtobuf() { - if (protobufBuilder_ == null) { - if (schemaCase_ == 3) { - schemaCase_ = 0; - schema_ = null; - onChanged(); - } - } else { - if (schemaCase_ == 3) { - schemaCase_ = 0; - schema_ = null; - } - protobufBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Schema in protocol buffer format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - */ - public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder - getProtobufBuilder() { - return internalGetProtobufFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Schema in protocol buffer format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder - getProtobufOrBuilder() { - if ((schemaCase_ == 3) && (protobufBuilder_ != null)) { - return protobufBuilder_.getMessageOrBuilder(); - } else { - if (schemaCase_ == 3) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Schema in protocol buffer format.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder> - internalGetProtobufFieldBuilder() { - if (protobufBuilder_ == null) { - if (!(schemaCase_ == 3)) { - schema_ = - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.getDefaultInstance(); - } - protobufBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder>( - (com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema) schema_, - getParentForChildren(), - isClean()); - schema_ = null; - } - schemaCase_ = 3; - onChanged(); - return protobufBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder> - parquetBuilder_; - - /** - * - * - *
-     * Marks a Parquet-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - * - * @return Whether the parquet field is set. - */ - @java.lang.Override - public boolean hasParquet() { - return schemaCase_ == 4; - } - - /** - * - * - *
-     * Marks a Parquet-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - * - * @return The parquet. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema getParquet() { - if (parquetBuilder_ == null) { - if (schemaCase_ == 4) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance(); - } else { - if (schemaCase_ == 4) { - return parquetBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Marks a Parquet-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - */ - public Builder setParquet(com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema value) { - if (parquetBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schema_ = value; - onChanged(); - } else { - parquetBuilder_.setMessage(value); - } - schemaCase_ = 4; - return this; - } - - /** - * - * - *
-     * Marks a Parquet-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - */ - public Builder setParquet( - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder builderForValue) { - if (parquetBuilder_ == null) { - schema_ = builderForValue.build(); - onChanged(); - } else { - parquetBuilder_.setMessage(builderForValue.build()); - } - schemaCase_ = 4; - return this; - } - - /** - * - * - *
-     * Marks a Parquet-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - */ - public Builder mergeParquet( - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema value) { - if (parquetBuilder_ == null) { - if (schemaCase_ == 4 - && schema_ - != com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema - .getDefaultInstance()) { - schema_ = - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.newBuilder( - (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_) - .mergeFrom(value) - .buildPartial(); - } else { - schema_ = value; - } - onChanged(); - } else { - if (schemaCase_ == 4) { - parquetBuilder_.mergeFrom(value); - } else { - parquetBuilder_.setMessage(value); - } - } - schemaCase_ = 4; - return this; - } - - /** - * - * - *
-     * Marks a Parquet-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - */ - public Builder clearParquet() { - if (parquetBuilder_ == null) { - if (schemaCase_ == 4) { - schemaCase_ = 0; - schema_ = null; - onChanged(); - } - } else { - if (schemaCase_ == 4) { - schemaCase_ = 0; - schema_ = null; - } - parquetBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Marks a Parquet-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - */ - public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder - getParquetBuilder() { - return internalGetParquetFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Marks a Parquet-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder - getParquetOrBuilder() { - if ((schemaCase_ == 4) && (parquetBuilder_ != null)) { - return parquetBuilder_.getMessageOrBuilder(); - } else { - if (schemaCase_ == 4) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Marks a Parquet-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder> - internalGetParquetFieldBuilder() { - if (parquetBuilder_ == null) { - if (!(schemaCase_ == 4)) { - schema_ = - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.getDefaultInstance(); - } - parquetBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder>( - (com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema) schema_, - getParentForChildren(), - isClean()); - schema_ = null; - } - schemaCase_ = 4; - onChanged(); - return parquetBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchemaOrBuilder> - orcBuilder_; - - /** - * - * - *
-     * Marks an ORC-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - * - * @return Whether the orc field is set. - */ - @java.lang.Override - public boolean hasOrc() { - return schemaCase_ == 5; - } - - /** - * - * - *
-     * Marks an ORC-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - * - * @return The orc. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema getOrc() { - if (orcBuilder_ == null) { - if (schemaCase_ == 5) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance(); - } else { - if (schemaCase_ == 5) { - return orcBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Marks an ORC-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - */ - public Builder setOrc(com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema value) { - if (orcBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schema_ = value; - onChanged(); - } else { - orcBuilder_.setMessage(value); - } - schemaCase_ = 5; - return this; - } - - /** - * - * - *
-     * Marks an ORC-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - */ - public Builder setOrc( - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.Builder builderForValue) { - if (orcBuilder_ == null) { - schema_ = builderForValue.build(); - onChanged(); - } else { - orcBuilder_.setMessage(builderForValue.build()); - } - schemaCase_ = 5; - return this; - } - - /** - * - * - *
-     * Marks an ORC-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - */ - public Builder mergeOrc(com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema value) { - if (orcBuilder_ == null) { - if (schemaCase_ == 5 - && schema_ - != com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.newBuilder( - (com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) schema_) - .mergeFrom(value) - .buildPartial(); - } else { - schema_ = value; - } - onChanged(); - } else { - if (schemaCase_ == 5) { - orcBuilder_.mergeFrom(value); - } else { - orcBuilder_.setMessage(value); - } - } - schemaCase_ = 5; - return this; - } - - /** - * - * - *
-     * Marks an ORC-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - */ - public Builder clearOrc() { - if (orcBuilder_ == null) { - if (schemaCase_ == 5) { - schemaCase_ = 0; - schema_ = null; - onChanged(); - } - } else { - if (schemaCase_ == 5) { - schemaCase_ = 0; - schema_ = null; - } - orcBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Marks an ORC-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - */ - public com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.Builder getOrcBuilder() { - return internalGetOrcFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Marks an ORC-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchemaOrBuilder getOrcOrBuilder() { - if ((schemaCase_ == 5) && (orcBuilder_ != null)) { - return orcBuilder_.getMessageOrBuilder(); - } else { - if (schemaCase_ == 5) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Marks an ORC-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchemaOrBuilder> - internalGetOrcFieldBuilder() { - if (orcBuilder_ == null) { - if (!(schemaCase_ == 5)) { - schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.getDefaultInstance(); - } - orcBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchemaOrBuilder>( - (com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema) schema_, - getParentForChildren(), - isClean()); - schema_ = null; - } - schemaCase_ = 5; - onChanged(); - return orcBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchemaOrBuilder> - csvBuilder_; - - /** - * - * - *
-     * Marks a CSV-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - * - * @return Whether the csv field is set. - */ - @java.lang.Override - public boolean hasCsv() { - return schemaCase_ == 6; - } - - /** - * - * - *
-     * Marks a CSV-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - * - * @return The csv. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema getCsv() { - if (csvBuilder_ == null) { - if (schemaCase_ == 6) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.getDefaultInstance(); - } else { - if (schemaCase_ == 6) { - return csvBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Marks a CSV-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - */ - public Builder setCsv(com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema value) { - if (csvBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schema_ = value; - onChanged(); - } else { - csvBuilder_.setMessage(value); - } - schemaCase_ = 6; - return this; - } - - /** - * - * - *
-     * Marks a CSV-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - */ - public Builder setCsv( - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.Builder builderForValue) { - if (csvBuilder_ == null) { - schema_ = builderForValue.build(); - onChanged(); - } else { - csvBuilder_.setMessage(builderForValue.build()); - } - schemaCase_ = 6; - return this; - } - - /** - * - * - *
-     * Marks a CSV-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - */ - public Builder mergeCsv(com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema value) { - if (csvBuilder_ == null) { - if (schemaCase_ == 6 - && schema_ - != com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.getDefaultInstance()) { - schema_ = - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.newBuilder( - (com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) schema_) - .mergeFrom(value) - .buildPartial(); - } else { - schema_ = value; - } - onChanged(); - } else { - if (schemaCase_ == 6) { - csvBuilder_.mergeFrom(value); - } else { - csvBuilder_.setMessage(value); - } - } - schemaCase_ = 6; - return this; - } - - /** - * - * - *
-     * Marks a CSV-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - */ - public Builder clearCsv() { - if (csvBuilder_ == null) { - if (schemaCase_ == 6) { - schemaCase_ = 0; - schema_ = null; - onChanged(); - } - } else { - if (schemaCase_ == 6) { - schemaCase_ = 0; - schema_ = null; - } - csvBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Marks a CSV-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - */ - public com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.Builder getCsvBuilder() { - return internalGetCsvFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Marks a CSV-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchemaOrBuilder getCsvOrBuilder() { - if ((schemaCase_ == 6) && (csvBuilder_ != null)) { - return csvBuilder_.getMessageOrBuilder(); - } else { - if (schemaCase_ == 6) { - return (com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) schema_; - } - return com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Marks a CSV-encoded data source.
-     * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchemaOrBuilder> - internalGetCsvFieldBuilder() { - if (csvBuilder_ == null) { - if (!(schemaCase_ == 6)) { - schema_ = com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.getDefaultInstance(); - } - csvBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema, - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema.Builder, - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchemaOrBuilder>( - (com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema) schema_, - getParentForChildren(), - isClean()); - schema_ = null; - } - schemaCase_ = 6; - onChanged(); - return csvBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.PhysicalSchema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.PhysicalSchema) - private static final com.google.cloud.datacatalog.v1.PhysicalSchema DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.PhysicalSchema(); - } - - public static com.google.cloud.datacatalog.v1.PhysicalSchema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PhysicalSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PhysicalSchema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaOrBuilder.java deleted file mode 100644 index 2a6571e3e6e7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaOrBuilder.java +++ /dev/null @@ -1,252 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/physical_schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface PhysicalSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PhysicalSchema) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Schema in Avro JSON format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - * - * @return Whether the avro field is set. - */ - boolean hasAvro(); - - /** - * - * - *
-   * Schema in Avro JSON format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - * - * @return The avro. - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema getAvro(); - - /** - * - * - *
-   * Schema in Avro JSON format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.AvroSchema avro = 1; - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.AvroSchemaOrBuilder getAvroOrBuilder(); - - /** - * - * - *
-   * Schema in Thrift format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - * - * @return Whether the thrift field is set. - */ - boolean hasThrift(); - - /** - * - * - *
-   * Schema in Thrift format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - * - * @return The thrift. - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema getThrift(); - - /** - * - * - *
-   * Schema in Thrift format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema thrift = 2; - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchemaOrBuilder getThriftOrBuilder(); - - /** - * - * - *
-   * Schema in protocol buffer format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - * - * @return Whether the protobuf field is set. - */ - boolean hasProtobuf(); - - /** - * - * - *
-   * Schema in protocol buffer format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - * - * @return The protobuf. - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema getProtobuf(); - - /** - * - * - *
-   * Schema in protocol buffer format.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema protobuf = 3; - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchemaOrBuilder getProtobufOrBuilder(); - - /** - * - * - *
-   * Marks a Parquet-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - * - * @return Whether the parquet field is set. - */ - boolean hasParquet(); - - /** - * - * - *
-   * Marks a Parquet-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - * - * @return The parquet. - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema getParquet(); - - /** - * - * - *
-   * Marks a Parquet-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchema parquet = 4; - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.ParquetSchemaOrBuilder getParquetOrBuilder(); - - /** - * - * - *
-   * Marks an ORC-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - * - * @return Whether the orc field is set. - */ - boolean hasOrc(); - - /** - * - * - *
-   * Marks an ORC-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - * - * @return The orc. - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema getOrc(); - - /** - * - * - *
-   * Marks an ORC-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.OrcSchema orc = 5; - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.OrcSchemaOrBuilder getOrcOrBuilder(); - - /** - * - * - *
-   * Marks a CSV-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - * - * @return Whether the csv field is set. - */ - boolean hasCsv(); - - /** - * - * - *
-   * Marks a CSV-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - * - * @return The csv. - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema getCsv(); - - /** - * - * - *
-   * Marks a CSV-encoded data source.
-   * 
- * - * .google.cloud.datacatalog.v1.PhysicalSchema.CsvSchema csv = 6; - */ - com.google.cloud.datacatalog.v1.PhysicalSchema.CsvSchemaOrBuilder getCsvOrBuilder(); - - com.google.cloud.datacatalog.v1.PhysicalSchema.SchemaCase getSchemaCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java deleted file mode 100644 index ec8581bda747..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PhysicalSchemaProto.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/physical_schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class PhysicalSchemaProto extends com.google.protobuf.GeneratedFile { - private PhysicalSchemaProto() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PhysicalSchemaProto"); - } - - 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_datacatalog_v1_PhysicalSchema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/datacatalog/v1/physical_s" - + "chema.proto\022\033google.cloud.datacatalog.v1" - + "\"\335\004\n\016PhysicalSchema\022F\n\004avro\030\001 \001(\01326.goog" - + "le.cloud.datacatalog.v1.PhysicalSchema.A" - + "vroSchemaH\000\022J\n\006thrift\030\002 \001(\01328.google.clo" - + "ud.datacatalog.v1.PhysicalSchema.ThriftS" - + "chemaH\000\022N\n\010protobuf\030\003 \001(\0132:.google.cloud" - + ".datacatalog.v1.PhysicalSchema.ProtobufS" - + "chemaH\000\022L\n\007parquet\030\004 \001(\01329.google.cloud." - + "datacatalog.v1.PhysicalSchema.ParquetSch" - + "emaH\000\022D\n\003orc\030\005 \001(\01325.google.cloud.dataca" - + "talog.v1.PhysicalSchema.OrcSchemaH\000\022D\n\003c" - + "sv\030\006 \001(\01325.google.cloud.datacatalog.v1.P" - + "hysicalSchema.CsvSchemaH\000\032\032\n\nAvroSchema\022" - + "\014\n\004text\030\001 \001(\t\032\034\n\014ThriftSchema\022\014\n\004text\030\001 " - + "\001(\t\032\036\n\016ProtobufSchema\022\014\n\004text\030\001 \001(\t\032\017\n\rP" - + "arquetSchema\032\013\n\tOrcSchema\032\013\n\tCsvSchemaB\010" - + "\n\006schemaB\330\001\n\037com.google.cloud.datacatalo" - + "g.v1B\023PhysicalSchemaProtoP\001ZAcloud.googl" - + "e.com/go/datacatalog/apiv1/datacatalogpb" - + ";datacatalogpb\252\002\033Google.Cloud.DataCatalo" - + "g.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Goo" - + "gle::Cloud::DataCatalog::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor, - new java.lang.String[] { - "Avro", "Thrift", "Protobuf", "Parquet", "Orc", "Csv", "Schema", - }); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_descriptor = - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_AvroSchema_descriptor, - new java.lang.String[] { - "Text", - }); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_descriptor = - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor.getNestedType(1); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ThriftSchema_descriptor, - new java.lang.String[] { - "Text", - }); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_descriptor = - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor.getNestedType(2); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ProtobufSchema_descriptor, - new java.lang.String[] { - "Text", - }); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_descriptor = - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor.getNestedType(3); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_ParquetSchema_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_descriptor = - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor.getNestedType(4); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_OrcSchema_descriptor, - new java.lang.String[] {}); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_descriptor = - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_descriptor.getNestedType(5); - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PhysicalSchema_CsvSchema_descriptor, - new java.lang.String[] {}); - descriptor.resolveAllFeaturesImmutable(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java deleted file mode 100644 index aeaa6c233e52..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTag.java +++ /dev/null @@ -1,1592 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Denotes one policy tag in a taxonomy, for example, SSN.
- *
- * Policy tags can be defined in a hierarchy. For example:
- *
- * ```
- * + Geolocation
- * + LatLong
- * + City
- * + ZipCode
- * ```
- *
- * Where the "Geolocation" policy tag contains three children.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PolicyTag} - */ -@com.google.protobuf.Generated -public final class PolicyTag extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.PolicyTag) - PolicyTagOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PolicyTag"); - } - - // Use PolicyTag.newBuilder() to construct. - private PolicyTag(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private PolicyTag() { - name_ = ""; - displayName_ = ""; - description_ = ""; - parentPolicyTag_ = ""; - childPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_PolicyTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_PolicyTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PolicyTag.class, - com.google.cloud.datacatalog.v1.PolicyTag.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. Resource name of this policy tag in the URL format.
-   *
-   * The policy tag manager generates unique taxonomy IDs and policy tag IDs.
-   * 
- * - * 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. Resource name of this policy tag in the URL format.
-   *
-   * The policy tag manager generates unique taxonomy IDs and policy tag IDs.
-   * 
- * - * 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_ = ""; - - /** - * - * - *
-   * Required. User-defined name of this policy tag.
-   *
-   * The name can't start or end with spaces and must be unique within the
-   * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
-   * and spaces, and be at most 200 bytes long when encoded in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-   * Required. User-defined name of this policy tag.
-   *
-   * The name can't start or end with spaces and must be unique within the
-   * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
-   * and spaces, and be at most 200 bytes long when encoded in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ = ""; - - /** - * - * - *
-   * Description of this policy tag. If not set, defaults to empty.
-   *
-   * The description must contain only Unicode characters,
-   * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
-   * long when encoded in UTF-8.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - - /** - * - * - *
-   * Description of this policy tag. If not set, defaults to empty.
-   *
-   * The description must contain only Unicode characters,
-   * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
-   * long when encoded in UTF-8.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_POLICY_TAG_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object parentPolicyTag_ = ""; - - /** - * - * - *
-   * Resource name of this policy tag's parent policy tag. If empty, this is a
-   * top level tag. If not set, defaults to an empty string.
-   *
-   * For example, for the "LatLong" policy tag in the example above, this field
-   * contains the resource name of the "Geolocation" policy tag, and, for
-   * "Geolocation", this field is empty.
-   * 
- * - * string parent_policy_tag = 4; - * - * @return The parentPolicyTag. - */ - @java.lang.Override - public java.lang.String getParentPolicyTag() { - java.lang.Object ref = parentPolicyTag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentPolicyTag_ = s; - return s; - } - } - - /** - * - * - *
-   * Resource name of this policy tag's parent policy tag. If empty, this is a
-   * top level tag. If not set, defaults to an empty string.
-   *
-   * For example, for the "LatLong" policy tag in the example above, this field
-   * contains the resource name of the "Geolocation" policy tag, and, for
-   * "Geolocation", this field is empty.
-   * 
- * - * string parent_policy_tag = 4; - * - * @return The bytes for parentPolicyTag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentPolicyTagBytes() { - java.lang.Object ref = parentPolicyTag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentPolicyTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHILD_POLICY_TAGS_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList childPolicyTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the childPolicyTags. - */ - public com.google.protobuf.ProtocolStringList getChildPolicyTagsList() { - return childPolicyTags_; - } - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of childPolicyTags. - */ - public int getChildPolicyTagsCount() { - return childPolicyTags_.size(); - } - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The childPolicyTags at the given index. - */ - public java.lang.String getChildPolicyTags(int index) { - return childPolicyTags_.get(index); - } - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the childPolicyTags at the given index. - */ - public com.google.protobuf.ByteString getChildPolicyTagsBytes(int index) { - return childPolicyTags_.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 (!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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentPolicyTag_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, parentPolicyTag_); - } - for (int i = 0; i < childPolicyTags_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, childPolicyTags_.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 (!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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentPolicyTag_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parentPolicyTag_); - } - { - int dataSize = 0; - for (int i = 0; i < childPolicyTags_.size(); i++) { - dataSize += computeStringSizeNoTag(childPolicyTags_.getRaw(i)); - } - size += dataSize; - size += 1 * getChildPolicyTagsList().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.datacatalog.v1.PolicyTag)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.PolicyTag other = - (com.google.cloud.datacatalog.v1.PolicyTag) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getParentPolicyTag().equals(other.getParentPolicyTag())) return false; - if (!getChildPolicyTagsList().equals(other.getChildPolicyTagsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + PARENT_POLICY_TAG_FIELD_NUMBER; - hash = (53 * hash) + getParentPolicyTag().hashCode(); - if (getChildPolicyTagsCount() > 0) { - hash = (37 * hash) + CHILD_POLICY_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getChildPolicyTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.PolicyTag prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Denotes one policy tag in a taxonomy, for example, SSN.
-   *
-   * Policy tags can be defined in a hierarchy. For example:
-   *
-   * ```
-   * + Geolocation
-   * + LatLong
-   * + City
-   * + ZipCode
-   * ```
-   *
-   * Where the "Geolocation" policy tag contains three children.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.PolicyTag} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.PolicyTag) - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_PolicyTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_PolicyTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.PolicyTag.class, - com.google.cloud.datacatalog.v1.PolicyTag.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.PolicyTag.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - description_ = ""; - parentPolicyTag_ = ""; - childPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_PolicyTag_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PolicyTag getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PolicyTag build() { - com.google.cloud.datacatalog.v1.PolicyTag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PolicyTag buildPartial() { - com.google.cloud.datacatalog.v1.PolicyTag result = - new com.google.cloud.datacatalog.v1.PolicyTag(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.PolicyTag 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.parentPolicyTag_ = parentPolicyTag_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - childPolicyTags_.makeImmutable(); - result.childPolicyTags_ = childPolicyTags_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.PolicyTag) { - return mergeFrom((com.google.cloud.datacatalog.v1.PolicyTag) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.PolicyTag other) { - if (other == com.google.cloud.datacatalog.v1.PolicyTag.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.getParentPolicyTag().isEmpty()) { - parentPolicyTag_ = other.parentPolicyTag_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.childPolicyTags_.isEmpty()) { - if (childPolicyTags_.isEmpty()) { - childPolicyTags_ = other.childPolicyTags_; - bitField0_ |= 0x00000010; - } else { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.addAll(other.childPolicyTags_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - parentPolicyTag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(s); - 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. Resource name of this policy tag in the URL format.
-     *
-     * The policy tag manager generates unique taxonomy IDs and policy tag IDs.
-     * 
- * - * 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. Resource name of this policy tag in the URL format.
-     *
-     * The policy tag manager generates unique taxonomy IDs and policy tag IDs.
-     * 
- * - * 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. Resource name of this policy tag in the URL format.
-     *
-     * The policy tag manager generates unique taxonomy IDs and policy tag IDs.
-     * 
- * - * 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. Resource name of this policy tag in the URL format.
-     *
-     * The policy tag manager generates unique taxonomy IDs and policy tag IDs.
-     * 
- * - * 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. Resource name of this policy tag in the URL format.
-     *
-     * The policy tag manager generates unique taxonomy IDs and policy tag IDs.
-     * 
- * - * 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_ = ""; - - /** - * - * - *
-     * Required. User-defined name of this policy tag.
-     *
-     * The name can't start or end with spaces and must be unique within the
-     * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
-     * and spaces, and be at most 200 bytes long when encoded in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. User-defined name of this policy tag.
-     *
-     * The name can't start or end with spaces and must be unique within the
-     * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
-     * and spaces, and be at most 200 bytes long when encoded in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. User-defined name of this policy tag.
-     *
-     * The name can't start or end with spaces and must be unique within the
-     * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
-     * and spaces, and be at most 200 bytes long when encoded in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-     * Required. User-defined name of this policy tag.
-     *
-     * The name can't start or end with spaces and must be unique within the
-     * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
-     * and spaces, and be at most 200 bytes long when encoded in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. User-defined name of this policy tag.
-     *
-     * The name can't start or end with spaces and must be unique within the
-     * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
-     * and spaces, and be at most 200 bytes long when encoded in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ = ""; - - /** - * - * - *
-     * Description of this policy tag. If not set, defaults to empty.
-     *
-     * The description must contain only Unicode characters,
-     * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
-     * long when encoded in UTF-8.
-     * 
- * - * string description = 3; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Description of this policy tag. If not set, defaults to empty.
-     *
-     * The description must contain only Unicode characters,
-     * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
-     * long when encoded in UTF-8.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Description of this policy tag. If not set, defaults to empty.
-     *
-     * The description must contain only Unicode characters,
-     * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
-     * long when encoded in UTF-8.
-     * 
- * - * string description = 3; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of this policy tag. If not set, defaults to empty.
-     *
-     * The description must contain only Unicode characters,
-     * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
-     * long when encoded in UTF-8.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of this policy tag. If not set, defaults to empty.
-     *
-     * The description must contain only Unicode characters,
-     * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
-     * long when encoded in UTF-8.
-     * 
- * - * string description = 3; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object parentPolicyTag_ = ""; - - /** - * - * - *
-     * Resource name of this policy tag's parent policy tag. If empty, this is a
-     * top level tag. If not set, defaults to an empty string.
-     *
-     * For example, for the "LatLong" policy tag in the example above, this field
-     * contains the resource name of the "Geolocation" policy tag, and, for
-     * "Geolocation", this field is empty.
-     * 
- * - * string parent_policy_tag = 4; - * - * @return The parentPolicyTag. - */ - public java.lang.String getParentPolicyTag() { - java.lang.Object ref = parentPolicyTag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentPolicyTag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Resource name of this policy tag's parent policy tag. If empty, this is a
-     * top level tag. If not set, defaults to an empty string.
-     *
-     * For example, for the "LatLong" policy tag in the example above, this field
-     * contains the resource name of the "Geolocation" policy tag, and, for
-     * "Geolocation", this field is empty.
-     * 
- * - * string parent_policy_tag = 4; - * - * @return The bytes for parentPolicyTag. - */ - public com.google.protobuf.ByteString getParentPolicyTagBytes() { - java.lang.Object ref = parentPolicyTag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentPolicyTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Resource name of this policy tag's parent policy tag. If empty, this is a
-     * top level tag. If not set, defaults to an empty string.
-     *
-     * For example, for the "LatLong" policy tag in the example above, this field
-     * contains the resource name of the "Geolocation" policy tag, and, for
-     * "Geolocation", this field is empty.
-     * 
- * - * string parent_policy_tag = 4; - * - * @param value The parentPolicyTag to set. - * @return This builder for chaining. - */ - public Builder setParentPolicyTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parentPolicyTag_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource name of this policy tag's parent policy tag. If empty, this is a
-     * top level tag. If not set, defaults to an empty string.
-     *
-     * For example, for the "LatLong" policy tag in the example above, this field
-     * contains the resource name of the "Geolocation" policy tag, and, for
-     * "Geolocation", this field is empty.
-     * 
- * - * string parent_policy_tag = 4; - * - * @return This builder for chaining. - */ - public Builder clearParentPolicyTag() { - parentPolicyTag_ = getDefaultInstance().getParentPolicyTag(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource name of this policy tag's parent policy tag. If empty, this is a
-     * top level tag. If not set, defaults to an empty string.
-     *
-     * For example, for the "LatLong" policy tag in the example above, this field
-     * contains the resource name of the "Geolocation" policy tag, and, for
-     * "Geolocation", this field is empty.
-     * 
- * - * string parent_policy_tag = 4; - * - * @param value The bytes for parentPolicyTag to set. - * @return This builder for chaining. - */ - public Builder setParentPolicyTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parentPolicyTag_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList childPolicyTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureChildPolicyTagsIsMutable() { - if (!childPolicyTags_.isModifiable()) { - childPolicyTags_ = new com.google.protobuf.LazyStringArrayList(childPolicyTags_); - } - bitField0_ |= 0x00000010; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the childPolicyTags. - */ - public com.google.protobuf.ProtocolStringList getChildPolicyTagsList() { - childPolicyTags_.makeImmutable(); - return childPolicyTags_; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of childPolicyTags. - */ - public int getChildPolicyTagsCount() { - return childPolicyTags_.size(); - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The childPolicyTags at the given index. - */ - public java.lang.String getChildPolicyTags(int index) { - return childPolicyTags_.get(index); - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the childPolicyTags at the given index. - */ - public com.google.protobuf.ByteString getChildPolicyTagsBytes(int index) { - return childPolicyTags_.getByteString(index); - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The childPolicyTags to set. - * @return This builder for chaining. - */ - public Builder setChildPolicyTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.set(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The childPolicyTags to add. - * @return This builder for chaining. - */ - public Builder addChildPolicyTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The childPolicyTags to add. - * @return This builder for chaining. - */ - public Builder addAllChildPolicyTags(java.lang.Iterable values) { - ensureChildPolicyTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childPolicyTags_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearChildPolicyTags() { - childPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes of the childPolicyTags to add. - * @return This builder for chaining. - */ - public Builder addChildPolicyTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.PolicyTag) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.PolicyTag) - private static final com.google.cloud.datacatalog.v1.PolicyTag DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.PolicyTag(); - } - - public static com.google.cloud.datacatalog.v1.PolicyTag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyTag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.PolicyTag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java deleted file mode 100644 index ad9cc2c16717..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerProto.java +++ /dev/null @@ -1,420 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class PolicyTagManagerProto extends com.google.protobuf.GeneratedFile { - private PolicyTagManagerProto() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PolicyTagManagerProto"); - } - - 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_datacatalog_v1_Taxonomy_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_Taxonomy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_PolicyTag_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_PolicyTag_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_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" - + "2google/cloud/datacatalog/v1/policytagmanager.proto\022\033google.cloud.datacatalog.v" - + "1\032\034google/api/annotations.proto\032\027google/" - + "api/client.proto\032\037google/api/field_behav" - + "ior.proto\032\031google/api/resource.proto\032(go" - + "ogle/cloud/datacatalog/v1/common.proto\032,google/cloud/datacatalog/v1/timestamps.p" - + "roto\032\036google/iam/v1/iam_policy.proto\032\032go" - + "ogle/iam/v1/policy.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\"\353\004\n" - + "\010Taxonomy\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" - + "\013description\030\003 \001(\tB\003\340A\001\022\035\n" - + "\020policy_tag_count\030\004 \001(\005B\003\340A\003\022O\n" - + "\023taxonomy_timestamps\030\005 \001(\0132-.googl" - + "e.cloud.datacatalog.v1.SystemTimestampsB\003\340A\003\022U\n" - + "\026activated_policy_types\030\006 \003(\01620.g" - + "oogle.cloud.datacatalog.v1.Taxonomy.PolicyTypeB\003\340A\001\022C\n" - + "\007service\030\007 \001(\0132-.google.cl" - + "oud.datacatalog.v1.Taxonomy.ServiceB\003\340A\003\032V\n" - + "\007Service\0229\n" - + "\004name\030\001 \001(\0162+.google.cloud.datacatalog.v1.ManagingSystem\022\020\n" - + "\010identity\030\002 \001(\t\"J\n\n" - + "PolicyType\022\033\n" - + "\027POLICY_TYPE_UNSPECIFIED\020\000\022\037\n" - + "\033FINE_GRAINED_ACCESS_CONTROL\020\001:g\352Ad\n" - + "#datacatalog.googleapis.com/Ta" - + "xonomy\022=projects/{project}/locations/{location}/taxonomies/{taxonomy}\"\214\002\n" - + "\tPolicyTag\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n" - + "\013description\030\003 \001(\t\022\031\n" - + "\021parent_policy_tag\030\004 \001(\t\022\036\n" - + "\021child_policy_tags\030\005 \003(\tB\003\340A\003:\200\001\352A}\n" - + "$datacatalog.googleapis.com/PolicyTag\022Uprojects/{project}/locati" - + "ons/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}\"\215\001\n" - + "\025CreateTaxonomyRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\022#datacatalog.googleapis.com/Taxonomy\0227\n" - + "\010taxonomy\030\002 \001(\0132%.google.cloud.datacatalog.v1.Taxonomy\"R\n" - + "\025DeleteTaxonomyRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#datacatalog.googleapis.com/Taxonomy\"\201\001\n" - + "\025UpdateTaxonomyRequest\0227\n" - + "\010taxonomy\030\001 \001(\0132%.google.cloud.datacatalog.v1.Taxonomy\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\213\001\n" - + "\025ListTaxonomiesRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\022#datacatalog.googleapis.com/Taxonomy\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\016\n" - + "\006filter\030\004 \001(\t\"l\n" - + "\026ListTaxonomiesResponse\0229\n\n" - + "taxonomies\030\001 \003(\0132%.google.cloud.datacatalog.v1.Taxonomy\022\027\n" - + "\017next_page_token\030\002 \001(\t\"O\n" - + "\022GetTaxonomyRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#datacatalog.googleapis.com/Taxonomy\"\222\001\n" - + "\026CreatePolicyTagRequest\022<\n" - + "\006parent\030\001 \001(\tB,\340A" - + "\002\372A&\022$datacatalog.googleapis.com/PolicyTag\022:\n\n" - + "policy_tag\030\002 \001(\0132&.google.cloud.datacatalog.v1.PolicyTag\"T\n" - + "\026DeletePolicyTagRequest\022:\n" - + "\004name\030\001 \001(\tB,\340A\002\372A&\n" - + "$datacatalog.googleapis.com/PolicyTag\"\205\001\n" - + "\026UpdatePolicyTagRequest\022:\n\n" - + "policy_tag\030\001 \001(\0132&.google.cloud.datacatalog.v1.PolicyTag\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"|\n" - + "\025ListPolicyTagsRequest\022<\n" - + "\006parent\030\001 \001(" - + "\tB,\340A\002\372A&\022$datacatalog.googleapis.com/PolicyTag\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"n\n" - + "\026ListPolicyTagsResponse\022;\n" - + "\013policy_tags\030\001 \003(\0132&.google.cloud.datacatalog.v1.PolicyTag\022\027\n" - + "\017next_page_token\030\002 \001(\t\"Q\n" - + "\023GetPolicyTagRequest\022:\n" - + "\004name\030\001 \001(\tB,\340A\002\372A&\n" - + "$datacatalog.googleapis.com/PolicyTag2\273\025\n" - + "\020PolicyTagManager\022\277\001\n" - + "\016CreateTaxonomy\0222.google.cloud.datacatalog.v1.Crea" - + "teTaxonomyRequest\032%.google.cloud.datacat" - + "alog.v1.Taxonomy\"R\332A\017parent,taxonomy\202\323\344\223" - + "\002:\"./v1/{parent=projects/*/locations/*}/taxonomies:\010taxonomy\022\233\001\n" - + "\016DeleteTaxonomy\0222.google.cloud.datacatalog.v1.DeleteTaxo" - + "nomyRequest\032\026.google.protobuf.Empty\"=\332A\004" - + "name\202\323\344\223\0020*./v1/{name=projects/*/locations/*/taxonomies/*}\022\301\001\n" - + "\016UpdateTaxonomy\0222.google.cloud.datacatalog.v1.UpdateTaxono" - + "myRequest\032%.google.cloud.datacatalog.v1." - + "Taxonomy\"T\332A\010taxonomy\202\323\344\223\002C27/v1/{taxono" - + "my.name=projects/*/locations/*/taxonomies/*}:\010taxonomy\022\272\001\n" - + "\016ListTaxonomies\0222.google.cloud.datacatalog.v1.ListTaxonomiesRe" - + "quest\0323.google.cloud.datacatalog.v1.List" - + "TaxonomiesResponse\"?\332A\006parent\202\323\344\223\0020\022./v1" - + "/{parent=projects/*/locations/*}/taxonomies\022\244\001\n" - + "\013GetTaxonomy\022/.google.cloud.datacatalog.v1.GetTaxonomyRequest\032%.google.cl" - + "oud.datacatalog.v1.Taxonomy\"=\332A\004name\202\323\344\223" - + "\0020\022./v1/{name=projects/*/locations/*/taxonomies/*}\022\323\001\n" - + "\017CreatePolicyTag\0223.google.cloud.datacatalog.v1.CreatePolicyTagRequ" - + "est\032&.google.cloud.datacatalog.v1.Policy" - + "Tag\"c\332A\021parent,policy_tag\202\323\344\223\002I\";/v1/{pa" - + "rent=projects/*/locations/*/taxonomies/*}/policyTags:\n" - + "policy_tag\022\252\001\n" - + "\017DeletePolicyTag\0223.google.cloud.datacatalog.v1.Delet" - + "ePolicyTagRequest\032\026.google.protobuf.Empt" - + "y\"J\332A\004name\202\323\344\223\002=*;/v1/{name=projects/*/l" - + "ocations/*/taxonomies/*/policyTags/*}\022\327\001\n" - + "\017UpdatePolicyTag\0223.google.cloud.datacat" - + "alog.v1.UpdatePolicyTagRequest\032&.google.cloud.datacatalog.v1.PolicyTag\"g\332A\n" - + "policy_tag\202\323\344\223\002T2F/v1/{policy_tag.name=projec" - + "ts/*/locations/*/taxonomies/*/policyTags/*}:\n" - + "policy_tag\022\307\001\n" - + "\016ListPolicyTags\0222.google.cloud.datacatalog.v1.ListPolicyTagsR" - + "equest\0323.google.cloud.datacatalog.v1.Lis" - + "tPolicyTagsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v" - + "1/{parent=projects/*/locations/*/taxonomies/*}/policyTags\022\264\001\n" - + "\014GetPolicyTag\0220.google.cloud.datacatalog.v1.GetPolicyTagReq" - + "uest\032&.google.cloud.datacatalog.v1.Polic" - + "yTag\"J\332A\004name\202\323\344\223\002=\022;/v1/{name=projects/" - + "*/locations/*/taxonomies/*/policyTags/*}\022\352\001\n" - + "\014GetIamPolicy\022\".google.iam.v1.GetIam" - + "PolicyRequest\032\025.google.iam.v1.Policy\"\236\001\202" - + "\323\344\223\002\227\001\"?/v1/{resource=projects/*/locatio" - + "ns/*/taxonomies/*}:getIamPolicy:\001*ZQ\"L/v1/{resource=projects/*/locations/*/taxon" - + "omies/*/policyTags/*}:getIamPolicy:\001*\022\352\001\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPol" - + "icyRequest\032\025.google.iam.v1.Policy\"\236\001\202\323\344\223" - + "\002\227\001\"?/v1/{resource=projects/*/locations/" - + "*/taxonomies/*}:setIamPolicy:\001*ZQ\"L/v1/{" - + "resource=projects/*/locations/*/taxonomies/*/policyTags/*}:setIamPolicy:\001*\022\226\002\n" - + "\022TestIamPermissions\022(.google.iam.v1.TestIa" - + "mPermissionsRequest\032).google.iam.v1.Test" - + "IamPermissionsResponse\"\252\001\202\323\344\223\002\243\001\"E/v1/{r" - + "esource=projects/*/locations/*/taxonomies/*}:testIamPermissions:\001*ZW\"R/v1/{resou" - + "rce=projects/*/locations/*/taxonomies/*/" - + "policyTags/*}:testIamPermissions:\001*\032N\312A\032" - + "datacatalog.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\332\001\n" - + "\037com.google.cloud.datacatalog.v1B\025PolicyT" - + "agManagerProtoP\001ZAcloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalo" - + "gpb\252\002\033Google.Cloud.DataCatalog.V1\312\002\033Goog" - + "le\\Cloud\\DataCatalog\\V1\352\002\036Google::Cloud::DataCatalog::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datacatalog.v1.Common.getDescriptor(), - com.google.cloud.datacatalog.v1.Timestamps.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_Taxonomy_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_Taxonomy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Taxonomy_descriptor, - new java.lang.String[] { - "Name", - "DisplayName", - "Description", - "PolicyTagCount", - "TaxonomyTimestamps", - "ActivatedPolicyTypes", - "Service", - }); - internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_descriptor = - internal_static_google_cloud_datacatalog_v1_Taxonomy_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_descriptor, - new java.lang.String[] { - "Name", "Identity", - }); - internal_static_google_cloud_datacatalog_v1_PolicyTag_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_PolicyTag_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_PolicyTag_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Description", "ParentPolicyTag", "ChildPolicyTags", - }); - internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CreateTaxonomyRequest_descriptor, - new java.lang.String[] { - "Parent", "Taxonomy", - }); - internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_descriptor = - getDescriptor().getMessageType(3); - internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeleteTaxonomyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_descriptor = - getDescriptor().getMessageType(4); - internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_descriptor, - new java.lang.String[] { - "Taxonomy", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_descriptor = - getDescriptor().getMessageType(5); - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", - }); - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_descriptor = - getDescriptor().getMessageType(6); - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListTaxonomiesResponse_descriptor, - new java.lang.String[] { - "Taxonomies", "NextPageToken", - }); - internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_descriptor = - getDescriptor().getMessageType(7); - internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GetTaxonomyRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_descriptor = - getDescriptor().getMessageType(8); - internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CreatePolicyTagRequest_descriptor, - new java.lang.String[] { - "Parent", "PolicyTag", - }); - internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_descriptor = - getDescriptor().getMessageType(9); - internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_DeletePolicyTagRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_descriptor = - getDescriptor().getMessageType(10); - internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_descriptor, - new java.lang.String[] { - "PolicyTag", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_descriptor = - getDescriptor().getMessageType(11); - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_descriptor = - getDescriptor().getMessageType(12); - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ListPolicyTagsResponse_descriptor, - new java.lang.String[] { - "PolicyTags", "NextPageToken", - }); - internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_descriptor = - getDescriptor().getMessageType(13); - internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_GetPolicyTagRequest_descriptor, - new java.lang.String[] { - "Name", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datacatalog.v1.Common.getDescriptor(); - com.google.cloud.datacatalog.v1.Timestamps.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java deleted file mode 100644 index 08278240678e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagManagerSerializationProto.java +++ /dev/null @@ -1,259 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class PolicyTagManagerSerializationProto extends com.google.protobuf.GeneratedFile { - private PolicyTagManagerSerializationProto() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PolicyTagManagerSerializationProto"); - } - - 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_datacatalog_v1_SerializedTaxonomy_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_InlineSource_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_InlineSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_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/datacatalog/v1/policytagmanagerserialization.proto\022\033google.cloud." - + "datacatalog.v1\032\034google/api/annotations.p" - + "roto\032\027google/api/client.proto\032\037google/ap" - + "i/field_behavior.proto\032\031google/api/resou" - + "rce.proto\0322google/cloud/datacatalog/v1/policytagmanager.proto\"\335\001\n" - + "\022SerializedTaxonomy\022\031\n" - + "\014display_name\030\001 \001(\tB\003\340A\002\022\023\n" - + "\013description\030\002 \001(\t\022E\n" - + "\013policy_tags\030\003 \003(\01320.goog" - + "le.cloud.datacatalog.v1.SerializedPolicyTag\022P\n" - + "\026activated_policy_types\030\004 \003(\01620.go" - + "ogle.cloud.datacatalog.v1.Taxonomy.PolicyType\"\246\001\n" - + "\023SerializedPolicyTag\022\022\n\n" - + "policy_tag\030\001 \001(\t\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n" - + "\013description\030\003 \001(\t\022K\n" - + "\021child_policy_tags\030\004" - + " \003(\01320.google.cloud.datacatalog.v1.SerializedPolicyTag\"\246\001\n" - + "\026ReplaceTaxonomyRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#datacatalog.googleapis.com/Taxonomy\022Q\n" - + "\023serialized_taxonomy\030\002" - + " \001(\0132/.google.cloud.datacatalog.v1.SerializedTaxonomyB\003\340A\002\"\367\001\n" - + "\027ImportTaxonomiesRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\022#datacatalog.googleapis.com/Taxonomy\022B\n\r" - + "inline_source\030\002 \001(\0132).google.cloud.datacatalog.v1.InlineSourceH\000\022Q\n" - + "\025cross_regional_source\030\003" - + " \001(\01320.google.cloud.datacatalog.v1.CrossRegionalSourceH\000B\010\n" - + "\006source\"X\n" - + "\014InlineSource\022H\n\n" - + "taxonomies\030\001 \003(\0132/.google.c" - + "loud.datacatalog.v1.SerializedTaxonomyB\003\340A\002\"T\n" - + "\023CrossRegionalSource\022=\n" - + "\010taxonomy\030\001 \001(\tB+\340A\002\372A%\n" - + "#datacatalog.googleapis.com/Taxonomy\"U\n" - + "\030ImportTaxonomiesResponse\0229\n" - + "\n" - + "taxonomies\030\001 \003(\0132%.google.cloud.datacatalog.v1.Taxonomy\"\307\001\n" - + "\027ExportTaxonomiesRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\022#datacatalog.googleapis.com/Taxonomy\022?\n\n" - + "taxonomies\030\002 \003(\tB+\340A\002\372A%\n" - + "#datacatalog.googleapis.com/Taxonomy\022\037\n" - + "\025serialized_taxonomies\030\003 \001(\010H\000B\r\n" - + "\013destination\"_\n" - + "\030ExportTaxonomiesResponse\022C\n\n" - + "taxonomies\030\001" - + " \003(\0132/.google.cloud.datacatalog.v1.SerializedTaxonomy2\247\005\n" - + "\035PolicyTagManagerSerialization\022\260\001\n" - + "\017ReplaceTaxonomy\0223.google.cloud.datacatalog.v1." - + "ReplaceTaxonomyRequest\032%.google.cloud.da" - + "tacatalog.v1.Taxonomy\"A\202\323\344\223\002;\"6/v1/{name" - + "=projects/*/locations/*/taxonomies/*}:replace:\001*\022\301\001\n" - + "\020ImportTaxonomies\0224.google.cloud.datacatalog.v1.ImportTaxonomiesRequ" - + "est\0325.google.cloud.datacatalog.v1.Import" - + "TaxonomiesResponse\"@\202\323\344\223\002:\"5/v1/{parent=" - + "projects/*/locations/*}/taxonomies:import:\001*\022\276\001\n" - + "\020ExportTaxonomies\0224.google.cloud.datacatalog.v1.ExportTaxonomiesRequest\032" - + "5.google.cloud.datacatalog.v1.ExportTaxo" - + "nomiesResponse\"=\202\323\344\223\0027\0225/v1/{parent=proj" - + "ects/*/locations/*}/taxonomies:export\032N\312" - + "A\032datacatalog.googleapis.com\322A.https://w" - + "ww.googleapis.com/auth/cloud-platformB\347\001\n" - + "\037com.google.cloud.datacatalog.v1B\"PolicyTagManagerSerializationProtoP\001ZAcloud.g" - + "oogle.com/go/datacatalog/apiv1/datacatal" - + "ogpb;datacatalogpb\252\002\033Google.Cloud.DataCa" - + "talog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002" - + "\036Google::Cloud::DataCatalog::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datacatalog.v1.PolicyTagManagerProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_descriptor, - new java.lang.String[] { - "DisplayName", "Description", "PolicyTags", "ActivatedPolicyTypes", - }); - internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_descriptor, - new java.lang.String[] { - "PolicyTag", "DisplayName", "Description", "ChildPolicyTags", - }); - internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_descriptor, - new java.lang.String[] { - "Name", "SerializedTaxonomy", - }); - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_descriptor = - getDescriptor().getMessageType(3); - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesRequest_descriptor, - new java.lang.String[] { - "Parent", "InlineSource", "CrossRegionalSource", "Source", - }); - internal_static_google_cloud_datacatalog_v1_InlineSource_descriptor = - getDescriptor().getMessageType(4); - internal_static_google_cloud_datacatalog_v1_InlineSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_InlineSource_descriptor, - new java.lang.String[] { - "Taxonomies", - }); - internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_descriptor = - getDescriptor().getMessageType(5); - internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CrossRegionalSource_descriptor, - new java.lang.String[] { - "Taxonomy", - }); - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_descriptor = - getDescriptor().getMessageType(6); - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ImportTaxonomiesResponse_descriptor, - new java.lang.String[] { - "Taxonomies", - }); - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_descriptor = - getDescriptor().getMessageType(7); - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesRequest_descriptor, - new java.lang.String[] { - "Parent", "Taxonomies", "SerializedTaxonomies", "Destination", - }); - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_descriptor = - getDescriptor().getMessageType(8); - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ExportTaxonomiesResponse_descriptor, - new java.lang.String[] { - "Taxonomies", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datacatalog.v1.PolicyTagManagerProto.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.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - 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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagName.java deleted file mode 100644 index 8bda147eaaee..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagName.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 PolicyTagName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_TAXONOMY_POLICY_TAG = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String taxonomy; - private final String policyTag; - - @Deprecated - protected PolicyTagName() { - project = null; - location = null; - taxonomy = null; - policyTag = null; - } - - private PolicyTagName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - taxonomy = Preconditions.checkNotNull(builder.getTaxonomy()); - policyTag = Preconditions.checkNotNull(builder.getPolicyTag()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTaxonomy() { - return taxonomy; - } - - public String getPolicyTag() { - return policyTag; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static PolicyTagName of( - String project, String location, String taxonomy, String policyTag) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTaxonomy(taxonomy) - .setPolicyTag(policyTag) - .build(); - } - - public static String format(String project, String location, String taxonomy, String policyTag) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTaxonomy(taxonomy) - .setPolicyTag(policyTag) - .build() - .toString(); - } - - public static @Nullable PolicyTagName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TAXONOMY_POLICY_TAG.validatedMatch( - formattedString, "PolicyTagName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("taxonomy"), - matchMap.get("policy_tag")); - } - - 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 PolicyTagName> values) { - List list = new ArrayList<>(values.size()); - for (PolicyTagName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TAXONOMY_POLICY_TAG.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 (taxonomy != null) { - fieldMapBuilder.put("taxonomy", taxonomy); - } - if (policyTag != null) { - fieldMapBuilder.put("policy_tag", policyTag); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TAXONOMY_POLICY_TAG.instantiate( - "project", project, "location", location, "taxonomy", taxonomy, "policy_tag", policyTag); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - PolicyTagName that = ((PolicyTagName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.taxonomy, that.taxonomy) - && Objects.equals(this.policyTag, that.policyTag); - } - 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(taxonomy); - h *= 1000003; - h ^= Objects.hashCode(policyTag); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}. - */ - public static class Builder { - private String project; - private String location; - private String taxonomy; - private String policyTag; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTaxonomy() { - return taxonomy; - } - - public String getPolicyTag() { - return policyTag; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTaxonomy(String taxonomy) { - this.taxonomy = taxonomy; - return this; - } - - public Builder setPolicyTag(String policyTag) { - this.policyTag = policyTag; - return this; - } - - private Builder(PolicyTagName policyTagName) { - this.project = policyTagName.project; - this.location = policyTagName.location; - this.taxonomy = policyTagName.taxonomy; - this.policyTag = policyTagName.policyTag; - } - - public PolicyTagName build() { - return new PolicyTagName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java deleted file mode 100644 index 594f6a83bfcd..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/PolicyTagOrBuilder.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface PolicyTagOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.PolicyTag) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. Resource name of this policy tag in the URL format.
-   *
-   * The policy tag manager generates unique taxonomy IDs and policy tag IDs.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. Resource name of this policy tag in the URL format.
-   *
-   * The policy tag manager generates unique taxonomy IDs and policy tag IDs.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. User-defined name of this policy tag.
-   *
-   * The name can't start or end with spaces and must be unique within the
-   * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
-   * and spaces, and be at most 200 bytes long when encoded in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Required. User-defined name of this policy tag.
-   *
-   * The name can't start or end with spaces and must be unique within the
-   * parent taxonomy, contain only Unicode letters, numbers, underscores, dashes
-   * and spaces, and be at most 200 bytes long when encoded in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Description of this policy tag. If not set, defaults to empty.
-   *
-   * The description must contain only Unicode characters,
-   * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
-   * long when encoded in UTF-8.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Description of this policy tag. If not set, defaults to empty.
-   *
-   * The description must contain only Unicode characters,
-   * tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes
-   * long when encoded in UTF-8.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Resource name of this policy tag's parent policy tag. If empty, this is a
-   * top level tag. If not set, defaults to an empty string.
-   *
-   * For example, for the "LatLong" policy tag in the example above, this field
-   * contains the resource name of the "Geolocation" policy tag, and, for
-   * "Geolocation", this field is empty.
-   * 
- * - * string parent_policy_tag = 4; - * - * @return The parentPolicyTag. - */ - java.lang.String getParentPolicyTag(); - - /** - * - * - *
-   * Resource name of this policy tag's parent policy tag. If empty, this is a
-   * top level tag. If not set, defaults to an empty string.
-   *
-   * For example, for the "LatLong" policy tag in the example above, this field
-   * contains the resource name of the "Geolocation" policy tag, and, for
-   * "Geolocation", this field is empty.
-   * 
- * - * string parent_policy_tag = 4; - * - * @return The bytes for parentPolicyTag. - */ - com.google.protobuf.ByteString getParentPolicyTagBytes(); - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the childPolicyTags. - */ - java.util.List getChildPolicyTagsList(); - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of childPolicyTags. - */ - int getChildPolicyTagsCount(); - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The childPolicyTags at the given index. - */ - java.lang.String getChildPolicyTags(int index); - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the childPolicyTags at the given index. - */ - com.google.protobuf.ByteString getChildPolicyTagsBytes(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadata.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadata.java deleted file mode 100644 index af327a3b6d8b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadata.java +++ /dev/null @@ -1,1206 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * [Long-running operation][google.longrunning.Operation]
- * metadata message returned by the
- * [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ReconcileTagsMetadata} - */ -@com.google.protobuf.Generated -public final class ReconcileTagsMetadata extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReconcileTagsMetadata) - ReconcileTagsMetadataOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ReconcileTagsMetadata"); - } - - // Use ReconcileTagsMetadata.newBuilder() to construct. - private ReconcileTagsMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ReconcileTagsMetadata() { - state_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetErrors(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.class, - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.Builder.class); - } - - /** - * - * - *
-   * Enum holding possible states of the reconciliation operation.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState} - */ - public enum ReconciliationState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. This value is unused.
-     * 
- * - * RECONCILIATION_STATE_UNSPECIFIED = 0; - */ - RECONCILIATION_STATE_UNSPECIFIED(0), - /** - * - * - *
-     * The reconciliation has been queued and awaits for execution.
-     * 
- * - * RECONCILIATION_QUEUED = 1; - */ - RECONCILIATION_QUEUED(1), - /** - * - * - *
-     * The reconciliation is in progress.
-     * 
- * - * RECONCILIATION_IN_PROGRESS = 2; - */ - RECONCILIATION_IN_PROGRESS(2), - /** - * - * - *
-     * The reconciliation has been finished.
-     * 
- * - * RECONCILIATION_DONE = 3; - */ - RECONCILIATION_DONE(3), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ReconciliationState"); - } - - /** - * - * - *
-     * Default value. This value is unused.
-     * 
- * - * RECONCILIATION_STATE_UNSPECIFIED = 0; - */ - public static final int RECONCILIATION_STATE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * The reconciliation has been queued and awaits for execution.
-     * 
- * - * RECONCILIATION_QUEUED = 1; - */ - public static final int RECONCILIATION_QUEUED_VALUE = 1; - - /** - * - * - *
-     * The reconciliation is in progress.
-     * 
- * - * RECONCILIATION_IN_PROGRESS = 2; - */ - public static final int RECONCILIATION_IN_PROGRESS_VALUE = 2; - - /** - * - * - *
-     * The reconciliation has been finished.
-     * 
- * - * RECONCILIATION_DONE = 3; - */ - public static final int RECONCILIATION_DONE_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 ReconciliationState 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 ReconciliationState forNumber(int value) { - switch (value) { - case 0: - return RECONCILIATION_STATE_UNSPECIFIED; - case 1: - return RECONCILIATION_QUEUED; - case 2: - return RECONCILIATION_IN_PROGRESS; - case 3: - return RECONCILIATION_DONE; - 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 ReconciliationState findValueByNumber(int number) { - return ReconciliationState.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.datacatalog.v1.ReconcileTagsMetadata.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final ReconciliationState[] VALUES = values(); - - public static ReconciliationState 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 ReconciliationState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState) - } - - public static final int STATE_FIELD_NUMBER = 1; - private int state_ = 0; - - /** - * - * - *
-   * State of the reconciliation operation.
-   * 
- * - * .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - - /** - * - * - *
-   * State of the reconciliation operation.
-   * 
- * - * .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState getState() { - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState result = - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState.forNumber(state_); - return result == null - ? com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState.UNRECOGNIZED - : result; - } - - public static final int ERRORS_FIELD_NUMBER = 2; - - private static final class ErrorsDefaultEntryHolder { - static final com.google.protobuf.MapEntry - defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_ErrorsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.rpc.Status.getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField errors_; - - private com.google.protobuf.MapField - internalGetErrors() { - if (errors_ == null) { - return com.google.protobuf.MapField.emptyMapField(ErrorsDefaultEntryHolder.defaultEntry); - } - return errors_; - } - - public int getErrorsCount() { - return internalGetErrors().getMap().size(); - } - - /** - * - * - *
-   * Maps the name of each tagged column (or empty string for a
-   * sole entry) to tagging operation [status][google.rpc.Status].
-   * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - @java.lang.Override - public boolean containsErrors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetErrors().getMap().containsKey(key); - } - - /** Use {@link #getErrorsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getErrors() { - return getErrorsMap(); - } - - /** - * - * - *
-   * Maps the name of each tagged column (or empty string for a
-   * sole entry) to tagging operation [status][google.rpc.Status].
-   * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - @java.lang.Override - public java.util.Map getErrorsMap() { - return internalGetErrors().getMap(); - } - - /** - * - * - *
-   * Maps the name of each tagged column (or empty string for a
-   * sole entry) to tagging operation [status][google.rpc.Status].
-   * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - @java.lang.Override - public /* nullable */ com.google.rpc.Status getErrorsOrDefault( - java.lang.String key, - /* nullable */ - com.google.rpc.Status defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetErrors().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-   * Maps the name of each tagged column (or empty string for a
-   * sole entry) to tagging operation [status][google.rpc.Status].
-   * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - @java.lang.Override - public com.google.rpc.Status getErrorsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetErrors().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 (state_ - != com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState - .RECONCILIATION_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, state_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetErrors(), ErrorsDefaultEntryHolder.defaultEntry, 2); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ - != com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState - .RECONCILIATION_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - for (java.util.Map.Entry entry : - internalGetErrors().getMap().entrySet()) { - com.google.protobuf.MapEntry errors__ = - ErrorsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, errors__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ReconcileTagsMetadata)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata other = - (com.google.cloud.datacatalog.v1.ReconcileTagsMetadata) obj; - - if (state_ != other.state_) return false; - if (!internalGetErrors().equals(other.internalGetErrors())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (!internalGetErrors().getMap().isEmpty()) { - hash = (37 * hash) + ERRORS_FIELD_NUMBER; - hash = (53 * hash) + internalGetErrors().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * [Long-running operation][google.longrunning.Operation]
-   * metadata message returned by the
-   * [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ReconcileTagsMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ReconcileTagsMetadata) - com.google.cloud.datacatalog.v1.ReconcileTagsMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetErrors(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetMutableErrors(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.class, - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - state_ = 0; - internalGetMutableErrors().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsMetadata_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsMetadata getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsMetadata build() { - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsMetadata buildPartial() { - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata result = - new com.google.cloud.datacatalog.v1.ReconcileTagsMetadata(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ReconcileTagsMetadata result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.state_ = state_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.errors_ = internalGetErrors().build(ErrorsDefaultEntryHolder.defaultEntry); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ReconcileTagsMetadata) { - return mergeFrom((com.google.cloud.datacatalog.v1.ReconcileTagsMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ReconcileTagsMetadata other) { - if (other == com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.getDefaultInstance()) - return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - internalGetMutableErrors().mergeFrom(other.internalGetErrors()); - 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 8: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - com.google.protobuf.MapEntry errors__ = - input.readMessage( - ErrorsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableErrors() - .ensureBuilderMap() - .put(errors__.getKey(), errors__.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 int state_ = 0; - - /** - * - * - *
-     * State of the reconciliation operation.
-     * 
- * - * .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; - * - * - * @return The enum numeric value on the wire for state. - */ - @java.lang.Override - public int getStateValue() { - return state_; - } - - /** - * - * - *
-     * State of the reconciliation operation.
-     * 
- * - * .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; - * - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * State of the reconciliation operation.
-     * 
- * - * .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState getState() { - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState result = - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState.forNumber( - state_); - return result == null - ? com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * State of the reconciliation operation.
-     * 
- * - * .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState( - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - state_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * State of the reconciliation operation.
-     * 
- * - * .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000001); - state_ = 0; - onChanged(); - return this; - } - - private static final class ErrorsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, com.google.rpc.StatusOrBuilder, com.google.rpc.Status> { - @java.lang.Override - public com.google.rpc.Status build(com.google.rpc.StatusOrBuilder val) { - if (val instanceof com.google.rpc.Status) { - return (com.google.rpc.Status) val; - } - return ((com.google.rpc.Status.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry defaultEntry() { - return ErrorsDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final ErrorsConverter errorsConverter = new ErrorsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.rpc.StatusOrBuilder, - com.google.rpc.Status, - com.google.rpc.Status.Builder> - errors_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.rpc.StatusOrBuilder, - com.google.rpc.Status, - com.google.rpc.Status.Builder> - internalGetErrors() { - if (errors_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(errorsConverter); - } - return errors_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.rpc.StatusOrBuilder, - com.google.rpc.Status, - com.google.rpc.Status.Builder> - internalGetMutableErrors() { - if (errors_ == null) { - errors_ = new com.google.protobuf.MapFieldBuilder<>(errorsConverter); - } - bitField0_ |= 0x00000002; - onChanged(); - return errors_; - } - - public int getErrorsCount() { - return internalGetErrors().ensureBuilderMap().size(); - } - - /** - * - * - *
-     * Maps the name of each tagged column (or empty string for a
-     * sole entry) to tagging operation [status][google.rpc.Status].
-     * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - @java.lang.Override - public boolean containsErrors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetErrors().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getErrorsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getErrors() { - return getErrorsMap(); - } - - /** - * - * - *
-     * Maps the name of each tagged column (or empty string for a
-     * sole entry) to tagging operation [status][google.rpc.Status].
-     * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - @java.lang.Override - public java.util.Map getErrorsMap() { - return internalGetErrors().getImmutableMap(); - } - - /** - * - * - *
-     * Maps the name of each tagged column (or empty string for a
-     * sole entry) to tagging operation [status][google.rpc.Status].
-     * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - @java.lang.Override - public /* nullable */ com.google.rpc.Status getErrorsOrDefault( - java.lang.String key, - /* nullable */ - com.google.rpc.Status defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableErrors().ensureBuilderMap(); - return map.containsKey(key) ? errorsConverter.build(map.get(key)) : defaultValue; - } - - /** - * - * - *
-     * Maps the name of each tagged column (or empty string for a
-     * sole entry) to tagging operation [status][google.rpc.Status].
-     * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - @java.lang.Override - public com.google.rpc.Status getErrorsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableErrors().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return errorsConverter.build(map.get(key)); - } - - public Builder clearErrors() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableErrors().clear(); - return this; - } - - /** - * - * - *
-     * Maps the name of each tagged column (or empty string for a
-     * sole entry) to tagging operation [status][google.rpc.Status].
-     * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - public Builder removeErrors(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableErrors().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableErrors() { - bitField0_ |= 0x00000002; - return internalGetMutableErrors().ensureMessageMap(); - } - - /** - * - * - *
-     * Maps the name of each tagged column (or empty string for a
-     * sole entry) to tagging operation [status][google.rpc.Status].
-     * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - public Builder putErrors(java.lang.String key, com.google.rpc.Status value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableErrors().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000002; - return this; - } - - /** - * - * - *
-     * Maps the name of each tagged column (or empty string for a
-     * sole entry) to tagging operation [status][google.rpc.Status].
-     * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - public Builder putAllErrors(java.util.Map values) { - for (java.util.Map.Entry e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableErrors().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000002; - return this; - } - - /** - * - * - *
-     * Maps the name of each tagged column (or empty string for a
-     * sole entry) to tagging operation [status][google.rpc.Status].
-     * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - public com.google.rpc.Status.Builder putErrorsBuilderIfAbsent(java.lang.String key) { - java.util.Map builderMap = - internalGetMutableErrors().ensureBuilderMap(); - com.google.rpc.StatusOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.rpc.Status.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.rpc.Status) { - entry = ((com.google.rpc.Status) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.rpc.Status.Builder) entry; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ReconcileTagsMetadata) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ReconcileTagsMetadata) - private static final com.google.cloud.datacatalog.v1.ReconcileTagsMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ReconcileTagsMetadata(); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReconcileTagsMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadataOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadataOrBuilder.java deleted file mode 100644 index c0a4b6f9f840..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsMetadataOrBuilder.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ReconcileTagsMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ReconcileTagsMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * State of the reconciliation operation.
-   * 
- * - * .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - - /** - * - * - *
-   * State of the reconciliation operation.
-   * 
- * - * .google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState state = 1; - * - * @return The state. - */ - com.google.cloud.datacatalog.v1.ReconcileTagsMetadata.ReconciliationState getState(); - - /** - * - * - *
-   * Maps the name of each tagged column (or empty string for a
-   * sole entry) to tagging operation [status][google.rpc.Status].
-   * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - int getErrorsCount(); - - /** - * - * - *
-   * Maps the name of each tagged column (or empty string for a
-   * sole entry) to tagging operation [status][google.rpc.Status].
-   * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - boolean containsErrors(java.lang.String key); - - /** Use {@link #getErrorsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getErrors(); - - /** - * - * - *
-   * Maps the name of each tagged column (or empty string for a
-   * sole entry) to tagging operation [status][google.rpc.Status].
-   * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - java.util.Map getErrorsMap(); - - /** - * - * - *
-   * Maps the name of each tagged column (or empty string for a
-   * sole entry) to tagging operation [status][google.rpc.Status].
-   * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - /* nullable */ - com.google.rpc.Status getErrorsOrDefault( - java.lang.String key, - /* nullable */ - com.google.rpc.Status defaultValue); - - /** - * - * - *
-   * Maps the name of each tagged column (or empty string for a
-   * sole entry) to tagging operation [status][google.rpc.Status].
-   * 
- * - * map<string, .google.rpc.Status> errors = 2; - */ - com.google.rpc.Status getErrorsOrThrow(java.lang.String key); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequest.java deleted file mode 100644 index ff96cb292a11..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequest.java +++ /dev/null @@ -1,1501 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ReconcileTagsRequest} - */ -@com.google.protobuf.Generated -public final class ReconcileTagsRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReconcileTagsRequest) - ReconcileTagsRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ReconcileTagsRequest"); - } - - // Use ReconcileTagsRequest.newBuilder() to construct. - private ReconcileTagsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ReconcileTagsRequest() { - parent_ = ""; - tagTemplate_ = ""; - tags_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ReconcileTagsRequest.class, - com.google.cloud.datacatalog.v1.ReconcileTagsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged.
-   * 
- * - * - * 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. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged.
-   * 
- * - * - * 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 TAG_TEMPLATE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object tagTemplate_ = ""; - - /** - * - * - *
-   * Required. The name of the tag template, which is used for reconciliation.
-   * 
- * - * - * string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The tagTemplate. - */ - @java.lang.Override - public java.lang.String getTagTemplate() { - java.lang.Object ref = tagTemplate_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagTemplate_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag template, which is used for reconciliation.
-   * 
- * - * - * string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for tagTemplate. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTagTemplateBytes() { - java.lang.Object ref = tagTemplate_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tagTemplate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORCE_DELETE_MISSING_FIELD_NUMBER = 3; - private boolean forceDeleteMissing_ = false; - - /** - * - * - *
-   * If set to `true`, deletes entry tags related to a tag template
-   * not listed in the tags source from an entry. If set to `false`,
-   * unlisted tags are retained.
-   * 
- * - * bool force_delete_missing = 3; - * - * @return The forceDeleteMissing. - */ - @java.lang.Override - public boolean getForceDeleteMissing() { - return forceDeleteMissing_; - } - - public static final int TAGS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private java.util.List tags_; - - /** - * - * - *
-   * A list of tags to apply to an entry. A tag can specify a
-   * tag template, which must be the template specified in the
-   * `ReconcileTagsRequest`.
-   * The sole entry and each of its columns must be mentioned at most once.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - @java.lang.Override - public java.util.List getTagsList() { - return tags_; - } - - /** - * - * - *
-   * A list of tags to apply to an entry. A tag can specify a
-   * tag template, which must be the template specified in the
-   * `ReconcileTagsRequest`.
-   * The sole entry and each of its columns must be mentioned at most once.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - @java.lang.Override - public java.util.List - getTagsOrBuilderList() { - return tags_; - } - - /** - * - * - *
-   * A list of tags to apply to an entry. A tag can specify a
-   * tag template, which must be the template specified in the
-   * `ReconcileTagsRequest`.
-   * The sole entry and each of its columns must be mentioned at most once.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - @java.lang.Override - public int getTagsCount() { - return tags_.size(); - } - - /** - * - * - *
-   * A list of tags to apply to an entry. A tag can specify a
-   * tag template, which must be the template specified in the
-   * `ReconcileTagsRequest`.
-   * The sole entry and each of its columns must be mentioned at most once.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Tag getTags(int index) { - return tags_.get(index); - } - - /** - * - * - *
-   * A list of tags to apply to an entry. A tag can specify a
-   * tag template, which must be the template specified in the
-   * `ReconcileTagsRequest`.
-   * The sole entry and each of its columns must be mentioned at most once.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagOrBuilder getTagsOrBuilder(int index) { - return tags_.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(parent_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tagTemplate_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, tagTemplate_); - } - if (forceDeleteMissing_ != false) { - output.writeBool(3, forceDeleteMissing_); - } - for (int i = 0; i < tags_.size(); i++) { - output.writeMessage(4, tags_.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(parent_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tagTemplate_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tagTemplate_); - } - if (forceDeleteMissing_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, forceDeleteMissing_); - } - for (int i = 0; i < tags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, tags_.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.datacatalog.v1.ReconcileTagsRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ReconcileTagsRequest other = - (com.google.cloud.datacatalog.v1.ReconcileTagsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getTagTemplate().equals(other.getTagTemplate())) return false; - if (getForceDeleteMissing() != other.getForceDeleteMissing()) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + TAG_TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplate().hashCode(); - hash = (37 * hash) + FORCE_DELETE_MISSING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForceDeleteMissing()); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.ReconcileTagsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ReconcileTagsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ReconcileTagsRequest) - com.google.cloud.datacatalog.v1.ReconcileTagsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ReconcileTagsRequest.class, - com.google.cloud.datacatalog.v1.ReconcileTagsRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ReconcileTagsRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - tagTemplate_ = ""; - forceDeleteMissing_ = false; - if (tagsBuilder_ == null) { - tags_ = java.util.Collections.emptyList(); - } else { - tags_ = null; - tagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ReconcileTagsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsRequest build() { - com.google.cloud.datacatalog.v1.ReconcileTagsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsRequest buildPartial() { - com.google.cloud.datacatalog.v1.ReconcileTagsRequest result = - new com.google.cloud.datacatalog.v1.ReconcileTagsRequest(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.ReconcileTagsRequest result) { - if (tagsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - tags_ = java.util.Collections.unmodifiableList(tags_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.tags_ = tags_; - } else { - result.tags_ = tagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ReconcileTagsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagTemplate_ = tagTemplate_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.forceDeleteMissing_ = forceDeleteMissing_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ReconcileTagsRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ReconcileTagsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ReconcileTagsRequest other) { - if (other == com.google.cloud.datacatalog.v1.ReconcileTagsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTagTemplate().isEmpty()) { - tagTemplate_ = other.tagTemplate_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getForceDeleteMissing() != false) { - setForceDeleteMissing(other.getForceDeleteMissing()); - } - if (tagsBuilder_ == null) { - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - } else { - if (!other.tags_.isEmpty()) { - if (tagsBuilder_.isEmpty()) { - tagsBuilder_.dispose(); - tagsBuilder_ = null; - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000008); - tagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTagsFieldBuilder() - : null; - } else { - tagsBuilder_.addAllMessages(other.tags_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - tagTemplate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - forceDeleteMissing_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - com.google.cloud.datacatalog.v1.Tag m = - input.readMessage( - com.google.cloud.datacatalog.v1.Tag.parser(), extensionRegistry); - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(m); - } else { - tagsBuilder_.addMessage(m); - } - 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. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged.
-     * 
- * - * - * 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. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged.
-     * 
- * - * - * 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. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged.
-     * 
- * - * - * 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. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged.
-     * 
- * - * - * 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. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged.
-     * 
- * - * - * 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 tagTemplate_ = ""; - - /** - * - * - *
-     * Required. The name of the tag template, which is used for reconciliation.
-     * 
- * - * - * string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The tagTemplate. - */ - public java.lang.String getTagTemplate() { - java.lang.Object ref = tagTemplate_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagTemplate_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template, which is used for reconciliation.
-     * 
- * - * - * string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for tagTemplate. - */ - public com.google.protobuf.ByteString getTagTemplateBytes() { - java.lang.Object ref = tagTemplate_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tagTemplate_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template, which is used for reconciliation.
-     * 
- * - * - * string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The tagTemplate to set. - * @return This builder for chaining. - */ - public Builder setTagTemplate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplate_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template, which is used for reconciliation.
-     * 
- * - * - * string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearTagTemplate() { - tagTemplate_ = getDefaultInstance().getTagTemplate(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template, which is used for reconciliation.
-     * 
- * - * - * string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for tagTemplate to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tagTemplate_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean forceDeleteMissing_; - - /** - * - * - *
-     * If set to `true`, deletes entry tags related to a tag template
-     * not listed in the tags source from an entry. If set to `false`,
-     * unlisted tags are retained.
-     * 
- * - * bool force_delete_missing = 3; - * - * @return The forceDeleteMissing. - */ - @java.lang.Override - public boolean getForceDeleteMissing() { - return forceDeleteMissing_; - } - - /** - * - * - *
-     * If set to `true`, deletes entry tags related to a tag template
-     * not listed in the tags source from an entry. If set to `false`,
-     * unlisted tags are retained.
-     * 
- * - * bool force_delete_missing = 3; - * - * @param value The forceDeleteMissing to set. - * @return This builder for chaining. - */ - public Builder setForceDeleteMissing(boolean value) { - - forceDeleteMissing_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * If set to `true`, deletes entry tags related to a tag template
-     * not listed in the tags source from an entry. If set to `false`,
-     * unlisted tags are retained.
-     * 
- * - * bool force_delete_missing = 3; - * - * @return This builder for chaining. - */ - public Builder clearForceDeleteMissing() { - bitField0_ = (bitField0_ & ~0x00000004); - forceDeleteMissing_ = false; - onChanged(); - return this; - } - - private java.util.List tags_ = - java.util.Collections.emptyList(); - - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - tags_ = new java.util.ArrayList(tags_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - tagsBuilder_; - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public java.util.List getTagsList() { - if (tagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(tags_); - } else { - return tagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public int getTagsCount() { - if (tagsBuilder_ == null) { - return tags_.size(); - } else { - return tagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public com.google.cloud.datacatalog.v1.Tag getTags(int index) { - if (tagsBuilder_ == null) { - return tags_.get(index); - } else { - return tagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public Builder setTags(int index, com.google.cloud.datacatalog.v1.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - } else { - tagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public Builder setTags(int index, com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.set(index, builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public Builder addTags(com.google.cloud.datacatalog.v1.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - } else { - tagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public Builder addTags(int index, com.google.cloud.datacatalog.v1.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(index, value); - onChanged(); - } else { - tagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public Builder addTags(com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public Builder addTags(int index, com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(index, builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public Builder addAllTags( - java.lang.Iterable values) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - onChanged(); - } else { - tagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public Builder clearTags() { - if (tagsBuilder_ == null) { - tags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - tagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public Builder removeTags(int index) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.remove(index); - onChanged(); - } else { - tagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public com.google.cloud.datacatalog.v1.Tag.Builder getTagsBuilder(int index) { - return internalGetTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public com.google.cloud.datacatalog.v1.TagOrBuilder getTagsOrBuilder(int index) { - if (tagsBuilder_ == null) { - return tags_.get(index); - } else { - return tagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public java.util.List - getTagsOrBuilderList() { - if (tagsBuilder_ != null) { - return tagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tags_); - } - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public com.google.cloud.datacatalog.v1.Tag.Builder addTagsBuilder() { - return internalGetTagsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()); - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public com.google.cloud.datacatalog.v1.Tag.Builder addTagsBuilder(int index) { - return internalGetTagsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()); - } - - /** - * - * - *
-     * A list of tags to apply to an entry. A tag can specify a
-     * tag template, which must be the template specified in the
-     * `ReconcileTagsRequest`.
-     * The sole entry and each of its columns must be mentioned at most once.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - public java.util.List getTagsBuilderList() { - return internalGetTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - internalGetTagsFieldBuilder() { - if (tagsBuilder_ == null) { - tagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder>( - tags_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - tags_ = null; - } - return tagsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ReconcileTagsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ReconcileTagsRequest) - private static final com.google.cloud.datacatalog.v1.ReconcileTagsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ReconcileTagsRequest(); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReconcileTagsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequestOrBuilder.java deleted file mode 100644 index f740a8447699..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsRequestOrBuilder.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ReconcileTagsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ReconcileTagsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged.
-   * 
- * - * - * 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 tag template, which is used for reconciliation.
-   * 
- * - * - * string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The tagTemplate. - */ - java.lang.String getTagTemplate(); - - /** - * - * - *
-   * Required. The name of the tag template, which is used for reconciliation.
-   * 
- * - * - * string tag_template = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for tagTemplate. - */ - com.google.protobuf.ByteString getTagTemplateBytes(); - - /** - * - * - *
-   * If set to `true`, deletes entry tags related to a tag template
-   * not listed in the tags source from an entry. If set to `false`,
-   * unlisted tags are retained.
-   * 
- * - * bool force_delete_missing = 3; - * - * @return The forceDeleteMissing. - */ - boolean getForceDeleteMissing(); - - /** - * - * - *
-   * A list of tags to apply to an entry. A tag can specify a
-   * tag template, which must be the template specified in the
-   * `ReconcileTagsRequest`.
-   * The sole entry and each of its columns must be mentioned at most once.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - java.util.List getTagsList(); - - /** - * - * - *
-   * A list of tags to apply to an entry. A tag can specify a
-   * tag template, which must be the template specified in the
-   * `ReconcileTagsRequest`.
-   * The sole entry and each of its columns must be mentioned at most once.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - com.google.cloud.datacatalog.v1.Tag getTags(int index); - - /** - * - * - *
-   * A list of tags to apply to an entry. A tag can specify a
-   * tag template, which must be the template specified in the
-   * `ReconcileTagsRequest`.
-   * The sole entry and each of its columns must be mentioned at most once.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - int getTagsCount(); - - /** - * - * - *
-   * A list of tags to apply to an entry. A tag can specify a
-   * tag template, which must be the template specified in the
-   * `ReconcileTagsRequest`.
-   * The sole entry and each of its columns must be mentioned at most once.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - java.util.List getTagsOrBuilderList(); - - /** - * - * - *
-   * A list of tags to apply to an entry. A tag can specify a
-   * tag template, which must be the template specified in the
-   * `ReconcileTagsRequest`.
-   * The sole entry and each of its columns must be mentioned at most once.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Tag tags = 4; - */ - com.google.cloud.datacatalog.v1.TagOrBuilder getTagsOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponse.java deleted file mode 100644 index ddcdbbd399b9..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponse.java +++ /dev/null @@ -1,702 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * [Long-running operation][google.longrunning.Operation]
- * response message returned by
- * [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ReconcileTagsResponse} - */ -@com.google.protobuf.Generated -public final class ReconcileTagsResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReconcileTagsResponse) - ReconcileTagsResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ReconcileTagsResponse"); - } - - // Use ReconcileTagsResponse.newBuilder() to construct. - private ReconcileTagsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ReconcileTagsResponse() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ReconcileTagsResponse.class, - com.google.cloud.datacatalog.v1.ReconcileTagsResponse.Builder.class); - } - - public static final int CREATED_TAGS_COUNT_FIELD_NUMBER = 1; - private long createdTagsCount_ = 0L; - - /** - * - * - *
-   * Number of tags created in the request.
-   * 
- * - * int64 created_tags_count = 1; - * - * @return The createdTagsCount. - */ - @java.lang.Override - public long getCreatedTagsCount() { - return createdTagsCount_; - } - - public static final int UPDATED_TAGS_COUNT_FIELD_NUMBER = 2; - private long updatedTagsCount_ = 0L; - - /** - * - * - *
-   * Number of tags updated in the request.
-   * 
- * - * int64 updated_tags_count = 2; - * - * @return The updatedTagsCount. - */ - @java.lang.Override - public long getUpdatedTagsCount() { - return updatedTagsCount_; - } - - public static final int DELETED_TAGS_COUNT_FIELD_NUMBER = 3; - private long deletedTagsCount_ = 0L; - - /** - * - * - *
-   * Number of tags deleted in the request.
-   * 
- * - * int64 deleted_tags_count = 3; - * - * @return The deletedTagsCount. - */ - @java.lang.Override - public long getDeletedTagsCount() { - return deletedTagsCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (createdTagsCount_ != 0L) { - output.writeInt64(1, createdTagsCount_); - } - if (updatedTagsCount_ != 0L) { - output.writeInt64(2, updatedTagsCount_); - } - if (deletedTagsCount_ != 0L) { - output.writeInt64(3, deletedTagsCount_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (createdTagsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, createdTagsCount_); - } - if (updatedTagsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, updatedTagsCount_); - } - if (deletedTagsCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, deletedTagsCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ReconcileTagsResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ReconcileTagsResponse other = - (com.google.cloud.datacatalog.v1.ReconcileTagsResponse) obj; - - if (getCreatedTagsCount() != other.getCreatedTagsCount()) return false; - if (getUpdatedTagsCount() != other.getUpdatedTagsCount()) return false; - if (getDeletedTagsCount() != other.getDeletedTagsCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CREATED_TAGS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getCreatedTagsCount()); - hash = (37 * hash) + UPDATED_TAGS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getUpdatedTagsCount()); - hash = (37 * hash) + DELETED_TAGS_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDeletedTagsCount()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ReconcileTagsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * [Long-running operation][google.longrunning.Operation]
-   * response message returned by
-   * [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ReconcileTagsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ReconcileTagsResponse) - com.google.cloud.datacatalog.v1.ReconcileTagsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ReconcileTagsResponse.class, - com.google.cloud.datacatalog.v1.ReconcileTagsResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ReconcileTagsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - createdTagsCount_ = 0L; - updatedTagsCount_ = 0L; - deletedTagsCount_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ReconcileTagsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ReconcileTagsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsResponse build() { - com.google.cloud.datacatalog.v1.ReconcileTagsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsResponse buildPartial() { - com.google.cloud.datacatalog.v1.ReconcileTagsResponse result = - new com.google.cloud.datacatalog.v1.ReconcileTagsResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ReconcileTagsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.createdTagsCount_ = createdTagsCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updatedTagsCount_ = updatedTagsCount_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.deletedTagsCount_ = deletedTagsCount_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ReconcileTagsResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.ReconcileTagsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ReconcileTagsResponse other) { - if (other == com.google.cloud.datacatalog.v1.ReconcileTagsResponse.getDefaultInstance()) - return this; - if (other.getCreatedTagsCount() != 0L) { - setCreatedTagsCount(other.getCreatedTagsCount()); - } - if (other.getUpdatedTagsCount() != 0L) { - setUpdatedTagsCount(other.getUpdatedTagsCount()); - } - if (other.getDeletedTagsCount() != 0L) { - setDeletedTagsCount(other.getDeletedTagsCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - createdTagsCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - updatedTagsCount_ = input.readInt64(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 24: - { - deletedTagsCount_ = input.readInt64(); - 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 long createdTagsCount_; - - /** - * - * - *
-     * Number of tags created in the request.
-     * 
- * - * int64 created_tags_count = 1; - * - * @return The createdTagsCount. - */ - @java.lang.Override - public long getCreatedTagsCount() { - return createdTagsCount_; - } - - /** - * - * - *
-     * Number of tags created in the request.
-     * 
- * - * int64 created_tags_count = 1; - * - * @param value The createdTagsCount to set. - * @return This builder for chaining. - */ - public Builder setCreatedTagsCount(long value) { - - createdTagsCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Number of tags created in the request.
-     * 
- * - * int64 created_tags_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearCreatedTagsCount() { - bitField0_ = (bitField0_ & ~0x00000001); - createdTagsCount_ = 0L; - onChanged(); - return this; - } - - private long updatedTagsCount_; - - /** - * - * - *
-     * Number of tags updated in the request.
-     * 
- * - * int64 updated_tags_count = 2; - * - * @return The updatedTagsCount. - */ - @java.lang.Override - public long getUpdatedTagsCount() { - return updatedTagsCount_; - } - - /** - * - * - *
-     * Number of tags updated in the request.
-     * 
- * - * int64 updated_tags_count = 2; - * - * @param value The updatedTagsCount to set. - * @return This builder for chaining. - */ - public Builder setUpdatedTagsCount(long value) { - - updatedTagsCount_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Number of tags updated in the request.
-     * 
- * - * int64 updated_tags_count = 2; - * - * @return This builder for chaining. - */ - public Builder clearUpdatedTagsCount() { - bitField0_ = (bitField0_ & ~0x00000002); - updatedTagsCount_ = 0L; - onChanged(); - return this; - } - - private long deletedTagsCount_; - - /** - * - * - *
-     * Number of tags deleted in the request.
-     * 
- * - * int64 deleted_tags_count = 3; - * - * @return The deletedTagsCount. - */ - @java.lang.Override - public long getDeletedTagsCount() { - return deletedTagsCount_; - } - - /** - * - * - *
-     * Number of tags deleted in the request.
-     * 
- * - * int64 deleted_tags_count = 3; - * - * @param value The deletedTagsCount to set. - * @return This builder for chaining. - */ - public Builder setDeletedTagsCount(long value) { - - deletedTagsCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Number of tags deleted in the request.
-     * 
- * - * int64 deleted_tags_count = 3; - * - * @return This builder for chaining. - */ - public Builder clearDeletedTagsCount() { - bitField0_ = (bitField0_ & ~0x00000004); - deletedTagsCount_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ReconcileTagsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ReconcileTagsResponse) - private static final com.google.cloud.datacatalog.v1.ReconcileTagsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ReconcileTagsResponse(); - } - - public static com.google.cloud.datacatalog.v1.ReconcileTagsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReconcileTagsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReconcileTagsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponseOrBuilder.java deleted file mode 100644 index 7730e09b4fa6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReconcileTagsResponseOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ReconcileTagsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ReconcileTagsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Number of tags created in the request.
-   * 
- * - * int64 created_tags_count = 1; - * - * @return The createdTagsCount. - */ - long getCreatedTagsCount(); - - /** - * - * - *
-   * Number of tags updated in the request.
-   * 
- * - * int64 updated_tags_count = 2; - * - * @return The updatedTagsCount. - */ - long getUpdatedTagsCount(); - - /** - * - * - *
-   * Number of tags deleted in the request.
-   * 
- * - * int64 deleted_tags_count = 3; - * - * @return The deletedTagsCount. - */ - long getDeletedTagsCount(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequest.java deleted file mode 100644 index 92738be6e718..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequest.java +++ /dev/null @@ -1,828 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [RenameTagTemplateFieldEnumValue][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest} - */ -@com.google.protobuf.Generated -public final class RenameTagTemplateFieldEnumValueRequest - extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) - RenameTagTemplateFieldEnumValueRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "RenameTagTemplateFieldEnumValueRequest"); - } - - // Use RenameTagTemplateFieldEnumValueRequest.newBuilder() to construct. - private RenameTagTemplateFieldEnumValueRequest( - com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private RenameTagTemplateFieldEnumValueRequest() { - name_ = ""; - newEnumValueDisplayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest.class, - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the enum field value.
-   * 
- * - * - * 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 enum field value.
-   * 
- * - * - * 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 NEW_ENUM_VALUE_DISPLAY_NAME_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object newEnumValueDisplayName_ = ""; - - /** - * - * - *
-   * Required. The new display name of the enum value. For example,
-   * `my_new_enum_value`.
-   * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newEnumValueDisplayName. - */ - @java.lang.Override - public java.lang.String getNewEnumValueDisplayName() { - java.lang.Object ref = newEnumValueDisplayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newEnumValueDisplayName_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The new display name of the enum value. For example,
-   * `my_new_enum_value`.
-   * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newEnumValueDisplayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNewEnumValueDisplayNameBytes() { - java.lang.Object ref = newEnumValueDisplayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newEnumValueDisplayName_ = 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(newEnumValueDisplayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, newEnumValueDisplayName_); - } - 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(newEnumValueDisplayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, newEnumValueDisplayName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest other = - (com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getNewEnumValueDisplayName().equals(other.getNewEnumValueDisplayName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + NEW_ENUM_VALUE_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getNewEnumValueDisplayName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [RenameTagTemplateFieldEnumValue][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest.class, - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest.Builder.class); - } - - // Construct using - // com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - newEnumValueDisplayName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldEnumValueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest build() { - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest buildPartial() { - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest result = - new com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.newEnumValueDisplayName_ = newEnumValueDisplayName_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) { - return mergeFrom( - (com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest other) { - if (other - == com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getNewEnumValueDisplayName().isEmpty()) { - newEnumValueDisplayName_ = other.newEnumValueDisplayName_; - 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: - { - newEnumValueDisplayName_ = 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 enum field value.
-     * 
- * - * - * 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 enum field value.
-     * 
- * - * - * 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 enum field value.
-     * 
- * - * - * 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 enum field value.
-     * 
- * - * - * 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 enum field value.
-     * 
- * - * - * 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 newEnumValueDisplayName_ = ""; - - /** - * - * - *
-     * Required. The new display name of the enum value. For example,
-     * `my_new_enum_value`.
-     * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The newEnumValueDisplayName. - */ - public java.lang.String getNewEnumValueDisplayName() { - java.lang.Object ref = newEnumValueDisplayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newEnumValueDisplayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The new display name of the enum value. For example,
-     * `my_new_enum_value`.
-     * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for newEnumValueDisplayName. - */ - public com.google.protobuf.ByteString getNewEnumValueDisplayNameBytes() { - java.lang.Object ref = newEnumValueDisplayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newEnumValueDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The new display name of the enum value. For example,
-     * `my_new_enum_value`.
-     * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The newEnumValueDisplayName to set. - * @return This builder for chaining. - */ - public Builder setNewEnumValueDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - newEnumValueDisplayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new display name of the enum value. For example,
-     * `my_new_enum_value`.
-     * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearNewEnumValueDisplayName() { - newEnumValueDisplayName_ = getDefaultInstance().getNewEnumValueDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new display name of the enum value. For example,
-     * `my_new_enum_value`.
-     * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bytes for newEnumValueDisplayName to set. - * @return This builder for chaining. - */ - public Builder setNewEnumValueDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - newEnumValueDisplayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) - private static final com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest(); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenameTagTemplateFieldEnumValueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java deleted file mode 100644 index 32a53055e85d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface RenameTagTemplateFieldEnumValueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the enum field value.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the enum field value.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The new display name of the enum value. For example,
-   * `my_new_enum_value`.
-   * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newEnumValueDisplayName. - */ - java.lang.String getNewEnumValueDisplayName(); - - /** - * - * - *
-   * Required. The new display name of the enum value. For example,
-   * `my_new_enum_value`.
-   * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newEnumValueDisplayName. - */ - com.google.protobuf.ByteString getNewEnumValueDisplayNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java deleted file mode 100644 index f5b8b833e153..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [RenameTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest} - */ -@com.google.protobuf.Generated -public final class RenameTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) - RenameTagTemplateFieldRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "RenameTagTemplateFieldRequest"); - } - - // Use RenameTagTemplateFieldRequest.newBuilder() to construct. - private RenameTagTemplateFieldRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private RenameTagTemplateFieldRequest() { - name_ = ""; - newTagTemplateFieldId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the tag template field.
-   * 
- * - * - * 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 tag template field.
-   * 
- * - * - * 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 NEW_TAG_TEMPLATE_FIELD_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object newTagTemplateFieldId_ = ""; - - /** - * - * - *
-   * Required. The new ID of this tag template field. For example,
-   * `my_new_field`.
-   * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newTagTemplateFieldId. - */ - @java.lang.Override - public java.lang.String getNewTagTemplateFieldId() { - java.lang.Object ref = newTagTemplateFieldId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newTagTemplateFieldId_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The new ID of this tag template field. For example,
-   * `my_new_field`.
-   * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newTagTemplateFieldId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNewTagTemplateFieldIdBytes() { - java.lang.Object ref = newTagTemplateFieldId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newTagTemplateFieldId_ = 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(newTagTemplateFieldId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, newTagTemplateFieldId_); - } - 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(newTagTemplateFieldId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, newTagTemplateFieldId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest other = - (com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getNewTagTemplateFieldId().equals(other.getNewTagTemplateFieldId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + NEW_TAG_TEMPLATE_FIELD_ID_FIELD_NUMBER; - hash = (53 * hash) + getNewTagTemplateFieldId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [RenameTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateField].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - newTagTemplateFieldId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RenameTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest build() { - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest buildPartial() { - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest result = - new com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.newTagTemplateFieldId_ = newTagTemplateFieldId_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest other) { - if (other - == com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getNewTagTemplateFieldId().isEmpty()) { - newTagTemplateFieldId_ = other.newTagTemplateFieldId_; - 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: - { - newTagTemplateFieldId_ = 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 tag template field.
-     * 
- * - * - * 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 tag template field.
-     * 
- * - * - * 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 tag template field.
-     * 
- * - * - * 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 tag template field.
-     * 
- * - * - * 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 tag template field.
-     * 
- * - * - * 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 newTagTemplateFieldId_ = ""; - - /** - * - * - *
-     * Required. The new ID of this tag template field. For example,
-     * `my_new_field`.
-     * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newTagTemplateFieldId. - */ - public java.lang.String getNewTagTemplateFieldId() { - java.lang.Object ref = newTagTemplateFieldId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newTagTemplateFieldId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The new ID of this tag template field. For example,
-     * `my_new_field`.
-     * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newTagTemplateFieldId. - */ - public com.google.protobuf.ByteString getNewTagTemplateFieldIdBytes() { - java.lang.Object ref = newTagTemplateFieldId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newTagTemplateFieldId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The new ID of this tag template field. For example,
-     * `my_new_field`.
-     * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The newTagTemplateFieldId to set. - * @return This builder for chaining. - */ - public Builder setNewTagTemplateFieldId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - newTagTemplateFieldId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new ID of this tag template field. For example,
-     * `my_new_field`.
-     * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNewTagTemplateFieldId() { - newTagTemplateFieldId_ = getDefaultInstance().getNewTagTemplateFieldId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new ID of this tag template field. For example,
-     * `my_new_field`.
-     * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for newTagTemplateFieldId to set. - * @return This builder for chaining. - */ - public Builder setNewTagTemplateFieldIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - newTagTemplateFieldId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) - private static final com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest(); - } - - public static com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenameTagTemplateFieldRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index 697b73f6f130..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RenameTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface RenameTagTemplateFieldRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag template field.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag template field.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The new ID of this tag template field. For example,
-   * `my_new_field`.
-   * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newTagTemplateFieldId. - */ - java.lang.String getNewTagTemplateFieldId(); - - /** - * - * - *
-   * Required. The new ID of this tag template field. For example,
-   * `my_new_field`.
-   * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newTagTemplateFieldId. - */ - com.google.protobuf.ByteString getNewTagTemplateFieldIdBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequest.java deleted file mode 100644 index 6e6e34afea71..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequest.java +++ /dev/null @@ -1,938 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [ReplaceTaxonomy][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ReplaceTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ReplaceTaxonomyRequest} - */ -@com.google.protobuf.Generated -public final class ReplaceTaxonomyRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ReplaceTaxonomyRequest) - ReplaceTaxonomyRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ReplaceTaxonomyRequest"); - } - - // Use ReplaceTaxonomyRequest.newBuilder() to construct. - private ReplaceTaxonomyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ReplaceTaxonomyRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest.class, - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. Resource name of the taxonomy to update.
-   * 
- * - * - * 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. Resource name of the taxonomy to update.
-   * 
- * - * - * 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_TAXONOMY_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.SerializedTaxonomy serializedTaxonomy_; - - /** - * - * - *
-   * Required. Taxonomy to update along with its child policy tags.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the serializedTaxonomy field is set. - */ - @java.lang.Override - public boolean hasSerializedTaxonomy() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. Taxonomy to update along with its child policy tags.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The serializedTaxonomy. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedTaxonomy getSerializedTaxonomy() { - return serializedTaxonomy_ == null - ? com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance() - : serializedTaxonomy_; - } - - /** - * - * - *
-   * Required. Taxonomy to update along with its child policy tags.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder - getSerializedTaxonomyOrBuilder() { - return serializedTaxonomy_ == null - ? com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance() - : serializedTaxonomy_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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, getSerializedTaxonomy()); - } - 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, getSerializedTaxonomy()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest other = - (com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasSerializedTaxonomy() != other.hasSerializedTaxonomy()) return false; - if (hasSerializedTaxonomy()) { - if (!getSerializedTaxonomy().equals(other.getSerializedTaxonomy())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasSerializedTaxonomy()) { - hash = (37 * hash) + SERIALIZED_TAXONOMY_FIELD_NUMBER; - hash = (53 * hash) + getSerializedTaxonomy().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ReplaceTaxonomy][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ReplaceTaxonomy].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ReplaceTaxonomyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ReplaceTaxonomyRequest) - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest.class, - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetSerializedTaxonomyFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - serializedTaxonomy_ = null; - if (serializedTaxonomyBuilder_ != null) { - serializedTaxonomyBuilder_.dispose(); - serializedTaxonomyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_ReplaceTaxonomyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest build() { - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest buildPartial() { - com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest result = - new com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.serializedTaxonomy_ = - serializedTaxonomyBuilder_ == null - ? serializedTaxonomy_ - : serializedTaxonomyBuilder_.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.datacatalog.v1.ReplaceTaxonomyRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest other) { - if (other == com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasSerializedTaxonomy()) { - mergeSerializedTaxonomy(other.getSerializedTaxonomy()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetSerializedTaxonomyFieldBuilder().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. Resource name of the taxonomy to update.
-     * 
- * - * - * 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. Resource name of the taxonomy to update.
-     * 
- * - * - * 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. Resource name of the taxonomy to update.
-     * 
- * - * - * 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. Resource name of the taxonomy to update.
-     * 
- * - * - * 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. Resource name of the taxonomy to update.
-     * 
- * - * - * 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.datacatalog.v1.SerializedTaxonomy serializedTaxonomy_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> - serializedTaxonomyBuilder_; - - /** - * - * - *
-     * Required. Taxonomy to update along with its child policy tags.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the serializedTaxonomy field is set. - */ - public boolean hasSerializedTaxonomy() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Required. Taxonomy to update along with its child policy tags.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The serializedTaxonomy. - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomy getSerializedTaxonomy() { - if (serializedTaxonomyBuilder_ == null) { - return serializedTaxonomy_ == null - ? com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance() - : serializedTaxonomy_; - } else { - return serializedTaxonomyBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. Taxonomy to update along with its child policy tags.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setSerializedTaxonomy(com.google.cloud.datacatalog.v1.SerializedTaxonomy value) { - if (serializedTaxonomyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serializedTaxonomy_ = value; - } else { - serializedTaxonomyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Taxonomy to update along with its child policy tags.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setSerializedTaxonomy( - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder builderForValue) { - if (serializedTaxonomyBuilder_ == null) { - serializedTaxonomy_ = builderForValue.build(); - } else { - serializedTaxonomyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Taxonomy to update along with its child policy tags.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeSerializedTaxonomy( - com.google.cloud.datacatalog.v1.SerializedTaxonomy value) { - if (serializedTaxonomyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && serializedTaxonomy_ != null - && serializedTaxonomy_ - != com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance()) { - getSerializedTaxonomyBuilder().mergeFrom(value); - } else { - serializedTaxonomy_ = value; - } - } else { - serializedTaxonomyBuilder_.mergeFrom(value); - } - if (serializedTaxonomy_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomy to update along with its child policy tags.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearSerializedTaxonomy() { - bitField0_ = (bitField0_ & ~0x00000002); - serializedTaxonomy_ = null; - if (serializedTaxonomyBuilder_ != null) { - serializedTaxonomyBuilder_.dispose(); - serializedTaxonomyBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Taxonomy to update along with its child policy tags.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder - getSerializedTaxonomyBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetSerializedTaxonomyFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. Taxonomy to update along with its child policy tags.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder - getSerializedTaxonomyOrBuilder() { - if (serializedTaxonomyBuilder_ != null) { - return serializedTaxonomyBuilder_.getMessageOrBuilder(); - } else { - return serializedTaxonomy_ == null - ? com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance() - : serializedTaxonomy_; - } - } - - /** - * - * - *
-     * Required. Taxonomy to update along with its child policy tags.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder> - internalGetSerializedTaxonomyFieldBuilder() { - if (serializedTaxonomyBuilder_ == null) { - serializedTaxonomyBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder>( - getSerializedTaxonomy(), getParentForChildren(), isClean()); - serializedTaxonomy_ = null; - } - return serializedTaxonomyBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ReplaceTaxonomyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ReplaceTaxonomyRequest) - private static final com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest(); - } - - public static com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ReplaceTaxonomyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequestOrBuilder.java deleted file mode 100644 index ea1d089577fc..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ReplaceTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ReplaceTaxonomyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ReplaceTaxonomyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the taxonomy to update.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. Resource name of the taxonomy to update.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Taxonomy to update along with its child policy tags.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the serializedTaxonomy field is set. - */ - boolean hasSerializedTaxonomy(); - - /** - * - * - *
-   * Required. Taxonomy to update along with its child policy tags.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The serializedTaxonomy. - */ - com.google.cloud.datacatalog.v1.SerializedTaxonomy getSerializedTaxonomy(); - - /** - * - * - *
-   * Required. Taxonomy to update along with its child policy tags.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SerializedTaxonomy serialized_taxonomy = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder getSerializedTaxonomyOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequest.java deleted file mode 100644 index dd7dcb1794f3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequest.java +++ /dev/null @@ -1,599 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RetrieveConfigRequest} - */ -@com.google.protobuf.Generated -public final class RetrieveConfigRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RetrieveConfigRequest) - RetrieveConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "RetrieveConfigRequest"); - } - - // Use RetrieveConfigRequest.newBuilder() to construct. - private RetrieveConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private RetrieveConfigRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RetrieveConfigRequest.class, - com.google.cloud.datacatalog.v1.RetrieveConfigRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The organization whose config is being retrieved.
-   * 
- * - * 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 organization whose config is being retrieved.
-   * 
- * - * 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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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.datacatalog.v1.RetrieveConfigRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.RetrieveConfigRequest other = - (com.google.cloud.datacatalog.v1.RetrieveConfigRequest) 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.datacatalog.v1.RetrieveConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.RetrieveConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RetrieveConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.RetrieveConfigRequest) - com.google.cloud.datacatalog.v1.RetrieveConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RetrieveConfigRequest.class, - com.google.cloud.datacatalog.v1.RetrieveConfigRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.RetrieveConfigRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RetrieveConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RetrieveConfigRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.RetrieveConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RetrieveConfigRequest build() { - com.google.cloud.datacatalog.v1.RetrieveConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RetrieveConfigRequest buildPartial() { - com.google.cloud.datacatalog.v1.RetrieveConfigRequest result = - new com.google.cloud.datacatalog.v1.RetrieveConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.RetrieveConfigRequest 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.datacatalog.v1.RetrieveConfigRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.RetrieveConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.RetrieveConfigRequest other) { - if (other == com.google.cloud.datacatalog.v1.RetrieveConfigRequest.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 organization whose config is being retrieved.
-     * 
- * - * 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 organization whose config is being retrieved.
-     * 
- * - * 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 organization whose config is being retrieved.
-     * 
- * - * 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 organization whose config is being retrieved.
-     * 
- * - * 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 organization whose config is being retrieved.
-     * 
- * - * 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; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.RetrieveConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.RetrieveConfigRequest) - private static final com.google.cloud.datacatalog.v1.RetrieveConfigRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.RetrieveConfigRequest(); - } - - public static com.google.cloud.datacatalog.v1.RetrieveConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RetrieveConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequestOrBuilder.java deleted file mode 100644 index 0c430f58188f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveConfigRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface RetrieveConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.RetrieveConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The organization whose config is being retrieved.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The organization whose config is being retrieved.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequest.java deleted file mode 100644 index 5ede0b64d2f3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequest.java +++ /dev/null @@ -1,605 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest} - */ -@com.google.protobuf.Generated -public final class RetrieveEffectiveConfigRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) - RetrieveEffectiveConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "RetrieveEffectiveConfigRequest"); - } - - // Use RetrieveEffectiveConfigRequest.newBuilder() to construct. - private RetrieveEffectiveConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private RetrieveEffectiveConfigRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.class, - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The resource whose effective config is being retrieved.
-   * 
- * - * 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 resource whose effective config is being retrieved.
-   * 
- * - * 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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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.datacatalog.v1.RetrieveEffectiveConfigRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest other = - (com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) 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.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.class, - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RetrieveEffectiveConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest build() { - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest buildPartial() { - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest result = - new com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest 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.datacatalog.v1.RetrieveEffectiveConfigRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest other) { - if (other - == com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest.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 resource whose effective config is being retrieved.
-     * 
- * - * 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 resource whose effective config is being retrieved.
-     * 
- * - * 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 resource whose effective config is being retrieved.
-     * 
- * - * 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 resource whose effective config is being retrieved.
-     * 
- * - * 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 resource whose effective config is being retrieved.
-     * 
- * - * 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; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) - private static final com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest(); - } - - public static com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RetrieveEffectiveConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequestOrBuilder.java deleted file mode 100644 index 2d627446f24f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RetrieveEffectiveConfigRequestOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface RetrieveEffectiveConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The resource whose effective config is being retrieved.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The resource whose effective config is being retrieved.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpec.java deleted file mode 100644 index 2781fbce37d4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpec.java +++ /dev/null @@ -1,3510 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to a routine. Valid only for
- * entries with the `ROUTINE` type.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RoutineSpec} - */ -@com.google.protobuf.Generated -public final class RoutineSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RoutineSpec) - RoutineSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "RoutineSpec"); - } - - // Use RoutineSpec.newBuilder() to construct. - private RoutineSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private RoutineSpec() { - routineType_ = 0; - language_ = ""; - routineArguments_ = java.util.Collections.emptyList(); - returnType_ = ""; - definitionBody_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RoutineSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RoutineSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RoutineSpec.class, - com.google.cloud.datacatalog.v1.RoutineSpec.Builder.class); - } - - /** - * - * - *
-   * The fine-grained type of the routine.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.RoutineSpec.RoutineType} - */ - public enum RoutineType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified type.
-     * 
- * - * ROUTINE_TYPE_UNSPECIFIED = 0; - */ - ROUTINE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Non-builtin permanent scalar function.
-     * 
- * - * SCALAR_FUNCTION = 1; - */ - SCALAR_FUNCTION(1), - /** - * - * - *
-     * Stored procedure.
-     * 
- * - * PROCEDURE = 2; - */ - PROCEDURE(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "RoutineType"); - } - - /** - * - * - *
-     * Unspecified type.
-     * 
- * - * ROUTINE_TYPE_UNSPECIFIED = 0; - */ - public static final int ROUTINE_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * Non-builtin permanent scalar function.
-     * 
- * - * SCALAR_FUNCTION = 1; - */ - public static final int SCALAR_FUNCTION_VALUE = 1; - - /** - * - * - *
-     * Stored procedure.
-     * 
- * - * PROCEDURE = 2; - */ - public static final int PROCEDURE_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 RoutineType 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 RoutineType forNumber(int value) { - switch (value) { - case 0: - return ROUTINE_TYPE_UNSPECIFIED; - case 1: - return SCALAR_FUNCTION; - case 2: - return PROCEDURE; - 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 RoutineType findValueByNumber(int number) { - return RoutineType.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.datacatalog.v1.RoutineSpec.getDescriptor().getEnumTypes().get(0); - } - - private static final RoutineType[] VALUES = values(); - - public static RoutineType 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 RoutineType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.RoutineSpec.RoutineType) - } - - public interface ArgumentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.RoutineSpec.Argument) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The name of the argument. A return argument of a function might not have
-     * a name.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-     * The name of the argument. A return argument of a function might not have
-     * a name.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-     * Specifies whether the argument is input or output.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - int getModeValue(); - - /** - * - * - *
-     * Specifies whether the argument is input or output.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; - * - * @return The mode. - */ - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode getMode(); - - /** - * - * - *
-     * Type of the argument. The exact value depends on the source system and
-     * the language.
-     * 
- * - * string type = 3; - * - * @return The type. - */ - java.lang.String getType(); - - /** - * - * - *
-     * Type of the argument. The exact value depends on the source system and
-     * the language.
-     * 
- * - * string type = 3; - * - * @return The bytes for type. - */ - com.google.protobuf.ByteString getTypeBytes(); - } - - /** - * - * - *
-   * Input or output argument of a function or stored procedure.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RoutineSpec.Argument} - */ - public static final class Argument extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.RoutineSpec.Argument) - ArgumentOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Argument"); - } - - // Use Argument.newBuilder() to construct. - private Argument(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Argument() { - name_ = ""; - mode_ = 0; - type_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.class, - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder.class); - } - - /** - * - * - *
-     * The input or output mode of the argument.
-     * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode} - */ - public enum Mode implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-       * Unspecified mode.
-       * 
- * - * MODE_UNSPECIFIED = 0; - */ - MODE_UNSPECIFIED(0), - /** - * - * - *
-       * The argument is input-only.
-       * 
- * - * IN = 1; - */ - IN(1), - /** - * - * - *
-       * The argument is output-only.
-       * 
- * - * OUT = 2; - */ - OUT(2), - /** - * - * - *
-       * The argument is both an input and an output.
-       * 
- * - * INOUT = 3; - */ - INOUT(3), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Mode"); - } - - /** - * - * - *
-       * Unspecified mode.
-       * 
- * - * MODE_UNSPECIFIED = 0; - */ - public static final int MODE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-       * The argument is input-only.
-       * 
- * - * IN = 1; - */ - public static final int IN_VALUE = 1; - - /** - * - * - *
-       * The argument is output-only.
-       * 
- * - * OUT = 2; - */ - public static final int OUT_VALUE = 2; - - /** - * - * - *
-       * The argument is both an input and an output.
-       * 
- * - * INOUT = 3; - */ - public static final int INOUT_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 Mode 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 Mode forNumber(int value) { - switch (value) { - case 0: - return MODE_UNSPECIFIED; - case 1: - return IN; - case 2: - return OUT; - case 3: - return INOUT; - 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 Mode findValueByNumber(int number) { - return Mode.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.datacatalog.v1.RoutineSpec.Argument.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final Mode[] VALUES = values(); - - public static Mode 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 Mode(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode) - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-     * The name of the argument. A return argument of a function might not have
-     * a name.
-     * 
- * - * string name = 1; - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-     * The name of the argument. A return argument of a function might not have
-     * a name.
-     * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MODE_FIELD_NUMBER = 2; - private int mode_ = 0; - - /** - * - * - *
-     * Specifies whether the argument is input or output.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - - /** - * - * - *
-     * Specifies whether the argument is input or output.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; - * - * @return The mode. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode getMode() { - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode result = - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode.forNumber(mode_); - return result == null - ? com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode.UNRECOGNIZED - : result; - } - - public static final int TYPE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object type_ = ""; - - /** - * - * - *
-     * Type of the argument. The exact value depends on the source system and
-     * the language.
-     * 
- * - * string type = 3; - * - * @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; - } - } - - /** - * - * - *
-     * Type of the argument. The exact value depends on the source system and
-     * the language.
-     * 
- * - * string type = 3; - * - * @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 (mode_ - != com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode.MODE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, mode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, 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 (mode_ - != com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode.MODE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, mode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(type_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, 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.datacatalog.v1.RoutineSpec.Argument)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.RoutineSpec.Argument other = - (com.google.cloud.datacatalog.v1.RoutineSpec.Argument) obj; - - if (!getName().equals(other.getName())) return false; - if (mode_ != other.mode_) 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) + MODE_FIELD_NUMBER; - hash = (53 * hash) + mode_; - 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.datacatalog.v1.RoutineSpec.Argument parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.RoutineSpec.Argument prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 or output argument of a function or stored procedure.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RoutineSpec.Argument} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.RoutineSpec.Argument) - com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.class, - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.RoutineSpec.Argument.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - mode_ = 0; - type_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RoutineSpec_Argument_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.RoutineSpec.Argument.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument build() { - com.google.cloud.datacatalog.v1.RoutineSpec.Argument result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument buildPartial() { - com.google.cloud.datacatalog.v1.RoutineSpec.Argument result = - new com.google.cloud.datacatalog.v1.RoutineSpec.Argument(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.RoutineSpec.Argument result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.mode_ = mode_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.type_ = type_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.RoutineSpec.Argument) { - return mergeFrom((com.google.cloud.datacatalog.v1.RoutineSpec.Argument) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.RoutineSpec.Argument other) { - if (other == com.google.cloud.datacatalog.v1.RoutineSpec.Argument.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.mode_ != 0) { - setModeValue(other.getModeValue()); - } - if (!other.getType().isEmpty()) { - type_ = other.type_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - mode_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - type_ = 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_ = ""; - - /** - * - * - *
-       * The name of the argument. A return argument of a function might not have
-       * a name.
-       * 
- * - * string name = 1; - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * The name of the argument. A return argument of a function might not have
-       * a name.
-       * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * The name of the argument. A return argument of a function might not have
-       * a name.
-       * 
- * - * string name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * The name of the argument. A return argument of a function might not have
-       * a name.
-       * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * The name of the argument. A return argument of a function might not have
-       * a name.
-       * 
- * - * string name = 1; - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int mode_ = 0; - - /** - * - * - *
-       * Specifies whether the argument is input or output.
-       * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; - * - * @return The enum numeric value on the wire for mode. - */ - @java.lang.Override - public int getModeValue() { - return mode_; - } - - /** - * - * - *
-       * Specifies whether the argument is input or output.
-       * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; - * - * @param value The enum numeric value on the wire for mode to set. - * @return This builder for chaining. - */ - public Builder setModeValue(int value) { - mode_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * Specifies whether the argument is input or output.
-       * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; - * - * @return The mode. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode getMode() { - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode result = - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode.forNumber(mode_); - return result == null - ? com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode.UNRECOGNIZED - : result; - } - - /** - * - * - *
-       * Specifies whether the argument is input or output.
-       * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; - * - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode(com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - mode_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-       * Specifies whether the argument is input or output.
-       * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.Argument.Mode mode = 2; - * - * @return This builder for chaining. - */ - public Builder clearMode() { - bitField0_ = (bitField0_ & ~0x00000002); - mode_ = 0; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - - /** - * - * - *
-       * Type of the argument. The exact value depends on the source system and
-       * the language.
-       * 
- * - * string type = 3; - * - * @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; - } - } - - /** - * - * - *
-       * Type of the argument. The exact value depends on the source system and
-       * the language.
-       * 
- * - * string type = 3; - * - * @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; - } - } - - /** - * - * - *
-       * Type of the argument. The exact value depends on the source system and
-       * the language.
-       * 
- * - * string type = 3; - * - * @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; - } - - /** - * - * - *
-       * Type of the argument. The exact value depends on the source system and
-       * the language.
-       * 
- * - * string type = 3; - * - * @return This builder for chaining. - */ - public Builder clearType() { - type_ = getDefaultInstance().getType(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-       * Type of the argument. The exact value depends on the source system and
-       * the language.
-       * 
- * - * string type = 3; - * - * @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; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.RoutineSpec.Argument) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.RoutineSpec.Argument) - private static final com.google.cloud.datacatalog.v1.RoutineSpec.Argument DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.RoutineSpec.Argument(); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec.Argument getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Argument parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int systemSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object systemSpec_; - - public enum SystemSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - BIGQUERY_ROUTINE_SPEC(6), - SYSTEMSPEC_NOT_SET(0); - private final int value; - - private SystemSpecCase(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 SystemSpecCase valueOf(int value) { - return forNumber(value); - } - - public static SystemSpecCase forNumber(int value) { - switch (value) { - case 6: - return BIGQUERY_ROUTINE_SPEC; - case 0: - return SYSTEMSPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public static final int ROUTINE_TYPE_FIELD_NUMBER = 1; - private int routineType_ = 0; - - /** - * - * - *
-   * The type of the routine.
-   * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; - * - * @return The enum numeric value on the wire for routineType. - */ - @java.lang.Override - public int getRoutineTypeValue() { - return routineType_; - } - - /** - * - * - *
-   * The type of the routine.
-   * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; - * - * @return The routineType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType getRoutineType() { - com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType result = - com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType.forNumber(routineType_); - return result == null - ? com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType.UNRECOGNIZED - : result; - } - - public static final int LANGUAGE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object language_ = ""; - - /** - * - * - *
-   * The language the routine is written in. The exact value depends on the
-   * source system. For BigQuery routines, possible values are:
-   *
-   * * `SQL`
-   * * `JAVASCRIPT`
-   * 
- * - * string language = 2; - * - * @return The language. - */ - @java.lang.Override - public java.lang.String getLanguage() { - java.lang.Object ref = language_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - language_ = s; - return s; - } - } - - /** - * - * - *
-   * The language the routine is written in. The exact value depends on the
-   * source system. For BigQuery routines, possible values are:
-   *
-   * * `SQL`
-   * * `JAVASCRIPT`
-   * 
- * - * string language = 2; - * - * @return The bytes for language. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLanguageBytes() { - java.lang.Object ref = language_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - language_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROUTINE_ARGUMENTS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List routineArguments_; - - /** - * - * - *
-   * Arguments of the routine.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - */ - @java.lang.Override - public java.util.List - getRoutineArgumentsList() { - return routineArguments_; - } - - /** - * - * - *
-   * Arguments of the routine.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - */ - @java.lang.Override - public java.util.List - getRoutineArgumentsOrBuilderList() { - return routineArguments_; - } - - /** - * - * - *
-   * Arguments of the routine.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - */ - @java.lang.Override - public int getRoutineArgumentsCount() { - return routineArguments_.size(); - } - - /** - * - * - *
-   * Arguments of the routine.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument getRoutineArguments(int index) { - return routineArguments_.get(index); - } - - /** - * - * - *
-   * Arguments of the routine.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder getRoutineArgumentsOrBuilder( - int index) { - return routineArguments_.get(index); - } - - public static final int RETURN_TYPE_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object returnType_ = ""; - - /** - * - * - *
-   * Return type of the argument. The exact value depends on the source system
-   * and the language.
-   * 
- * - * string return_type = 4; - * - * @return The returnType. - */ - @java.lang.Override - public java.lang.String getReturnType() { - java.lang.Object ref = returnType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - returnType_ = s; - return s; - } - } - - /** - * - * - *
-   * Return type of the argument. The exact value depends on the source system
-   * and the language.
-   * 
- * - * string return_type = 4; - * - * @return The bytes for returnType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getReturnTypeBytes() { - java.lang.Object ref = returnType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - returnType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DEFINITION_BODY_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object definitionBody_ = ""; - - /** - * - * - *
-   * The body of the routine.
-   * 
- * - * string definition_body = 5; - * - * @return The definitionBody. - */ - @java.lang.Override - public java.lang.String getDefinitionBody() { - java.lang.Object ref = definitionBody_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - definitionBody_ = s; - return s; - } - } - - /** - * - * - *
-   * The body of the routine.
-   * 
- * - * string definition_body = 5; - * - * @return The bytes for definitionBody. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDefinitionBodyBytes() { - java.lang.Object ref = definitionBody_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - definitionBody_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BIGQUERY_ROUTINE_SPEC_FIELD_NUMBER = 6; - - /** - * - * - *
-   * Fields specific for BigQuery routines.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - * - * @return Whether the bigqueryRoutineSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryRoutineSpec() { - return systemSpecCase_ == 6; - } - - /** - * - * - *
-   * Fields specific for BigQuery routines.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - * - * @return The bigqueryRoutineSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryRoutineSpec getBigqueryRoutineSpec() { - if (systemSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Fields specific for BigQuery routines.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryRoutineSpecOrBuilder - getBigqueryRoutineSpecOrBuilder() { - if (systemSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.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 (routineType_ - != com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType.ROUTINE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, routineType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(language_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, language_); - } - for (int i = 0; i < routineArguments_.size(); i++) { - output.writeMessage(3, routineArguments_.get(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(returnType_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, returnType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(definitionBody_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, definitionBody_); - } - if (systemSpecCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) systemSpec_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (routineType_ - != com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType.ROUTINE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, routineType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(language_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, language_); - } - for (int i = 0; i < routineArguments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, routineArguments_.get(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(returnType_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, returnType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(definitionBody_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, definitionBody_); - } - if (systemSpecCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) systemSpec_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.RoutineSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.RoutineSpec other = - (com.google.cloud.datacatalog.v1.RoutineSpec) obj; - - if (routineType_ != other.routineType_) return false; - if (!getLanguage().equals(other.getLanguage())) return false; - if (!getRoutineArgumentsList().equals(other.getRoutineArgumentsList())) return false; - if (!getReturnType().equals(other.getReturnType())) return false; - if (!getDefinitionBody().equals(other.getDefinitionBody())) return false; - if (!getSystemSpecCase().equals(other.getSystemSpecCase())) return false; - switch (systemSpecCase_) { - case 6: - if (!getBigqueryRoutineSpec().equals(other.getBigqueryRoutineSpec())) 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) + ROUTINE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + routineType_; - hash = (37 * hash) + LANGUAGE_FIELD_NUMBER; - hash = (53 * hash) + getLanguage().hashCode(); - if (getRoutineArgumentsCount() > 0) { - hash = (37 * hash) + ROUTINE_ARGUMENTS_FIELD_NUMBER; - hash = (53 * hash) + getRoutineArgumentsList().hashCode(); - } - hash = (37 * hash) + RETURN_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getReturnType().hashCode(); - hash = (37 * hash) + DEFINITION_BODY_FIELD_NUMBER; - hash = (53 * hash) + getDefinitionBody().hashCode(); - switch (systemSpecCase_) { - case 6: - hash = (37 * hash) + BIGQUERY_ROUTINE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryRoutineSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.RoutineSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to a routine. Valid only for
-   * entries with the `ROUTINE` type.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.RoutineSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.RoutineSpec) - com.google.cloud.datacatalog.v1.RoutineSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RoutineSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RoutineSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.RoutineSpec.class, - com.google.cloud.datacatalog.v1.RoutineSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.RoutineSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - routineType_ = 0; - language_ = ""; - if (routineArgumentsBuilder_ == null) { - routineArguments_ = java.util.Collections.emptyList(); - } else { - routineArguments_ = null; - routineArgumentsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - returnType_ = ""; - definitionBody_ = ""; - if (bigqueryRoutineSpecBuilder_ != null) { - bigqueryRoutineSpecBuilder_.clear(); - } - systemSpecCase_ = 0; - systemSpec_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_RoutineSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec build() { - com.google.cloud.datacatalog.v1.RoutineSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec buildPartial() { - com.google.cloud.datacatalog.v1.RoutineSpec result = - new com.google.cloud.datacatalog.v1.RoutineSpec(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.RoutineSpec result) { - if (routineArgumentsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - routineArguments_ = java.util.Collections.unmodifiableList(routineArguments_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.routineArguments_ = routineArguments_; - } else { - result.routineArguments_ = routineArgumentsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.RoutineSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.routineType_ = routineType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.language_ = language_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.returnType_ = returnType_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.definitionBody_ = definitionBody_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.RoutineSpec result) { - result.systemSpecCase_ = systemSpecCase_; - result.systemSpec_ = this.systemSpec_; - if (systemSpecCase_ == 6 && bigqueryRoutineSpecBuilder_ != null) { - result.systemSpec_ = bigqueryRoutineSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.RoutineSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.RoutineSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.RoutineSpec other) { - if (other == com.google.cloud.datacatalog.v1.RoutineSpec.getDefaultInstance()) return this; - if (other.routineType_ != 0) { - setRoutineTypeValue(other.getRoutineTypeValue()); - } - if (!other.getLanguage().isEmpty()) { - language_ = other.language_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (routineArgumentsBuilder_ == null) { - if (!other.routineArguments_.isEmpty()) { - if (routineArguments_.isEmpty()) { - routineArguments_ = other.routineArguments_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureRoutineArgumentsIsMutable(); - routineArguments_.addAll(other.routineArguments_); - } - onChanged(); - } - } else { - if (!other.routineArguments_.isEmpty()) { - if (routineArgumentsBuilder_.isEmpty()) { - routineArgumentsBuilder_.dispose(); - routineArgumentsBuilder_ = null; - routineArguments_ = other.routineArguments_; - bitField0_ = (bitField0_ & ~0x00000004); - routineArgumentsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetRoutineArgumentsFieldBuilder() - : null; - } else { - routineArgumentsBuilder_.addAllMessages(other.routineArguments_); - } - } - } - if (!other.getReturnType().isEmpty()) { - returnType_ = other.returnType_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getDefinitionBody().isEmpty()) { - definitionBody_ = other.definitionBody_; - bitField0_ |= 0x00000010; - onChanged(); - } - switch (other.getSystemSpecCase()) { - case BIGQUERY_ROUTINE_SPEC: - { - mergeBigqueryRoutineSpec(other.getBigqueryRoutineSpec()); - break; - } - case SYSTEMSPEC_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: - { - routineType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - language_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.cloud.datacatalog.v1.RoutineSpec.Argument m = - input.readMessage( - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.parser(), - extensionRegistry); - if (routineArgumentsBuilder_ == null) { - ensureRoutineArgumentsIsMutable(); - routineArguments_.add(m); - } else { - routineArgumentsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - returnType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - definitionBody_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetBigqueryRoutineSpecFieldBuilder().getBuilder(), extensionRegistry); - systemSpecCase_ = 6; - 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 systemSpecCase_ = 0; - private java.lang.Object systemSpec_; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public Builder clearSystemSpec() { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int routineType_ = 0; - - /** - * - * - *
-     * The type of the routine.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; - * - * @return The enum numeric value on the wire for routineType. - */ - @java.lang.Override - public int getRoutineTypeValue() { - return routineType_; - } - - /** - * - * - *
-     * The type of the routine.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; - * - * @param value The enum numeric value on the wire for routineType to set. - * @return This builder for chaining. - */ - public Builder setRoutineTypeValue(int value) { - routineType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The type of the routine.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; - * - * @return The routineType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType getRoutineType() { - com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType result = - com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType.forNumber(routineType_); - return result == null - ? com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * The type of the routine.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; - * - * @param value The routineType to set. - * @return This builder for chaining. - */ - public Builder setRoutineType(com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - routineType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * The type of the routine.
-     * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearRoutineType() { - bitField0_ = (bitField0_ & ~0x00000001); - routineType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object language_ = ""; - - /** - * - * - *
-     * The language the routine is written in. The exact value depends on the
-     * source system. For BigQuery routines, possible values are:
-     *
-     * * `SQL`
-     * * `JAVASCRIPT`
-     * 
- * - * string language = 2; - * - * @return The language. - */ - public java.lang.String getLanguage() { - java.lang.Object ref = language_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - language_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The language the routine is written in. The exact value depends on the
-     * source system. For BigQuery routines, possible values are:
-     *
-     * * `SQL`
-     * * `JAVASCRIPT`
-     * 
- * - * string language = 2; - * - * @return The bytes for language. - */ - public com.google.protobuf.ByteString getLanguageBytes() { - java.lang.Object ref = language_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - language_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The language the routine is written in. The exact value depends on the
-     * source system. For BigQuery routines, possible values are:
-     *
-     * * `SQL`
-     * * `JAVASCRIPT`
-     * 
- * - * string language = 2; - * - * @param value The language to set. - * @return This builder for chaining. - */ - public Builder setLanguage(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - language_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The language the routine is written in. The exact value depends on the
-     * source system. For BigQuery routines, possible values are:
-     *
-     * * `SQL`
-     * * `JAVASCRIPT`
-     * 
- * - * string language = 2; - * - * @return This builder for chaining. - */ - public Builder clearLanguage() { - language_ = getDefaultInstance().getLanguage(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * The language the routine is written in. The exact value depends on the
-     * source system. For BigQuery routines, possible values are:
-     *
-     * * `SQL`
-     * * `JAVASCRIPT`
-     * 
- * - * string language = 2; - * - * @param value The bytes for language to set. - * @return This builder for chaining. - */ - public Builder setLanguageBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - language_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.util.List routineArguments_ = - java.util.Collections.emptyList(); - - private void ensureRoutineArgumentsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - routineArguments_ = - new java.util.ArrayList( - routineArguments_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.RoutineSpec.Argument, - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder, - com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder> - routineArgumentsBuilder_; - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public java.util.List - getRoutineArgumentsList() { - if (routineArgumentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(routineArguments_); - } else { - return routineArgumentsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public int getRoutineArgumentsCount() { - if (routineArgumentsBuilder_ == null) { - return routineArguments_.size(); - } else { - return routineArgumentsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument getRoutineArguments(int index) { - if (routineArgumentsBuilder_ == null) { - return routineArguments_.get(index); - } else { - return routineArgumentsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public Builder setRoutineArguments( - int index, com.google.cloud.datacatalog.v1.RoutineSpec.Argument value) { - if (routineArgumentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutineArgumentsIsMutable(); - routineArguments_.set(index, value); - onChanged(); - } else { - routineArgumentsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public Builder setRoutineArguments( - int index, com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder builderForValue) { - if (routineArgumentsBuilder_ == null) { - ensureRoutineArgumentsIsMutable(); - routineArguments_.set(index, builderForValue.build()); - onChanged(); - } else { - routineArgumentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public Builder addRoutineArguments(com.google.cloud.datacatalog.v1.RoutineSpec.Argument value) { - if (routineArgumentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutineArgumentsIsMutable(); - routineArguments_.add(value); - onChanged(); - } else { - routineArgumentsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public Builder addRoutineArguments( - int index, com.google.cloud.datacatalog.v1.RoutineSpec.Argument value) { - if (routineArgumentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRoutineArgumentsIsMutable(); - routineArguments_.add(index, value); - onChanged(); - } else { - routineArgumentsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public Builder addRoutineArguments( - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder builderForValue) { - if (routineArgumentsBuilder_ == null) { - ensureRoutineArgumentsIsMutable(); - routineArguments_.add(builderForValue.build()); - onChanged(); - } else { - routineArgumentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public Builder addRoutineArguments( - int index, com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder builderForValue) { - if (routineArgumentsBuilder_ == null) { - ensureRoutineArgumentsIsMutable(); - routineArguments_.add(index, builderForValue.build()); - onChanged(); - } else { - routineArgumentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public Builder addAllRoutineArguments( - java.lang.Iterable values) { - if (routineArgumentsBuilder_ == null) { - ensureRoutineArgumentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, routineArguments_); - onChanged(); - } else { - routineArgumentsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public Builder clearRoutineArguments() { - if (routineArgumentsBuilder_ == null) { - routineArguments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - routineArgumentsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public Builder removeRoutineArguments(int index) { - if (routineArgumentsBuilder_ == null) { - ensureRoutineArgumentsIsMutable(); - routineArguments_.remove(index); - onChanged(); - } else { - routineArgumentsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder getRoutineArgumentsBuilder( - int index) { - return internalGetRoutineArgumentsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder - getRoutineArgumentsOrBuilder(int index) { - if (routineArgumentsBuilder_ == null) { - return routineArguments_.get(index); - } else { - return routineArgumentsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public java.util.List - getRoutineArgumentsOrBuilderList() { - if (routineArgumentsBuilder_ != null) { - return routineArgumentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(routineArguments_); - } - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder - addRoutineArgumentsBuilder() { - return internalGetRoutineArgumentsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.RoutineSpec.Argument.getDefaultInstance()); - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder addRoutineArgumentsBuilder( - int index) { - return internalGetRoutineArgumentsFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1.RoutineSpec.Argument.getDefaultInstance()); - } - - /** - * - * - *
-     * Arguments of the routine.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - * - */ - public java.util.List - getRoutineArgumentsBuilderList() { - return internalGetRoutineArgumentsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.RoutineSpec.Argument, - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder, - com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder> - internalGetRoutineArgumentsFieldBuilder() { - if (routineArgumentsBuilder_ == null) { - routineArgumentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.RoutineSpec.Argument, - com.google.cloud.datacatalog.v1.RoutineSpec.Argument.Builder, - com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder>( - routineArguments_, - ((bitField0_ & 0x00000004) != 0), - getParentForChildren(), - isClean()); - routineArguments_ = null; - } - return routineArgumentsBuilder_; - } - - private java.lang.Object returnType_ = ""; - - /** - * - * - *
-     * Return type of the argument. The exact value depends on the source system
-     * and the language.
-     * 
- * - * string return_type = 4; - * - * @return The returnType. - */ - public java.lang.String getReturnType() { - java.lang.Object ref = returnType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - returnType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Return type of the argument. The exact value depends on the source system
-     * and the language.
-     * 
- * - * string return_type = 4; - * - * @return The bytes for returnType. - */ - public com.google.protobuf.ByteString getReturnTypeBytes() { - java.lang.Object ref = returnType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - returnType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Return type of the argument. The exact value depends on the source system
-     * and the language.
-     * 
- * - * string return_type = 4; - * - * @param value The returnType to set. - * @return This builder for chaining. - */ - public Builder setReturnType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - returnType_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Return type of the argument. The exact value depends on the source system
-     * and the language.
-     * 
- * - * string return_type = 4; - * - * @return This builder for chaining. - */ - public Builder clearReturnType() { - returnType_ = getDefaultInstance().getReturnType(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Return type of the argument. The exact value depends on the source system
-     * and the language.
-     * 
- * - * string return_type = 4; - * - * @param value The bytes for returnType to set. - * @return This builder for chaining. - */ - public Builder setReturnTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - returnType_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object definitionBody_ = ""; - - /** - * - * - *
-     * The body of the routine.
-     * 
- * - * string definition_body = 5; - * - * @return The definitionBody. - */ - public java.lang.String getDefinitionBody() { - java.lang.Object ref = definitionBody_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - definitionBody_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The body of the routine.
-     * 
- * - * string definition_body = 5; - * - * @return The bytes for definitionBody. - */ - public com.google.protobuf.ByteString getDefinitionBodyBytes() { - java.lang.Object ref = definitionBody_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - definitionBody_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The body of the routine.
-     * 
- * - * string definition_body = 5; - * - * @param value The definitionBody to set. - * @return This builder for chaining. - */ - public Builder setDefinitionBody(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - definitionBody_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * The body of the routine.
-     * 
- * - * string definition_body = 5; - * - * @return This builder for chaining. - */ - public Builder clearDefinitionBody() { - definitionBody_ = getDefaultInstance().getDefinitionBody(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - /** - * - * - *
-     * The body of the routine.
-     * 
- * - * string definition_body = 5; - * - * @param value The bytes for definitionBody to set. - * @return This builder for chaining. - */ - public Builder setDefinitionBodyBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - definitionBody_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec, - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryRoutineSpecOrBuilder> - bigqueryRoutineSpecBuilder_; - - /** - * - * - *
-     * Fields specific for BigQuery routines.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - * - * @return Whether the bigqueryRoutineSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryRoutineSpec() { - return systemSpecCase_ == 6; - } - - /** - * - * - *
-     * Fields specific for BigQuery routines.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - * - * @return The bigqueryRoutineSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryRoutineSpec getBigqueryRoutineSpec() { - if (bigqueryRoutineSpecBuilder_ == null) { - if (systemSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.getDefaultInstance(); - } else { - if (systemSpecCase_ == 6) { - return bigqueryRoutineSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Fields specific for BigQuery routines.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - */ - public Builder setBigqueryRoutineSpec( - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec value) { - if (bigqueryRoutineSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemSpec_ = value; - onChanged(); - } else { - bigqueryRoutineSpecBuilder_.setMessage(value); - } - systemSpecCase_ = 6; - return this; - } - - /** - * - * - *
-     * Fields specific for BigQuery routines.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - */ - public Builder setBigqueryRoutineSpec( - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.Builder builderForValue) { - if (bigqueryRoutineSpecBuilder_ == null) { - systemSpec_ = builderForValue.build(); - onChanged(); - } else { - bigqueryRoutineSpecBuilder_.setMessage(builderForValue.build()); - } - systemSpecCase_ = 6; - return this; - } - - /** - * - * - *
-     * Fields specific for BigQuery routines.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - */ - public Builder mergeBigqueryRoutineSpec( - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec value) { - if (bigqueryRoutineSpecBuilder_ == null) { - if (systemSpecCase_ == 6 - && systemSpec_ - != com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.getDefaultInstance()) { - systemSpec_ = - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.newBuilder( - (com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) systemSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - systemSpec_ = value; - } - onChanged(); - } else { - if (systemSpecCase_ == 6) { - bigqueryRoutineSpecBuilder_.mergeFrom(value); - } else { - bigqueryRoutineSpecBuilder_.setMessage(value); - } - } - systemSpecCase_ = 6; - return this; - } - - /** - * - * - *
-     * Fields specific for BigQuery routines.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - */ - public Builder clearBigqueryRoutineSpec() { - if (bigqueryRoutineSpecBuilder_ == null) { - if (systemSpecCase_ == 6) { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - } - } else { - if (systemSpecCase_ == 6) { - systemSpecCase_ = 0; - systemSpec_ = null; - } - bigqueryRoutineSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Fields specific for BigQuery routines.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - */ - public com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.Builder - getBigqueryRoutineSpecBuilder() { - return internalGetBigqueryRoutineSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Fields specific for BigQuery routines.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.BigQueryRoutineSpecOrBuilder - getBigqueryRoutineSpecOrBuilder() { - if ((systemSpecCase_ == 6) && (bigqueryRoutineSpecBuilder_ != null)) { - return bigqueryRoutineSpecBuilder_.getMessageOrBuilder(); - } else { - if (systemSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Fields specific for BigQuery routines.
-     * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec, - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryRoutineSpecOrBuilder> - internalGetBigqueryRoutineSpecFieldBuilder() { - if (bigqueryRoutineSpecBuilder_ == null) { - if (!(systemSpecCase_ == 6)) { - systemSpec_ = com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.getDefaultInstance(); - } - bigqueryRoutineSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec, - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec.Builder, - com.google.cloud.datacatalog.v1.BigQueryRoutineSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.BigQueryRoutineSpec) systemSpec_, - getParentForChildren(), - isClean()); - systemSpec_ = null; - } - systemSpecCase_ = 6; - onChanged(); - return bigqueryRoutineSpecBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.RoutineSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.RoutineSpec) - private static final com.google.cloud.datacatalog.v1.RoutineSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.RoutineSpec(); - } - - public static com.google.cloud.datacatalog.v1.RoutineSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RoutineSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.RoutineSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpecOrBuilder.java deleted file mode 100644 index 913bf92adcd2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/RoutineSpecOrBuilder.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface RoutineSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.RoutineSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The type of the routine.
-   * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; - * - * @return The enum numeric value on the wire for routineType. - */ - int getRoutineTypeValue(); - - /** - * - * - *
-   * The type of the routine.
-   * 
- * - * .google.cloud.datacatalog.v1.RoutineSpec.RoutineType routine_type = 1; - * - * @return The routineType. - */ - com.google.cloud.datacatalog.v1.RoutineSpec.RoutineType getRoutineType(); - - /** - * - * - *
-   * The language the routine is written in. The exact value depends on the
-   * source system. For BigQuery routines, possible values are:
-   *
-   * * `SQL`
-   * * `JAVASCRIPT`
-   * 
- * - * string language = 2; - * - * @return The language. - */ - java.lang.String getLanguage(); - - /** - * - * - *
-   * The language the routine is written in. The exact value depends on the
-   * source system. For BigQuery routines, possible values are:
-   *
-   * * `SQL`
-   * * `JAVASCRIPT`
-   * 
- * - * string language = 2; - * - * @return The bytes for language. - */ - com.google.protobuf.ByteString getLanguageBytes(); - - /** - * - * - *
-   * Arguments of the routine.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - */ - java.util.List getRoutineArgumentsList(); - - /** - * - * - *
-   * Arguments of the routine.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - */ - com.google.cloud.datacatalog.v1.RoutineSpec.Argument getRoutineArguments(int index); - - /** - * - * - *
-   * Arguments of the routine.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - */ - int getRoutineArgumentsCount(); - - /** - * - * - *
-   * Arguments of the routine.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - */ - java.util.List - getRoutineArgumentsOrBuilderList(); - - /** - * - * - *
-   * Arguments of the routine.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.RoutineSpec.Argument routine_arguments = 3; - */ - com.google.cloud.datacatalog.v1.RoutineSpec.ArgumentOrBuilder getRoutineArgumentsOrBuilder( - int index); - - /** - * - * - *
-   * Return type of the argument. The exact value depends on the source system
-   * and the language.
-   * 
- * - * string return_type = 4; - * - * @return The returnType. - */ - java.lang.String getReturnType(); - - /** - * - * - *
-   * Return type of the argument. The exact value depends on the source system
-   * and the language.
-   * 
- * - * string return_type = 4; - * - * @return The bytes for returnType. - */ - com.google.protobuf.ByteString getReturnTypeBytes(); - - /** - * - * - *
-   * The body of the routine.
-   * 
- * - * string definition_body = 5; - * - * @return The definitionBody. - */ - java.lang.String getDefinitionBody(); - - /** - * - * - *
-   * The body of the routine.
-   * 
- * - * string definition_body = 5; - * - * @return The bytes for definitionBody. - */ - com.google.protobuf.ByteString getDefinitionBodyBytes(); - - /** - * - * - *
-   * Fields specific for BigQuery routines.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - * - * @return Whether the bigqueryRoutineSpec field is set. - */ - boolean hasBigqueryRoutineSpec(); - - /** - * - * - *
-   * Fields specific for BigQuery routines.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - * - * @return The bigqueryRoutineSpec. - */ - com.google.cloud.datacatalog.v1.BigQueryRoutineSpec getBigqueryRoutineSpec(); - - /** - * - * - *
-   * Fields specific for BigQuery routines.
-   * 
- * - * .google.cloud.datacatalog.v1.BigQueryRoutineSpec bigquery_routine_spec = 6; - */ - com.google.cloud.datacatalog.v1.BigQueryRoutineSpecOrBuilder getBigqueryRoutineSpecOrBuilder(); - - com.google.cloud.datacatalog.v1.RoutineSpec.SystemSpecCase getSystemSpecCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Schema.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Schema.java deleted file mode 100644 index 0a8fd878ecdd..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Schema.java +++ /dev/null @@ -1,989 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Represents a schema, for example, a BigQuery, GoogleSQL, or Avro schema.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Schema} - */ -@com.google.protobuf.Generated -public final class Schema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Schema) - SchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Schema"); - } - - // Use Schema.newBuilder() to construct. - private Schema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Schema() { - columns_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_Schema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_Schema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Schema.class, - com.google.cloud.datacatalog.v1.Schema.Builder.class); - } - - public static final int COLUMNS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List columns_; - - /** - * - * - *
-   * The unified GoogleSQL-like schema of columns.
-   *
-   * The overall maximum number of columns and nested columns is 10,000.
-   * The maximum nested depth is 15 levels.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - @java.lang.Override - public java.util.List getColumnsList() { - return columns_; - } - - /** - * - * - *
-   * The unified GoogleSQL-like schema of columns.
-   *
-   * The overall maximum number of columns and nested columns is 10,000.
-   * The maximum nested depth is 15 levels.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - @java.lang.Override - public java.util.List - getColumnsOrBuilderList() { - return columns_; - } - - /** - * - * - *
-   * The unified GoogleSQL-like schema of columns.
-   *
-   * The overall maximum number of columns and nested columns is 10,000.
-   * The maximum nested depth is 15 levels.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - @java.lang.Override - public int getColumnsCount() { - return columns_.size(); - } - - /** - * - * - *
-   * The unified GoogleSQL-like schema of columns.
-   *
-   * The overall maximum number of columns and nested columns is 10,000.
-   * The maximum nested depth is 15 levels.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchema getColumns(int index) { - return columns_.get(index); - } - - /** - * - * - *
-   * The unified GoogleSQL-like schema of columns.
-   *
-   * The overall maximum number of columns and nested columns is 10,000.
-   * The maximum nested depth is 15 levels.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder getColumnsOrBuilder(int index) { - return columns_.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 < columns_.size(); i++) { - output.writeMessage(2, columns_.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 < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, columns_.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.datacatalog.v1.Schema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.Schema other = (com.google.cloud.datacatalog.v1.Schema) obj; - - if (!getColumnsList().equals(other.getColumnsList())) return false; - if (!getUnknownFields().equals(other.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 (getColumnsCount() > 0) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getColumnsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.Schema parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Schema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Schema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Schema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Schema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Schema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Schema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Schema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Schema parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Schema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Schema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Schema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.Schema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 schema, for example, a BigQuery, GoogleSQL, or Avro schema.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Schema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.Schema) - com.google.cloud.datacatalog.v1.SchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_Schema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_Schema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Schema.class, - com.google.cloud.datacatalog.v1.Schema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.Schema.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - } else { - columns_ = null; - columnsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1_Schema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Schema getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.Schema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Schema build() { - com.google.cloud.datacatalog.v1.Schema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Schema buildPartial() { - com.google.cloud.datacatalog.v1.Schema result = - new com.google.cloud.datacatalog.v1.Schema(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.Schema result) { - if (columnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.columns_ = columns_; - } else { - result.columns_ = columnsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.Schema result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.Schema) { - return mergeFrom((com.google.cloud.datacatalog.v1.Schema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.Schema other) { - if (other == com.google.cloud.datacatalog.v1.Schema.getDefaultInstance()) return this; - if (columnsBuilder_ == null) { - if (!other.columns_.isEmpty()) { - if (columns_.isEmpty()) { - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureColumnsIsMutable(); - columns_.addAll(other.columns_); - } - onChanged(); - } - } else { - if (!other.columns_.isEmpty()) { - if (columnsBuilder_.isEmpty()) { - columnsBuilder_.dispose(); - columnsBuilder_ = null; - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - columnsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetColumnsFieldBuilder() - : null; - } else { - columnsBuilder_.addAllMessages(other.columns_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - com.google.cloud.datacatalog.v1.ColumnSchema m = - input.readMessage( - com.google.cloud.datacatalog.v1.ColumnSchema.parser(), extensionRegistry); - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(m); - } else { - columnsBuilder_.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 columns_ = - java.util.Collections.emptyList(); - - private void ensureColumnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - columns_ = new java.util.ArrayList(columns_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema, - com.google.cloud.datacatalog.v1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder> - columnsBuilder_; - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public java.util.List getColumnsList() { - if (columnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(columns_); - } else { - return columnsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public int getColumnsCount() { - if (columnsBuilder_ == null) { - return columns_.size(); - } else { - return columnsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public com.google.cloud.datacatalog.v1.ColumnSchema getColumns(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public Builder setColumns(int index, com.google.cloud.datacatalog.v1.ColumnSchema value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.set(index, value); - onChanged(); - } else { - columnsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public Builder setColumns( - int index, com.google.cloud.datacatalog.v1.ColumnSchema.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.set(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public Builder addColumns(com.google.cloud.datacatalog.v1.ColumnSchema value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(value); - onChanged(); - } else { - columnsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public Builder addColumns(int index, com.google.cloud.datacatalog.v1.ColumnSchema value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(index, value); - onChanged(); - } else { - columnsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public Builder addColumns( - com.google.cloud.datacatalog.v1.ColumnSchema.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public Builder addColumns( - int index, com.google.cloud.datacatalog.v1.ColumnSchema.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public Builder addAllColumns( - java.lang.Iterable values) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); - onChanged(); - } else { - columnsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public Builder clearColumns() { - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - columnsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public Builder removeColumns(int index) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.remove(index); - onChanged(); - } else { - columnsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public com.google.cloud.datacatalog.v1.ColumnSchema.Builder getColumnsBuilder(int index) { - return internalGetColumnsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder getColumnsOrBuilder(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public java.util.List - getColumnsOrBuilderList() { - if (columnsBuilder_ != null) { - return columnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columns_); - } - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public com.google.cloud.datacatalog.v1.ColumnSchema.Builder addColumnsBuilder() { - return internalGetColumnsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.ColumnSchema.getDefaultInstance()); - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public com.google.cloud.datacatalog.v1.ColumnSchema.Builder addColumnsBuilder(int index) { - return internalGetColumnsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.ColumnSchema.getDefaultInstance()); - } - - /** - * - * - *
-     * The unified GoogleSQL-like schema of columns.
-     *
-     * The overall maximum number of columns and nested columns is 10,000.
-     * The maximum nested depth is 15 levels.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - public java.util.List - getColumnsBuilderList() { - return internalGetColumnsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema, - com.google.cloud.datacatalog.v1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder> - internalGetColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.ColumnSchema, - com.google.cloud.datacatalog.v1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder>( - columns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - columns_ = null; - } - return columnsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.Schema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.Schema) - private static final com.google.cloud.datacatalog.v1.Schema DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.Schema(); - } - - public static com.google.cloud.datacatalog.v1.Schema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Schema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOrBuilder.java deleted file mode 100644 index 3c5c3436682b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface SchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Schema) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The unified GoogleSQL-like schema of columns.
-   *
-   * The overall maximum number of columns and nested columns is 10,000.
-   * The maximum nested depth is 15 levels.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - java.util.List getColumnsList(); - - /** - * - * - *
-   * The unified GoogleSQL-like schema of columns.
-   *
-   * The overall maximum number of columns and nested columns is 10,000.
-   * The maximum nested depth is 15 levels.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - com.google.cloud.datacatalog.v1.ColumnSchema getColumns(int index); - - /** - * - * - *
-   * The unified GoogleSQL-like schema of columns.
-   *
-   * The overall maximum number of columns and nested columns is 10,000.
-   * The maximum nested depth is 15 levels.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - int getColumnsCount(); - - /** - * - * - *
-   * The unified GoogleSQL-like schema of columns.
-   *
-   * The overall maximum number of columns and nested columns is 10,000.
-   * The maximum nested depth is 15 levels.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - java.util.List - getColumnsOrBuilderList(); - - /** - * - * - *
-   * The unified GoogleSQL-like schema of columns.
-   *
-   * The overall maximum number of columns and nested columns is 10,000.
-   * The maximum nested depth is 15 levels.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.ColumnSchema columns = 2; - */ - com.google.cloud.datacatalog.v1.ColumnSchemaOrBuilder getColumnsOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOuterClass.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOuterClass.java deleted file mode 100644 index 1462a3a554e0..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SchemaOuterClass.java +++ /dev/null @@ -1,172 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class SchemaOuterClass extends com.google.protobuf.GeneratedFile { - private SchemaOuterClass() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SchemaOuterClass"); - } - - 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_datacatalog_v1_Schema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_Schema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ColumnSchema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ColumnSchema_FieldElementType_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ColumnSchema_FieldElementType_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/datacatalog/v1/schema.pro" - + "to\022\033google.cloud.datacatalog.v1\032\037google/api/field_behavior.proto\"D\n" - + "\006Schema\022:\n" - + "\007columns\030\002 \003(\0132).google.cloud.datacatalog.v1.ColumnSchema\"\325\007\n" - + "\014ColumnSchema\022\023\n" - + "\006column\030\006 \001(\tB\003\340A\002\022\021\n" - + "\004type\030\001 \001(\tB\003\340A\002\022\030\n" - + "\013description\030\002 \001(\tB\003\340A\001\022\021\n" - + "\004mode\030\003 \001(\tB\003\340A\001\022\032\n\r" - + "default_value\030\010 \001(\tB\003\340A\001\022\035\n" - + "\020ordinal_position\030\t \001(\005B\003\340A\001\022Z\n" - + "\025highest_indexing_type\030\n" - + " \001(\01626.google.cloud.datacatalog.v1.ColumnSchema.IndexingTypeB\003\340A\001\022B\n\n" - + "subcolumns\030\007" - + " \003(\0132).google.cloud.datacatalog.v1.ColumnSchemaB\003\340A\001\022X\n" - + "\022looker_column_spec\030\022 " - + "\001(\0132:.google.cloud.datacatalog.v1.ColumnSchema.LookerColumnSpecH\000\022[\n" - + "\022range_element_type\030\023 \001(\0132:.google.cloud.datacatalog" - + ".v1.ColumnSchema.FieldElementTypeB\003\340A\001\022\024\n" - + "\007gc_rule\030\013 \001(\tB\003\340A\001\032\362\001\n" - + "\020LookerColumnSpec\022Y\n" - + "\004type\030\001 \001(\0162K.google.cloud.datacatal" - + "og.v1.ColumnSchema.LookerColumnSpec.LookerColumnType\"\202\001\n" - + "\020LookerColumnType\022\"\n" - + "\036LOOKER_COLUMN_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tDIMENSION\020\001\022\023\n" - + "\017DIMENSION_GROUP\020\002\022\n\n" - + "\006FILTER\020\003\022\013\n" - + "\007MEASURE\020\004\022\r\n" - + "\tPARAMETER\020\005\032%\n" - + "\020FieldElementType\022\021\n" - + "\004type\030\001 \001(\tB\003\340A\002\"\234\001\n" - + "\014IndexingType\022\035\n" - + "\031INDEXING_TYPE_UNSPECIFIED\020\000\022\026\n" - + "\022INDEXING_TYPE_NONE\020\001\022\034\n" - + "\030INDEXING_TYPE_NON_UNIQUE\020\002\022\030\n" - + "\024INDEXING_TYPE_UNIQUE\020\003\022\035\n" - + "\031INDEXING_TYPE_PRIMARY_KEY\020\004B\r\n" - + "\013system_specB\303\001\n" - + "\037com.google.cloud.datacatalog.v1P\001ZAcloud.google.com/go/datacatalog/apiv1/data" - + "catalogpb;datacatalogpb\252\002\033Google.Cloud.D" - + "ataCatalog.V1\312\002\033Google\\Cloud\\DataCatalog" - + "\\V1\352\002\036Google::Cloud::DataCatalog::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_datacatalog_v1_Schema_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_Schema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Schema_descriptor, - new java.lang.String[] { - "Columns", - }); - internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_ColumnSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor, - new java.lang.String[] { - "Column", - "Type", - "Description", - "Mode", - "DefaultValue", - "OrdinalPosition", - "HighestIndexingType", - "Subcolumns", - "LookerColumnSpec", - "RangeElementType", - "GcRule", - "SystemSpec", - }); - internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_descriptor = - internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ColumnSchema_LookerColumnSpec_descriptor, - new java.lang.String[] { - "Type", - }); - internal_static_google_cloud_datacatalog_v1_ColumnSchema_FieldElementType_descriptor = - internal_static_google_cloud_datacatalog_v1_ColumnSchema_descriptor.getNestedType(1); - internal_static_google_cloud_datacatalog_v1_ColumnSchema_FieldElementType_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ColumnSchema_FieldElementType_descriptor, - new java.lang.String[] { - "Type", - }); - 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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java deleted file mode 100644 index 0c8cd5488421..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Search.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/search.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class Search extends com.google.protobuf.GeneratedFile { - private Search() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Search"); - } - - 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_datacatalog_v1_SearchCatalogResult_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_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/datacatalog/v1/search.pro" - + "to\022\033google.cloud.datacatalog.v1\032\037google/" - + "api/field_behavior.proto\032(google/cloud/d" - + "atacatalog/v1/common.proto\032\037google/proto" - + "buf/timestamp.proto\"\256\003\n\023SearchCatalogRes" - + "ult\022I\n\022search_result_type\030\001 \001(\0162-.google" - + ".cloud.datacatalog.v1.SearchResultType\022\035" - + "\n\025search_result_subtype\030\002 \001(\t\022\036\n\026relativ" - + "e_resource_name\030\003 \001(\t\022\027\n\017linked_resource" - + "\030\004 \001(\t\022/\n\013modify_time\030\007 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022O\n\021integrated_system\030\010 \001" - + "(\0162-.google.cloud.datacatalog.v1.Integra" - + "tedSystemB\003\340A\003H\000\022\037\n\025user_specified_syste" - + "m\030\t \001(\tH\000\022\034\n\024fully_qualified_name\030\n \001(\t\022" - + "\024\n\014display_name\030\014 \001(\t\022\023\n\013description\030\r \001" - + "(\tB\010\n\006system*d\n\020SearchResultType\022\"\n\036SEAR" - + "CH_RESULT_TYPE_UNSPECIFIED\020\000\022\t\n\005ENTRY\020\001\022" - + "\020\n\014TAG_TEMPLATE\020\002\022\017\n\013ENTRY_GROUP\020\003B\303\001\n\037c" - + "om.google.cloud.datacatalog.v1P\001ZAcloud." - + "google.com/go/datacatalog/apiv1/datacata" - + "logpb;datacatalogpb\252\002\033Google.Cloud.DataC" - + "atalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352" - + "\002\036Google::Cloud::DataCatalog::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.datacatalog.v1.Common.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_descriptor, - new java.lang.String[] { - "SearchResultType", - "SearchResultSubtype", - "RelativeResourceName", - "LinkedResource", - "ModifyTime", - "IntegratedSystem", - "UserSpecifiedSystem", - "FullyQualifiedName", - "DisplayName", - "Description", - "System", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.datacatalog.v1.Common.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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java deleted file mode 100644 index 6f5f9816b2c2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequest.java +++ /dev/null @@ -1,3914 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogRequest} - */ -@com.google.protobuf.Generated -public final class SearchCatalogRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogRequest) - SearchCatalogRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SearchCatalogRequest"); - } - - // Use SearchCatalogRequest.newBuilder() to construct. - private SearchCatalogRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SearchCatalogRequest() { - query_ = ""; - pageToken_ = ""; - orderBy_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SearchCatalogRequest.class, - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Builder.class); - } - - public interface ScopeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.SearchCatalogRequest.Scope) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The list of organization IDs to search within.
-     *
-     * To find your organization ID, follow the steps from
-     * [Creating and managing organizations]
-     * (/resource-manager/docs/creating-managing-organization).
-     * 
- * - * repeated string include_org_ids = 2; - * - * @return A list containing the includeOrgIds. - */ - java.util.List getIncludeOrgIdsList(); - - /** - * - * - *
-     * The list of organization IDs to search within.
-     *
-     * To find your organization ID, follow the steps from
-     * [Creating and managing organizations]
-     * (/resource-manager/docs/creating-managing-organization).
-     * 
- * - * repeated string include_org_ids = 2; - * - * @return The count of includeOrgIds. - */ - int getIncludeOrgIdsCount(); - - /** - * - * - *
-     * The list of organization IDs to search within.
-     *
-     * To find your organization ID, follow the steps from
-     * [Creating and managing organizations]
-     * (/resource-manager/docs/creating-managing-organization).
-     * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the element to return. - * @return The includeOrgIds at the given index. - */ - java.lang.String getIncludeOrgIds(int index); - - /** - * - * - *
-     * The list of organization IDs to search within.
-     *
-     * To find your organization ID, follow the steps from
-     * [Creating and managing organizations]
-     * (/resource-manager/docs/creating-managing-organization).
-     * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the value to return. - * @return The bytes of the includeOrgIds at the given index. - */ - com.google.protobuf.ByteString getIncludeOrgIdsBytes(int index); - - /** - * - * - *
-     * The list of project IDs to search within.
-     *
-     * For more information on the distinction between project names, IDs, and
-     * numbers, see [Projects](/docs/overview/#projects).
-     * 
- * - * repeated string include_project_ids = 3; - * - * @return A list containing the includeProjectIds. - */ - java.util.List getIncludeProjectIdsList(); - - /** - * - * - *
-     * The list of project IDs to search within.
-     *
-     * For more information on the distinction between project names, IDs, and
-     * numbers, see [Projects](/docs/overview/#projects).
-     * 
- * - * repeated string include_project_ids = 3; - * - * @return The count of includeProjectIds. - */ - int getIncludeProjectIdsCount(); - - /** - * - * - *
-     * The list of project IDs to search within.
-     *
-     * For more information on the distinction between project names, IDs, and
-     * numbers, see [Projects](/docs/overview/#projects).
-     * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the element to return. - * @return The includeProjectIds at the given index. - */ - java.lang.String getIncludeProjectIds(int index); - - /** - * - * - *
-     * The list of project IDs to search within.
-     *
-     * For more information on the distinction between project names, IDs, and
-     * numbers, see [Projects](/docs/overview/#projects).
-     * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the includeProjectIds at the given index. - */ - com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index); - - /** - * - * - *
-     * If `true`, include Google Cloud public datasets in
-     * search results. By default, they are excluded.
-     *
-     * See [Google Cloud Public Datasets](/public-datasets) for more
-     * information.
-     * 
- * - * bool include_gcp_public_datasets = 7; - * - * @return The includeGcpPublicDatasets. - */ - boolean getIncludeGcpPublicDatasets(); - - /** - * - * - *
-     * Optional. The list of locations to search within. If empty, all locations
-     * are searched.
-     *
-     * Returns an error if any location in the list isn't one of the [Supported
-     * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-     *
-     * If a location is unreachable, its name is returned in the
-     * `SearchCatalogResponse.unreachable` field. To get additional information
-     * on the error, repeat the search request and set the location name as the
-     * value of this parameter.
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the restrictedLocations. - */ - java.util.List getRestrictedLocationsList(); - - /** - * - * - *
-     * Optional. The list of locations to search within. If empty, all locations
-     * are searched.
-     *
-     * Returns an error if any location in the list isn't one of the [Supported
-     * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-     *
-     * If a location is unreachable, its name is returned in the
-     * `SearchCatalogResponse.unreachable` field. To get additional information
-     * on the error, repeat the search request and set the location name as the
-     * value of this parameter.
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of restrictedLocations. - */ - int getRestrictedLocationsCount(); - - /** - * - * - *
-     * Optional. The list of locations to search within. If empty, all locations
-     * are searched.
-     *
-     * Returns an error if any location in the list isn't one of the [Supported
-     * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-     *
-     * If a location is unreachable, its name is returned in the
-     * `SearchCatalogResponse.unreachable` field. To get additional information
-     * on the error, repeat the search request and set the location name as the
-     * value of this parameter.
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The restrictedLocations at the given index. - */ - java.lang.String getRestrictedLocations(int index); - - /** - * - * - *
-     * Optional. The list of locations to search within. If empty, all locations
-     * are searched.
-     *
-     * Returns an error if any location in the list isn't one of the [Supported
-     * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-     *
-     * If a location is unreachable, its name is returned in the
-     * `SearchCatalogResponse.unreachable` field. To get additional information
-     * on the error, repeat the search request and set the location name as the
-     * value of this parameter.
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the restrictedLocations at the given index. - */ - com.google.protobuf.ByteString getRestrictedLocationsBytes(int index); - - /** - * - * - *
-     * Optional. If `true`, search only among starred entries.
-     *
-     * By default, all results are returned, starred or not.
-     * 
- * - * bool starred_only = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The starredOnly. - */ - boolean getStarredOnly(); - - /** - * - * - *
-     * Optional. This field is deprecated. The search mechanism for public and
-     * private tag templates is the same.
-     * 
- * - * - * bool include_public_tag_templates = 19 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @deprecated - * google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.include_public_tag_templates is - * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=754 - * @return The includePublicTagTemplates. - */ - @java.lang.Deprecated - boolean getIncludePublicTagTemplates(); - } - - /** - * - * - *
-   * The criteria that select the subspace used for query matching.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogRequest.Scope} - */ - public static final class Scope extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogRequest.Scope) - ScopeOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Scope"); - } - - // Use Scope.newBuilder() to construct. - private Scope(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Scope() { - includeOrgIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - restrictedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.class, - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.Builder.class); - } - - public static final int INCLUDE_ORG_IDS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList includeOrgIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-     * The list of organization IDs to search within.
-     *
-     * To find your organization ID, follow the steps from
-     * [Creating and managing organizations]
-     * (/resource-manager/docs/creating-managing-organization).
-     * 
- * - * repeated string include_org_ids = 2; - * - * @return A list containing the includeOrgIds. - */ - public com.google.protobuf.ProtocolStringList getIncludeOrgIdsList() { - return includeOrgIds_; - } - - /** - * - * - *
-     * The list of organization IDs to search within.
-     *
-     * To find your organization ID, follow the steps from
-     * [Creating and managing organizations]
-     * (/resource-manager/docs/creating-managing-organization).
-     * 
- * - * repeated string include_org_ids = 2; - * - * @return The count of includeOrgIds. - */ - public int getIncludeOrgIdsCount() { - return includeOrgIds_.size(); - } - - /** - * - * - *
-     * The list of organization IDs to search within.
-     *
-     * To find your organization ID, follow the steps from
-     * [Creating and managing organizations]
-     * (/resource-manager/docs/creating-managing-organization).
-     * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the element to return. - * @return The includeOrgIds at the given index. - */ - public java.lang.String getIncludeOrgIds(int index) { - return includeOrgIds_.get(index); - } - - /** - * - * - *
-     * The list of organization IDs to search within.
-     *
-     * To find your organization ID, follow the steps from
-     * [Creating and managing organizations]
-     * (/resource-manager/docs/creating-managing-organization).
-     * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the value to return. - * @return The bytes of the includeOrgIds at the given index. - */ - public com.google.protobuf.ByteString getIncludeOrgIdsBytes(int index) { - return includeOrgIds_.getByteString(index); - } - - public static final int INCLUDE_PROJECT_IDS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList includeProjectIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-     * The list of project IDs to search within.
-     *
-     * For more information on the distinction between project names, IDs, and
-     * numbers, see [Projects](/docs/overview/#projects).
-     * 
- * - * repeated string include_project_ids = 3; - * - * @return A list containing the includeProjectIds. - */ - public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() { - return includeProjectIds_; - } - - /** - * - * - *
-     * The list of project IDs to search within.
-     *
-     * For more information on the distinction between project names, IDs, and
-     * numbers, see [Projects](/docs/overview/#projects).
-     * 
- * - * repeated string include_project_ids = 3; - * - * @return The count of includeProjectIds. - */ - public int getIncludeProjectIdsCount() { - return includeProjectIds_.size(); - } - - /** - * - * - *
-     * The list of project IDs to search within.
-     *
-     * For more information on the distinction between project names, IDs, and
-     * numbers, see [Projects](/docs/overview/#projects).
-     * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the element to return. - * @return The includeProjectIds at the given index. - */ - public java.lang.String getIncludeProjectIds(int index) { - return includeProjectIds_.get(index); - } - - /** - * - * - *
-     * The list of project IDs to search within.
-     *
-     * For more information on the distinction between project names, IDs, and
-     * numbers, see [Projects](/docs/overview/#projects).
-     * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the includeProjectIds at the given index. - */ - public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) { - return includeProjectIds_.getByteString(index); - } - - public static final int INCLUDE_GCP_PUBLIC_DATASETS_FIELD_NUMBER = 7; - private boolean includeGcpPublicDatasets_ = false; - - /** - * - * - *
-     * If `true`, include Google Cloud public datasets in
-     * search results. By default, they are excluded.
-     *
-     * See [Google Cloud Public Datasets](/public-datasets) for more
-     * information.
-     * 
- * - * bool include_gcp_public_datasets = 7; - * - * @return The includeGcpPublicDatasets. - */ - @java.lang.Override - public boolean getIncludeGcpPublicDatasets() { - return includeGcpPublicDatasets_; - } - - public static final int RESTRICTED_LOCATIONS_FIELD_NUMBER = 16; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList restrictedLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-     * Optional. The list of locations to search within. If empty, all locations
-     * are searched.
-     *
-     * Returns an error if any location in the list isn't one of the [Supported
-     * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-     *
-     * If a location is unreachable, its name is returned in the
-     * `SearchCatalogResponse.unreachable` field. To get additional information
-     * on the error, repeat the search request and set the location name as the
-     * value of this parameter.
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the restrictedLocations. - */ - public com.google.protobuf.ProtocolStringList getRestrictedLocationsList() { - return restrictedLocations_; - } - - /** - * - * - *
-     * Optional. The list of locations to search within. If empty, all locations
-     * are searched.
-     *
-     * Returns an error if any location in the list isn't one of the [Supported
-     * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-     *
-     * If a location is unreachable, its name is returned in the
-     * `SearchCatalogResponse.unreachable` field. To get additional information
-     * on the error, repeat the search request and set the location name as the
-     * value of this parameter.
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of restrictedLocations. - */ - public int getRestrictedLocationsCount() { - return restrictedLocations_.size(); - } - - /** - * - * - *
-     * Optional. The list of locations to search within. If empty, all locations
-     * are searched.
-     *
-     * Returns an error if any location in the list isn't one of the [Supported
-     * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-     *
-     * If a location is unreachable, its name is returned in the
-     * `SearchCatalogResponse.unreachable` field. To get additional information
-     * on the error, repeat the search request and set the location name as the
-     * value of this parameter.
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The restrictedLocations at the given index. - */ - public java.lang.String getRestrictedLocations(int index) { - return restrictedLocations_.get(index); - } - - /** - * - * - *
-     * Optional. The list of locations to search within. If empty, all locations
-     * are searched.
-     *
-     * Returns an error if any location in the list isn't one of the [Supported
-     * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-     *
-     * If a location is unreachable, its name is returned in the
-     * `SearchCatalogResponse.unreachable` field. To get additional information
-     * on the error, repeat the search request and set the location name as the
-     * value of this parameter.
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the restrictedLocations at the given index. - */ - public com.google.protobuf.ByteString getRestrictedLocationsBytes(int index) { - return restrictedLocations_.getByteString(index); - } - - public static final int STARRED_ONLY_FIELD_NUMBER = 18; - private boolean starredOnly_ = false; - - /** - * - * - *
-     * Optional. If `true`, search only among starred entries.
-     *
-     * By default, all results are returned, starred or not.
-     * 
- * - * bool starred_only = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The starredOnly. - */ - @java.lang.Override - public boolean getStarredOnly() { - return starredOnly_; - } - - public static final int INCLUDE_PUBLIC_TAG_TEMPLATES_FIELD_NUMBER = 19; - private boolean includePublicTagTemplates_ = false; - - /** - * - * - *
-     * Optional. This field is deprecated. The search mechanism for public and
-     * private tag templates is the same.
-     * 
- * - * - * bool include_public_tag_templates = 19 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @deprecated - * google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.include_public_tag_templates is - * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=754 - * @return The includePublicTagTemplates. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getIncludePublicTagTemplates() { - return includePublicTagTemplates_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < includeOrgIds_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, includeOrgIds_.getRaw(i)); - } - for (int i = 0; i < includeProjectIds_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, includeProjectIds_.getRaw(i)); - } - if (includeGcpPublicDatasets_ != false) { - output.writeBool(7, includeGcpPublicDatasets_); - } - for (int i = 0; i < restrictedLocations_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString( - output, 16, restrictedLocations_.getRaw(i)); - } - if (starredOnly_ != false) { - output.writeBool(18, starredOnly_); - } - if (includePublicTagTemplates_ != false) { - output.writeBool(19, includePublicTagTemplates_); - } - 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 < includeOrgIds_.size(); i++) { - dataSize += computeStringSizeNoTag(includeOrgIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncludeOrgIdsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < includeProjectIds_.size(); i++) { - dataSize += computeStringSizeNoTag(includeProjectIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncludeProjectIdsList().size(); - } - if (includeGcpPublicDatasets_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, includeGcpPublicDatasets_); - } - { - int dataSize = 0; - for (int i = 0; i < restrictedLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(restrictedLocations_.getRaw(i)); - } - size += dataSize; - size += 2 * getRestrictedLocationsList().size(); - } - if (starredOnly_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(18, starredOnly_); - } - if (includePublicTagTemplates_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize(19, includePublicTagTemplates_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope other = - (com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope) obj; - - if (!getIncludeOrgIdsList().equals(other.getIncludeOrgIdsList())) return false; - if (!getIncludeProjectIdsList().equals(other.getIncludeProjectIdsList())) return false; - if (getIncludeGcpPublicDatasets() != other.getIncludeGcpPublicDatasets()) return false; - if (!getRestrictedLocationsList().equals(other.getRestrictedLocationsList())) return false; - if (getStarredOnly() != other.getStarredOnly()) return false; - if (getIncludePublicTagTemplates() != other.getIncludePublicTagTemplates()) return false; - if (!getUnknownFields().equals(other.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 (getIncludeOrgIdsCount() > 0) { - hash = (37 * hash) + INCLUDE_ORG_IDS_FIELD_NUMBER; - hash = (53 * hash) + getIncludeOrgIdsList().hashCode(); - } - if (getIncludeProjectIdsCount() > 0) { - hash = (37 * hash) + INCLUDE_PROJECT_IDS_FIELD_NUMBER; - hash = (53 * hash) + getIncludeProjectIdsList().hashCode(); - } - hash = (37 * hash) + INCLUDE_GCP_PUBLIC_DATASETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGcpPublicDatasets()); - if (getRestrictedLocationsCount() > 0) { - hash = (37 * hash) + RESTRICTED_LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getRestrictedLocationsList().hashCode(); - } - hash = (37 * hash) + STARRED_ONLY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStarredOnly()); - hash = (37 * hash) + INCLUDE_PUBLIC_TAG_TEMPLATES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludePublicTagTemplates()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 criteria that select the subspace used for query matching.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogRequest.Scope} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.SearchCatalogRequest.Scope) - com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.class, - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - includeOrgIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - includeGcpPublicDatasets_ = false; - restrictedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - starredOnly_ = false; - includePublicTagTemplates_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_Scope_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope build() { - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope buildPartial() { - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope result = - new com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - includeOrgIds_.makeImmutable(); - result.includeOrgIds_ = includeOrgIds_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - includeProjectIds_.makeImmutable(); - result.includeProjectIds_ = includeProjectIds_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.includeGcpPublicDatasets_ = includeGcpPublicDatasets_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - restrictedLocations_.makeImmutable(); - result.restrictedLocations_ = restrictedLocations_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.starredOnly_ = starredOnly_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.includePublicTagTemplates_ = includePublicTagTemplates_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope) { - return mergeFrom((com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope other) { - if (other - == com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.getDefaultInstance()) - return this; - if (!other.includeOrgIds_.isEmpty()) { - if (includeOrgIds_.isEmpty()) { - includeOrgIds_ = other.includeOrgIds_; - bitField0_ |= 0x00000001; - } else { - ensureIncludeOrgIdsIsMutable(); - includeOrgIds_.addAll(other.includeOrgIds_); - } - onChanged(); - } - if (!other.includeProjectIds_.isEmpty()) { - if (includeProjectIds_.isEmpty()) { - includeProjectIds_ = other.includeProjectIds_; - bitField0_ |= 0x00000002; - } else { - ensureIncludeProjectIdsIsMutable(); - includeProjectIds_.addAll(other.includeProjectIds_); - } - onChanged(); - } - if (other.getIncludeGcpPublicDatasets() != false) { - setIncludeGcpPublicDatasets(other.getIncludeGcpPublicDatasets()); - } - if (!other.restrictedLocations_.isEmpty()) { - if (restrictedLocations_.isEmpty()) { - restrictedLocations_ = other.restrictedLocations_; - bitField0_ |= 0x00000008; - } else { - ensureRestrictedLocationsIsMutable(); - restrictedLocations_.addAll(other.restrictedLocations_); - } - onChanged(); - } - if (other.getStarredOnly() != false) { - setStarredOnly(other.getStarredOnly()); - } - if (other.getIncludePublicTagTemplates() != false) { - setIncludePublicTagTemplates(other.getIncludePublicTagTemplates()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIncludeOrgIdsIsMutable(); - includeOrgIds_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIncludeProjectIdsIsMutable(); - includeProjectIds_.add(s); - break; - } // case 26 - case 56: - { - includeGcpPublicDatasets_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 56 - case 130: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureRestrictedLocationsIsMutable(); - restrictedLocations_.add(s); - break; - } // case 130 - case 144: - { - starredOnly_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 144 - case 152: - { - includePublicTagTemplates_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 152 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - 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 includeOrgIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureIncludeOrgIdsIsMutable() { - if (!includeOrgIds_.isModifiable()) { - includeOrgIds_ = new com.google.protobuf.LazyStringArrayList(includeOrgIds_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
-       * The list of organization IDs to search within.
-       *
-       * To find your organization ID, follow the steps from
-       * [Creating and managing organizations]
-       * (/resource-manager/docs/creating-managing-organization).
-       * 
- * - * repeated string include_org_ids = 2; - * - * @return A list containing the includeOrgIds. - */ - public com.google.protobuf.ProtocolStringList getIncludeOrgIdsList() { - includeOrgIds_.makeImmutable(); - return includeOrgIds_; - } - - /** - * - * - *
-       * The list of organization IDs to search within.
-       *
-       * To find your organization ID, follow the steps from
-       * [Creating and managing organizations]
-       * (/resource-manager/docs/creating-managing-organization).
-       * 
- * - * repeated string include_org_ids = 2; - * - * @return The count of includeOrgIds. - */ - public int getIncludeOrgIdsCount() { - return includeOrgIds_.size(); - } - - /** - * - * - *
-       * The list of organization IDs to search within.
-       *
-       * To find your organization ID, follow the steps from
-       * [Creating and managing organizations]
-       * (/resource-manager/docs/creating-managing-organization).
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the element to return. - * @return The includeOrgIds at the given index. - */ - public java.lang.String getIncludeOrgIds(int index) { - return includeOrgIds_.get(index); - } - - /** - * - * - *
-       * The list of organization IDs to search within.
-       *
-       * To find your organization ID, follow the steps from
-       * [Creating and managing organizations]
-       * (/resource-manager/docs/creating-managing-organization).
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the value to return. - * @return The bytes of the includeOrgIds at the given index. - */ - public com.google.protobuf.ByteString getIncludeOrgIdsBytes(int index) { - return includeOrgIds_.getByteString(index); - } - - /** - * - * - *
-       * The list of organization IDs to search within.
-       *
-       * To find your organization ID, follow the steps from
-       * [Creating and managing organizations]
-       * (/resource-manager/docs/creating-managing-organization).
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index to set the value at. - * @param value The includeOrgIds to set. - * @return This builder for chaining. - */ - public Builder setIncludeOrgIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludeOrgIdsIsMutable(); - includeOrgIds_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of organization IDs to search within.
-       *
-       * To find your organization ID, follow the steps from
-       * [Creating and managing organizations]
-       * (/resource-manager/docs/creating-managing-organization).
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param value The includeOrgIds to add. - * @return This builder for chaining. - */ - public Builder addIncludeOrgIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludeOrgIdsIsMutable(); - includeOrgIds_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of organization IDs to search within.
-       *
-       * To find your organization ID, follow the steps from
-       * [Creating and managing organizations]
-       * (/resource-manager/docs/creating-managing-organization).
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param values The includeOrgIds to add. - * @return This builder for chaining. - */ - public Builder addAllIncludeOrgIds(java.lang.Iterable values) { - ensureIncludeOrgIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeOrgIds_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of organization IDs to search within.
-       *
-       * To find your organization ID, follow the steps from
-       * [Creating and managing organizations]
-       * (/resource-manager/docs/creating-managing-organization).
-       * 
- * - * repeated string include_org_ids = 2; - * - * @return This builder for chaining. - */ - public Builder clearIncludeOrgIds() { - includeOrgIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of organization IDs to search within.
-       *
-       * To find your organization ID, follow the steps from
-       * [Creating and managing organizations]
-       * (/resource-manager/docs/creating-managing-organization).
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param value The bytes of the includeOrgIds to add. - * @return This builder for chaining. - */ - public Builder addIncludeOrgIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIncludeOrgIdsIsMutable(); - includeOrgIds_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList includeProjectIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureIncludeProjectIdsIsMutable() { - if (!includeProjectIds_.isModifiable()) { - includeProjectIds_ = new com.google.protobuf.LazyStringArrayList(includeProjectIds_); - } - bitField0_ |= 0x00000002; - } - - /** - * - * - *
-       * The list of project IDs to search within.
-       *
-       * For more information on the distinction between project names, IDs, and
-       * numbers, see [Projects](/docs/overview/#projects).
-       * 
- * - * repeated string include_project_ids = 3; - * - * @return A list containing the includeProjectIds. - */ - public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() { - includeProjectIds_.makeImmutable(); - return includeProjectIds_; - } - - /** - * - * - *
-       * The list of project IDs to search within.
-       *
-       * For more information on the distinction between project names, IDs, and
-       * numbers, see [Projects](/docs/overview/#projects).
-       * 
- * - * repeated string include_project_ids = 3; - * - * @return The count of includeProjectIds. - */ - public int getIncludeProjectIdsCount() { - return includeProjectIds_.size(); - } - - /** - * - * - *
-       * The list of project IDs to search within.
-       *
-       * For more information on the distinction between project names, IDs, and
-       * numbers, see [Projects](/docs/overview/#projects).
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the element to return. - * @return The includeProjectIds at the given index. - */ - public java.lang.String getIncludeProjectIds(int index) { - return includeProjectIds_.get(index); - } - - /** - * - * - *
-       * The list of project IDs to search within.
-       *
-       * For more information on the distinction between project names, IDs, and
-       * numbers, see [Projects](/docs/overview/#projects).
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the includeProjectIds at the given index. - */ - public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) { - return includeProjectIds_.getByteString(index); - } - - /** - * - * - *
-       * The list of project IDs to search within.
-       *
-       * For more information on the distinction between project names, IDs, and
-       * numbers, see [Projects](/docs/overview/#projects).
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index to set the value at. - * @param value The includeProjectIds to set. - * @return This builder for chaining. - */ - public Builder setIncludeProjectIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludeProjectIdsIsMutable(); - includeProjectIds_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of project IDs to search within.
-       *
-       * For more information on the distinction between project names, IDs, and
-       * numbers, see [Projects](/docs/overview/#projects).
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param value The includeProjectIds to add. - * @return This builder for chaining. - */ - public Builder addIncludeProjectIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludeProjectIdsIsMutable(); - includeProjectIds_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of project IDs to search within.
-       *
-       * For more information on the distinction between project names, IDs, and
-       * numbers, see [Projects](/docs/overview/#projects).
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param values The includeProjectIds to add. - * @return This builder for chaining. - */ - public Builder addAllIncludeProjectIds(java.lang.Iterable values) { - ensureIncludeProjectIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeProjectIds_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of project IDs to search within.
-       *
-       * For more information on the distinction between project names, IDs, and
-       * numbers, see [Projects](/docs/overview/#projects).
-       * 
- * - * repeated string include_project_ids = 3; - * - * @return This builder for chaining. - */ - public Builder clearIncludeProjectIds() { - includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of project IDs to search within.
-       *
-       * For more information on the distinction between project names, IDs, and
-       * numbers, see [Projects](/docs/overview/#projects).
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param value The bytes of the includeProjectIds to add. - * @return This builder for chaining. - */ - public Builder addIncludeProjectIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIncludeProjectIdsIsMutable(); - includeProjectIds_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean includeGcpPublicDatasets_; - - /** - * - * - *
-       * If `true`, include Google Cloud public datasets in
-       * search results. By default, they are excluded.
-       *
-       * See [Google Cloud Public Datasets](/public-datasets) for more
-       * information.
-       * 
- * - * bool include_gcp_public_datasets = 7; - * - * @return The includeGcpPublicDatasets. - */ - @java.lang.Override - public boolean getIncludeGcpPublicDatasets() { - return includeGcpPublicDatasets_; - } - - /** - * - * - *
-       * If `true`, include Google Cloud public datasets in
-       * search results. By default, they are excluded.
-       *
-       * See [Google Cloud Public Datasets](/public-datasets) for more
-       * information.
-       * 
- * - * bool include_gcp_public_datasets = 7; - * - * @param value The includeGcpPublicDatasets to set. - * @return This builder for chaining. - */ - public Builder setIncludeGcpPublicDatasets(boolean value) { - - includeGcpPublicDatasets_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-       * If `true`, include Google Cloud public datasets in
-       * search results. By default, they are excluded.
-       *
-       * See [Google Cloud Public Datasets](/public-datasets) for more
-       * information.
-       * 
- * - * bool include_gcp_public_datasets = 7; - * - * @return This builder for chaining. - */ - public Builder clearIncludeGcpPublicDatasets() { - bitField0_ = (bitField0_ & ~0x00000004); - includeGcpPublicDatasets_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList restrictedLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureRestrictedLocationsIsMutable() { - if (!restrictedLocations_.isModifiable()) { - restrictedLocations_ = new com.google.protobuf.LazyStringArrayList(restrictedLocations_); - } - bitField0_ |= 0x00000008; - } - - /** - * - * - *
-       * Optional. The list of locations to search within. If empty, all locations
-       * are searched.
-       *
-       * Returns an error if any location in the list isn't one of the [Supported
-       * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-       *
-       * If a location is unreachable, its name is returned in the
-       * `SearchCatalogResponse.unreachable` field. To get additional information
-       * on the error, repeat the search request and set the location name as the
-       * value of this parameter.
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the restrictedLocations. - */ - public com.google.protobuf.ProtocolStringList getRestrictedLocationsList() { - restrictedLocations_.makeImmutable(); - return restrictedLocations_; - } - - /** - * - * - *
-       * Optional. The list of locations to search within. If empty, all locations
-       * are searched.
-       *
-       * Returns an error if any location in the list isn't one of the [Supported
-       * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-       *
-       * If a location is unreachable, its name is returned in the
-       * `SearchCatalogResponse.unreachable` field. To get additional information
-       * on the error, repeat the search request and set the location name as the
-       * value of this parameter.
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of restrictedLocations. - */ - public int getRestrictedLocationsCount() { - return restrictedLocations_.size(); - } - - /** - * - * - *
-       * Optional. The list of locations to search within. If empty, all locations
-       * are searched.
-       *
-       * Returns an error if any location in the list isn't one of the [Supported
-       * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-       *
-       * If a location is unreachable, its name is returned in the
-       * `SearchCatalogResponse.unreachable` field. To get additional information
-       * on the error, repeat the search request and set the location name as the
-       * value of this parameter.
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The restrictedLocations at the given index. - */ - public java.lang.String getRestrictedLocations(int index) { - return restrictedLocations_.get(index); - } - - /** - * - * - *
-       * Optional. The list of locations to search within. If empty, all locations
-       * are searched.
-       *
-       * Returns an error if any location in the list isn't one of the [Supported
-       * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-       *
-       * If a location is unreachable, its name is returned in the
-       * `SearchCatalogResponse.unreachable` field. To get additional information
-       * on the error, repeat the search request and set the location name as the
-       * value of this parameter.
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the restrictedLocations at the given index. - */ - public com.google.protobuf.ByteString getRestrictedLocationsBytes(int index) { - return restrictedLocations_.getByteString(index); - } - - /** - * - * - *
-       * Optional. The list of locations to search within. If empty, all locations
-       * are searched.
-       *
-       * Returns an error if any location in the list isn't one of the [Supported
-       * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-       *
-       * If a location is unreachable, its name is returned in the
-       * `SearchCatalogResponse.unreachable` field. To get additional information
-       * on the error, repeat the search request and set the location name as the
-       * value of this parameter.
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The restrictedLocations to set. - * @return This builder for chaining. - */ - public Builder setRestrictedLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedLocationsIsMutable(); - restrictedLocations_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. The list of locations to search within. If empty, all locations
-       * are searched.
-       *
-       * Returns an error if any location in the list isn't one of the [Supported
-       * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-       *
-       * If a location is unreachable, its name is returned in the
-       * `SearchCatalogResponse.unreachable` field. To get additional information
-       * on the error, repeat the search request and set the location name as the
-       * value of this parameter.
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The restrictedLocations to add. - * @return This builder for chaining. - */ - public Builder addRestrictedLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedLocationsIsMutable(); - restrictedLocations_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. The list of locations to search within. If empty, all locations
-       * are searched.
-       *
-       * Returns an error if any location in the list isn't one of the [Supported
-       * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-       *
-       * If a location is unreachable, its name is returned in the
-       * `SearchCatalogResponse.unreachable` field. To get additional information
-       * on the error, repeat the search request and set the location name as the
-       * value of this parameter.
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The restrictedLocations to add. - * @return This builder for chaining. - */ - public Builder addAllRestrictedLocations(java.lang.Iterable values) { - ensureRestrictedLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restrictedLocations_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. The list of locations to search within. If empty, all locations
-       * are searched.
-       *
-       * Returns an error if any location in the list isn't one of the [Supported
-       * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-       *
-       * If a location is unreachable, its name is returned in the
-       * `SearchCatalogResponse.unreachable` field. To get additional information
-       * on the error, repeat the search request and set the location name as the
-       * value of this parameter.
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearRestrictedLocations() { - restrictedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. The list of locations to search within. If empty, all locations
-       * are searched.
-       *
-       * Returns an error if any location in the list isn't one of the [Supported
-       * regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions).
-       *
-       * If a location is unreachable, its name is returned in the
-       * `SearchCatalogResponse.unreachable` field. To get additional information
-       * on the error, repeat the search request and set the location name as the
-       * value of this parameter.
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the restrictedLocations to add. - * @return This builder for chaining. - */ - public Builder addRestrictedLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRestrictedLocationsIsMutable(); - restrictedLocations_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private boolean starredOnly_; - - /** - * - * - *
-       * Optional. If `true`, search only among starred entries.
-       *
-       * By default, all results are returned, starred or not.
-       * 
- * - * bool starred_only = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The starredOnly. - */ - @java.lang.Override - public boolean getStarredOnly() { - return starredOnly_; - } - - /** - * - * - *
-       * Optional. If `true`, search only among starred entries.
-       *
-       * By default, all results are returned, starred or not.
-       * 
- * - * bool starred_only = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The starredOnly to set. - * @return This builder for chaining. - */ - public Builder setStarredOnly(boolean value) { - - starredOnly_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. If `true`, search only among starred entries.
-       *
-       * By default, all results are returned, starred or not.
-       * 
- * - * bool starred_only = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearStarredOnly() { - bitField0_ = (bitField0_ & ~0x00000010); - starredOnly_ = false; - onChanged(); - return this; - } - - private boolean includePublicTagTemplates_; - - /** - * - * - *
-       * Optional. This field is deprecated. The search mechanism for public and
-       * private tag templates is the same.
-       * 
- * - * - * bool include_public_tag_templates = 19 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @deprecated - * google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.include_public_tag_templates is - * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=754 - * @return The includePublicTagTemplates. - */ - @java.lang.Override - @java.lang.Deprecated - public boolean getIncludePublicTagTemplates() { - return includePublicTagTemplates_; - } - - /** - * - * - *
-       * Optional. This field is deprecated. The search mechanism for public and
-       * private tag templates is the same.
-       * 
- * - * - * bool include_public_tag_templates = 19 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @deprecated - * google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.include_public_tag_templates is - * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=754 - * @param value The includePublicTagTemplates to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder setIncludePublicTagTemplates(boolean value) { - - includePublicTagTemplates_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. This field is deprecated. The search mechanism for public and
-       * private tag templates is the same.
-       * 
- * - * - * bool include_public_tag_templates = 19 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; - * - * - * @deprecated - * google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.include_public_tag_templates is - * deprecated. See google/cloud/datacatalog/v1/datacatalog.proto;l=754 - * @return This builder for chaining. - */ - @java.lang.Deprecated - public Builder clearIncludePublicTagTemplates() { - bitField0_ = (bitField0_ & ~0x00000020); - includePublicTagTemplates_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.SearchCatalogRequest.Scope) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.SearchCatalogRequest.Scope) - private static final com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope(); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Scope parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int SCOPE_FIELD_NUMBER = 6; - private com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope_; - - /** - * - * - *
-   * Required. The scope of this search request.
-   *
-   * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-   * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-   * the request returns an error.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scope field is set. - */ - @java.lang.Override - public boolean hasScope() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The scope of this search request.
-   *
-   * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-   * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-   * the request returns an error.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scope. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope getScope() { - return scope_ == null - ? com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.getDefaultInstance() - : scope_; - } - - /** - * - * - *
-   * Required. The scope of this search request.
-   *
-   * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-   * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-   * the request returns an error.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder getScopeOrBuilder() { - return scope_ == null - ? com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.getDefaultInstance() - : scope_; - } - - public static final int QUERY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object query_ = ""; - - /** - * - * - *
-   * Optional. The query string with a minimum of 3 characters and specific
-   * syntax. For more information, see [Data Catalog search
-   * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-   *
-   * An empty query string returns all data assets (in the specified scope)
-   * that you have access to.
-   *
-   * A query string can be a simple `xyz` or qualified by predicates:
-   *
-   * * `name:x`
-   * * `column:y`
-   * * `description:z`
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The query. - */ - @java.lang.Override - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } - } - - /** - * - * - *
-   * Optional. The query string with a minimum of 3 characters and specific
-   * syntax. For more information, see [Data Catalog search
-   * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-   *
-   * An empty query string returns all data assets (in the specified scope)
-   * that you have access to.
-   *
-   * A query string can be a simple `xyz` or qualified by predicates:
-   *
-   * * `name:x`
-   * * `column:y`
-   * * `description:z`
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for query. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * Upper bound on the number of results you can get in a single response.
-   *
-   * Can't be negative or 0, defaults to 10 in this case.
-   * The maximum number is 1000. If exceeded, throws an "invalid argument"
-   * exception.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - - /** - * - * - *
-   * Optional. Pagination token that, if specified, returns the next page of
-   * search results. If empty, returns the first page.
-   *
-   * This token is returned in the
-   * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token]
-   * field of the response to a previous
-   * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]
-   * 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. Pagination token that, if specified, returns the next page of
-   * search results. If empty, returns the first page.
-   *
-   * This token is returned in the
-   * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token]
-   * field of the response to a previous
-   * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]
-   * 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 = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object orderBy_ = ""; - - /** - * - * - *
-   * Specifies the order of results.
-   *
-   * Currently supported case-sensitive values are:
-   *
-   * * `relevance` that can only be descending
-   * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
-   * * `default` that can only be descending
-   *
-   * Search queries don't guarantee full recall. Results that match your query
-   * might not be returned, even in subsequent result pages. Additionally,
-   * returned (and not returned) results can vary if you repeat search queries.
-   * If you are experiencing recall issues and you don't have to fetch the
-   * results in any specific order, consider setting this parameter to
-   * `default`.
-   *
-   * If this parameter is omitted, it defaults to the descending `relevance`.
-   * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - @java.lang.Override - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - - /** - * - * - *
-   * Specifies the order of results.
-   *
-   * Currently supported case-sensitive values are:
-   *
-   * * `relevance` that can only be descending
-   * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
-   * * `default` that can only be descending
-   *
-   * Search queries don't guarantee full recall. Results that match your query
-   * might not be returned, even in subsequent result pages. Additionally,
-   * returned (and not returned) results can vary if you repeat search queries.
-   * If you are experiencing recall issues and you don't have to fetch the
-   * results in any specific order, consider setting this parameter to
-   * `default`.
-   *
-   * If this parameter is omitted, it defaults to the descending `relevance`.
-   * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADMIN_SEARCH_FIELD_NUMBER = 17; - private boolean adminSearch_ = false; - - /** - * - * - *
-   * Optional. If set, use searchAll permission granted on organizations from
-   * `include_org_ids` and projects from `include_project_ids` instead of the
-   * fine grained per resource permissions when filtering the search results.
-   * The only allowed `order_by` criteria for admin_search mode is `default`.
-   * Using this flags guarantees a full recall of the search results.
-   * 
- * - * bool admin_search = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The adminSearch. - */ - @java.lang.Override - public boolean getAdminSearch() { - return adminSearch_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(query_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, query_); - } - 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, 5, orderBy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(6, getScope()); - } - if (adminSearch_ != false) { - output.writeBool(17, adminSearch_); - } - 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(query_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, query_); - } - 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(5, orderBy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getScope()); - } - if (adminSearch_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(17, adminSearch_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.SearchCatalogRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.SearchCatalogRequest other = - (com.google.cloud.datacatalog.v1.SearchCatalogRequest) obj; - - if (hasScope() != other.hasScope()) return false; - if (hasScope()) { - if (!getScope().equals(other.getScope())) return false; - } - if (!getQuery().equals(other.getQuery())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getOrderBy().equals(other.getOrderBy())) return false; - if (getAdminSearch() != other.getAdminSearch()) return false; - if (!getUnknownFields().equals(other.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 (hasScope()) { - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + getScope().hashCode(); - } - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; - hash = (53 * hash) + getOrderBy().hashCode(); - hash = (37 * hash) + ADMIN_SEARCH_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAdminSearch()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.SearchCatalogRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.SearchCatalogRequest) - com.google.cloud.datacatalog.v1.SearchCatalogRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SearchCatalogRequest.class, - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.SearchCatalogRequest.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(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - scope_ = null; - if (scopeBuilder_ != null) { - scopeBuilder_.dispose(); - scopeBuilder_ = null; - } - query_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - adminSearch_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.SearchCatalogRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogRequest build() { - com.google.cloud.datacatalog.v1.SearchCatalogRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogRequest buildPartial() { - com.google.cloud.datacatalog.v1.SearchCatalogRequest result = - new com.google.cloud.datacatalog.v1.SearchCatalogRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.SearchCatalogRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.query_ = query_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.pageToken_ = pageToken_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.orderBy_ = orderBy_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.adminSearch_ = adminSearch_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.SearchCatalogRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.SearchCatalogRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.SearchCatalogRequest other) { - if (other == com.google.cloud.datacatalog.v1.SearchCatalogRequest.getDefaultInstance()) - return this; - if (other.hasScope()) { - mergeScope(other.getScope()); - } - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getOrderBy().isEmpty()) { - orderBy_ = other.orderBy_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getAdminSearch() != false) { - setAdminSearch(other.getAdminSearch()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(internalGetScopeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 50 - case 136: - { - adminSearch_ = input.readBool(); - bitField0_ |= 0x00000020; - break; - } // case 136 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - 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.datacatalog.v1.SearchCatalogRequest.Scope scope_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope, - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.Builder, - com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder> - scopeBuilder_; - - /** - * - * - *
-     * Required. The scope of this search request.
-     *
-     * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-     * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-     * the request returns an error.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scope field is set. - */ - public boolean hasScope() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Required. The scope of this search request.
-     *
-     * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-     * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-     * the request returns an error.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scope. - */ - public com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope getScope() { - if (scopeBuilder_ == null) { - return scope_ == null - ? com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.getDefaultInstance() - : scope_; - } else { - return scopeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The scope of this search request.
-     *
-     * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-     * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-     * the request returns an error.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setScope(com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope value) { - if (scopeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scope_ = value; - } else { - scopeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The scope of this search request.
-     *
-     * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-     * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-     * the request returns an error.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setScope( - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.Builder builderForValue) { - if (scopeBuilder_ == null) { - scope_ = builderForValue.build(); - } else { - scopeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The scope of this search request.
-     *
-     * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-     * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-     * the request returns an error.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeScope(com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope value) { - if (scopeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && scope_ != null - && scope_ - != com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope - .getDefaultInstance()) { - getScopeBuilder().mergeFrom(value); - } else { - scope_ = value; - } - } else { - scopeBuilder_.mergeFrom(value); - } - if (scope_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The scope of this search request.
-     *
-     * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-     * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-     * the request returns an error.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000001); - scope_ = null; - if (scopeBuilder_ != null) { - scopeBuilder_.dispose(); - scopeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The scope of this search request.
-     *
-     * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-     * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-     * the request returns an error.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.Builder getScopeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetScopeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The scope of this search request.
-     *
-     * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-     * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-     * the request returns an error.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder getScopeOrBuilder() { - if (scopeBuilder_ != null) { - return scopeBuilder_.getMessageOrBuilder(); - } else { - return scope_ == null - ? com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.getDefaultInstance() - : scope_; - } - } - - /** - * - * - *
-     * Required. The scope of this search request.
-     *
-     * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-     * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-     * the request returns an error.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope, - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.Builder, - com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder> - internalGetScopeFieldBuilder() { - if (scopeBuilder_ == null) { - scopeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope, - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope.Builder, - com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder>( - getScope(), getParentForChildren(), isClean()); - scope_ = null; - } - return scopeBuilder_; - } - - private java.lang.Object query_ = ""; - - /** - * - * - *
-     * Optional. The query string with a minimum of 3 characters and specific
-     * syntax. For more information, see [Data Catalog search
-     * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-     *
-     * An empty query string returns all data assets (in the specified scope)
-     * that you have access to.
-     *
-     * A query string can be a simple `xyz` or qualified by predicates:
-     *
-     * * `name:x`
-     * * `column:y`
-     * * `description:z`
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The query. - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Optional. The query string with a minimum of 3 characters and specific
-     * syntax. For more information, see [Data Catalog search
-     * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-     *
-     * An empty query string returns all data assets (in the specified scope)
-     * that you have access to.
-     *
-     * A query string can be a simple `xyz` or qualified by predicates:
-     *
-     * * `name:x`
-     * * `column:y`
-     * * `description:z`
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for query. - */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Optional. The query string with a minimum of 3 characters and specific
-     * syntax. For more information, see [Data Catalog search
-     * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-     *
-     * An empty query string returns all data assets (in the specified scope)
-     * that you have access to.
-     *
-     * A query string can be a simple `xyz` or qualified by predicates:
-     *
-     * * `name:x`
-     * * `column:y`
-     * * `description:z`
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The query to set. - * @return This builder for chaining. - */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - query_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The query string with a minimum of 3 characters and specific
-     * syntax. For more information, see [Data Catalog search
-     * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-     *
-     * An empty query string returns all data assets (in the specified scope)
-     * that you have access to.
-     *
-     * A query string can be a simple `xyz` or qualified by predicates:
-     *
-     * * `name:x`
-     * * `column:y`
-     * * `description:z`
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearQuery() { - query_ = getDefaultInstance().getQuery(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The query string with a minimum of 3 characters and specific
-     * syntax. For more information, see [Data Catalog search
-     * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-     *
-     * An empty query string returns all data assets (in the specified scope)
-     * that you have access to.
-     *
-     * A query string can be a simple `xyz` or qualified by predicates:
-     *
-     * * `name:x`
-     * * `column:y`
-     * * `description:z`
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for query to set. - * @return This builder for chaining. - */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - query_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int pageSize_; - - /** - * - * - *
-     * Upper bound on the number of results you can get in a single response.
-     *
-     * Can't be negative or 0, defaults to 10 in this case.
-     * The maximum number is 1000. If exceeded, throws an "invalid argument"
-     * exception.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
-     * Upper bound on the number of results you can get in a single response.
-     *
-     * Can't be negative or 0, defaults to 10 in this case.
-     * The maximum number is 1000. If exceeded, throws an "invalid argument"
-     * exception.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Upper bound on the number of results you can get in a single response.
-     *
-     * Can't be negative or 0, defaults to 10 in this case.
-     * The maximum number is 1000. If exceeded, throws an "invalid argument"
-     * exception.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000004); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - - /** - * - * - *
-     * Optional. Pagination token that, if specified, returns the next page of
-     * search results. If empty, returns the first page.
-     *
-     * This token is returned in the
-     * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token]
-     * field of the response to a previous
-     * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]
-     * 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. Pagination token that, if specified, returns the next page of
-     * search results. If empty, returns the first page.
-     *
-     * This token is returned in the
-     * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token]
-     * field of the response to a previous
-     * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]
-     * 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. Pagination token that, if specified, returns the next page of
-     * search results. If empty, returns the first page.
-     *
-     * This token is returned in the
-     * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token]
-     * field of the response to a previous
-     * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]
-     * 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_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Pagination token that, if specified, returns the next page of
-     * search results. If empty, returns the first page.
-     *
-     * This token is returned in the
-     * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token]
-     * field of the response to a previous
-     * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]
-     * call.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Pagination token that, if specified, returns the next page of
-     * search results. If empty, returns the first page.
-     *
-     * This token is returned in the
-     * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token]
-     * field of the response to a previous
-     * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]
-     * 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_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - - /** - * - * - *
-     * Specifies the order of results.
-     *
-     * Currently supported case-sensitive values are:
-     *
-     * * `relevance` that can only be descending
-     * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
-     * * `default` that can only be descending
-     *
-     * Search queries don't guarantee full recall. Results that match your query
-     * might not be returned, even in subsequent result pages. Additionally,
-     * returned (and not returned) results can vary if you repeat search queries.
-     * If you are experiencing recall issues and you don't have to fetch the
-     * results in any specific order, consider setting this parameter to
-     * `default`.
-     *
-     * If this parameter is omitted, it defaults to the descending `relevance`.
-     * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Specifies the order of results.
-     *
-     * Currently supported case-sensitive values are:
-     *
-     * * `relevance` that can only be descending
-     * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
-     * * `default` that can only be descending
-     *
-     * Search queries don't guarantee full recall. Results that match your query
-     * might not be returned, even in subsequent result pages. Additionally,
-     * returned (and not returned) results can vary if you repeat search queries.
-     * If you are experiencing recall issues and you don't have to fetch the
-     * results in any specific order, consider setting this parameter to
-     * `default`.
-     *
-     * If this parameter is omitted, it defaults to the descending `relevance`.
-     * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Specifies the order of results.
-     *
-     * Currently supported case-sensitive values are:
-     *
-     * * `relevance` that can only be descending
-     * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
-     * * `default` that can only be descending
-     *
-     * Search queries don't guarantee full recall. Results that match your query
-     * might not be returned, even in subsequent result pages. Additionally,
-     * returned (and not returned) results can vary if you repeat search queries.
-     * If you are experiencing recall issues and you don't have to fetch the
-     * results in any specific order, consider setting this parameter to
-     * `default`.
-     *
-     * If this parameter is omitted, it defaults to the descending `relevance`.
-     * 
- * - * string order_by = 5; - * - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - orderBy_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Specifies the order of results.
-     *
-     * Currently supported case-sensitive values are:
-     *
-     * * `relevance` that can only be descending
-     * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
-     * * `default` that can only be descending
-     *
-     * Search queries don't guarantee full recall. Results that match your query
-     * might not be returned, even in subsequent result pages. Additionally,
-     * returned (and not returned) results can vary if you repeat search queries.
-     * If you are experiencing recall issues and you don't have to fetch the
-     * results in any specific order, consider setting this parameter to
-     * `default`.
-     *
-     * If this parameter is omitted, it defaults to the descending `relevance`.
-     * 
- * - * string order_by = 5; - * - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - /** - * - * - *
-     * Specifies the order of results.
-     *
-     * Currently supported case-sensitive values are:
-     *
-     * * `relevance` that can only be descending
-     * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
-     * * `default` that can only be descending
-     *
-     * Search queries don't guarantee full recall. Results that match your query
-     * might not be returned, even in subsequent result pages. Additionally,
-     * returned (and not returned) results can vary if you repeat search queries.
-     * If you are experiencing recall issues and you don't have to fetch the
-     * results in any specific order, consider setting this parameter to
-     * `default`.
-     *
-     * If this parameter is omitted, it defaults to the descending `relevance`.
-     * 
- * - * string order_by = 5; - * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - orderBy_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private boolean adminSearch_; - - /** - * - * - *
-     * Optional. If set, use searchAll permission granted on organizations from
-     * `include_org_ids` and projects from `include_project_ids` instead of the
-     * fine grained per resource permissions when filtering the search results.
-     * The only allowed `order_by` criteria for admin_search mode is `default`.
-     * Using this flags guarantees a full recall of the search results.
-     * 
- * - * bool admin_search = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The adminSearch. - */ - @java.lang.Override - public boolean getAdminSearch() { - return adminSearch_; - } - - /** - * - * - *
-     * Optional. If set, use searchAll permission granted on organizations from
-     * `include_org_ids` and projects from `include_project_ids` instead of the
-     * fine grained per resource permissions when filtering the search results.
-     * The only allowed `order_by` criteria for admin_search mode is `default`.
-     * Using this flags guarantees a full recall of the search results.
-     * 
- * - * bool admin_search = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The adminSearch to set. - * @return This builder for chaining. - */ - public Builder setAdminSearch(boolean value) { - - adminSearch_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. If set, use searchAll permission granted on organizations from
-     * `include_org_ids` and projects from `include_project_ids` instead of the
-     * fine grained per resource permissions when filtering the search results.
-     * The only allowed `order_by` criteria for admin_search mode is `default`.
-     * Using this flags guarantees a full recall of the search results.
-     * 
- * - * bool admin_search = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearAdminSearch() { - bitField0_ = (bitField0_ & ~0x00000020); - adminSearch_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.SearchCatalogRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.SearchCatalogRequest) - private static final com.google.cloud.datacatalog.v1.SearchCatalogRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.SearchCatalogRequest(); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchCatalogRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java deleted file mode 100644 index d7f3185be2ab..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogRequestOrBuilder.java +++ /dev/null @@ -1,261 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface SearchCatalogRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.SearchCatalogRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The scope of this search request.
-   *
-   * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-   * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-   * the request returns an error.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scope field is set. - */ - boolean hasScope(); - - /** - * - * - *
-   * Required. The scope of this search request.
-   *
-   * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-   * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-   * the request returns an error.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scope. - */ - com.google.cloud.datacatalog.v1.SearchCatalogRequest.Scope getScope(); - - /** - * - * - *
-   * Required. The scope of this search request.
-   *
-   * The `scope` is invalid if `include_org_ids`, `include_project_ids` are
-   * empty AND `include_gcp_public_datasets` is set to `false`. In this case,
-   * the request returns an error.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.SearchCatalogRequest.ScopeOrBuilder getScopeOrBuilder(); - - /** - * - * - *
-   * Optional. The query string with a minimum of 3 characters and specific
-   * syntax. For more information, see [Data Catalog search
-   * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-   *
-   * An empty query string returns all data assets (in the specified scope)
-   * that you have access to.
-   *
-   * A query string can be a simple `xyz` or qualified by predicates:
-   *
-   * * `name:x`
-   * * `column:y`
-   * * `description:z`
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The query. - */ - java.lang.String getQuery(); - - /** - * - * - *
-   * Optional. The query string with a minimum of 3 characters and specific
-   * syntax. For more information, see [Data Catalog search
-   * syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference).
-   *
-   * An empty query string returns all data assets (in the specified scope)
-   * that you have access to.
-   *
-   * A query string can be a simple `xyz` or qualified by predicates:
-   *
-   * * `name:x`
-   * * `column:y`
-   * * `description:z`
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for query. - */ - com.google.protobuf.ByteString getQueryBytes(); - - /** - * - * - *
-   * Upper bound on the number of results you can get in a single response.
-   *
-   * Can't be negative or 0, defaults to 10 in this case.
-   * The maximum number is 1000. If exceeded, throws an "invalid argument"
-   * exception.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. Pagination token that, if specified, returns the next page of
-   * search results. If empty, returns the first page.
-   *
-   * This token is returned in the
-   * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token]
-   * field of the response to a previous
-   * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]
-   * call.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * Optional. Pagination token that, if specified, returns the next page of
-   * search results. If empty, returns the first page.
-   *
-   * This token is returned in the
-   * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token]
-   * field of the response to a previous
-   * [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]
-   * call.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Specifies the order of results.
-   *
-   * Currently supported case-sensitive values are:
-   *
-   * * `relevance` that can only be descending
-   * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
-   * * `default` that can only be descending
-   *
-   * Search queries don't guarantee full recall. Results that match your query
-   * might not be returned, even in subsequent result pages. Additionally,
-   * returned (and not returned) results can vary if you repeat search queries.
-   * If you are experiencing recall issues and you don't have to fetch the
-   * results in any specific order, consider setting this parameter to
-   * `default`.
-   *
-   * If this parameter is omitted, it defaults to the descending `relevance`.
-   * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - java.lang.String getOrderBy(); - - /** - * - * - *
-   * Specifies the order of results.
-   *
-   * Currently supported case-sensitive values are:
-   *
-   * * `relevance` that can only be descending
-   * * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default
-   * * `default` that can only be descending
-   *
-   * Search queries don't guarantee full recall. Results that match your query
-   * might not be returned, even in subsequent result pages. Additionally,
-   * returned (and not returned) results can vary if you repeat search queries.
-   * If you are experiencing recall issues and you don't have to fetch the
-   * results in any specific order, consider setting this parameter to
-   * `default`.
-   *
-   * If this parameter is omitted, it defaults to the descending `relevance`.
-   * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString getOrderByBytes(); - - /** - * - * - *
-   * Optional. If set, use searchAll permission granted on organizations from
-   * `include_org_ids` and projects from `include_project_ids` instead of the
-   * fine grained per resource permissions when filtering the search results.
-   * The only allowed `order_by` criteria for admin_search mode is `default`.
-   * Using this flags guarantees a full recall of the search results.
-   * 
- * - * bool admin_search = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The adminSearch. - */ - boolean getAdminSearch(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponse.java deleted file mode 100644 index 65081edd4f04..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponse.java +++ /dev/null @@ -1,1583 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for
- * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogResponse} - */ -@com.google.protobuf.Generated -public final class SearchCatalogResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogResponse) - SearchCatalogResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SearchCatalogResponse"); - } - - // Use SearchCatalogResponse.newBuilder() to construct. - private SearchCatalogResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SearchCatalogResponse() { - results_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SearchCatalogResponse.class, - com.google.cloud.datacatalog.v1.SearchCatalogResponse.Builder.class); - } - - public static final int RESULTS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List results_; - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - @java.lang.Override - public java.util.List getResultsList() { - return results_; - } - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - @java.lang.Override - public java.util.List - getResultsOrBuilderList() { - return results_; - } - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - @java.lang.Override - public int getResultsCount() { - return results_.size(); - } - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogResult getResults(int index) { - return results_.get(index); - } - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogResultOrBuilder getResultsOrBuilder( - int index) { - return results_.get(index); - } - - public static final int TOTAL_SIZE_FIELD_NUMBER = 2; - private int totalSize_ = 0; - - /** - * - * - *
-   * The approximate total number of entries matched by the query.
-   * 
- * - * int32 total_size = 2; - * - * @return The totalSize. - */ - @java.lang.Override - public int getTotalSize() { - return totalSize_; - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Pagination token that can be used in subsequent calls to retrieve the next
-   * page of results.
-   * 
- * - * string next_page_token = 3; - * - * @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; - } - } - - /** - * - * - *
-   * Pagination token that can be used in subsequent calls to retrieve the next
-   * page of results.
-   * 
- * - * string next_page_token = 3; - * - * @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 = 6; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * Unreachable locations. Search results don't include data from those
-   * locations.
-   *
-   * To get additional information on an error, repeat the search request and
-   * restrict it to specific locations by setting the
-   * `SearchCatalogRequest.scope.restricted_locations` parameter.
-   * 
- * - * repeated string unreachable = 6; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_; - } - - /** - * - * - *
-   * Unreachable locations. Search results don't include data from those
-   * locations.
-   *
-   * To get additional information on an error, repeat the search request and
-   * restrict it to specific locations by setting the
-   * `SearchCatalogRequest.scope.restricted_locations` parameter.
-   * 
- * - * repeated string unreachable = 6; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - - /** - * - * - *
-   * Unreachable locations. Search results don't include data from those
-   * locations.
-   *
-   * To get additional information on an error, repeat the search request and
-   * restrict it to specific locations by setting the
-   * `SearchCatalogRequest.scope.restricted_locations` parameter.
-   * 
- * - * repeated string unreachable = 6; - * - * @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); - } - - /** - * - * - *
-   * Unreachable locations. Search results don't include data from those
-   * locations.
-   *
-   * To get additional information on an error, repeat the search request and
-   * restrict it to specific locations by setting the
-   * `SearchCatalogRequest.scope.restricted_locations` parameter.
-   * 
- * - * repeated string unreachable = 6; - * - * @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 < results_.size(); i++) { - output.writeMessage(1, results_.get(i)); - } - if (totalSize_ != 0) { - output.writeInt32(2, totalSize_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, nextPageToken_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, 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 < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); - } - if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalSize_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, 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.datacatalog.v1.SearchCatalogResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.SearchCatalogResponse other = - (com.google.cloud.datacatalog.v1.SearchCatalogResponse) obj; - - if (!getResultsList().equals(other.getResultsList())) return false; - if (getTotalSize() != other.getTotalSize()) 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 (getResultsCount() > 0) { - hash = (37 * hash) + RESULTS_FIELD_NUMBER; - hash = (53 * hash) + getResultsList().hashCode(); - } - hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getTotalSize(); - 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.datacatalog.v1.SearchCatalogResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.SearchCatalogResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.SearchCatalogResponse) - com.google.cloud.datacatalog.v1.SearchCatalogResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SearchCatalogResponse.class, - com.google.cloud.datacatalog.v1.SearchCatalogResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.SearchCatalogResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (resultsBuilder_ == null) { - results_ = java.util.Collections.emptyList(); - } else { - results_ = null; - resultsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - totalSize_ = 0; - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SearchCatalogResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.SearchCatalogResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogResponse build() { - com.google.cloud.datacatalog.v1.SearchCatalogResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogResponse buildPartial() { - com.google.cloud.datacatalog.v1.SearchCatalogResponse result = - new com.google.cloud.datacatalog.v1.SearchCatalogResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.SearchCatalogResponse result) { - if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.results_ = results_; - } else { - result.results_ = resultsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.SearchCatalogResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.totalSize_ = totalSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - unreachable_.makeImmutable(); - result.unreachable_ = unreachable_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.SearchCatalogResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.SearchCatalogResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.SearchCatalogResponse other) { - if (other == com.google.cloud.datacatalog.v1.SearchCatalogResponse.getDefaultInstance()) - return this; - if (resultsBuilder_ == null) { - if (!other.results_.isEmpty()) { - if (results_.isEmpty()) { - results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResultsIsMutable(); - results_.addAll(other.results_); - } - onChanged(); - } - } else { - if (!other.results_.isEmpty()) { - if (resultsBuilder_.isEmpty()) { - resultsBuilder_.dispose(); - resultsBuilder_ = null; - results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetResultsFieldBuilder() - : null; - } else { - resultsBuilder_.addAllMessages(other.results_); - } - } - } - if (other.getTotalSize() != 0) { - setTotalSize(other.getTotalSize()); - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ |= 0x00000008; - } 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.datacatalog.v1.SearchCatalogResult m = - input.readMessage( - com.google.cloud.datacatalog.v1.SearchCatalogResult.parser(), - extensionRegistry); - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(m); - } else { - resultsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(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 bitField0_; - - private java.util.List results_ = - java.util.Collections.emptyList(); - - private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList(results_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SearchCatalogResult, - com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder, - com.google.cloud.datacatalog.v1.SearchCatalogResultOrBuilder> - resultsBuilder_; - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public java.util.List getResultsList() { - if (resultsBuilder_ == null) { - return java.util.Collections.unmodifiableList(results_); - } else { - return resultsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public int getResultsCount() { - if (resultsBuilder_ == null) { - return results_.size(); - } else { - return resultsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public com.google.cloud.datacatalog.v1.SearchCatalogResult getResults(int index) { - if (resultsBuilder_ == null) { - return results_.get(index); - } else { - return resultsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public Builder setResults( - int index, com.google.cloud.datacatalog.v1.SearchCatalogResult value) { - if (resultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultsIsMutable(); - results_.set(index, value); - onChanged(); - } else { - resultsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public Builder setResults( - int index, com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder builderForValue) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.set(index, builderForValue.build()); - onChanged(); - } else { - resultsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public Builder addResults(com.google.cloud.datacatalog.v1.SearchCatalogResult value) { - if (resultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultsIsMutable(); - results_.add(value); - onChanged(); - } else { - resultsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public Builder addResults( - int index, com.google.cloud.datacatalog.v1.SearchCatalogResult value) { - if (resultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultsIsMutable(); - results_.add(index, value); - onChanged(); - } else { - resultsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public Builder addResults( - com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder builderForValue) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(builderForValue.build()); - onChanged(); - } else { - resultsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public Builder addResults( - int index, com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder builderForValue) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(index, builderForValue.build()); - onChanged(); - } else { - resultsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public Builder addAllResults( - java.lang.Iterable values) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); - onChanged(); - } else { - resultsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public Builder clearResults() { - if (resultsBuilder_ == null) { - results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - resultsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public Builder removeResults(int index) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.remove(index); - onChanged(); - } else { - resultsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder getResultsBuilder( - int index) { - return internalGetResultsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public com.google.cloud.datacatalog.v1.SearchCatalogResultOrBuilder getResultsOrBuilder( - int index) { - if (resultsBuilder_ == null) { - return results_.get(index); - } else { - return resultsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public java.util.List - getResultsOrBuilderList() { - if (resultsBuilder_ != null) { - return resultsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(results_); - } - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder addResultsBuilder() { - return internalGetResultsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.SearchCatalogResult.getDefaultInstance()); - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder addResultsBuilder( - int index) { - return internalGetResultsFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1.SearchCatalogResult.getDefaultInstance()); - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - public java.util.List - getResultsBuilderList() { - return internalGetResultsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SearchCatalogResult, - com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder, - com.google.cloud.datacatalog.v1.SearchCatalogResultOrBuilder> - internalGetResultsFieldBuilder() { - if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SearchCatalogResult, - com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder, - com.google.cloud.datacatalog.v1.SearchCatalogResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - results_ = null; - } - return resultsBuilder_; - } - - private int totalSize_; - - /** - * - * - *
-     * The approximate total number of entries matched by the query.
-     * 
- * - * int32 total_size = 2; - * - * @return The totalSize. - */ - @java.lang.Override - public int getTotalSize() { - return totalSize_; - } - - /** - * - * - *
-     * The approximate total number of entries matched by the query.
-     * 
- * - * int32 total_size = 2; - * - * @param value The totalSize to set. - * @return This builder for chaining. - */ - public Builder setTotalSize(int value) { - - totalSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The approximate total number of entries matched by the query.
-     * 
- * - * int32 total_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearTotalSize() { - bitField0_ = (bitField0_ & ~0x00000002); - totalSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Pagination token that can be used in subsequent calls to retrieve the next
-     * page of results.
-     * 
- * - * string next_page_token = 3; - * - * @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; - } - } - - /** - * - * - *
-     * Pagination token that can be used in subsequent calls to retrieve the next
-     * page of results.
-     * 
- * - * string next_page_token = 3; - * - * @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; - } - } - - /** - * - * - *
-     * Pagination token that can be used in subsequent calls to retrieve the next
-     * page of results.
-     * 
- * - * string next_page_token = 3; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token that can be used in subsequent calls to retrieve the next
-     * page of results.
-     * 
- * - * string next_page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Pagination token that can be used in subsequent calls to retrieve the next
-     * page of results.
-     * 
- * - * string next_page_token = 3; - * - * @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_ |= 0x00000004; - 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_ |= 0x00000008; - } - - /** - * - * - *
-     * Unreachable locations. Search results don't include data from those
-     * locations.
-     *
-     * To get additional information on an error, repeat the search request and
-     * restrict it to specific locations by setting the
-     * `SearchCatalogRequest.scope.restricted_locations` parameter.
-     * 
- * - * repeated string unreachable = 6; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - unreachable_.makeImmutable(); - return unreachable_; - } - - /** - * - * - *
-     * Unreachable locations. Search results don't include data from those
-     * locations.
-     *
-     * To get additional information on an error, repeat the search request and
-     * restrict it to specific locations by setting the
-     * `SearchCatalogRequest.scope.restricted_locations` parameter.
-     * 
- * - * repeated string unreachable = 6; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - - /** - * - * - *
-     * Unreachable locations. Search results don't include data from those
-     * locations.
-     *
-     * To get additional information on an error, repeat the search request and
-     * restrict it to specific locations by setting the
-     * `SearchCatalogRequest.scope.restricted_locations` parameter.
-     * 
- * - * repeated string unreachable = 6; - * - * @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); - } - - /** - * - * - *
-     * Unreachable locations. Search results don't include data from those
-     * locations.
-     *
-     * To get additional information on an error, repeat the search request and
-     * restrict it to specific locations by setting the
-     * `SearchCatalogRequest.scope.restricted_locations` parameter.
-     * 
- * - * repeated string unreachable = 6; - * - * @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); - } - - /** - * - * - *
-     * Unreachable locations. Search results don't include data from those
-     * locations.
-     *
-     * To get additional information on an error, repeat the search request and
-     * restrict it to specific locations by setting the
-     * `SearchCatalogRequest.scope.restricted_locations` parameter.
-     * 
- * - * repeated string unreachable = 6; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Unreachable locations. Search results don't include data from those
-     * locations.
-     *
-     * To get additional information on an error, repeat the search request and
-     * restrict it to specific locations by setting the
-     * `SearchCatalogRequest.scope.restricted_locations` parameter.
-     * 
- * - * repeated string unreachable = 6; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Unreachable locations. Search results don't include data from those
-     * locations.
-     *
-     * To get additional information on an error, repeat the search request and
-     * restrict it to specific locations by setting the
-     * `SearchCatalogRequest.scope.restricted_locations` parameter.
-     * 
- * - * repeated string unreachable = 6; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Unreachable locations. Search results don't include data from those
-     * locations.
-     *
-     * To get additional information on an error, repeat the search request and
-     * restrict it to specific locations by setting the
-     * `SearchCatalogRequest.scope.restricted_locations` parameter.
-     * 
- * - * repeated string unreachable = 6; - * - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * Unreachable locations. Search results don't include data from those
-     * locations.
-     *
-     * To get additional information on an error, repeat the search request and
-     * restrict it to specific locations by setting the
-     * `SearchCatalogRequest.scope.restricted_locations` parameter.
-     * 
- * - * repeated string unreachable = 6; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.SearchCatalogResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.SearchCatalogResponse) - private static final com.google.cloud.datacatalog.v1.SearchCatalogResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.SearchCatalogResponse(); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchCatalogResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponseOrBuilder.java deleted file mode 100644 index def81bbc62d7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResponseOrBuilder.java +++ /dev/null @@ -1,199 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface SearchCatalogResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.SearchCatalogResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - java.util.List getResultsList(); - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - com.google.cloud.datacatalog.v1.SearchCatalogResult getResults(int index); - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - int getResultsCount(); - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - java.util.List - getResultsOrBuilderList(); - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SearchCatalogResult results = 1; - */ - com.google.cloud.datacatalog.v1.SearchCatalogResultOrBuilder getResultsOrBuilder(int index); - - /** - * - * - *
-   * The approximate total number of entries matched by the query.
-   * 
- * - * int32 total_size = 2; - * - * @return The totalSize. - */ - int getTotalSize(); - - /** - * - * - *
-   * Pagination token that can be used in subsequent calls to retrieve the next
-   * page of results.
-   * 
- * - * string next_page_token = 3; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Pagination token that can be used in subsequent calls to retrieve the next
-   * page of results.
-   * 
- * - * string next_page_token = 3; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); - - /** - * - * - *
-   * Unreachable locations. Search results don't include data from those
-   * locations.
-   *
-   * To get additional information on an error, repeat the search request and
-   * restrict it to specific locations by setting the
-   * `SearchCatalogRequest.scope.restricted_locations` parameter.
-   * 
- * - * repeated string unreachable = 6; - * - * @return A list containing the unreachable. - */ - java.util.List getUnreachableList(); - - /** - * - * - *
-   * Unreachable locations. Search results don't include data from those
-   * locations.
-   *
-   * To get additional information on an error, repeat the search request and
-   * restrict it to specific locations by setting the
-   * `SearchCatalogRequest.scope.restricted_locations` parameter.
-   * 
- * - * repeated string unreachable = 6; - * - * @return The count of unreachable. - */ - int getUnreachableCount(); - - /** - * - * - *
-   * Unreachable locations. Search results don't include data from those
-   * locations.
-   *
-   * To get additional information on an error, repeat the search request and
-   * restrict it to specific locations by setting the
-   * `SearchCatalogRequest.scope.restricted_locations` parameter.
-   * 
- * - * repeated string unreachable = 6; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - - /** - * - * - *
-   * Unreachable locations. Search results don't include data from those
-   * locations.
-   *
-   * To get additional information on an error, repeat the search request and
-   * restrict it to specific locations by setting the
-   * `SearchCatalogRequest.scope.restricted_locations` parameter.
-   * 
- * - * repeated string unreachable = 6; - * - * @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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java deleted file mode 100644 index 50d51cc5f888..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResult.java +++ /dev/null @@ -1,2794 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/search.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Result in the response to a search request.
- *
- * Each result captures details of one entry that matches the search.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogResult} - */ -@com.google.protobuf.Generated -public final class SearchCatalogResult extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SearchCatalogResult) - SearchCatalogResultOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SearchCatalogResult"); - } - - // Use SearchCatalogResult.newBuilder() to construct. - private SearchCatalogResult(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SearchCatalogResult() { - searchResultType_ = 0; - searchResultSubtype_ = ""; - relativeResourceName_ = ""; - linkedResource_ = ""; - fullyQualifiedName_ = ""; - displayName_ = ""; - description_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Search - .internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Search - .internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SearchCatalogResult.class, - com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder.class); - } - - private int bitField0_; - private int systemCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object system_; - - public enum SystemCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INTEGRATED_SYSTEM(8), - USER_SPECIFIED_SYSTEM(9), - SYSTEM_NOT_SET(0); - private final int value; - - private SystemCase(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 SystemCase valueOf(int value) { - return forNumber(value); - } - - public static SystemCase forNumber(int value) { - switch (value) { - case 8: - return INTEGRATED_SYSTEM; - case 9: - return USER_SPECIFIED_SYSTEM; - case 0: - return SYSTEM_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SystemCase getSystemCase() { - return SystemCase.forNumber(systemCase_); - } - - public static final int SEARCH_RESULT_TYPE_FIELD_NUMBER = 1; - private int searchResultType_ = 0; - - /** - * - * - *
-   * Type of the search result.
-   *
-   * You can use this field to determine which get method to call to fetch the
-   * full resource.
-   * 
- * - * .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; - * - * @return The enum numeric value on the wire for searchResultType. - */ - @java.lang.Override - public int getSearchResultTypeValue() { - return searchResultType_; - } - - /** - * - * - *
-   * Type of the search result.
-   *
-   * You can use this field to determine which get method to call to fetch the
-   * full resource.
-   * 
- * - * .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; - * - * @return The searchResultType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchResultType getSearchResultType() { - com.google.cloud.datacatalog.v1.SearchResultType result = - com.google.cloud.datacatalog.v1.SearchResultType.forNumber(searchResultType_); - return result == null ? com.google.cloud.datacatalog.v1.SearchResultType.UNRECOGNIZED : result; - } - - public static final int SEARCH_RESULT_SUBTYPE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object searchResultSubtype_ = ""; - - /** - * - * - *
-   * Sub-type of the search result.
-   *
-   * A dot-delimited full type of the resource. The same type you
-   * specify in the `type` search predicate.
-   *
-   * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`.
-   * 
- * - * string search_result_subtype = 2; - * - * @return The searchResultSubtype. - */ - @java.lang.Override - public java.lang.String getSearchResultSubtype() { - java.lang.Object ref = searchResultSubtype_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - searchResultSubtype_ = s; - return s; - } - } - - /** - * - * - *
-   * Sub-type of the search result.
-   *
-   * A dot-delimited full type of the resource. The same type you
-   * specify in the `type` search predicate.
-   *
-   * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`.
-   * 
- * - * string search_result_subtype = 2; - * - * @return The bytes for searchResultSubtype. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSearchResultSubtypeBytes() { - java.lang.Object ref = searchResultSubtype_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - searchResultSubtype_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RELATIVE_RESOURCE_NAME_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object relativeResourceName_ = ""; - - /** - * - * - *
-   * The relative name of the resource in URL format.
-   *
-   * Examples:
-   *
-   * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`
-   * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}`
-   * 
- * - * string relative_resource_name = 3; - * - * @return The relativeResourceName. - */ - @java.lang.Override - public java.lang.String getRelativeResourceName() { - java.lang.Object ref = relativeResourceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - relativeResourceName_ = s; - return s; - } - } - - /** - * - * - *
-   * The relative name of the resource in URL format.
-   *
-   * Examples:
-   *
-   * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`
-   * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}`
-   * 
- * - * string relative_resource_name = 3; - * - * @return The bytes for relativeResourceName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRelativeResourceNameBytes() { - java.lang.Object ref = relativeResourceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - relativeResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LINKED_RESOURCE_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object linkedResource_ = ""; - - /** - * - * - *
-   * The full name of the Google Cloud resource the entry belongs to.
-   *
-   * For more information, see [Full Resource Name]
-   * (/apis/design/resource_names#full_resource_name).
-   *
-   * Example:
-   *
-   * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID`
-   * 
- * - * string linked_resource = 4; - * - * @return The linkedResource. - */ - @java.lang.Override - public java.lang.String getLinkedResource() { - java.lang.Object ref = linkedResource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - linkedResource_ = s; - return s; - } - } - - /** - * - * - *
-   * The full name of the Google Cloud resource the entry belongs to.
-   *
-   * For more information, see [Full Resource Name]
-   * (/apis/design/resource_names#full_resource_name).
-   *
-   * Example:
-   *
-   * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID`
-   * 
- * - * string linked_resource = 4; - * - * @return The bytes for linkedResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = linkedResource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - linkedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MODIFY_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp modifyTime_; - - /** - * - * - *
-   * The last modification timestamp of the entry in the source system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return Whether the modifyTime field is set. - */ - @java.lang.Override - public boolean hasModifyTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The last modification timestamp of the entry in the source system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return The modifyTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getModifyTime() { - return modifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifyTime_; - } - - /** - * - * - *
-   * The last modification timestamp of the entry in the source system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getModifyTimeOrBuilder() { - return modifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifyTime_; - } - - public static final int INTEGRATED_SYSTEM_FIELD_NUMBER = 8; - - /** - * - * - *
-   * Output only. The source system that Data Catalog automatically integrates
-   * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the integratedSystem field is set. - */ - public boolean hasIntegratedSystem() { - return systemCase_ == 8; - } - - /** - * - * - *
-   * Output only. The source system that Data Catalog automatically integrates
-   * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for integratedSystem. - */ - public int getIntegratedSystemValue() { - if (systemCase_ == 8) { - return (java.lang.Integer) system_; - } - return 0; - } - - /** - * - * - *
-   * Output only. The source system that Data Catalog automatically integrates
-   * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The integratedSystem. - */ - public com.google.cloud.datacatalog.v1.IntegratedSystem getIntegratedSystem() { - if (systemCase_ == 8) { - com.google.cloud.datacatalog.v1.IntegratedSystem result = - com.google.cloud.datacatalog.v1.IntegratedSystem.forNumber((java.lang.Integer) system_); - return result == null - ? com.google.cloud.datacatalog.v1.IntegratedSystem.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED; - } - - public static final int USER_SPECIFIED_SYSTEM_FIELD_NUMBER = 9; - - /** - * - * - *
-   * Custom source system that you can manually integrate Data Catalog with.
-   * 
- * - * string user_specified_system = 9; - * - * @return Whether the userSpecifiedSystem field is set. - */ - public boolean hasUserSpecifiedSystem() { - return systemCase_ == 9; - } - - /** - * - * - *
-   * Custom source system that you can manually integrate Data Catalog with.
-   * 
- * - * string user_specified_system = 9; - * - * @return The userSpecifiedSystem. - */ - public java.lang.String getUserSpecifiedSystem() { - java.lang.Object ref = ""; - if (systemCase_ == 9) { - ref = system_; - } - if (ref instanceof java.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 (systemCase_ == 9) { - system_ = s; - } - return s; - } - } - - /** - * - * - *
-   * Custom source system that you can manually integrate Data Catalog with.
-   * 
- * - * string user_specified_system = 9; - * - * @return The bytes for userSpecifiedSystem. - */ - public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() { - java.lang.Object ref = ""; - if (systemCase_ == 9) { - ref = system_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (systemCase_ == 9) { - system_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FULLY_QUALIFIED_NAME_FIELD_NUMBER = 10; - - @SuppressWarnings("serial") - private volatile java.lang.Object fullyQualifiedName_ = ""; - - /** - * - * - *
-   * Fully qualified name (FQN) of the resource.
-   *
-   * FQNs take two forms:
-   *
-   * * For non-regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * * For regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * Example for a DPMS table:
-   *
-   * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID`
-   * 
- * - * string fully_qualified_name = 10; - * - * @return The fullyQualifiedName. - */ - @java.lang.Override - public java.lang.String getFullyQualifiedName() { - java.lang.Object ref = fullyQualifiedName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullyQualifiedName_ = s; - return s; - } - } - - /** - * - * - *
-   * Fully qualified name (FQN) of the resource.
-   *
-   * FQNs take two forms:
-   *
-   * * For non-regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * * For regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * Example for a DPMS table:
-   *
-   * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID`
-   * 
- * - * string fully_qualified_name = 10; - * - * @return The bytes for fullyQualifiedName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { - java.lang.Object ref = fullyQualifiedName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fullyQualifiedName_ = 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_ = ""; - - /** - * - * - *
-   * The display name of the result.
-   * 
- * - * string display_name = 12; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - - /** - * - * - *
-   * The display name of the result.
-   * 
- * - * string display_name = 12; - * - * @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_ = ""; - - /** - * - * - *
-   * Entry description that can consist of several sentences or paragraphs that
-   * describe entry contents.
-   * 
- * - * string description = 13; - * - * @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; - } - } - - /** - * - * - *
-   * Entry description that can consist of several sentences or paragraphs that
-   * describe entry contents.
-   * 
- * - * string description = 13; - * - * @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 (searchResultType_ - != com.google.cloud.datacatalog.v1.SearchResultType.SEARCH_RESULT_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, searchResultType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchResultSubtype_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, searchResultSubtype_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(relativeResourceName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, relativeResourceName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(linkedResource_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, linkedResource_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(7, getModifyTime()); - } - if (systemCase_ == 8) { - output.writeEnum(8, ((java.lang.Integer) system_)); - } - if (systemCase_ == 9) { - com.google.protobuf.GeneratedMessage.writeString(output, 9, system_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullyQualifiedName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 10, fullyQualifiedName_); - } - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (searchResultType_ - != com.google.cloud.datacatalog.v1.SearchResultType.SEARCH_RESULT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, searchResultType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchResultSubtype_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, searchResultSubtype_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(relativeResourceName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, relativeResourceName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(linkedResource_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, linkedResource_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getModifyTime()); - } - if (systemCase_ == 8) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(8, ((java.lang.Integer) system_)); - } - if (systemCase_ == 9) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(9, system_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fullyQualifiedName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(10, fullyQualifiedName_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.SearchCatalogResult)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.SearchCatalogResult other = - (com.google.cloud.datacatalog.v1.SearchCatalogResult) obj; - - if (searchResultType_ != other.searchResultType_) return false; - if (!getSearchResultSubtype().equals(other.getSearchResultSubtype())) return false; - if (!getRelativeResourceName().equals(other.getRelativeResourceName())) return false; - if (!getLinkedResource().equals(other.getLinkedResource())) return false; - if (hasModifyTime() != other.hasModifyTime()) return false; - if (hasModifyTime()) { - if (!getModifyTime().equals(other.getModifyTime())) return false; - } - if (!getFullyQualifiedName().equals(other.getFullyQualifiedName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getSystemCase().equals(other.getSystemCase())) return false; - switch (systemCase_) { - case 8: - if (getIntegratedSystemValue() != other.getIntegratedSystemValue()) return false; - break; - case 9: - if (!getUserSpecifiedSystem().equals(other.getUserSpecifiedSystem())) 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) + SEARCH_RESULT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + searchResultType_; - hash = (37 * hash) + SEARCH_RESULT_SUBTYPE_FIELD_NUMBER; - hash = (53 * hash) + getSearchResultSubtype().hashCode(); - hash = (37 * hash) + RELATIVE_RESOURCE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getRelativeResourceName().hashCode(); - hash = (37 * hash) + LINKED_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getLinkedResource().hashCode(); - if (hasModifyTime()) { - hash = (37 * hash) + MODIFY_TIME_FIELD_NUMBER; - hash = (53 * hash) + getModifyTime().hashCode(); - } - hash = (37 * hash) + FULLY_QUALIFIED_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFullyQualifiedName().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - switch (systemCase_) { - case 8: - hash = (37 * hash) + INTEGRATED_SYSTEM_FIELD_NUMBER; - hash = (53 * hash) + getIntegratedSystemValue(); - break; - case 9: - hash = (37 * hash) + USER_SPECIFIED_SYSTEM_FIELD_NUMBER; - hash = (53 * hash) + getUserSpecifiedSystem().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.SearchCatalogResult prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Result in the response to a search request.
-   *
-   * Each result captures details of one entry that matches the search.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SearchCatalogResult} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.SearchCatalogResult) - com.google.cloud.datacatalog.v1.SearchCatalogResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Search - .internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Search - .internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SearchCatalogResult.class, - com.google.cloud.datacatalog.v1.SearchCatalogResult.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.SearchCatalogResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetModifyTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - searchResultType_ = 0; - searchResultSubtype_ = ""; - relativeResourceName_ = ""; - linkedResource_ = ""; - modifyTime_ = null; - if (modifyTimeBuilder_ != null) { - modifyTimeBuilder_.dispose(); - modifyTimeBuilder_ = null; - } - fullyQualifiedName_ = ""; - displayName_ = ""; - description_ = ""; - systemCase_ = 0; - system_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Search - .internal_static_google_cloud_datacatalog_v1_SearchCatalogResult_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogResult getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.SearchCatalogResult.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogResult build() { - com.google.cloud.datacatalog.v1.SearchCatalogResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogResult buildPartial() { - com.google.cloud.datacatalog.v1.SearchCatalogResult result = - new com.google.cloud.datacatalog.v1.SearchCatalogResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.SearchCatalogResult result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.searchResultType_ = searchResultType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.searchResultSubtype_ = searchResultSubtype_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.relativeResourceName_ = relativeResourceName_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.linkedResource_ = linkedResource_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.modifyTime_ = modifyTimeBuilder_ == null ? modifyTime_ : modifyTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.fullyQualifiedName_ = fullyQualifiedName_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.description_ = description_; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.SearchCatalogResult result) { - result.systemCase_ = systemCase_; - result.system_ = this.system_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.SearchCatalogResult) { - return mergeFrom((com.google.cloud.datacatalog.v1.SearchCatalogResult) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.SearchCatalogResult other) { - if (other == com.google.cloud.datacatalog.v1.SearchCatalogResult.getDefaultInstance()) - return this; - if (other.searchResultType_ != 0) { - setSearchResultTypeValue(other.getSearchResultTypeValue()); - } - if (!other.getSearchResultSubtype().isEmpty()) { - searchResultSubtype_ = other.searchResultSubtype_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getRelativeResourceName().isEmpty()) { - relativeResourceName_ = other.relativeResourceName_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getLinkedResource().isEmpty()) { - linkedResource_ = other.linkedResource_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasModifyTime()) { - mergeModifyTime(other.getModifyTime()); - } - if (!other.getFullyQualifiedName().isEmpty()) { - fullyQualifiedName_ = other.fullyQualifiedName_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000200; - onChanged(); - } - switch (other.getSystemCase()) { - case INTEGRATED_SYSTEM: - { - setIntegratedSystemValue(other.getIntegratedSystemValue()); - break; - } - case USER_SPECIFIED_SYSTEM: - { - systemCase_ = 9; - system_ = other.system_; - onChanged(); - break; - } - case SYSTEM_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: - { - searchResultType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - searchResultSubtype_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - relativeResourceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - linkedResource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 58: - { - input.readMessage( - internalGetModifyTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 58 - case 64: - { - int rawValue = input.readEnum(); - systemCase_ = 8; - system_ = rawValue; - break; - } // case 64 - case 74: - { - java.lang.String s = input.readStringRequireUtf8(); - systemCase_ = 9; - system_ = s; - break; - } // case 74 - case 82: - { - fullyQualifiedName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 82 - case 98: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 98 - case 106: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - 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 systemCase_ = 0; - private java.lang.Object system_; - - public SystemCase getSystemCase() { - return SystemCase.forNumber(systemCase_); - } - - public Builder clearSystem() { - systemCase_ = 0; - system_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int searchResultType_ = 0; - - /** - * - * - *
-     * Type of the search result.
-     *
-     * You can use this field to determine which get method to call to fetch the
-     * full resource.
-     * 
- * - * .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; - * - * @return The enum numeric value on the wire for searchResultType. - */ - @java.lang.Override - public int getSearchResultTypeValue() { - return searchResultType_; - } - - /** - * - * - *
-     * Type of the search result.
-     *
-     * You can use this field to determine which get method to call to fetch the
-     * full resource.
-     * 
- * - * .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; - * - * @param value The enum numeric value on the wire for searchResultType to set. - * @return This builder for chaining. - */ - public Builder setSearchResultTypeValue(int value) { - searchResultType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of the search result.
-     *
-     * You can use this field to determine which get method to call to fetch the
-     * full resource.
-     * 
- * - * .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; - * - * @return The searchResultType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchResultType getSearchResultType() { - com.google.cloud.datacatalog.v1.SearchResultType result = - com.google.cloud.datacatalog.v1.SearchResultType.forNumber(searchResultType_); - return result == null - ? com.google.cloud.datacatalog.v1.SearchResultType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Type of the search result.
-     *
-     * You can use this field to determine which get method to call to fetch the
-     * full resource.
-     * 
- * - * .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; - * - * @param value The searchResultType to set. - * @return This builder for chaining. - */ - public Builder setSearchResultType(com.google.cloud.datacatalog.v1.SearchResultType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - searchResultType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of the search result.
-     *
-     * You can use this field to determine which get method to call to fetch the
-     * full resource.
-     * 
- * - * .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearSearchResultType() { - bitField0_ = (bitField0_ & ~0x00000001); - searchResultType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object searchResultSubtype_ = ""; - - /** - * - * - *
-     * Sub-type of the search result.
-     *
-     * A dot-delimited full type of the resource. The same type you
-     * specify in the `type` search predicate.
-     *
-     * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`.
-     * 
- * - * string search_result_subtype = 2; - * - * @return The searchResultSubtype. - */ - public java.lang.String getSearchResultSubtype() { - java.lang.Object ref = searchResultSubtype_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - searchResultSubtype_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Sub-type of the search result.
-     *
-     * A dot-delimited full type of the resource. The same type you
-     * specify in the `type` search predicate.
-     *
-     * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`.
-     * 
- * - * string search_result_subtype = 2; - * - * @return The bytes for searchResultSubtype. - */ - public com.google.protobuf.ByteString getSearchResultSubtypeBytes() { - java.lang.Object ref = searchResultSubtype_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - searchResultSubtype_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Sub-type of the search result.
-     *
-     * A dot-delimited full type of the resource. The same type you
-     * specify in the `type` search predicate.
-     *
-     * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`.
-     * 
- * - * string search_result_subtype = 2; - * - * @param value The searchResultSubtype to set. - * @return This builder for chaining. - */ - public Builder setSearchResultSubtype(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - searchResultSubtype_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Sub-type of the search result.
-     *
-     * A dot-delimited full type of the resource. The same type you
-     * specify in the `type` search predicate.
-     *
-     * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`.
-     * 
- * - * string search_result_subtype = 2; - * - * @return This builder for chaining. - */ - public Builder clearSearchResultSubtype() { - searchResultSubtype_ = getDefaultInstance().getSearchResultSubtype(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Sub-type of the search result.
-     *
-     * A dot-delimited full type of the resource. The same type you
-     * specify in the `type` search predicate.
-     *
-     * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`.
-     * 
- * - * string search_result_subtype = 2; - * - * @param value The bytes for searchResultSubtype to set. - * @return This builder for chaining. - */ - public Builder setSearchResultSubtypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - searchResultSubtype_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object relativeResourceName_ = ""; - - /** - * - * - *
-     * The relative name of the resource in URL format.
-     *
-     * Examples:
-     *
-     * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`
-     * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}`
-     * 
- * - * string relative_resource_name = 3; - * - * @return The relativeResourceName. - */ - public java.lang.String getRelativeResourceName() { - java.lang.Object ref = relativeResourceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - relativeResourceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The relative name of the resource in URL format.
-     *
-     * Examples:
-     *
-     * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`
-     * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}`
-     * 
- * - * string relative_resource_name = 3; - * - * @return The bytes for relativeResourceName. - */ - public com.google.protobuf.ByteString getRelativeResourceNameBytes() { - java.lang.Object ref = relativeResourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - relativeResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The relative name of the resource in URL format.
-     *
-     * Examples:
-     *
-     * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`
-     * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}`
-     * 
- * - * string relative_resource_name = 3; - * - * @param value The relativeResourceName to set. - * @return This builder for chaining. - */ - public Builder setRelativeResourceName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - relativeResourceName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The relative name of the resource in URL format.
-     *
-     * Examples:
-     *
-     * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`
-     * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}`
-     * 
- * - * string relative_resource_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearRelativeResourceName() { - relativeResourceName_ = getDefaultInstance().getRelativeResourceName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * The relative name of the resource in URL format.
-     *
-     * Examples:
-     *
-     * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`
-     * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}`
-     * 
- * - * string relative_resource_name = 3; - * - * @param value The bytes for relativeResourceName to set. - * @return This builder for chaining. - */ - public Builder setRelativeResourceNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - relativeResourceName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object linkedResource_ = ""; - - /** - * - * - *
-     * The full name of the Google Cloud resource the entry belongs to.
-     *
-     * For more information, see [Full Resource Name]
-     * (/apis/design/resource_names#full_resource_name).
-     *
-     * Example:
-     *
-     * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID`
-     * 
- * - * string linked_resource = 4; - * - * @return The linkedResource. - */ - public java.lang.String getLinkedResource() { - java.lang.Object ref = linkedResource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - linkedResource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The full name of the Google Cloud resource the entry belongs to.
-     *
-     * For more information, see [Full Resource Name]
-     * (/apis/design/resource_names#full_resource_name).
-     *
-     * Example:
-     *
-     * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID`
-     * 
- * - * string linked_resource = 4; - * - * @return The bytes for linkedResource. - */ - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = linkedResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - linkedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The full name of the Google Cloud resource the entry belongs to.
-     *
-     * For more information, see [Full Resource Name]
-     * (/apis/design/resource_names#full_resource_name).
-     *
-     * Example:
-     *
-     * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID`
-     * 
- * - * string linked_resource = 4; - * - * @param value The linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - linkedResource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * The full name of the Google Cloud resource the entry belongs to.
-     *
-     * For more information, see [Full Resource Name]
-     * (/apis/design/resource_names#full_resource_name).
-     *
-     * Example:
-     *
-     * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID`
-     * 
- * - * string linked_resource = 4; - * - * @return This builder for chaining. - */ - public Builder clearLinkedResource() { - linkedResource_ = getDefaultInstance().getLinkedResource(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * The full name of the Google Cloud resource the entry belongs to.
-     *
-     * For more information, see [Full Resource Name]
-     * (/apis/design/resource_names#full_resource_name).
-     *
-     * Example:
-     *
-     * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID`
-     * 
- * - * string linked_resource = 4; - * - * @param value The bytes for linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - linkedResource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp modifyTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - modifyTimeBuilder_; - - /** - * - * - *
-     * The last modification timestamp of the entry in the source system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return Whether the modifyTime field is set. - */ - public boolean hasModifyTime() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
-     * The last modification timestamp of the entry in the source system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return The modifyTime. - */ - public com.google.protobuf.Timestamp getModifyTime() { - if (modifyTimeBuilder_ == null) { - return modifyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : modifyTime_; - } else { - return modifyTimeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The last modification timestamp of the entry in the source system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public Builder setModifyTime(com.google.protobuf.Timestamp value) { - if (modifyTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - modifyTime_ = value; - } else { - modifyTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * The last modification timestamp of the entry in the source system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public Builder setModifyTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (modifyTimeBuilder_ == null) { - modifyTime_ = builderForValue.build(); - } else { - modifyTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * The last modification timestamp of the entry in the source system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public Builder mergeModifyTime(com.google.protobuf.Timestamp value) { - if (modifyTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && modifyTime_ != null - && modifyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getModifyTimeBuilder().mergeFrom(value); - } else { - modifyTime_ = value; - } - } else { - modifyTimeBuilder_.mergeFrom(value); - } - if (modifyTime_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The last modification timestamp of the entry in the source system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public Builder clearModifyTime() { - bitField0_ = (bitField0_ & ~0x00000010); - modifyTime_ = null; - if (modifyTimeBuilder_ != null) { - modifyTimeBuilder_.dispose(); - modifyTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The last modification timestamp of the entry in the source system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public com.google.protobuf.Timestamp.Builder getModifyTimeBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetModifyTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The last modification timestamp of the entry in the source system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public com.google.protobuf.TimestampOrBuilder getModifyTimeOrBuilder() { - if (modifyTimeBuilder_ != null) { - return modifyTimeBuilder_.getMessageOrBuilder(); - } else { - return modifyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : modifyTime_; - } - } - - /** - * - * - *
-     * The last modification timestamp of the entry in the source system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetModifyTimeFieldBuilder() { - if (modifyTimeBuilder_ == null) { - modifyTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getModifyTime(), getParentForChildren(), isClean()); - modifyTime_ = null; - } - return modifyTimeBuilder_; - } - - /** - * - * - *
-     * Output only. The source system that Data Catalog automatically integrates
-     * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the integratedSystem field is set. - */ - @java.lang.Override - public boolean hasIntegratedSystem() { - return systemCase_ == 8; - } - - /** - * - * - *
-     * Output only. The source system that Data Catalog automatically integrates
-     * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for integratedSystem. - */ - @java.lang.Override - public int getIntegratedSystemValue() { - if (systemCase_ == 8) { - return ((java.lang.Integer) system_).intValue(); - } - return 0; - } - - /** - * - * - *
-     * Output only. The source system that Data Catalog automatically integrates
-     * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for integratedSystem to set. - * @return This builder for chaining. - */ - public Builder setIntegratedSystemValue(int value) { - systemCase_ = 8; - system_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The source system that Data Catalog automatically integrates
-     * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The integratedSystem. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.IntegratedSystem getIntegratedSystem() { - if (systemCase_ == 8) { - com.google.cloud.datacatalog.v1.IntegratedSystem result = - com.google.cloud.datacatalog.v1.IntegratedSystem.forNumber((java.lang.Integer) system_); - return result == null - ? com.google.cloud.datacatalog.v1.IntegratedSystem.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED; - } - - /** - * - * - *
-     * Output only. The source system that Data Catalog automatically integrates
-     * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The integratedSystem to set. - * @return This builder for chaining. - */ - public Builder setIntegratedSystem(com.google.cloud.datacatalog.v1.IntegratedSystem value) { - if (value == null) { - throw new NullPointerException(); - } - systemCase_ = 8; - system_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The source system that Data Catalog automatically integrates
-     * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-     * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearIntegratedSystem() { - if (systemCase_ == 8) { - systemCase_ = 0; - system_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Custom source system that you can manually integrate Data Catalog with.
-     * 
- * - * string user_specified_system = 9; - * - * @return Whether the userSpecifiedSystem field is set. - */ - @java.lang.Override - public boolean hasUserSpecifiedSystem() { - return systemCase_ == 9; - } - - /** - * - * - *
-     * Custom source system that you can manually integrate Data Catalog with.
-     * 
- * - * string user_specified_system = 9; - * - * @return The userSpecifiedSystem. - */ - @java.lang.Override - public java.lang.String getUserSpecifiedSystem() { - java.lang.Object ref = ""; - if (systemCase_ == 9) { - ref = system_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (systemCase_ == 9) { - system_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Custom source system that you can manually integrate Data Catalog with.
-     * 
- * - * string user_specified_system = 9; - * - * @return The bytes for userSpecifiedSystem. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() { - java.lang.Object ref = ""; - if (systemCase_ == 9) { - ref = system_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (systemCase_ == 9) { - system_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Custom source system that you can manually integrate Data Catalog with.
-     * 
- * - * string user_specified_system = 9; - * - * @param value The userSpecifiedSystem to set. - * @return This builder for chaining. - */ - public Builder setUserSpecifiedSystem(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - systemCase_ = 9; - system_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Custom source system that you can manually integrate Data Catalog with.
-     * 
- * - * string user_specified_system = 9; - * - * @return This builder for chaining. - */ - public Builder clearUserSpecifiedSystem() { - if (systemCase_ == 9) { - systemCase_ = 0; - system_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Custom source system that you can manually integrate Data Catalog with.
-     * 
- * - * string user_specified_system = 9; - * - * @param value The bytes for userSpecifiedSystem to set. - * @return This builder for chaining. - */ - public Builder setUserSpecifiedSystemBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - systemCase_ = 9; - system_ = value; - onChanged(); - return this; - } - - private java.lang.Object fullyQualifiedName_ = ""; - - /** - * - * - *
-     * Fully qualified name (FQN) of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID`
-     * 
- * - * string fully_qualified_name = 10; - * - * @return The fullyQualifiedName. - */ - public java.lang.String getFullyQualifiedName() { - java.lang.Object ref = fullyQualifiedName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullyQualifiedName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Fully qualified name (FQN) of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID`
-     * 
- * - * string fully_qualified_name = 10; - * - * @return The bytes for fullyQualifiedName. - */ - public com.google.protobuf.ByteString getFullyQualifiedNameBytes() { - java.lang.Object ref = fullyQualifiedName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fullyQualifiedName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Fully qualified name (FQN) of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID`
-     * 
- * - * string fully_qualified_name = 10; - * - * @param value The fullyQualifiedName to set. - * @return This builder for chaining. - */ - public Builder setFullyQualifiedName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - fullyQualifiedName_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - /** - * - * - *
-     * Fully qualified name (FQN) of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID`
-     * 
- * - * string fully_qualified_name = 10; - * - * @return This builder for chaining. - */ - public Builder clearFullyQualifiedName() { - fullyQualifiedName_ = getDefaultInstance().getFullyQualifiedName(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - /** - * - * - *
-     * Fully qualified name (FQN) of the resource.
-     *
-     * FQNs take two forms:
-     *
-     * * For non-regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * * For regionalized resources:
-     *
-     * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-     *
-     * Example for a DPMS table:
-     *
-     * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID`
-     * 
- * - * string fully_qualified_name = 10; - * - * @param value The bytes for fullyQualifiedName to set. - * @return This builder for chaining. - */ - public Builder setFullyQualifiedNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - fullyQualifiedName_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - - /** - * - * - *
-     * The display name of the result.
-     * 
- * - * string display_name = 12; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The display name of the result.
-     * 
- * - * string display_name = 12; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The display name of the result.
-     * 
- * - * string display_name = 12; - * - * @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_ |= 0x00000100; - onChanged(); - return this; - } - - /** - * - * - *
-     * The display name of the result.
-     * 
- * - * string display_name = 12; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - - /** - * - * - *
-     * The display name of the result.
-     * 
- * - * string display_name = 12; - * - * @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_ |= 0x00000100; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - - /** - * - * - *
-     * Entry description that can consist of several sentences or paragraphs that
-     * describe entry contents.
-     * 
- * - * string description = 13; - * - * @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; - } - } - - /** - * - * - *
-     * Entry description that can consist of several sentences or paragraphs that
-     * describe entry contents.
-     * 
- * - * string description = 13; - * - * @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; - } - } - - /** - * - * - *
-     * Entry description that can consist of several sentences or paragraphs that
-     * describe entry contents.
-     * 
- * - * string description = 13; - * - * @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; - } - - /** - * - * - *
-     * Entry description that can consist of several sentences or paragraphs that
-     * describe entry contents.
-     * 
- * - * string description = 13; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry description that can consist of several sentences or paragraphs that
-     * describe entry contents.
-     * 
- * - * string description = 13; - * - * @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; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.SearchCatalogResult) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.SearchCatalogResult) - private static final com.google.cloud.datacatalog.v1.SearchCatalogResult DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.SearchCatalogResult(); - } - - public static com.google.cloud.datacatalog.v1.SearchCatalogResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchCatalogResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SearchCatalogResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java deleted file mode 100644 index aedb98982a34..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchCatalogResultOrBuilder.java +++ /dev/null @@ -1,406 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/search.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface SearchCatalogResultOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.SearchCatalogResult) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Type of the search result.
-   *
-   * You can use this field to determine which get method to call to fetch the
-   * full resource.
-   * 
- * - * .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; - * - * @return The enum numeric value on the wire for searchResultType. - */ - int getSearchResultTypeValue(); - - /** - * - * - *
-   * Type of the search result.
-   *
-   * You can use this field to determine which get method to call to fetch the
-   * full resource.
-   * 
- * - * .google.cloud.datacatalog.v1.SearchResultType search_result_type = 1; - * - * @return The searchResultType. - */ - com.google.cloud.datacatalog.v1.SearchResultType getSearchResultType(); - - /** - * - * - *
-   * Sub-type of the search result.
-   *
-   * A dot-delimited full type of the resource. The same type you
-   * specify in the `type` search predicate.
-   *
-   * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`.
-   * 
- * - * string search_result_subtype = 2; - * - * @return The searchResultSubtype. - */ - java.lang.String getSearchResultSubtype(); - - /** - * - * - *
-   * Sub-type of the search result.
-   *
-   * A dot-delimited full type of the resource. The same type you
-   * specify in the `type` search predicate.
-   *
-   * Examples: `entry.table`, `entry.dataStream`, `tagTemplate`.
-   * 
- * - * string search_result_subtype = 2; - * - * @return The bytes for searchResultSubtype. - */ - com.google.protobuf.ByteString getSearchResultSubtypeBytes(); - - /** - * - * - *
-   * The relative name of the resource in URL format.
-   *
-   * Examples:
-   *
-   * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`
-   * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}`
-   * 
- * - * string relative_resource_name = 3; - * - * @return The relativeResourceName. - */ - java.lang.String getRelativeResourceName(); - - /** - * - * - *
-   * The relative name of the resource in URL format.
-   *
-   * Examples:
-   *
-   * * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`
-   * * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}`
-   * 
- * - * string relative_resource_name = 3; - * - * @return The bytes for relativeResourceName. - */ - com.google.protobuf.ByteString getRelativeResourceNameBytes(); - - /** - * - * - *
-   * The full name of the Google Cloud resource the entry belongs to.
-   *
-   * For more information, see [Full Resource Name]
-   * (/apis/design/resource_names#full_resource_name).
-   *
-   * Example:
-   *
-   * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID`
-   * 
- * - * string linked_resource = 4; - * - * @return The linkedResource. - */ - java.lang.String getLinkedResource(); - - /** - * - * - *
-   * The full name of the Google Cloud resource the entry belongs to.
-   *
-   * For more information, see [Full Resource Name]
-   * (/apis/design/resource_names#full_resource_name).
-   *
-   * Example:
-   *
-   * `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID`
-   * 
- * - * string linked_resource = 4; - * - * @return The bytes for linkedResource. - */ - com.google.protobuf.ByteString getLinkedResourceBytes(); - - /** - * - * - *
-   * The last modification timestamp of the entry in the source system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return Whether the modifyTime field is set. - */ - boolean hasModifyTime(); - - /** - * - * - *
-   * The last modification timestamp of the entry in the source system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return The modifyTime. - */ - com.google.protobuf.Timestamp getModifyTime(); - - /** - * - * - *
-   * The last modification timestamp of the entry in the source system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - com.google.protobuf.TimestampOrBuilder getModifyTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The source system that Data Catalog automatically integrates
-   * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the integratedSystem field is set. - */ - boolean hasIntegratedSystem(); - - /** - * - * - *
-   * Output only. The source system that Data Catalog automatically integrates
-   * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for integratedSystem. - */ - int getIntegratedSystemValue(); - - /** - * - * - *
-   * Output only. The source system that Data Catalog automatically integrates
-   * with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore.
-   * 
- * - * - * .google.cloud.datacatalog.v1.IntegratedSystem integrated_system = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The integratedSystem. - */ - com.google.cloud.datacatalog.v1.IntegratedSystem getIntegratedSystem(); - - /** - * - * - *
-   * Custom source system that you can manually integrate Data Catalog with.
-   * 
- * - * string user_specified_system = 9; - * - * @return Whether the userSpecifiedSystem field is set. - */ - boolean hasUserSpecifiedSystem(); - - /** - * - * - *
-   * Custom source system that you can manually integrate Data Catalog with.
-   * 
- * - * string user_specified_system = 9; - * - * @return The userSpecifiedSystem. - */ - java.lang.String getUserSpecifiedSystem(); - - /** - * - * - *
-   * Custom source system that you can manually integrate Data Catalog with.
-   * 
- * - * string user_specified_system = 9; - * - * @return The bytes for userSpecifiedSystem. - */ - com.google.protobuf.ByteString getUserSpecifiedSystemBytes(); - - /** - * - * - *
-   * Fully qualified name (FQN) of the resource.
-   *
-   * FQNs take two forms:
-   *
-   * * For non-regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * * For regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * Example for a DPMS table:
-   *
-   * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID`
-   * 
- * - * string fully_qualified_name = 10; - * - * @return The fullyQualifiedName. - */ - java.lang.String getFullyQualifiedName(); - - /** - * - * - *
-   * Fully qualified name (FQN) of the resource.
-   *
-   * FQNs take two forms:
-   *
-   * * For non-regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * * For regionalized resources:
-   *
-   * `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}`
-   *
-   * Example for a DPMS table:
-   *
-   * `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID`
-   * 
- * - * string fully_qualified_name = 10; - * - * @return The bytes for fullyQualifiedName. - */ - com.google.protobuf.ByteString getFullyQualifiedNameBytes(); - - /** - * - * - *
-   * The display name of the result.
-   * 
- * - * string display_name = 12; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * The display name of the result.
-   * 
- * - * string display_name = 12; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Entry description that can consist of several sentences or paragraphs that
-   * describe entry contents.
-   * 
- * - * string description = 13; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Entry description that can consist of several sentences or paragraphs that
-   * describe entry contents.
-   * 
- * - * string description = 13; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - com.google.cloud.datacatalog.v1.SearchCatalogResult.SystemCase getSystemCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchResultType.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchResultType.java deleted file mode 100644 index f785efbaa498..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SearchResultType.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/search.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * The resource types that can be returned in search results.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.SearchResultType} - */ -@com.google.protobuf.Generated -public enum SearchResultType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * SEARCH_RESULT_TYPE_UNSPECIFIED = 0; - */ - SEARCH_RESULT_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * An [Entry][google.cloud.datacatalog.v1.Entry].
-   * 
- * - * ENTRY = 1; - */ - ENTRY(1), - /** - * - * - *
-   * A [TagTemplate][google.cloud.datacatalog.v1.TagTemplate].
-   * 
- * - * TAG_TEMPLATE = 2; - */ - TAG_TEMPLATE(2), - /** - * - * - *
-   * An [EntryGroup][google.cloud.datacatalog.v1.EntryGroup].
-   * 
- * - * ENTRY_GROUP = 3; - */ - ENTRY_GROUP(3), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SearchResultType"); - } - - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * SEARCH_RESULT_TYPE_UNSPECIFIED = 0; - */ - public static final int SEARCH_RESULT_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * An [Entry][google.cloud.datacatalog.v1.Entry].
-   * 
- * - * ENTRY = 1; - */ - public static final int ENTRY_VALUE = 1; - - /** - * - * - *
-   * A [TagTemplate][google.cloud.datacatalog.v1.TagTemplate].
-   * 
- * - * TAG_TEMPLATE = 2; - */ - public static final int TAG_TEMPLATE_VALUE = 2; - - /** - * - * - *
-   * An [EntryGroup][google.cloud.datacatalog.v1.EntryGroup].
-   * 
- * - * ENTRY_GROUP = 3; - */ - public static final int ENTRY_GROUP_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 SearchResultType 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 SearchResultType forNumber(int value) { - switch (value) { - case 0: - return SEARCH_RESULT_TYPE_UNSPECIFIED; - case 1: - return ENTRY; - case 2: - return TAG_TEMPLATE; - case 3: - return ENTRY_GROUP; - 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 SearchResultType findValueByNumber(int number) { - return SearchResultType.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.datacatalog.v1.Search.getDescriptor().getEnumTypes().get(0); - } - - private static final SearchResultType[] VALUES = values(); - - public static SearchResultType 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 SearchResultType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.SearchResultType) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTag.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTag.java deleted file mode 100644 index 02b7bcc15fa3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTag.java +++ /dev/null @@ -1,1542 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * A nested protocol buffer that represents a policy tag and all its
- * descendants.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SerializedPolicyTag} - */ -@com.google.protobuf.Generated -public final class SerializedPolicyTag extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SerializedPolicyTag) - SerializedPolicyTagOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SerializedPolicyTag"); - } - - // Use SerializedPolicyTag.newBuilder() to construct. - private SerializedPolicyTag(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SerializedPolicyTag() { - policyTag_ = ""; - displayName_ = ""; - description_ = ""; - childPolicyTags_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SerializedPolicyTag.class, - com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder.class); - } - - public static final int POLICY_TAG_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object policyTag_ = ""; - - /** - * - * - *
-   * Resource name of the policy tag.
-   *
-   * This field is ignored when calling `ImportTaxonomies`.
-   * 
- * - * string policy_tag = 1; - * - * @return The policyTag. - */ - @java.lang.Override - public java.lang.String getPolicyTag() { - java.lang.Object ref = policyTag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyTag_ = s; - return s; - } - } - - /** - * - * - *
-   * Resource name of the policy tag.
-   *
-   * This field is ignored when calling `ImportTaxonomies`.
-   * 
- * - * string policy_tag = 1; - * - * @return The bytes for policyTag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPolicyTagBytes() { - java.lang.Object ref = policyTag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyTag_ = 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_ = ""; - - /** - * - * - *
-   * Required. Display name of the policy tag. At most 200 bytes when encoded
-   * in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-   * Required. Display name of the policy tag. At most 200 bytes when encoded
-   * in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ = ""; - - /** - * - * - *
-   * Description of the serialized policy tag. At most
-   * 2000 bytes when encoded in UTF-8. If not set, defaults to an
-   * empty description.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - - /** - * - * - *
-   * Description of the serialized policy tag. At most
-   * 2000 bytes when encoded in UTF-8. If not set, defaults to an
-   * empty description.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHILD_POLICY_TAGS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private java.util.List childPolicyTags_; - - /** - * - * - *
-   * Children of the policy tag, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - @java.lang.Override - public java.util.List - getChildPolicyTagsList() { - return childPolicyTags_; - } - - /** - * - * - *
-   * Children of the policy tag, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - @java.lang.Override - public java.util.List - getChildPolicyTagsOrBuilderList() { - return childPolicyTags_; - } - - /** - * - * - *
-   * Children of the policy tag, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - @java.lang.Override - public int getChildPolicyTagsCount() { - return childPolicyTags_.size(); - } - - /** - * - * - *
-   * Children of the policy tag, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedPolicyTag getChildPolicyTags(int index) { - return childPolicyTags_.get(index); - } - - /** - * - * - *
-   * Children of the policy tag, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder getChildPolicyTagsOrBuilder( - int index) { - return childPolicyTags_.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(policyTag_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, policyTag_); - } - 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 < childPolicyTags_.size(); i++) { - output.writeMessage(4, childPolicyTags_.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(policyTag_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, policyTag_); - } - 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 < childPolicyTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, childPolicyTags_.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.datacatalog.v1.SerializedPolicyTag)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.SerializedPolicyTag other = - (com.google.cloud.datacatalog.v1.SerializedPolicyTag) obj; - - if (!getPolicyTag().equals(other.getPolicyTag())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getChildPolicyTagsList().equals(other.getChildPolicyTagsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + POLICY_TAG_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTag().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 (getChildPolicyTagsCount() > 0) { - hash = (37 * hash) + CHILD_POLICY_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getChildPolicyTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.SerializedPolicyTag prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 nested protocol buffer that represents a policy tag and all its
-   * descendants.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SerializedPolicyTag} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.SerializedPolicyTag) - com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SerializedPolicyTag.class, - com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.SerializedPolicyTag.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - policyTag_ = ""; - displayName_ = ""; - description_ = ""; - if (childPolicyTagsBuilder_ == null) { - childPolicyTags_ = java.util.Collections.emptyList(); - } else { - childPolicyTags_ = null; - childPolicyTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_SerializedPolicyTag_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedPolicyTag getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.SerializedPolicyTag.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedPolicyTag build() { - com.google.cloud.datacatalog.v1.SerializedPolicyTag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedPolicyTag buildPartial() { - com.google.cloud.datacatalog.v1.SerializedPolicyTag result = - new com.google.cloud.datacatalog.v1.SerializedPolicyTag(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.SerializedPolicyTag result) { - if (childPolicyTagsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - childPolicyTags_ = java.util.Collections.unmodifiableList(childPolicyTags_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.childPolicyTags_ = childPolicyTags_; - } else { - result.childPolicyTags_ = childPolicyTagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.SerializedPolicyTag result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.policyTag_ = policyTag_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.SerializedPolicyTag) { - return mergeFrom((com.google.cloud.datacatalog.v1.SerializedPolicyTag) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.SerializedPolicyTag other) { - if (other == com.google.cloud.datacatalog.v1.SerializedPolicyTag.getDefaultInstance()) - return this; - if (!other.getPolicyTag().isEmpty()) { - policyTag_ = other.policyTag_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (childPolicyTagsBuilder_ == null) { - if (!other.childPolicyTags_.isEmpty()) { - if (childPolicyTags_.isEmpty()) { - childPolicyTags_ = other.childPolicyTags_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.addAll(other.childPolicyTags_); - } - onChanged(); - } - } else { - if (!other.childPolicyTags_.isEmpty()) { - if (childPolicyTagsBuilder_.isEmpty()) { - childPolicyTagsBuilder_.dispose(); - childPolicyTagsBuilder_ = null; - childPolicyTags_ = other.childPolicyTags_; - bitField0_ = (bitField0_ & ~0x00000008); - childPolicyTagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetChildPolicyTagsFieldBuilder() - : null; - } else { - childPolicyTagsBuilder_.addAllMessages(other.childPolicyTags_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - policyTag_ = 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.datacatalog.v1.SerializedPolicyTag m = - input.readMessage( - com.google.cloud.datacatalog.v1.SerializedPolicyTag.parser(), - extensionRegistry); - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(m); - } else { - childPolicyTagsBuilder_.addMessage(m); - } - 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 policyTag_ = ""; - - /** - * - * - *
-     * Resource name of the policy tag.
-     *
-     * This field is ignored when calling `ImportTaxonomies`.
-     * 
- * - * string policy_tag = 1; - * - * @return The policyTag. - */ - public java.lang.String getPolicyTag() { - java.lang.Object ref = policyTag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyTag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Resource name of the policy tag.
-     *
-     * This field is ignored when calling `ImportTaxonomies`.
-     * 
- * - * string policy_tag = 1; - * - * @return The bytes for policyTag. - */ - public com.google.protobuf.ByteString getPolicyTagBytes() { - java.lang.Object ref = policyTag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Resource name of the policy tag.
-     *
-     * This field is ignored when calling `ImportTaxonomies`.
-     * 
- * - * string policy_tag = 1; - * - * @param value The policyTag to set. - * @return This builder for chaining. - */ - public Builder setPolicyTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - policyTag_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource name of the policy tag.
-     *
-     * This field is ignored when calling `ImportTaxonomies`.
-     * 
- * - * string policy_tag = 1; - * - * @return This builder for chaining. - */ - public Builder clearPolicyTag() { - policyTag_ = getDefaultInstance().getPolicyTag(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource name of the policy tag.
-     *
-     * This field is ignored when calling `ImportTaxonomies`.
-     * 
- * - * string policy_tag = 1; - * - * @param value The bytes for policyTag to set. - * @return This builder for chaining. - */ - public Builder setPolicyTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - policyTag_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - - /** - * - * - *
-     * Required. Display name of the policy tag. At most 200 bytes when encoded
-     * in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Display name of the policy tag. At most 200 bytes when encoded
-     * in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Display name of the policy tag. At most 200 bytes when encoded
-     * in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-     * Required. Display name of the policy tag. At most 200 bytes when encoded
-     * in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Display name of the policy tag. At most 200 bytes when encoded
-     * in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ = ""; - - /** - * - * - *
-     * Description of the serialized policy tag. At most
-     * 2000 bytes when encoded in UTF-8. If not set, defaults to an
-     * empty description.
-     * 
- * - * string description = 3; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Description of the serialized policy tag. At most
-     * 2000 bytes when encoded in UTF-8. If not set, defaults to an
-     * empty description.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Description of the serialized policy tag. At most
-     * 2000 bytes when encoded in UTF-8. If not set, defaults to an
-     * empty description.
-     * 
- * - * string description = 3; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of the serialized policy tag. At most
-     * 2000 bytes when encoded in UTF-8. If not set, defaults to an
-     * empty description.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of the serialized policy tag. At most
-     * 2000 bytes when encoded in UTF-8. If not set, defaults to an
-     * empty description.
-     * 
- * - * string description = 3; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List childPolicyTags_ = - java.util.Collections.emptyList(); - - private void ensureChildPolicyTagsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - childPolicyTags_ = - new java.util.ArrayList( - childPolicyTags_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder> - childPolicyTagsBuilder_; - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public java.util.List - getChildPolicyTagsList() { - if (childPolicyTagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(childPolicyTags_); - } else { - return childPolicyTagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public int getChildPolicyTagsCount() { - if (childPolicyTagsBuilder_ == null) { - return childPolicyTags_.size(); - } else { - return childPolicyTagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public com.google.cloud.datacatalog.v1.SerializedPolicyTag getChildPolicyTags(int index) { - if (childPolicyTagsBuilder_ == null) { - return childPolicyTags_.get(index); - } else { - return childPolicyTagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public Builder setChildPolicyTags( - int index, com.google.cloud.datacatalog.v1.SerializedPolicyTag value) { - if (childPolicyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.set(index, value); - onChanged(); - } else { - childPolicyTagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public Builder setChildPolicyTags( - int index, com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder builderForValue) { - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.set(index, builderForValue.build()); - onChanged(); - } else { - childPolicyTagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public Builder addChildPolicyTags(com.google.cloud.datacatalog.v1.SerializedPolicyTag value) { - if (childPolicyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(value); - onChanged(); - } else { - childPolicyTagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public Builder addChildPolicyTags( - int index, com.google.cloud.datacatalog.v1.SerializedPolicyTag value) { - if (childPolicyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(index, value); - onChanged(); - } else { - childPolicyTagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public Builder addChildPolicyTags( - com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder builderForValue) { - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(builderForValue.build()); - onChanged(); - } else { - childPolicyTagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public Builder addChildPolicyTags( - int index, com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder builderForValue) { - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(index, builderForValue.build()); - onChanged(); - } else { - childPolicyTagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public Builder addAllChildPolicyTags( - java.lang.Iterable values) { - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childPolicyTags_); - onChanged(); - } else { - childPolicyTagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public Builder clearChildPolicyTags() { - if (childPolicyTagsBuilder_ == null) { - childPolicyTags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - childPolicyTagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public Builder removeChildPolicyTags(int index) { - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.remove(index); - onChanged(); - } else { - childPolicyTagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder getChildPolicyTagsBuilder( - int index) { - return internalGetChildPolicyTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder getChildPolicyTagsOrBuilder( - int index) { - if (childPolicyTagsBuilder_ == null) { - return childPolicyTags_.get(index); - } else { - return childPolicyTagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public java.util.List - getChildPolicyTagsOrBuilderList() { - if (childPolicyTagsBuilder_ != null) { - return childPolicyTagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(childPolicyTags_); - } - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder addChildPolicyTagsBuilder() { - return internalGetChildPolicyTagsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.SerializedPolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder addChildPolicyTagsBuilder( - int index) { - return internalGetChildPolicyTagsFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1.SerializedPolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * Children of the policy tag, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - public java.util.List - getChildPolicyTagsBuilderList() { - return internalGetChildPolicyTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder> - internalGetChildPolicyTagsFieldBuilder() { - if (childPolicyTagsBuilder_ == null) { - childPolicyTagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder>( - childPolicyTags_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - childPolicyTags_ = null; - } - return childPolicyTagsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.SerializedPolicyTag) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.SerializedPolicyTag) - private static final com.google.cloud.datacatalog.v1.SerializedPolicyTag DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.SerializedPolicyTag(); - } - - public static com.google.cloud.datacatalog.v1.SerializedPolicyTag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SerializedPolicyTag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedPolicyTag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTagOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTagOrBuilder.java deleted file mode 100644 index d52aa111a010..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedPolicyTagOrBuilder.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface SerializedPolicyTagOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.SerializedPolicyTag) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource name of the policy tag.
-   *
-   * This field is ignored when calling `ImportTaxonomies`.
-   * 
- * - * string policy_tag = 1; - * - * @return The policyTag. - */ - java.lang.String getPolicyTag(); - - /** - * - * - *
-   * Resource name of the policy tag.
-   *
-   * This field is ignored when calling `ImportTaxonomies`.
-   * 
- * - * string policy_tag = 1; - * - * @return The bytes for policyTag. - */ - com.google.protobuf.ByteString getPolicyTagBytes(); - - /** - * - * - *
-   * Required. Display name of the policy tag. At most 200 bytes when encoded
-   * in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Required. Display name of the policy tag. At most 200 bytes when encoded
-   * in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Description of the serialized policy tag. At most
-   * 2000 bytes when encoded in UTF-8. If not set, defaults to an
-   * empty description.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Description of the serialized policy tag. At most
-   * 2000 bytes when encoded in UTF-8. If not set, defaults to an
-   * empty description.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Children of the policy tag, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - java.util.List getChildPolicyTagsList(); - - /** - * - * - *
-   * Children of the policy tag, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - com.google.cloud.datacatalog.v1.SerializedPolicyTag getChildPolicyTags(int index); - - /** - * - * - *
-   * Children of the policy tag, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - int getChildPolicyTagsCount(); - - /** - * - * - *
-   * Children of the policy tag, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - java.util.List - getChildPolicyTagsOrBuilderList(); - - /** - * - * - *
-   * Children of the policy tag, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag child_policy_tags = 4; - */ - com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder getChildPolicyTagsOrBuilder( - int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomy.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomy.java deleted file mode 100644 index 2d74860d460e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomy.java +++ /dev/null @@ -1,1751 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * A nested protocol buffer that represents a taxonomy and the hierarchy of its
- * policy tags. Used for taxonomy replacement, import, and
- * export.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SerializedTaxonomy} - */ -@com.google.protobuf.Generated -public final class SerializedTaxonomy extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SerializedTaxonomy) - SerializedTaxonomyOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SerializedTaxonomy"); - } - - // Use SerializedTaxonomy.newBuilder() to construct. - private SerializedTaxonomy(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SerializedTaxonomy() { - displayName_ = ""; - description_ = ""; - policyTags_ = java.util.Collections.emptyList(); - activatedPolicyTypes_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SerializedTaxonomy.class, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-   * Required. Display name of the taxonomy. At most 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-   * Required. Display name of the taxonomy. At most 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ = ""; - - /** - * - * - *
-   * Description of the serialized taxonomy. At most 2000 bytes when
-   * encoded in UTF-8. If not set, defaults to an empty description.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - - /** - * - * - *
-   * Description of the serialized taxonomy. At most 2000 bytes when
-   * encoded in UTF-8. If not set, defaults to an empty description.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POLICY_TAGS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List policyTags_; - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - @java.lang.Override - public java.util.List getPolicyTagsList() { - return policyTags_; - } - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - @java.lang.Override - public java.util.List - getPolicyTagsOrBuilderList() { - return policyTags_; - } - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - @java.lang.Override - public int getPolicyTagsCount() { - return policyTags_.size(); - } - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedPolicyTag getPolicyTags(int index) { - return policyTags_.get(index); - } - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder getPolicyTagsOrBuilder( - int index) { - return policyTags_.get(index); - } - - public static final int ACTIVATED_POLICY_TYPES_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList activatedPolicyTypes_ = emptyIntList(); - - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType> - activatedPolicyTypes_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType>() { - public com.google.cloud.datacatalog.v1.Taxonomy.PolicyType convert(int from) { - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType result = - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType.forNumber(from); - return result == null - ? com.google.cloud.datacatalog.v1.Taxonomy.PolicyType.UNRECOGNIZED - : result; - } - }; - - /** - * - * - *
-   * A list of policy types that are activated per taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the activatedPolicyTypes. - */ - @java.lang.Override - public java.util.List - getActivatedPolicyTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType>( - activatedPolicyTypes_, activatedPolicyTypes_converter_); - } - - /** - * - * - *
-   * A list of policy types that are activated per taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return The count of activatedPolicyTypes. - */ - @java.lang.Override - public int getActivatedPolicyTypesCount() { - return activatedPolicyTypes_.size(); - } - - /** - * - * - *
-   * A list of policy types that are activated per taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy.PolicyType getActivatedPolicyTypes(int index) { - return activatedPolicyTypes_converter_.convert(activatedPolicyTypes_.getInt(index)); - } - - /** - * - * - *
-   * A list of policy types that are activated per taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - @java.lang.Override - public java.util.List getActivatedPolicyTypesValueList() { - return activatedPolicyTypes_; - } - - /** - * - * - *
-   * A list of policy types that are activated per taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - @java.lang.Override - public int getActivatedPolicyTypesValue(int index) { - return activatedPolicyTypes_.getInt(index); - } - - private int activatedPolicyTypesMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, displayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); - } - for (int i = 0; i < policyTags_.size(); i++) { - output.writeMessage(3, policyTags_.get(i)); - } - if (getActivatedPolicyTypesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(activatedPolicyTypesMemoizedSerializedSize); - } - for (int i = 0; i < activatedPolicyTypes_.size(); i++) { - output.writeEnumNoTag(activatedPolicyTypes_.getInt(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(displayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, displayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); - } - for (int i = 0; i < policyTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, policyTags_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < activatedPolicyTypes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - activatedPolicyTypes_.getInt(i)); - } - size += dataSize; - if (!getActivatedPolicyTypesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - activatedPolicyTypesMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.SerializedTaxonomy)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.SerializedTaxonomy other = - (com.google.cloud.datacatalog.v1.SerializedTaxonomy) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getPolicyTagsList().equals(other.getPolicyTagsList())) return false; - if (!activatedPolicyTypes_.equals(other.activatedPolicyTypes_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getPolicyTagsCount() > 0) { - hash = (37 * hash) + POLICY_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTagsList().hashCode(); - } - if (getActivatedPolicyTypesCount() > 0) { - hash = (37 * hash) + ACTIVATED_POLICY_TYPES_FIELD_NUMBER; - hash = (53 * hash) + activatedPolicyTypes_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.SerializedTaxonomy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 nested protocol buffer that represents a taxonomy and the hierarchy of its
-   * policy tags. Used for taxonomy replacement, import, and
-   * export.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SerializedTaxonomy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.SerializedTaxonomy) - com.google.cloud.datacatalog.v1.SerializedTaxonomyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SerializedTaxonomy.class, - com.google.cloud.datacatalog.v1.SerializedTaxonomy.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.SerializedTaxonomy.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - description_ = ""; - if (policyTagsBuilder_ == null) { - policyTags_ = java.util.Collections.emptyList(); - } else { - policyTags_ = null; - policyTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - activatedPolicyTypes_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1_SerializedTaxonomy_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedTaxonomy getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedTaxonomy build() { - com.google.cloud.datacatalog.v1.SerializedTaxonomy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedTaxonomy buildPartial() { - com.google.cloud.datacatalog.v1.SerializedTaxonomy result = - new com.google.cloud.datacatalog.v1.SerializedTaxonomy(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1.SerializedTaxonomy result) { - if (policyTagsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - policyTags_ = java.util.Collections.unmodifiableList(policyTags_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.policyTags_ = policyTags_; - } else { - result.policyTags_ = policyTagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.SerializedTaxonomy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - activatedPolicyTypes_.makeImmutable(); - result.activatedPolicyTypes_ = activatedPolicyTypes_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.SerializedTaxonomy) { - return mergeFrom((com.google.cloud.datacatalog.v1.SerializedTaxonomy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.SerializedTaxonomy other) { - if (other == com.google.cloud.datacatalog.v1.SerializedTaxonomy.getDefaultInstance()) - return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (policyTagsBuilder_ == null) { - if (!other.policyTags_.isEmpty()) { - if (policyTags_.isEmpty()) { - policyTags_ = other.policyTags_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePolicyTagsIsMutable(); - policyTags_.addAll(other.policyTags_); - } - onChanged(); - } - } else { - if (!other.policyTags_.isEmpty()) { - if (policyTagsBuilder_.isEmpty()) { - policyTagsBuilder_.dispose(); - policyTagsBuilder_ = null; - policyTags_ = other.policyTags_; - bitField0_ = (bitField0_ & ~0x00000004); - policyTagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetPolicyTagsFieldBuilder() - : null; - } else { - policyTagsBuilder_.addAllMessages(other.policyTags_); - } - } - } - if (!other.activatedPolicyTypes_.isEmpty()) { - if (activatedPolicyTypes_.isEmpty()) { - activatedPolicyTypes_ = other.activatedPolicyTypes_; - activatedPolicyTypes_.makeImmutable(); - bitField0_ |= 0x00000008; - } else { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addAll(other.activatedPolicyTypes_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.cloud.datacatalog.v1.SerializedPolicyTag m = - input.readMessage( - com.google.cloud.datacatalog.v1.SerializedPolicyTag.parser(), - extensionRegistry); - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(m); - } else { - policyTagsBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureActivatedPolicyTypesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - activatedPolicyTypes_.addInt(input.readEnum()); - } - input.popLimit(limit); - 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 displayName_ = ""; - - /** - * - * - *
-     * Required. Display name of the taxonomy. At most 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Display name of the taxonomy. At most 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Display name of the taxonomy. At most 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-     * Required. Display name of the taxonomy. At most 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Display name of the taxonomy. At most 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 description_ = ""; - - /** - * - * - *
-     * Description of the serialized taxonomy. At most 2000 bytes when
-     * encoded in UTF-8. If not set, defaults to an empty description.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Description of the serialized taxonomy. At most 2000 bytes when
-     * encoded in UTF-8. If not set, defaults to an empty description.
-     * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Description of the serialized taxonomy. At most 2000 bytes when
-     * encoded in UTF-8. If not set, defaults to an empty description.
-     * 
- * - * string description = 2; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of the serialized taxonomy. At most 2000 bytes when
-     * encoded in UTF-8. If not set, defaults to an empty description.
-     * 
- * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of the serialized taxonomy. At most 2000 bytes when
-     * encoded in UTF-8. If not set, defaults to an empty description.
-     * 
- * - * string description = 2; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.util.List policyTags_ = - java.util.Collections.emptyList(); - - private void ensurePolicyTagsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - policyTags_ = - new java.util.ArrayList( - policyTags_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder> - policyTagsBuilder_; - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public java.util.List getPolicyTagsList() { - if (policyTagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(policyTags_); - } else { - return policyTagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public int getPolicyTagsCount() { - if (policyTagsBuilder_ == null) { - return policyTags_.size(); - } else { - return policyTagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public com.google.cloud.datacatalog.v1.SerializedPolicyTag getPolicyTags(int index) { - if (policyTagsBuilder_ == null) { - return policyTags_.get(index); - } else { - return policyTagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public Builder setPolicyTags( - int index, com.google.cloud.datacatalog.v1.SerializedPolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.set(index, value); - onChanged(); - } else { - policyTagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public Builder setPolicyTags( - int index, com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.set(index, builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public Builder addPolicyTags(com.google.cloud.datacatalog.v1.SerializedPolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.add(value); - onChanged(); - } else { - policyTagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public Builder addPolicyTags( - int index, com.google.cloud.datacatalog.v1.SerializedPolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.add(index, value); - onChanged(); - } else { - policyTagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public Builder addPolicyTags( - com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public Builder addPolicyTags( - int index, com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(index, builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public Builder addAllPolicyTags( - java.lang.Iterable values) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyTags_); - onChanged(); - } else { - policyTagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public Builder clearPolicyTags() { - if (policyTagsBuilder_ == null) { - policyTags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - policyTagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public Builder removePolicyTags(int index) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.remove(index); - onChanged(); - } else { - policyTagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder getPolicyTagsBuilder( - int index) { - return internalGetPolicyTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder getPolicyTagsOrBuilder( - int index) { - if (policyTagsBuilder_ == null) { - return policyTags_.get(index); - } else { - return policyTagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public java.util.List - getPolicyTagsOrBuilderList() { - if (policyTagsBuilder_ != null) { - return policyTagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policyTags_); - } - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder addPolicyTagsBuilder() { - return internalGetPolicyTagsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.SerializedPolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder addPolicyTagsBuilder( - int index) { - return internalGetPolicyTagsFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1.SerializedPolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy, if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - public java.util.List - getPolicyTagsBuilderList() { - return internalGetPolicyTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder> - internalGetPolicyTagsFieldBuilder() { - if (policyTagsBuilder_ == null) { - policyTagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder>( - policyTags_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - policyTags_ = null; - } - return policyTagsBuilder_; - } - - private com.google.protobuf.Internal.IntList activatedPolicyTypes_ = emptyIntList(); - - private void ensureActivatedPolicyTypesIsMutable() { - if (!activatedPolicyTypes_.isModifiable()) { - activatedPolicyTypes_ = makeMutableCopy(activatedPolicyTypes_); - } - bitField0_ |= 0x00000008; - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the activatedPolicyTypes. - */ - public java.util.List - getActivatedPolicyTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType>( - activatedPolicyTypes_, activatedPolicyTypes_converter_); - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return The count of activatedPolicyTypes. - */ - public int getActivatedPolicyTypesCount() { - return activatedPolicyTypes_.size(); - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - public com.google.cloud.datacatalog.v1.Taxonomy.PolicyType getActivatedPolicyTypes(int index) { - return activatedPolicyTypes_converter_.convert(activatedPolicyTypes_.getInt(index)); - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index to set the value at. - * @param value The activatedPolicyTypes to set. - * @return This builder for chaining. - */ - public Builder setActivatedPolicyTypes( - int index, com.google.cloud.datacatalog.v1.Taxonomy.PolicyType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param value The activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addActivatedPolicyTypes( - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param values The activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addAllActivatedPolicyTypes( - java.lang.Iterable values) { - ensureActivatedPolicyTypesIsMutable(); - for (com.google.cloud.datacatalog.v1.Taxonomy.PolicyType value : values) { - activatedPolicyTypes_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return This builder for chaining. - */ - public Builder clearActivatedPolicyTypes() { - activatedPolicyTypes_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - public java.util.List getActivatedPolicyTypesValueList() { - activatedPolicyTypes_.makeImmutable(); - return activatedPolicyTypes_; - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - public int getActivatedPolicyTypesValue(int index) { - return activatedPolicyTypes_.getInt(index); - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for activatedPolicyTypes to set. - * @return This builder for chaining. - */ - public Builder setActivatedPolicyTypesValue(int index, int value) { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.setInt(index, value); - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param value The enum numeric value on the wire for activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addActivatedPolicyTypesValue(int value) { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(value); - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated per taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param values The enum numeric values on the wire for activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addAllActivatedPolicyTypesValue(java.lang.Iterable values) { - ensureActivatedPolicyTypesIsMutable(); - for (int value : values) { - activatedPolicyTypes_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.SerializedTaxonomy) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.SerializedTaxonomy) - private static final com.google.cloud.datacatalog.v1.SerializedTaxonomy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.SerializedTaxonomy(); - } - - public static com.google.cloud.datacatalog.v1.SerializedTaxonomy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SerializedTaxonomy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SerializedTaxonomy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomyOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomyOrBuilder.java deleted file mode 100644 index a68b44cd3819..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SerializedTaxonomyOrBuilder.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface SerializedTaxonomyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.SerializedTaxonomy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Display name of the taxonomy. At most 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Required. Display name of the taxonomy. At most 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Description of the serialized taxonomy. At most 2000 bytes when
-   * encoded in UTF-8. If not set, defaults to an empty description.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Description of the serialized taxonomy. At most 2000 bytes when
-   * encoded in UTF-8. If not set, defaults to an empty description.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - java.util.List getPolicyTagsList(); - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - com.google.cloud.datacatalog.v1.SerializedPolicyTag getPolicyTags(int index); - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - int getPolicyTagsCount(); - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - java.util.List - getPolicyTagsOrBuilderList(); - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy, if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.SerializedPolicyTag policy_tags = 3; - */ - com.google.cloud.datacatalog.v1.SerializedPolicyTagOrBuilder getPolicyTagsOrBuilder(int index); - - /** - * - * - *
-   * A list of policy types that are activated per taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the activatedPolicyTypes. - */ - java.util.List getActivatedPolicyTypesList(); - - /** - * - * - *
-   * A list of policy types that are activated per taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return The count of activatedPolicyTypes. - */ - int getActivatedPolicyTypesCount(); - - /** - * - * - *
-   * A list of policy types that are activated per taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType getActivatedPolicyTypes(int index); - - /** - * - * - *
-   * A list of policy types that are activated per taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - java.util.List getActivatedPolicyTypesValueList(); - - /** - * - * - *
-   * A list of policy types that are activated per taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - int getActivatedPolicyTypesValue(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpec.java deleted file mode 100644 index 289883ce1297..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpec.java +++ /dev/null @@ -1,840 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to a Service resource. Valid only
- * for entries with the `SERVICE` type.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ServiceSpec} - */ -@com.google.protobuf.Generated -public final class ServiceSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ServiceSpec) - ServiceSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ServiceSpec"); - } - - // Use ServiceSpec.newBuilder() to construct. - private ServiceSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ServiceSpec() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ServiceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ServiceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ServiceSpec.class, - com.google.cloud.datacatalog.v1.ServiceSpec.Builder.class); - } - - private int systemSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object systemSpec_; - - public enum SystemSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CLOUD_BIGTABLE_INSTANCE_SPEC(1), - SYSTEMSPEC_NOT_SET(0); - private final int value; - - private SystemSpecCase(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 SystemSpecCase valueOf(int value) { - return forNumber(value); - } - - public static SystemSpecCase forNumber(int value) { - switch (value) { - case 1: - return CLOUD_BIGTABLE_INSTANCE_SPEC; - case 0: - return SYSTEMSPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public static final int CLOUD_BIGTABLE_INSTANCE_SPEC_FIELD_NUMBER = 1; - - /** - * - * - *
-   * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-   * system.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - * - * @return Whether the cloudBigtableInstanceSpec field is set. - */ - @java.lang.Override - public boolean hasCloudBigtableInstanceSpec() { - return systemSpecCase_ == 1; - } - - /** - * - * - *
-   * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-   * system.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - * - * @return The cloudBigtableInstanceSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec getCloudBigtableInstanceSpec() { - if (systemSpecCase_ == 1) { - return (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-   * system.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpecOrBuilder - getCloudBigtableInstanceSpecOrBuilder() { - if (systemSpecCase_ == 1) { - return (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.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 (systemSpecCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) systemSpec_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (systemSpecCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) systemSpec_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ServiceSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ServiceSpec other = - (com.google.cloud.datacatalog.v1.ServiceSpec) obj; - - if (!getSystemSpecCase().equals(other.getSystemSpecCase())) return false; - switch (systemSpecCase_) { - case 1: - if (!getCloudBigtableInstanceSpec().equals(other.getCloudBigtableInstanceSpec())) - 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 (systemSpecCase_) { - case 1: - hash = (37 * hash) + CLOUD_BIGTABLE_INSTANCE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getCloudBigtableInstanceSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.ServiceSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to a Service resource. Valid only
-   * for entries with the `SERVICE` type.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ServiceSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ServiceSpec) - com.google.cloud.datacatalog.v1.ServiceSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ServiceSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ServiceSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ServiceSpec.class, - com.google.cloud.datacatalog.v1.ServiceSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ServiceSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (cloudBigtableInstanceSpecBuilder_ != null) { - cloudBigtableInstanceSpecBuilder_.clear(); - } - systemSpecCase_ = 0; - systemSpec_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_ServiceSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ServiceSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ServiceSpec build() { - com.google.cloud.datacatalog.v1.ServiceSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ServiceSpec buildPartial() { - com.google.cloud.datacatalog.v1.ServiceSpec result = - new com.google.cloud.datacatalog.v1.ServiceSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ServiceSpec result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.ServiceSpec result) { - result.systemSpecCase_ = systemSpecCase_; - result.systemSpec_ = this.systemSpec_; - if (systemSpecCase_ == 1 && cloudBigtableInstanceSpecBuilder_ != null) { - result.systemSpec_ = cloudBigtableInstanceSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ServiceSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.ServiceSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ServiceSpec other) { - if (other == com.google.cloud.datacatalog.v1.ServiceSpec.getDefaultInstance()) return this; - switch (other.getSystemSpecCase()) { - case CLOUD_BIGTABLE_INSTANCE_SPEC: - { - mergeCloudBigtableInstanceSpec(other.getCloudBigtableInstanceSpec()); - break; - } - case SYSTEMSPEC_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( - internalGetCloudBigtableInstanceSpecFieldBuilder().getBuilder(), - extensionRegistry); - systemSpecCase_ = 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 systemSpecCase_ = 0; - private java.lang.Object systemSpec_; - - public SystemSpecCase getSystemSpecCase() { - return SystemSpecCase.forNumber(systemSpecCase_); - } - - public Builder clearSystemSpec() { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.Builder, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpecOrBuilder> - cloudBigtableInstanceSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-     * system.
-     * 
- * - * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - * - * @return Whether the cloudBigtableInstanceSpec field is set. - */ - @java.lang.Override - public boolean hasCloudBigtableInstanceSpec() { - return systemSpecCase_ == 1; - } - - /** - * - * - *
-     * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-     * system.
-     * 
- * - * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - * - * @return The cloudBigtableInstanceSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec - getCloudBigtableInstanceSpec() { - if (cloudBigtableInstanceSpecBuilder_ == null) { - if (systemSpecCase_ == 1) { - return (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.getDefaultInstance(); - } else { - if (systemSpecCase_ == 1) { - return cloudBigtableInstanceSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-     * system.
-     * 
- * - * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - */ - public Builder setCloudBigtableInstanceSpec( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec value) { - if (cloudBigtableInstanceSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - systemSpec_ = value; - onChanged(); - } else { - cloudBigtableInstanceSpecBuilder_.setMessage(value); - } - systemSpecCase_ = 1; - return this; - } - - /** - * - * - *
-     * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-     * system.
-     * 
- * - * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - */ - public Builder setCloudBigtableInstanceSpec( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.Builder builderForValue) { - if (cloudBigtableInstanceSpecBuilder_ == null) { - systemSpec_ = builderForValue.build(); - onChanged(); - } else { - cloudBigtableInstanceSpecBuilder_.setMessage(builderForValue.build()); - } - systemSpecCase_ = 1; - return this; - } - - /** - * - * - *
-     * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-     * system.
-     * 
- * - * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - */ - public Builder mergeCloudBigtableInstanceSpec( - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec value) { - if (cloudBigtableInstanceSpecBuilder_ == null) { - if (systemSpecCase_ == 1 - && systemSpec_ - != com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.getDefaultInstance()) { - systemSpec_ = - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.newBuilder( - (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) systemSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - systemSpec_ = value; - } - onChanged(); - } else { - if (systemSpecCase_ == 1) { - cloudBigtableInstanceSpecBuilder_.mergeFrom(value); - } else { - cloudBigtableInstanceSpecBuilder_.setMessage(value); - } - } - systemSpecCase_ = 1; - return this; - } - - /** - * - * - *
-     * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-     * system.
-     * 
- * - * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - */ - public Builder clearCloudBigtableInstanceSpec() { - if (cloudBigtableInstanceSpecBuilder_ == null) { - if (systemSpecCase_ == 1) { - systemSpecCase_ = 0; - systemSpec_ = null; - onChanged(); - } - } else { - if (systemSpecCase_ == 1) { - systemSpecCase_ = 0; - systemSpec_ = null; - } - cloudBigtableInstanceSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-     * system.
-     * 
- * - * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - */ - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.Builder - getCloudBigtableInstanceSpecBuilder() { - return internalGetCloudBigtableInstanceSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-     * system.
-     * 
- * - * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpecOrBuilder - getCloudBigtableInstanceSpecOrBuilder() { - if ((systemSpecCase_ == 1) && (cloudBigtableInstanceSpecBuilder_ != null)) { - return cloudBigtableInstanceSpecBuilder_.getMessageOrBuilder(); - } else { - if (systemSpecCase_ == 1) { - return (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) systemSpec_; - } - return com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-     * system.
-     * 
- * - * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.Builder, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpecOrBuilder> - internalGetCloudBigtableInstanceSpecFieldBuilder() { - if (cloudBigtableInstanceSpecBuilder_ == null) { - if (!(systemSpecCase_ == 1)) { - systemSpec_ = - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.getDefaultInstance(); - } - cloudBigtableInstanceSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec.Builder, - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpecOrBuilder>( - (com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec) systemSpec_, - getParentForChildren(), - isClean()); - systemSpec_ = null; - } - systemSpecCase_ = 1; - onChanged(); - return cloudBigtableInstanceSpecBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ServiceSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ServiceSpec) - private static final com.google.cloud.datacatalog.v1.ServiceSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ServiceSpec(); - } - - public static com.google.cloud.datacatalog.v1.ServiceSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ServiceSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpecOrBuilder.java deleted file mode 100644 index 548448b20fb6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ServiceSpecOrBuilder.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ServiceSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ServiceSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-   * system.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - * - * @return Whether the cloudBigtableInstanceSpec field is set. - */ - boolean hasCloudBigtableInstanceSpec(); - - /** - * - * - *
-   * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-   * system.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - * - * @return The cloudBigtableInstanceSpec. - */ - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpec getCloudBigtableInstanceSpec(); - - /** - * - * - *
-   * Specification that applies to Instance entries of `CLOUD_BIGTABLE`
-   * system.
-   * 
- * - * .google.cloud.datacatalog.v1.CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - * - */ - com.google.cloud.datacatalog.v1.CloudBigtableInstanceSpecOrBuilder - getCloudBigtableInstanceSpecOrBuilder(); - - com.google.cloud.datacatalog.v1.ServiceSpec.SystemSpecCase getSystemSpecCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequest.java deleted file mode 100644 index 3fcc013b8bde..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequest.java +++ /dev/null @@ -1,1098 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SetConfigRequest} - */ -@com.google.protobuf.Generated -public final class SetConfigRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SetConfigRequest) - SetConfigRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SetConfigRequest"); - } - - // Use SetConfigRequest.newBuilder() to construct. - private SetConfigRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SetConfigRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SetConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SetConfigRequest.class, - com.google.cloud.datacatalog.v1.SetConfigRequest.Builder.class); - } - - private int configurationCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object configuration_; - - public enum ConfigurationCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TAG_TEMPLATE_MIGRATION(2), - CATALOG_UI_EXPERIENCE(3), - CONFIGURATION_NOT_SET(0); - private final int value; - - private ConfigurationCase(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 ConfigurationCase valueOf(int value) { - return forNumber(value); - } - - public static ConfigurationCase forNumber(int value) { - switch (value) { - case 2: - return TAG_TEMPLATE_MIGRATION; - case 3: - return CATALOG_UI_EXPERIENCE; - case 0: - return CONFIGURATION_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ConfigurationCase getConfigurationCase() { - return ConfigurationCase.forNumber(configurationCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The organization or project whose config is being specified.
-   * 
- * - * 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 organization or project whose config is being specified.
-   * 
- * - * 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 TAG_TEMPLATE_MIGRATION_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Opt-in status for the migration of Tag Templates to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @return Whether the tagTemplateMigration field is set. - */ - public boolean hasTagTemplateMigration() { - return configurationCase_ == 2; - } - - /** - * - * - *
-   * Opt-in status for the migration of Tag Templates to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @return The enum numeric value on the wire for tagTemplateMigration. - */ - public int getTagTemplateMigrationValue() { - if (configurationCase_ == 2) { - return (java.lang.Integer) configuration_; - } - return 0; - } - - /** - * - * - *
-   * Opt-in status for the migration of Tag Templates to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @return The tagTemplateMigration. - */ - public com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration() { - if (configurationCase_ == 2) { - com.google.cloud.datacatalog.v1.TagTemplateMigration result = - com.google.cloud.datacatalog.v1.TagTemplateMigration.forNumber( - (java.lang.Integer) configuration_); - return result == null - ? com.google.cloud.datacatalog.v1.TagTemplateMigration.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1.TagTemplateMigration.TAG_TEMPLATE_MIGRATION_UNSPECIFIED; - } - - public static final int CATALOG_UI_EXPERIENCE_FIELD_NUMBER = 3; - - /** - * - * - *
-   * Opt-in status for the UI switch to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @return Whether the catalogUiExperience field is set. - */ - public boolean hasCatalogUiExperience() { - return configurationCase_ == 3; - } - - /** - * - * - *
-   * Opt-in status for the UI switch to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @return The enum numeric value on the wire for catalogUiExperience. - */ - public int getCatalogUiExperienceValue() { - if (configurationCase_ == 3) { - return (java.lang.Integer) configuration_; - } - return 0; - } - - /** - * - * - *
-   * Opt-in status for the UI switch to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @return The catalogUiExperience. - */ - public com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience() { - if (configurationCase_ == 3) { - com.google.cloud.datacatalog.v1.CatalogUIExperience result = - com.google.cloud.datacatalog.v1.CatalogUIExperience.forNumber( - (java.lang.Integer) configuration_); - return result == null - ? com.google.cloud.datacatalog.v1.CatalogUIExperience.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1.CatalogUIExperience.CATALOG_UI_EXPERIENCE_UNSPECIFIED; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (configurationCase_ == 2) { - output.writeEnum(2, ((java.lang.Integer) configuration_)); - } - if (configurationCase_ == 3) { - output.writeEnum(3, ((java.lang.Integer) configuration_)); - } - 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 (configurationCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 2, ((java.lang.Integer) configuration_)); - } - if (configurationCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 3, ((java.lang.Integer) configuration_)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.SetConfigRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.SetConfigRequest other = - (com.google.cloud.datacatalog.v1.SetConfigRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getConfigurationCase().equals(other.getConfigurationCase())) return false; - switch (configurationCase_) { - case 2: - if (getTagTemplateMigrationValue() != other.getTagTemplateMigrationValue()) return false; - break; - case 3: - if (getCatalogUiExperienceValue() != other.getCatalogUiExperienceValue()) 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(); - switch (configurationCase_) { - case 2: - hash = (37 * hash) + TAG_TEMPLATE_MIGRATION_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplateMigrationValue(); - break; - case 3: - hash = (37 * hash) + CATALOG_UI_EXPERIENCE_FIELD_NUMBER; - hash = (53 * hash) + getCatalogUiExperienceValue(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.SetConfigRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SetConfigRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.SetConfigRequest) - com.google.cloud.datacatalog.v1.SetConfigRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SetConfigRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SetConfigRequest.class, - com.google.cloud.datacatalog.v1.SetConfigRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.SetConfigRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - configurationCase_ = 0; - configuration_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SetConfigRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SetConfigRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.SetConfigRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SetConfigRequest build() { - com.google.cloud.datacatalog.v1.SetConfigRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SetConfigRequest buildPartial() { - com.google.cloud.datacatalog.v1.SetConfigRequest result = - new com.google.cloud.datacatalog.v1.SetConfigRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.SetConfigRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.SetConfigRequest result) { - result.configurationCase_ = configurationCase_; - result.configuration_ = this.configuration_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.SetConfigRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.SetConfigRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.SetConfigRequest other) { - if (other == com.google.cloud.datacatalog.v1.SetConfigRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - switch (other.getConfigurationCase()) { - case TAG_TEMPLATE_MIGRATION: - { - setTagTemplateMigrationValue(other.getTagTemplateMigrationValue()); - break; - } - case CATALOG_UI_EXPERIENCE: - { - setCatalogUiExperienceValue(other.getCatalogUiExperienceValue()); - break; - } - case CONFIGURATION_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_ |= 0x00000001; - break; - } // case 10 - case 16: - { - int rawValue = input.readEnum(); - configurationCase_ = 2; - configuration_ = rawValue; - break; - } // case 16 - case 24: - { - int rawValue = input.readEnum(); - configurationCase_ = 3; - configuration_ = rawValue; - 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 configurationCase_ = 0; - private java.lang.Object configuration_; - - public ConfigurationCase getConfigurationCase() { - return ConfigurationCase.forNumber(configurationCase_); - } - - public Builder clearConfiguration() { - configurationCase_ = 0; - configuration_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - - /** - * - * - *
-     * Required. The organization or project whose config is being specified.
-     * 
- * - * 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 organization or project whose config is being specified.
-     * 
- * - * 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 organization or project whose config is being specified.
-     * 
- * - * 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 organization or project whose config is being specified.
-     * 
- * - * 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 organization or project whose config is being specified.
-     * 
- * - * 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; - } - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @return Whether the tagTemplateMigration field is set. - */ - @java.lang.Override - public boolean hasTagTemplateMigration() { - return configurationCase_ == 2; - } - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @return The enum numeric value on the wire for tagTemplateMigration. - */ - @java.lang.Override - public int getTagTemplateMigrationValue() { - if (configurationCase_ == 2) { - return ((java.lang.Integer) configuration_).intValue(); - } - return 0; - } - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @param value The enum numeric value on the wire for tagTemplateMigration to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateMigrationValue(int value) { - configurationCase_ = 2; - configuration_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @return The tagTemplateMigration. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration() { - if (configurationCase_ == 2) { - com.google.cloud.datacatalog.v1.TagTemplateMigration result = - com.google.cloud.datacatalog.v1.TagTemplateMigration.forNumber( - (java.lang.Integer) configuration_); - return result == null - ? com.google.cloud.datacatalog.v1.TagTemplateMigration.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1.TagTemplateMigration - .TAG_TEMPLATE_MIGRATION_UNSPECIFIED; - } - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @param value The tagTemplateMigration to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateMigration( - com.google.cloud.datacatalog.v1.TagTemplateMigration value) { - if (value == null) { - throw new NullPointerException(); - } - configurationCase_ = 2; - configuration_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Opt-in status for the migration of Tag Templates to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @return This builder for chaining. - */ - public Builder clearTagTemplateMigration() { - if (configurationCase_ == 2) { - configurationCase_ = 0; - configuration_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @return Whether the catalogUiExperience field is set. - */ - @java.lang.Override - public boolean hasCatalogUiExperience() { - return configurationCase_ == 3; - } - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @return The enum numeric value on the wire for catalogUiExperience. - */ - @java.lang.Override - public int getCatalogUiExperienceValue() { - if (configurationCase_ == 3) { - return ((java.lang.Integer) configuration_).intValue(); - } - return 0; - } - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @param value The enum numeric value on the wire for catalogUiExperience to set. - * @return This builder for chaining. - */ - public Builder setCatalogUiExperienceValue(int value) { - configurationCase_ = 3; - configuration_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @return The catalogUiExperience. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience() { - if (configurationCase_ == 3) { - com.google.cloud.datacatalog.v1.CatalogUIExperience result = - com.google.cloud.datacatalog.v1.CatalogUIExperience.forNumber( - (java.lang.Integer) configuration_); - return result == null - ? com.google.cloud.datacatalog.v1.CatalogUIExperience.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1.CatalogUIExperience.CATALOG_UI_EXPERIENCE_UNSPECIFIED; - } - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @param value The catalogUiExperience to set. - * @return This builder for chaining. - */ - public Builder setCatalogUiExperience( - com.google.cloud.datacatalog.v1.CatalogUIExperience value) { - if (value == null) { - throw new NullPointerException(); - } - configurationCase_ = 3; - configuration_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Opt-in status for the UI switch to Dataplex.
-     * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @return This builder for chaining. - */ - public Builder clearCatalogUiExperience() { - if (configurationCase_ == 3) { - configurationCase_ = 0; - configuration_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.SetConfigRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.SetConfigRequest) - private static final com.google.cloud.datacatalog.v1.SetConfigRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.SetConfigRequest(); - } - - public static com.google.cloud.datacatalog.v1.SetConfigRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SetConfigRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SetConfigRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequestOrBuilder.java deleted file mode 100644 index 3d191f2171a3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SetConfigRequestOrBuilder.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface SetConfigRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.SetConfigRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The organization or project whose config is being specified.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The organization or project whose config is being specified.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Opt-in status for the migration of Tag Templates to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @return Whether the tagTemplateMigration field is set. - */ - boolean hasTagTemplateMigration(); - - /** - * - * - *
-   * Opt-in status for the migration of Tag Templates to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @return The enum numeric value on the wire for tagTemplateMigration. - */ - int getTagTemplateMigrationValue(); - - /** - * - * - *
-   * Opt-in status for the migration of Tag Templates to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.TagTemplateMigration tag_template_migration = 2; - * - * @return The tagTemplateMigration. - */ - com.google.cloud.datacatalog.v1.TagTemplateMigration getTagTemplateMigration(); - - /** - * - * - *
-   * Opt-in status for the UI switch to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @return Whether the catalogUiExperience field is set. - */ - boolean hasCatalogUiExperience(); - - /** - * - * - *
-   * Opt-in status for the UI switch to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @return The enum numeric value on the wire for catalogUiExperience. - */ - int getCatalogUiExperienceValue(); - - /** - * - * - *
-   * Opt-in status for the UI switch to Dataplex.
-   * 
- * - * .google.cloud.datacatalog.v1.CatalogUIExperience catalog_ui_experience = 3; - * - * @return The catalogUiExperience. - */ - com.google.cloud.datacatalog.v1.CatalogUIExperience getCatalogUiExperience(); - - com.google.cloud.datacatalog.v1.SetConfigRequest.ConfigurationCase getConfigurationCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpec.java deleted file mode 100644 index 65a6be8d350d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpec.java +++ /dev/null @@ -1,1084 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification that applies to
- * entries that are part `SQL_DATABASE` system
- * (user_specified_type)
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SqlDatabaseSystemSpec} - */ -@com.google.protobuf.Generated -public final class SqlDatabaseSystemSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) - SqlDatabaseSystemSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SqlDatabaseSystemSpec"); - } - - // Use SqlDatabaseSystemSpec.newBuilder() to construct. - private SqlDatabaseSystemSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SqlDatabaseSystemSpec() { - sqlEngine_ = ""; - databaseVersion_ = ""; - instanceHost_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.class, - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder.class); - } - - public static final int SQL_ENGINE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object sqlEngine_ = ""; - - /** - * - * - *
-   * SQL Database Engine.
-   * enum SqlEngine {
-   * UNDEFINED = 0;
-   * MY_SQL = 1;
-   * POSTGRE_SQL = 2;
-   * SQL_SERVER = 3;
-   * }
-   * Engine of the enclosing database instance.
-   * 
- * - * string sql_engine = 1; - * - * @return The sqlEngine. - */ - @java.lang.Override - public java.lang.String getSqlEngine() { - java.lang.Object ref = sqlEngine_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sqlEngine_ = s; - return s; - } - } - - /** - * - * - *
-   * SQL Database Engine.
-   * enum SqlEngine {
-   * UNDEFINED = 0;
-   * MY_SQL = 1;
-   * POSTGRE_SQL = 2;
-   * SQL_SERVER = 3;
-   * }
-   * Engine of the enclosing database instance.
-   * 
- * - * string sql_engine = 1; - * - * @return The bytes for sqlEngine. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSqlEngineBytes() { - java.lang.Object ref = sqlEngine_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - sqlEngine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATABASE_VERSION_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object databaseVersion_ = ""; - - /** - * - * - *
-   * Version of the database engine.
-   * 
- * - * string database_version = 2; - * - * @return The databaseVersion. - */ - @java.lang.Override - public java.lang.String getDatabaseVersion() { - java.lang.Object ref = databaseVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - databaseVersion_ = s; - return s; - } - } - - /** - * - * - *
-   * Version of the database engine.
-   * 
- * - * string database_version = 2; - * - * @return The bytes for databaseVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDatabaseVersionBytes() { - java.lang.Object ref = databaseVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - databaseVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INSTANCE_HOST_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object instanceHost_ = ""; - - /** - * - * - *
-   * Host of the SQL database
-   * enum InstanceHost {
-   * UNDEFINED = 0;
-   * SELF_HOSTED = 1;
-   * CLOUD_SQL = 2;
-   * AMAZON_RDS = 3;
-   * AZURE_SQL = 4;
-   * }
-   * Host of the enclousing database instance.
-   * 
- * - * string instance_host = 3; - * - * @return The instanceHost. - */ - @java.lang.Override - public java.lang.String getInstanceHost() { - java.lang.Object ref = instanceHost_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceHost_ = s; - return s; - } - } - - /** - * - * - *
-   * Host of the SQL database
-   * enum InstanceHost {
-   * UNDEFINED = 0;
-   * SELF_HOSTED = 1;
-   * CLOUD_SQL = 2;
-   * AMAZON_RDS = 3;
-   * AZURE_SQL = 4;
-   * }
-   * Host of the enclousing database instance.
-   * 
- * - * string instance_host = 3; - * - * @return The bytes for instanceHost. - */ - @java.lang.Override - public com.google.protobuf.ByteString getInstanceHostBytes() { - java.lang.Object ref = instanceHost_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceHost_ = 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(sqlEngine_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, sqlEngine_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(databaseVersion_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, databaseVersion_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceHost_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, instanceHost_); - } - 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(sqlEngine_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, sqlEngine_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(databaseVersion_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, databaseVersion_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instanceHost_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, instanceHost_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec other = - (com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) obj; - - if (!getSqlEngine().equals(other.getSqlEngine())) return false; - if (!getDatabaseVersion().equals(other.getDatabaseVersion())) return false; - if (!getInstanceHost().equals(other.getInstanceHost())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SQL_ENGINE_FIELD_NUMBER; - hash = (53 * hash) + getSqlEngine().hashCode(); - hash = (37 * hash) + DATABASE_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getDatabaseVersion().hashCode(); - hash = (37 * hash) + INSTANCE_HOST_FIELD_NUMBER; - hash = (53 * hash) + getInstanceHost().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification that applies to
-   * entries that are part `SQL_DATABASE` system
-   * (user_specified_type)
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SqlDatabaseSystemSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.class, - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - sqlEngine_ = ""; - databaseVersion_ = ""; - instanceHost_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_SqlDatabaseSystemSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec build() { - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec buildPartial() { - com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec result = - new com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.sqlEngine_ = sqlEngine_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.databaseVersion_ = databaseVersion_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.instanceHost_ = instanceHost_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec other) { - if (other == com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec.getDefaultInstance()) - return this; - if (!other.getSqlEngine().isEmpty()) { - sqlEngine_ = other.sqlEngine_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDatabaseVersion().isEmpty()) { - databaseVersion_ = other.databaseVersion_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getInstanceHost().isEmpty()) { - instanceHost_ = other.instanceHost_; - 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: - { - sqlEngine_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - databaseVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - instanceHost_ = 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 sqlEngine_ = ""; - - /** - * - * - *
-     * SQL Database Engine.
-     * enum SqlEngine {
-     * UNDEFINED = 0;
-     * MY_SQL = 1;
-     * POSTGRE_SQL = 2;
-     * SQL_SERVER = 3;
-     * }
-     * Engine of the enclosing database instance.
-     * 
- * - * string sql_engine = 1; - * - * @return The sqlEngine. - */ - public java.lang.String getSqlEngine() { - java.lang.Object ref = sqlEngine_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - sqlEngine_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * SQL Database Engine.
-     * enum SqlEngine {
-     * UNDEFINED = 0;
-     * MY_SQL = 1;
-     * POSTGRE_SQL = 2;
-     * SQL_SERVER = 3;
-     * }
-     * Engine of the enclosing database instance.
-     * 
- * - * string sql_engine = 1; - * - * @return The bytes for sqlEngine. - */ - public com.google.protobuf.ByteString getSqlEngineBytes() { - java.lang.Object ref = sqlEngine_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - sqlEngine_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * SQL Database Engine.
-     * enum SqlEngine {
-     * UNDEFINED = 0;
-     * MY_SQL = 1;
-     * POSTGRE_SQL = 2;
-     * SQL_SERVER = 3;
-     * }
-     * Engine of the enclosing database instance.
-     * 
- * - * string sql_engine = 1; - * - * @param value The sqlEngine to set. - * @return This builder for chaining. - */ - public Builder setSqlEngine(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - sqlEngine_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * SQL Database Engine.
-     * enum SqlEngine {
-     * UNDEFINED = 0;
-     * MY_SQL = 1;
-     * POSTGRE_SQL = 2;
-     * SQL_SERVER = 3;
-     * }
-     * Engine of the enclosing database instance.
-     * 
- * - * string sql_engine = 1; - * - * @return This builder for chaining. - */ - public Builder clearSqlEngine() { - sqlEngine_ = getDefaultInstance().getSqlEngine(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * SQL Database Engine.
-     * enum SqlEngine {
-     * UNDEFINED = 0;
-     * MY_SQL = 1;
-     * POSTGRE_SQL = 2;
-     * SQL_SERVER = 3;
-     * }
-     * Engine of the enclosing database instance.
-     * 
- * - * string sql_engine = 1; - * - * @param value The bytes for sqlEngine to set. - * @return This builder for chaining. - */ - public Builder setSqlEngineBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - sqlEngine_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object databaseVersion_ = ""; - - /** - * - * - *
-     * Version of the database engine.
-     * 
- * - * string database_version = 2; - * - * @return The databaseVersion. - */ - public java.lang.String getDatabaseVersion() { - java.lang.Object ref = databaseVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - databaseVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Version of the database engine.
-     * 
- * - * string database_version = 2; - * - * @return The bytes for databaseVersion. - */ - public com.google.protobuf.ByteString getDatabaseVersionBytes() { - java.lang.Object ref = databaseVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - databaseVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Version of the database engine.
-     * 
- * - * string database_version = 2; - * - * @param value The databaseVersion to set. - * @return This builder for chaining. - */ - public Builder setDatabaseVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - databaseVersion_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Version of the database engine.
-     * 
- * - * string database_version = 2; - * - * @return This builder for chaining. - */ - public Builder clearDatabaseVersion() { - databaseVersion_ = getDefaultInstance().getDatabaseVersion(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Version of the database engine.
-     * 
- * - * string database_version = 2; - * - * @param value The bytes for databaseVersion to set. - * @return This builder for chaining. - */ - public Builder setDatabaseVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - databaseVersion_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object instanceHost_ = ""; - - /** - * - * - *
-     * Host of the SQL database
-     * enum InstanceHost {
-     * UNDEFINED = 0;
-     * SELF_HOSTED = 1;
-     * CLOUD_SQL = 2;
-     * AMAZON_RDS = 3;
-     * AZURE_SQL = 4;
-     * }
-     * Host of the enclousing database instance.
-     * 
- * - * string instance_host = 3; - * - * @return The instanceHost. - */ - public java.lang.String getInstanceHost() { - java.lang.Object ref = instanceHost_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - instanceHost_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Host of the SQL database
-     * enum InstanceHost {
-     * UNDEFINED = 0;
-     * SELF_HOSTED = 1;
-     * CLOUD_SQL = 2;
-     * AMAZON_RDS = 3;
-     * AZURE_SQL = 4;
-     * }
-     * Host of the enclousing database instance.
-     * 
- * - * string instance_host = 3; - * - * @return The bytes for instanceHost. - */ - public com.google.protobuf.ByteString getInstanceHostBytes() { - java.lang.Object ref = instanceHost_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - instanceHost_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Host of the SQL database
-     * enum InstanceHost {
-     * UNDEFINED = 0;
-     * SELF_HOSTED = 1;
-     * CLOUD_SQL = 2;
-     * AMAZON_RDS = 3;
-     * AZURE_SQL = 4;
-     * }
-     * Host of the enclousing database instance.
-     * 
- * - * string instance_host = 3; - * - * @param value The instanceHost to set. - * @return This builder for chaining. - */ - public Builder setInstanceHost(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - instanceHost_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Host of the SQL database
-     * enum InstanceHost {
-     * UNDEFINED = 0;
-     * SELF_HOSTED = 1;
-     * CLOUD_SQL = 2;
-     * AMAZON_RDS = 3;
-     * AZURE_SQL = 4;
-     * }
-     * Host of the enclousing database instance.
-     * 
- * - * string instance_host = 3; - * - * @return This builder for chaining. - */ - public Builder clearInstanceHost() { - instanceHost_ = getDefaultInstance().getInstanceHost(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Host of the SQL database
-     * enum InstanceHost {
-     * UNDEFINED = 0;
-     * SELF_HOSTED = 1;
-     * CLOUD_SQL = 2;
-     * AMAZON_RDS = 3;
-     * AZURE_SQL = 4;
-     * }
-     * Host of the enclousing database instance.
-     * 
- * - * string instance_host = 3; - * - * @param value The bytes for instanceHost to set. - * @return This builder for chaining. - */ - public Builder setInstanceHostBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - instanceHost_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) - private static final com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec(); - } - - public static com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SqlDatabaseSystemSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SqlDatabaseSystemSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpecOrBuilder.java deleted file mode 100644 index 5156274fbf9b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SqlDatabaseSystemSpecOrBuilder.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface SqlDatabaseSystemSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.SqlDatabaseSystemSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * SQL Database Engine.
-   * enum SqlEngine {
-   * UNDEFINED = 0;
-   * MY_SQL = 1;
-   * POSTGRE_SQL = 2;
-   * SQL_SERVER = 3;
-   * }
-   * Engine of the enclosing database instance.
-   * 
- * - * string sql_engine = 1; - * - * @return The sqlEngine. - */ - java.lang.String getSqlEngine(); - - /** - * - * - *
-   * SQL Database Engine.
-   * enum SqlEngine {
-   * UNDEFINED = 0;
-   * MY_SQL = 1;
-   * POSTGRE_SQL = 2;
-   * SQL_SERVER = 3;
-   * }
-   * Engine of the enclosing database instance.
-   * 
- * - * string sql_engine = 1; - * - * @return The bytes for sqlEngine. - */ - com.google.protobuf.ByteString getSqlEngineBytes(); - - /** - * - * - *
-   * Version of the database engine.
-   * 
- * - * string database_version = 2; - * - * @return The databaseVersion. - */ - java.lang.String getDatabaseVersion(); - - /** - * - * - *
-   * Version of the database engine.
-   * 
- * - * string database_version = 2; - * - * @return The bytes for databaseVersion. - */ - com.google.protobuf.ByteString getDatabaseVersionBytes(); - - /** - * - * - *
-   * Host of the SQL database
-   * enum InstanceHost {
-   * UNDEFINED = 0;
-   * SELF_HOSTED = 1;
-   * CLOUD_SQL = 2;
-   * AMAZON_RDS = 3;
-   * AZURE_SQL = 4;
-   * }
-   * Host of the enclousing database instance.
-   * 
- * - * string instance_host = 3; - * - * @return The instanceHost. - */ - java.lang.String getInstanceHost(); - - /** - * - * - *
-   * Host of the SQL database
-   * enum InstanceHost {
-   * UNDEFINED = 0;
-   * SELF_HOSTED = 1;
-   * CLOUD_SQL = 2;
-   * AMAZON_RDS = 3;
-   * AZURE_SQL = 4;
-   * }
-   * Host of the enclousing database instance.
-   * 
- * - * string instance_host = 3; - * - * @return The bytes for instanceHost. - */ - com.google.protobuf.ByteString getInstanceHostBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequest.java deleted file mode 100644 index 52c308823c5f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequest.java +++ /dev/null @@ -1,612 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [StarEntry][google.cloud.datacatalog.v1.DataCatalog.StarEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.StarEntryRequest} - */ -@com.google.protobuf.Generated -public final class StarEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.StarEntryRequest) - StarEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "StarEntryRequest"); - } - - // Use StarEntryRequest.newBuilder() to construct. - private StarEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private StarEntryRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_StarEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_StarEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.StarEntryRequest.class, - com.google.cloud.datacatalog.v1.StarEntryRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the entry to mark as starred.
-   * 
- * - * - * 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 entry to mark as starred.
-   * 
- * - * - * 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.datacatalog.v1.StarEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.StarEntryRequest other = - (com.google.cloud.datacatalog.v1.StarEntryRequest) 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.datacatalog.v1.StarEntryRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.StarEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [StarEntry][google.cloud.datacatalog.v1.DataCatalog.StarEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.StarEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.StarEntryRequest) - com.google.cloud.datacatalog.v1.StarEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_StarEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_StarEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.StarEntryRequest.class, - com.google.cloud.datacatalog.v1.StarEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.StarEntryRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_StarEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StarEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.StarEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StarEntryRequest build() { - com.google.cloud.datacatalog.v1.StarEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StarEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1.StarEntryRequest result = - new com.google.cloud.datacatalog.v1.StarEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.StarEntryRequest 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.datacatalog.v1.StarEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.StarEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.StarEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1.StarEntryRequest.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 entry to mark as starred.
-     * 
- * - * - * 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 entry to mark as starred.
-     * 
- * - * - * 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 entry to mark as starred.
-     * 
- * - * - * 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 entry to mark as starred.
-     * 
- * - * - * 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 entry to mark as starred.
-     * 
- * - * - * 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.datacatalog.v1.StarEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.StarEntryRequest) - private static final com.google.cloud.datacatalog.v1.StarEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.StarEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1.StarEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StarEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StarEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequestOrBuilder.java deleted file mode 100644 index da181dd24c48..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface StarEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.StarEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry to mark as starred.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the entry to mark as starred.
-   * 
- * - * - * 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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponse.java deleted file mode 100644 index c93150facf2a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponse.java +++ /dev/null @@ -1,400 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for
- * [StarEntry][google.cloud.datacatalog.v1.DataCatalog.StarEntry].
- * Empty for now
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.StarEntryResponse} - */ -@com.google.protobuf.Generated -public final class StarEntryResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.StarEntryResponse) - StarEntryResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "StarEntryResponse"); - } - - // Use StarEntryResponse.newBuilder() to construct. - private StarEntryResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private StarEntryResponse() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_StarEntryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_StarEntryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.StarEntryResponse.class, - com.google.cloud.datacatalog.v1.StarEntryResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.StarEntryResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.StarEntryResponse other = - (com.google.cloud.datacatalog.v1.StarEntryResponse) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.StarEntryResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [StarEntry][google.cloud.datacatalog.v1.DataCatalog.StarEntry].
-   * Empty for now
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.StarEntryResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.StarEntryResponse) - com.google.cloud.datacatalog.v1.StarEntryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_StarEntryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_StarEntryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.StarEntryResponse.class, - com.google.cloud.datacatalog.v1.StarEntryResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.StarEntryResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_StarEntryResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StarEntryResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.StarEntryResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StarEntryResponse build() { - com.google.cloud.datacatalog.v1.StarEntryResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StarEntryResponse buildPartial() { - com.google.cloud.datacatalog.v1.StarEntryResponse result = - new com.google.cloud.datacatalog.v1.StarEntryResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.StarEntryResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.StarEntryResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.StarEntryResponse other) { - if (other == com.google.cloud.datacatalog.v1.StarEntryResponse.getDefaultInstance()) - return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.StarEntryResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.StarEntryResponse) - private static final com.google.cloud.datacatalog.v1.StarEntryResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.StarEntryResponse(); - } - - public static com.google.cloud.datacatalog.v1.StarEntryResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StarEntryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StarEntryResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponseOrBuilder.java deleted file mode 100644 index f30ecd84f556..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StarEntryResponseOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface StarEntryResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.StarEntryResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StorageProperties.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StorageProperties.java deleted file mode 100644 index f822e505424a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StorageProperties.java +++ /dev/null @@ -1,1133 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/data_source.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Details the properties of the underlying storage.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.StorageProperties} - */ -@com.google.protobuf.Generated -public final class StorageProperties extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.StorageProperties) - StoragePropertiesOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "StorageProperties"); - } - - // Use StorageProperties.newBuilder() to construct. - private StorageProperties(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private StorageProperties() { - filePattern_ = com.google.protobuf.LazyStringArrayList.emptyList(); - fileType_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataSourceProto - .internal_static_google_cloud_datacatalog_v1_StorageProperties_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataSourceProto - .internal_static_google_cloud_datacatalog_v1_StorageProperties_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.StorageProperties.class, - com.google.cloud.datacatalog.v1.StorageProperties.Builder.class); - } - - public static final int FILE_PATTERN_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList filePattern_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * Patterns to identify a set of files for this fileset.
-   *
-   * Examples of a valid `file_pattern`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-   * and all subdirectories recursively
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   * 
- * - * repeated string file_pattern = 1; - * - * @return A list containing the filePattern. - */ - public com.google.protobuf.ProtocolStringList getFilePatternList() { - return filePattern_; - } - - /** - * - * - *
-   * Patterns to identify a set of files for this fileset.
-   *
-   * Examples of a valid `file_pattern`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-   * and all subdirectories recursively
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   * 
- * - * repeated string file_pattern = 1; - * - * @return The count of filePattern. - */ - public int getFilePatternCount() { - return filePattern_.size(); - } - - /** - * - * - *
-   * Patterns to identify a set of files for this fileset.
-   *
-   * Examples of a valid `file_pattern`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-   * and all subdirectories recursively
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   * 
- * - * repeated string file_pattern = 1; - * - * @param index The index of the element to return. - * @return The filePattern at the given index. - */ - public java.lang.String getFilePattern(int index) { - return filePattern_.get(index); - } - - /** - * - * - *
-   * Patterns to identify a set of files for this fileset.
-   *
-   * Examples of a valid `file_pattern`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-   * and all subdirectories recursively
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   * 
- * - * repeated string file_pattern = 1; - * - * @param index The index of the value to return. - * @return The bytes of the filePattern at the given index. - */ - public com.google.protobuf.ByteString getFilePatternBytes(int index) { - return filePattern_.getByteString(index); - } - - public static final int FILE_TYPE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object fileType_ = ""; - - /** - * - * - *
-   * File type in MIME format, for example, `text/plain`.
-   * 
- * - * string file_type = 2; - * - * @return The fileType. - */ - @java.lang.Override - public java.lang.String getFileType() { - java.lang.Object ref = fileType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fileType_ = s; - return s; - } - } - - /** - * - * - *
-   * File type in MIME format, for example, `text/plain`.
-   * 
- * - * string file_type = 2; - * - * @return The bytes for fileType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFileTypeBytes() { - java.lang.Object ref = fileType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fileType_ = 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 < filePattern_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, filePattern_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileType_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, fileType_); - } - 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 < filePattern_.size(); i++) { - dataSize += computeStringSizeNoTag(filePattern_.getRaw(i)); - } - size += dataSize; - size += 1 * getFilePatternList().size(); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileType_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, fileType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.StorageProperties)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.StorageProperties other = - (com.google.cloud.datacatalog.v1.StorageProperties) obj; - - if (!getFilePatternList().equals(other.getFilePatternList())) return false; - if (!getFileType().equals(other.getFileType())) return false; - if (!getUnknownFields().equals(other.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 (getFilePatternCount() > 0) { - hash = (37 * hash) + FILE_PATTERN_FIELD_NUMBER; - hash = (53 * hash) + getFilePatternList().hashCode(); - } - hash = (37 * hash) + FILE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getFileType().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.StorageProperties prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 the properties of the underlying storage.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.StorageProperties} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.StorageProperties) - com.google.cloud.datacatalog.v1.StoragePropertiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DataSourceProto - .internal_static_google_cloud_datacatalog_v1_StorageProperties_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DataSourceProto - .internal_static_google_cloud_datacatalog_v1_StorageProperties_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.StorageProperties.class, - com.google.cloud.datacatalog.v1.StorageProperties.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.StorageProperties.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filePattern_ = com.google.protobuf.LazyStringArrayList.emptyList(); - fileType_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.DataSourceProto - .internal_static_google_cloud_datacatalog_v1_StorageProperties_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StorageProperties getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StorageProperties build() { - com.google.cloud.datacatalog.v1.StorageProperties result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StorageProperties buildPartial() { - com.google.cloud.datacatalog.v1.StorageProperties result = - new com.google.cloud.datacatalog.v1.StorageProperties(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.StorageProperties result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - filePattern_.makeImmutable(); - result.filePattern_ = filePattern_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.fileType_ = fileType_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.StorageProperties) { - return mergeFrom((com.google.cloud.datacatalog.v1.StorageProperties) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.StorageProperties other) { - if (other == com.google.cloud.datacatalog.v1.StorageProperties.getDefaultInstance()) - return this; - if (!other.filePattern_.isEmpty()) { - if (filePattern_.isEmpty()) { - filePattern_ = other.filePattern_; - bitField0_ |= 0x00000001; - } else { - ensureFilePatternIsMutable(); - filePattern_.addAll(other.filePattern_); - } - onChanged(); - } - if (!other.getFileType().isEmpty()) { - fileType_ = other.fileType_; - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFilePatternIsMutable(); - filePattern_.add(s); - break; - } // case 10 - case 18: - { - fileType_ = 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.protobuf.LazyStringArrayList filePattern_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureFilePatternIsMutable() { - if (!filePattern_.isModifiable()) { - filePattern_ = new com.google.protobuf.LazyStringArrayList(filePattern_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
-     * Patterns to identify a set of files for this fileset.
-     *
-     * Examples of a valid `file_pattern`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-     * and all subdirectories recursively
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     * 
- * - * repeated string file_pattern = 1; - * - * @return A list containing the filePattern. - */ - public com.google.protobuf.ProtocolStringList getFilePatternList() { - filePattern_.makeImmutable(); - return filePattern_; - } - - /** - * - * - *
-     * Patterns to identify a set of files for this fileset.
-     *
-     * Examples of a valid `file_pattern`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-     * and all subdirectories recursively
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     * 
- * - * repeated string file_pattern = 1; - * - * @return The count of filePattern. - */ - public int getFilePatternCount() { - return filePattern_.size(); - } - - /** - * - * - *
-     * Patterns to identify a set of files for this fileset.
-     *
-     * Examples of a valid `file_pattern`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-     * and all subdirectories recursively
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     * 
- * - * repeated string file_pattern = 1; - * - * @param index The index of the element to return. - * @return The filePattern at the given index. - */ - public java.lang.String getFilePattern(int index) { - return filePattern_.get(index); - } - - /** - * - * - *
-     * Patterns to identify a set of files for this fileset.
-     *
-     * Examples of a valid `file_pattern`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-     * and all subdirectories recursively
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     * 
- * - * repeated string file_pattern = 1; - * - * @param index The index of the value to return. - * @return The bytes of the filePattern at the given index. - */ - public com.google.protobuf.ByteString getFilePatternBytes(int index) { - return filePattern_.getByteString(index); - } - - /** - * - * - *
-     * Patterns to identify a set of files for this fileset.
-     *
-     * Examples of a valid `file_pattern`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-     * and all subdirectories recursively
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     * 
- * - * repeated string file_pattern = 1; - * - * @param index The index to set the value at. - * @param value The filePattern to set. - * @return This builder for chaining. - */ - public Builder setFilePattern(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilePatternIsMutable(); - filePattern_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Patterns to identify a set of files for this fileset.
-     *
-     * Examples of a valid `file_pattern`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-     * and all subdirectories recursively
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     * 
- * - * repeated string file_pattern = 1; - * - * @param value The filePattern to add. - * @return This builder for chaining. - */ - public Builder addFilePattern(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilePatternIsMutable(); - filePattern_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Patterns to identify a set of files for this fileset.
-     *
-     * Examples of a valid `file_pattern`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-     * and all subdirectories recursively
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     * 
- * - * repeated string file_pattern = 1; - * - * @param values The filePattern to add. - * @return This builder for chaining. - */ - public Builder addAllFilePattern(java.lang.Iterable values) { - ensureFilePatternIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filePattern_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Patterns to identify a set of files for this fileset.
-     *
-     * Examples of a valid `file_pattern`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-     * and all subdirectories recursively
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     * 
- * - * repeated string file_pattern = 1; - * - * @return This builder for chaining. - */ - public Builder clearFilePattern() { - filePattern_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * Patterns to identify a set of files for this fileset.
-     *
-     * Examples of a valid `file_pattern`:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-     * directory
-     * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-     * and all subdirectories recursively
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     * 
- * - * repeated string file_pattern = 1; - * - * @param value The bytes of the filePattern to add. - * @return This builder for chaining. - */ - public Builder addFilePatternBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFilePatternIsMutable(); - filePattern_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object fileType_ = ""; - - /** - * - * - *
-     * File type in MIME format, for example, `text/plain`.
-     * 
- * - * string file_type = 2; - * - * @return The fileType. - */ - public java.lang.String getFileType() { - java.lang.Object ref = fileType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fileType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * File type in MIME format, for example, `text/plain`.
-     * 
- * - * string file_type = 2; - * - * @return The bytes for fileType. - */ - public com.google.protobuf.ByteString getFileTypeBytes() { - java.lang.Object ref = fileType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - fileType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * File type in MIME format, for example, `text/plain`.
-     * 
- * - * string file_type = 2; - * - * @param value The fileType to set. - * @return This builder for chaining. - */ - public Builder setFileType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - fileType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * File type in MIME format, for example, `text/plain`.
-     * 
- * - * string file_type = 2; - * - * @return This builder for chaining. - */ - public Builder clearFileType() { - fileType_ = getDefaultInstance().getFileType(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * File type in MIME format, for example, `text/plain`.
-     * 
- * - * string file_type = 2; - * - * @param value The bytes for fileType to set. - * @return This builder for chaining. - */ - public Builder setFileTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - fileType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.StorageProperties) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.StorageProperties) - private static final com.google.cloud.datacatalog.v1.StorageProperties DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.StorageProperties(); - } - - public static com.google.cloud.datacatalog.v1.StorageProperties getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StorageProperties parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.StorageProperties getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StoragePropertiesOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StoragePropertiesOrBuilder.java deleted file mode 100644 index 04b268dcd8bc..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/StoragePropertiesOrBuilder.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/data_source.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface StoragePropertiesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.StorageProperties) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Patterns to identify a set of files for this fileset.
-   *
-   * Examples of a valid `file_pattern`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-   * and all subdirectories recursively
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   * 
- * - * repeated string file_pattern = 1; - * - * @return A list containing the filePattern. - */ - java.util.List getFilePatternList(); - - /** - * - * - *
-   * Patterns to identify a set of files for this fileset.
-   *
-   * Examples of a valid `file_pattern`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-   * and all subdirectories recursively
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   * 
- * - * repeated string file_pattern = 1; - * - * @return The count of filePattern. - */ - int getFilePatternCount(); - - /** - * - * - *
-   * Patterns to identify a set of files for this fileset.
-   *
-   * Examples of a valid `file_pattern`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-   * and all subdirectories recursively
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   * 
- * - * repeated string file_pattern = 1; - * - * @param index The index of the element to return. - * @return The filePattern at the given index. - */ - java.lang.String getFilePattern(int index); - - /** - * - * - *
-   * Patterns to identify a set of files for this fileset.
-   *
-   * Examples of a valid `file_pattern`:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir`
-   * directory
-   * * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir`
-   * and all subdirectories recursively
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * the `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   * 
- * - * repeated string file_pattern = 1; - * - * @param index The index of the value to return. - * @return The bytes of the filePattern at the given index. - */ - com.google.protobuf.ByteString getFilePatternBytes(int index); - - /** - * - * - *
-   * File type in MIME format, for example, `text/plain`.
-   * 
- * - * string file_type = 2; - * - * @return The fileType. - */ - java.lang.String getFileType(); - - /** - * - * - *
-   * File type in MIME format, for example, `text/plain`.
-   * 
- * - * string file_type = 2; - * - * @return The bytes for fileType. - */ - com.google.protobuf.ByteString getFileTypeBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestamps.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestamps.java deleted file mode 100644 index 89344b072ec3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestamps.java +++ /dev/null @@ -1,1365 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/timestamps.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Timestamps associated with this resource in a particular system.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SystemTimestamps} - */ -@com.google.protobuf.Generated -public final class SystemTimestamps extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.SystemTimestamps) - SystemTimestampsOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SystemTimestamps"); - } - - // Use SystemTimestamps.newBuilder() to construct. - private SystemTimestamps(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SystemTimestamps() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Timestamps - .internal_static_google_cloud_datacatalog_v1_SystemTimestamps_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Timestamps - .internal_static_google_cloud_datacatalog_v1_SystemTimestamps_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SystemTimestamps.class, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder.class); - } - - private int bitField0_; - public static final int CREATE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp createTime_; - - /** - * - * - *
-   * Creation timestamp of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Creation timestamp of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - /** - * - * - *
-   * Creation timestamp of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - @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 = 2; - private com.google.protobuf.Timestamp updateTime_; - - /** - * - * - *
-   * Timestamp of the last modification of the resource or its metadata within
-   * a given system.
-   *
-   * Note: Depending on the source system, not every modification updates this
-   * timestamp.
-   * For example, BigQuery timestamps every metadata modification but not data
-   * or permission changes.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Timestamp of the last modification of the resource or its metadata within
-   * a given system.
-   *
-   * Note: Depending on the source system, not every modification updates this
-   * timestamp.
-   * For example, BigQuery timestamps every metadata modification but not data
-   * or permission changes.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - /** - * - * - *
-   * Timestamp of the last modification of the resource or its metadata within
-   * a given system.
-   *
-   * Note: Depending on the source system, not every modification updates this
-   * timestamp.
-   * For example, BigQuery timestamps every metadata modification but not data
-   * or permission changes.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp expireTime_; - - /** - * - * - *
-   * Output only. Expiration timestamp of the resource within the given system.
-   *
-   * Currently only applicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - @java.lang.Override - public boolean hasExpireTime() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-   * Output only. Expiration timestamp of the resource within the given system.
-   *
-   * Currently only applicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getExpireTime() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - - /** - * - * - *
-   * Output only. Expiration timestamp of the resource within the given system.
-   *
-   * Currently only applicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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, getUpdateTime()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getExpireTime()); - } - 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, getUpdateTime()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.SystemTimestamps)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.SystemTimestamps other = - (com.google.cloud.datacatalog.v1.SystemTimestamps) obj; - - 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 (hasExpireTime() != other.hasExpireTime()) return false; - if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (!getUnknownFields().equals(other.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 (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (hasExpireTime()) { - hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getExpireTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.SystemTimestamps prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Timestamps associated with this resource in a particular system.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.SystemTimestamps} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.SystemTimestamps) - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Timestamps - .internal_static_google_cloud_datacatalog_v1_SystemTimestamps_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Timestamps - .internal_static_google_cloud_datacatalog_v1_SystemTimestamps_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.SystemTimestamps.class, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.SystemTimestamps.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(); - internalGetExpireTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - expireTime_ = null; - if (expireTimeBuilder_ != null) { - expireTimeBuilder_.dispose(); - expireTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Timestamps - .internal_static_google_cloud_datacatalog_v1_SystemTimestamps_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestamps getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestamps build() { - com.google.cloud.datacatalog.v1.SystemTimestamps result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestamps buildPartial() { - com.google.cloud.datacatalog.v1.SystemTimestamps result = - new com.google.cloud.datacatalog.v1.SystemTimestamps(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.SystemTimestamps result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.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.datacatalog.v1.SystemTimestamps) { - return mergeFrom((com.google.cloud.datacatalog.v1.SystemTimestamps) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.SystemTimestamps other) { - if (other == com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance()) - return this; - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (other.hasExpireTime()) { - mergeExpireTime(other.getExpireTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetExpireTimeFieldBuilder().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.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - - /** - * - * - *
-     * Creation timestamp of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Creation timestamp of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @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(); - } - } - - /** - * - * - *
-     * Creation timestamp of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Creation timestamp of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Creation timestamp of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - if (createTime_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Creation timestamp of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000001); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Creation timestamp of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Creation timestamp of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - - /** - * - * - *
-     * Creation timestamp of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - 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_; - - /** - * - * - *
-     * Timestamp of the last modification of the resource or its metadata within
-     * a given system.
-     *
-     * Note: Depending on the source system, not every modification updates this
-     * timestamp.
-     * For example, BigQuery timestamps every metadata modification but not data
-     * or permission changes.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Timestamp of the last modification of the resource or its metadata within
-     * a given system.
-     *
-     * Note: Depending on the source system, not every modification updates this
-     * timestamp.
-     * For example, BigQuery timestamps every metadata modification but not data
-     * or permission changes.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @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(); - } - } - - /** - * - * - *
-     * Timestamp of the last modification of the resource or its metadata within
-     * a given system.
-     *
-     * Note: Depending on the source system, not every modification updates this
-     * timestamp.
-     * For example, BigQuery timestamps every metadata modification but not data
-     * or permission changes.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Timestamp of the last modification of the resource or its metadata within
-     * a given system.
-     *
-     * Note: Depending on the source system, not every modification updates this
-     * timestamp.
-     * For example, BigQuery timestamps every metadata modification but not data
-     * or permission changes.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Timestamp of the last modification of the resource or its metadata within
-     * a given system.
-     *
-     * Note: Depending on the source system, not every modification updates this
-     * timestamp.
-     * For example, BigQuery timestamps every metadata modification but not data
-     * or permission changes.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - if (updateTime_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Timestamp of the last modification of the resource or its metadata within
-     * a given system.
-     *
-     * Note: Depending on the source system, not every modification updates this
-     * timestamp.
-     * For example, BigQuery timestamps every metadata modification but not data
-     * or permission changes.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000002); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Timestamp of the last modification of the resource or its metadata within
-     * a given system.
-     *
-     * Note: Depending on the source system, not every modification updates this
-     * timestamp.
-     * For example, BigQuery timestamps every metadata modification but not data
-     * or permission changes.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Timestamp of the last modification of the resource or its metadata within
-     * a given system.
-     *
-     * Note: Depending on the source system, not every modification updates this
-     * timestamp.
-     * For example, BigQuery timestamps every metadata modification but not data
-     * or permission changes.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - - /** - * - * - *
-     * Timestamp of the last modification of the resource or its metadata within
-     * a given system.
-     *
-     * Note: Depending on the source system, not every modification updates this
-     * timestamp.
-     * For example, BigQuery timestamps every metadata modification but not data
-     * or permission changes.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - 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.Timestamp expireTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; - - /** - * - * - *
-     * Output only. Expiration timestamp of the resource within the given system.
-     *
-     * Currently only applicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - public boolean hasExpireTime() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Output only. Expiration timestamp of the resource within the given system.
-     *
-     * Currently only applicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - public com.google.protobuf.Timestamp getExpireTime() { - if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; - } else { - return expireTimeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Expiration timestamp of the resource within the given system.
-     *
-     * Currently only applicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expireTime_ = value; - } else { - expireTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Expiration timestamp of the resource within the given system.
-     *
-     * Currently only applicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (expireTimeBuilder_ == null) { - expireTime_ = builderForValue.build(); - } else { - expireTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Expiration timestamp of the resource within the given system.
-     *
-     * Currently only applicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getExpireTimeBuilder().mergeFrom(value); - } else { - expireTime_ = value; - } - } else { - expireTimeBuilder_.mergeFrom(value); - } - if (expireTime_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Expiration timestamp of the resource within the given system.
-     *
-     * Currently only applicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearExpireTime() { - bitField0_ = (bitField0_ & ~0x00000004); - expireTime_ = null; - if (expireTimeBuilder_ != null) { - expireTimeBuilder_.dispose(); - expireTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Expiration timestamp of the resource within the given system.
-     *
-     * Currently only applicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetExpireTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Expiration timestamp of the resource within the given system.
-     *
-     * Currently only applicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - if (expireTimeBuilder_ != null) { - return expireTimeBuilder_.getMessageOrBuilder(); - } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; - } - } - - /** - * - * - *
-     * Output only. Expiration timestamp of the resource within the given system.
-     *
-     * Currently only applicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_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> - internalGetExpireTimeFieldBuilder() { - if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); - expireTime_ = null; - } - return expireTimeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.SystemTimestamps) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.SystemTimestamps) - private static final com.google.cloud.datacatalog.v1.SystemTimestamps DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.SystemTimestamps(); - } - - public static com.google.cloud.datacatalog.v1.SystemTimestamps getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SystemTimestamps parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestamps getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestampsOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestampsOrBuilder.java deleted file mode 100644 index 97f3b9cefb71..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/SystemTimestampsOrBuilder.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/timestamps.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface SystemTimestampsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.SystemTimestamps) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Creation timestamp of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - - /** - * - * - *
-   * Creation timestamp of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - - /** - * - * - *
-   * Creation timestamp of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Timestamp of the last modification of the resource or its metadata within
-   * a given system.
-   *
-   * Note: Depending on the source system, not every modification updates this
-   * timestamp.
-   * For example, BigQuery timestamps every metadata modification but not data
-   * or permission changes.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - - /** - * - * - *
-   * Timestamp of the last modification of the resource or its metadata within
-   * a given system.
-   *
-   * Note: Depending on the source system, not every modification updates this
-   * timestamp.
-   * For example, BigQuery timestamps every metadata modification but not data
-   * or permission changes.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - - /** - * - * - *
-   * Timestamp of the last modification of the resource or its metadata within
-   * a given system.
-   *
-   * Note: Depending on the source system, not every modification updates this
-   * timestamp.
-   * For example, BigQuery timestamps every metadata modification but not data
-   * or permission changes.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. Expiration timestamp of the resource within the given system.
-   *
-   * Currently only applicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - boolean hasExpireTime(); - - /** - * - * - *
-   * Output only. Expiration timestamp of the resource within the given system.
-   *
-   * Currently only applicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - com.google.protobuf.Timestamp getExpireTime(); - - /** - * - * - *
-   * Output only. Expiration timestamp of the resource within the given system.
-   *
-   * Currently only applicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSourceType.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSourceType.java deleted file mode 100644 index caa9802e7421..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSourceType.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Table source type.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.TableSourceType} - */ -@com.google.protobuf.Generated -public enum TableSourceType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * TABLE_SOURCE_TYPE_UNSPECIFIED = 0; - */ - TABLE_SOURCE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * Table view.
-   * 
- * - * BIGQUERY_VIEW = 2; - */ - BIGQUERY_VIEW(2), - /** - * - * - *
-   * BigQuery native table.
-   * 
- * - * BIGQUERY_TABLE = 5; - */ - BIGQUERY_TABLE(5), - /** - * - * - *
-   * BigQuery materialized view.
-   * 
- * - * BIGQUERY_MATERIALIZED_VIEW = 7; - */ - BIGQUERY_MATERIALIZED_VIEW(7), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TableSourceType"); - } - - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * TABLE_SOURCE_TYPE_UNSPECIFIED = 0; - */ - public static final int TABLE_SOURCE_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * Table view.
-   * 
- * - * BIGQUERY_VIEW = 2; - */ - public static final int BIGQUERY_VIEW_VALUE = 2; - - /** - * - * - *
-   * BigQuery native table.
-   * 
- * - * BIGQUERY_TABLE = 5; - */ - public static final int BIGQUERY_TABLE_VALUE = 5; - - /** - * - * - *
-   * BigQuery materialized view.
-   * 
- * - * BIGQUERY_MATERIALIZED_VIEW = 7; - */ - public static final int BIGQUERY_MATERIALIZED_VIEW_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 TableSourceType 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 TableSourceType forNumber(int value) { - switch (value) { - case 0: - return TABLE_SOURCE_TYPE_UNSPECIFIED; - case 2: - return BIGQUERY_VIEW; - case 5: - return BIGQUERY_TABLE; - case 7: - return BIGQUERY_MATERIALIZED_VIEW; - 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 TableSourceType findValueByNumber(int number) { - return TableSourceType.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.datacatalog.v1.TableSpecOuterClass.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final TableSourceType[] VALUES = values(); - - public static TableSourceType 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 TableSourceType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.TableSourceType) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpec.java deleted file mode 100644 index da9f464fd62d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpec.java +++ /dev/null @@ -1,651 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Normal BigQuery table specification.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TableSpec} - */ -@com.google.protobuf.Generated -public final class TableSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TableSpec) - TableSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TableSpec"); - } - - // Use TableSpec.newBuilder() to construct. - private TableSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TableSpec() { - groupedEntry_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_TableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_TableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TableSpec.class, - com.google.cloud.datacatalog.v1.TableSpec.Builder.class); - } - - public static final int GROUPED_ENTRY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object groupedEntry_ = ""; - - /** - * - * - *
-   * Output only. If the table is date-sharded, that is, it matches the
-   * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource
-   * name of the date-sharded grouped entry. For example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-   *
-   * Otherwise, `grouped_entry` is empty.
-   * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The groupedEntry. - */ - @java.lang.Override - public java.lang.String getGroupedEntry() { - java.lang.Object ref = groupedEntry_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupedEntry_ = s; - return s; - } - } - - /** - * - * - *
-   * Output only. If the table is date-sharded, that is, it matches the
-   * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource
-   * name of the date-sharded grouped entry. For example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-   *
-   * Otherwise, `grouped_entry` is empty.
-   * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for groupedEntry. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGroupedEntryBytes() { - java.lang.Object ref = groupedEntry_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - groupedEntry_ = 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(groupedEntry_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, groupedEntry_); - } - 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(groupedEntry_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, groupedEntry_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.TableSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.TableSpec other = - (com.google.cloud.datacatalog.v1.TableSpec) obj; - - if (!getGroupedEntry().equals(other.getGroupedEntry())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GROUPED_ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getGroupedEntry().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TableSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.TableSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Normal BigQuery table specification.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TableSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.TableSpec) - com.google.cloud.datacatalog.v1.TableSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_TableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_TableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TableSpec.class, - com.google.cloud.datacatalog.v1.TableSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.TableSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - groupedEntry_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_TableSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TableSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.TableSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TableSpec build() { - com.google.cloud.datacatalog.v1.TableSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TableSpec buildPartial() { - com.google.cloud.datacatalog.v1.TableSpec result = - new com.google.cloud.datacatalog.v1.TableSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.TableSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.groupedEntry_ = groupedEntry_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.TableSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.TableSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.TableSpec other) { - if (other == com.google.cloud.datacatalog.v1.TableSpec.getDefaultInstance()) return this; - if (!other.getGroupedEntry().isEmpty()) { - groupedEntry_ = other.groupedEntry_; - 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: - { - groupedEntry_ = 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 groupedEntry_ = ""; - - /** - * - * - *
-     * Output only. If the table is date-sharded, that is, it matches the
-     * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource
-     * name of the date-sharded grouped entry. For example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-     *
-     * Otherwise, `grouped_entry` is empty.
-     * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The groupedEntry. - */ - public java.lang.String getGroupedEntry() { - java.lang.Object ref = groupedEntry_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupedEntry_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Output only. If the table is date-sharded, that is, it matches the
-     * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource
-     * name of the date-sharded grouped entry. For example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-     *
-     * Otherwise, `grouped_entry` is empty.
-     * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for groupedEntry. - */ - public com.google.protobuf.ByteString getGroupedEntryBytes() { - java.lang.Object ref = groupedEntry_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - groupedEntry_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Output only. If the table is date-sharded, that is, it matches the
-     * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource
-     * name of the date-sharded grouped entry. For example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-     *
-     * Otherwise, `grouped_entry` is empty.
-     * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The groupedEntry to set. - * @return This builder for chaining. - */ - public Builder setGroupedEntry(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - groupedEntry_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. If the table is date-sharded, that is, it matches the
-     * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource
-     * name of the date-sharded grouped entry. For example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-     *
-     * Otherwise, `grouped_entry` is empty.
-     * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearGroupedEntry() { - groupedEntry_ = getDefaultInstance().getGroupedEntry(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. If the table is date-sharded, that is, it matches the
-     * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource
-     * name of the date-sharded grouped entry. For example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-     *
-     * Otherwise, `grouped_entry` is empty.
-     * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for groupedEntry to set. - * @return This builder for chaining. - */ - public Builder setGroupedEntryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - groupedEntry_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.TableSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.TableSpec) - private static final com.google.cloud.datacatalog.v1.TableSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.TableSpec(); - } - - public static com.google.cloud.datacatalog.v1.TableSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TableSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOrBuilder.java deleted file mode 100644 index 5c4ee7b642d2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface TableSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.TableSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. If the table is date-sharded, that is, it matches the
-   * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource
-   * name of the date-sharded grouped entry. For example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-   *
-   * Otherwise, `grouped_entry` is empty.
-   * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The groupedEntry. - */ - java.lang.String getGroupedEntry(); - - /** - * - * - *
-   * Output only. If the table is date-sharded, that is, it matches the
-   * `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource
-   * name of the date-sharded grouped entry. For example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`.
-   *
-   * Otherwise, `grouped_entry` is empty.
-   * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for groupedEntry. - */ - com.google.protobuf.ByteString getGroupedEntryBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java deleted file mode 100644 index d643dcbf1fa6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TableSpecOuterClass.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class TableSpecOuterClass extends com.google.protobuf.GeneratedFile { - private TableSpecOuterClass() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TableSpecOuterClass"); - } - - 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_datacatalog_v1_BigQueryTableSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_ViewSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_ViewSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_TableSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_TableSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_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/datacatalog/v1/table_spec" - + ".proto\022\033google.cloud.datacatalog.v1\032\037goo" - + "gle/api/field_behavior.proto\032\031google/api" - + "/resource.proto\"\350\001\n\021BigQueryTableSpec\022L\n" - + "\021table_source_type\030\001 \001(\0162,.google.cloud." - + "datacatalog.v1.TableSourceTypeB\003\340A\003\022:\n\tv" - + "iew_spec\030\002 \001(\0132%.google.cloud.datacatalo" - + "g.v1.ViewSpecH\000\022<\n\ntable_spec\030\003 \001(\0132&.go" - + "ogle.cloud.datacatalog.v1.TableSpecH\000B\013\n" - + "\ttype_spec\"#\n\010ViewSpec\022\027\n\nview_query\030\001 \001" - + "(\tB\003\340A\003\"L\n\tTableSpec\022?\n\rgrouped_entry\030\001 " - + "\001(\tB(\340A\003\372A\"\n datacatalog.googleapis.com/" - + "Entry\"\255\001\n\027BigQueryDateShardedSpec\0229\n\007dat" - + "aset\030\001 \001(\tB(\340A\003\372A\"\n datacatalog.googleap" - + "is.com/Entry\022\031\n\014table_prefix\030\002 \001(\tB\003\340A\003\022" - + "\030\n\013shard_count\030\003 \001(\003B\003\340A\003\022\"\n\025latest_shar" - + "d_resource\030\004 \001(\tB\003\340A\003*{\n\017TableSourceType" - + "\022!\n\035TABLE_SOURCE_TYPE_UNSPECIFIED\020\000\022\021\n\rB" - + "IGQUERY_VIEW\020\002\022\022\n\016BIGQUERY_TABLE\020\005\022\036\n\032BI" - + "GQUERY_MATERIALIZED_VIEW\020\007B\303\001\n\037com.googl" - + "e.cloud.datacatalog.v1P\001ZAcloud.google.c" - + "om/go/datacatalog/apiv1/datacatalogpb;da" - + "tacatalogpb\252\002\033Google.Cloud.DataCatalog.V" - + "1\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Google" - + "::Cloud::DataCatalog::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(), - }); - internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_BigQueryTableSpec_descriptor, - new java.lang.String[] { - "TableSourceType", "ViewSpec", "TableSpec", "TypeSpec", - }); - internal_static_google_cloud_datacatalog_v1_ViewSpec_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_ViewSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_ViewSpec_descriptor, - new java.lang.String[] { - "ViewQuery", - }); - internal_static_google_cloud_datacatalog_v1_TableSpec_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1_TableSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_TableSpec_descriptor, - new java.lang.String[] { - "GroupedEntry", - }); - internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor = - getDescriptor().getMessageType(3); - internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_BigQueryDateShardedSpec_descriptor, - new java.lang.String[] { - "Dataset", "TablePrefix", "ShardCount", "LatestShardResource", - }); - 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.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java deleted file mode 100644 index dd2c7ec975a1..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tag.java +++ /dev/null @@ -1,2081 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Tags contain custom metadata and are attached to Data Catalog resources. Tags
- * conform with the specification of their tag template.
- *
- * See [Data Catalog
- * IAM](https://cloud.google.com/data-catalog/docs/concepts/iam) for information
- * on the permissions needed to create or view tags.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Tag} - */ -@com.google.protobuf.Generated -public final class Tag extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Tag) - TagOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Tag"); - } - - // Use Tag.newBuilder() to construct. - private Tag(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Tag() { - name_ = ""; - template_ = ""; - templateDisplayName_ = ""; - dataplexTransferStatus_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_Tag_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_Tag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Tag.class, - com.google.cloud.datacatalog.v1.Tag.Builder.class); - } - - private int scopeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object scope_; - - public enum ScopeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - COLUMN(4), - SCOPE_NOT_SET(0); - private final int value; - - private ScopeCase(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 ScopeCase valueOf(int value) { - return forNumber(value); - } - - public static ScopeCase forNumber(int value) { - switch (value) { - case 4: - return COLUMN; - case 0: - return SCOPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ScopeCase getScopeCase() { - return ScopeCase.forNumber(scopeCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. The resource name of the tag in URL format where tag ID is a
-   * system-generated identifier.
-   *
-   * Note: The tag itself might not be stored in the location specified in its
-   * 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 resource name of the tag in URL format where tag ID is a
-   * system-generated identifier.
-   *
-   * Note: The tag itself might not be stored in the location specified in its
-   * 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 TEMPLATE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object template_ = ""; - - /** - * - * - *
-   * Required. The resource name of the tag template this tag uses. Example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}`
-   *
-   * This field cannot be modified after creation.
-   * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The template. - */ - @java.lang.Override - public java.lang.String getTemplate() { - java.lang.Object ref = template_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - template_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The resource name of the tag template this tag uses. Example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}`
-   *
-   * This field cannot be modified after creation.
-   * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for template. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTemplateBytes() { - java.lang.Object ref = template_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - template_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TEMPLATE_DISPLAY_NAME_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object templateDisplayName_ = ""; - - /** - * - * - *
-   * Output only. The display name of the tag template.
-   * 
- * - * string template_display_name = 5 [(.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 tag template.
-   * 
- * - * string template_display_name = 5 [(.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; - } - } - - public static final int COLUMN_FIELD_NUMBER = 4; - - /** - * - * - *
-   * Resources like entry can have schemas associated with them. This scope
-   * allows you to attach tags to an individual column based on that schema.
-   *
-   * To attach a tag to a nested column, separate column names with a dot
-   * (`.`). Example: `column.nested_column`.
-   * 
- * - * string column = 4; - * - * @return Whether the column field is set. - */ - public boolean hasColumn() { - return scopeCase_ == 4; - } - - /** - * - * - *
-   * Resources like entry can have schemas associated with them. This scope
-   * allows you to attach tags to an individual column based on that schema.
-   *
-   * To attach a tag to a nested column, separate column names with a dot
-   * (`.`). Example: `column.nested_column`.
-   * 
- * - * string column = 4; - * - * @return The column. - */ - public java.lang.String getColumn() { - java.lang.Object ref = ""; - if (scopeCase_ == 4) { - ref = scope_; - } - if (ref instanceof java.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 (scopeCase_ == 4) { - scope_ = s; - } - return s; - } - } - - /** - * - * - *
-   * Resources like entry can have schemas associated with them. This scope
-   * allows you to attach tags to an individual column based on that schema.
-   *
-   * To attach a tag to a nested column, separate column names with a dot
-   * (`.`). Example: `column.nested_column`.
-   * 
- * - * string column = 4; - * - * @return The bytes for column. - */ - public com.google.protobuf.ByteString getColumnBytes() { - java.lang.Object ref = ""; - if (scopeCase_ == 4) { - ref = scope_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (scopeCase_ == 4) { - scope_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELDS_FIELD_NUMBER = 3; - - private static final class FieldsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.TagField> - defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.datacatalog.v1.TagField.getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField - fields_; - - private com.google.protobuf.MapField - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - - public int getFieldsCount() { - return internalGetFields().getMap().size(); - } - - /** - * - * - *
-   * Required. Maps the ID of a tag field to its value and additional
-   * information about that field.
-   *
-   * Tag template defines valid field IDs. A tag
-   * must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetFields().getMap().containsKey(key); - } - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getFields() { - return getFieldsMap(); - } - - /** - * - * - *
-   * Required. Maps the ID of a tag field to its value and additional
-   * information about that field.
-   *
-   * Tag template defines valid field IDs. A tag
-   * must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map getFieldsMap() { - return internalGetFields().getMap(); - } - - /** - * - * - *
-   * Required. Maps the ID of a tag field to its value and additional
-   * information about that field.
-   *
-   * Tag template defines valid field IDs. A tag
-   * must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1.TagField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.TagField defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetFields().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-   * Required. Maps the ID of a tag field to its value and additional
-   * information about that field.
-   *
-   * Tag template defines valid field IDs. A tag
-   * must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField getFieldsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetFields().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int DATAPLEX_TRANSFER_STATUS_FIELD_NUMBER = 7; - private int dataplexTransferStatus_ = 0; - - /** - * - * - *
-   * Output only. Denotes the transfer status of the Tag Template.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for dataplexTransferStatus. - */ - @java.lang.Override - public int getDataplexTransferStatusValue() { - return dataplexTransferStatus_; - } - - /** - * - * - *
-   * Output only. Denotes the transfer status of the Tag Template.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataplexTransferStatus. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus - getDataplexTransferStatus() { - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus result = - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.forNumber( - dataplexTransferStatus_); - return result == null - ? com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.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(template_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, template_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); - if (scopeCase_ == 4) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, scope_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(templateDisplayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, templateDisplayName_); - } - if (dataplexTransferStatus_ - != com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus - .DATAPLEX_TRANSFER_STATUS_UNSPECIFIED - .getNumber()) { - output.writeEnum(7, dataplexTransferStatus_); - } - 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(template_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, template_); - } - for (java.util.Map.Entry entry : - internalGetFields().getMap().entrySet()) { - com.google.protobuf.MapEntry - fields__ = - FieldsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fields__); - } - if (scopeCase_ == 4) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, scope_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(templateDisplayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, templateDisplayName_); - } - if (dataplexTransferStatus_ - != com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus - .DATAPLEX_TRANSFER_STATUS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, dataplexTransferStatus_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.Tag)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.Tag other = (com.google.cloud.datacatalog.v1.Tag) obj; - - if (!getName().equals(other.getName())) return false; - if (!getTemplate().equals(other.getTemplate())) return false; - if (!getTemplateDisplayName().equals(other.getTemplateDisplayName())) return false; - if (!internalGetFields().equals(other.internalGetFields())) return false; - if (dataplexTransferStatus_ != other.dataplexTransferStatus_) return false; - if (!getScopeCase().equals(other.getScopeCase())) return false; - switch (scopeCase_) { - case 4: - if (!getColumn().equals(other.getColumn())) 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) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - hash = (37 * hash) + TEMPLATE_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTemplateDisplayName().hashCode(); - if (!internalGetFields().getMap().isEmpty()) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + internalGetFields().hashCode(); - } - hash = (37 * hash) + DATAPLEX_TRANSFER_STATUS_FIELD_NUMBER; - hash = (53 * hash) + dataplexTransferStatus_; - switch (scopeCase_) { - case 4: - hash = (37 * hash) + COLUMN_FIELD_NUMBER; - hash = (53 * hash) + getColumn().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.Tag parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Tag parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Tag parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Tag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Tag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Tag parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Tag parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Tag parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Tag parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Tag parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Tag parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Tag parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.Tag prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Tags contain custom metadata and are attached to Data Catalog resources. Tags
-   * conform with the specification of their tag template.
-   *
-   * See [Data Catalog
-   * IAM](https://cloud.google.com/data-catalog/docs/concepts/iam) for information
-   * on the permissions needed to create or view tags.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Tag} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.Tag) - com.google.cloud.datacatalog.v1.TagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_Tag_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMutableFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_Tag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Tag.class, - com.google.cloud.datacatalog.v1.Tag.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.Tag.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - template_ = ""; - templateDisplayName_ = ""; - internalGetMutableFields().clear(); - dataplexTransferStatus_ = 0; - scopeCase_ = 0; - scope_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_Tag_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Tag getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.Tag.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Tag build() { - com.google.cloud.datacatalog.v1.Tag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Tag buildPartial() { - com.google.cloud.datacatalog.v1.Tag result = new com.google.cloud.datacatalog.v1.Tag(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.Tag result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.template_ = template_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.templateDisplayName_ = templateDisplayName_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.fields_ = internalGetFields().build(FieldsDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.dataplexTransferStatus_ = dataplexTransferStatus_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.Tag result) { - result.scopeCase_ = scopeCase_; - result.scope_ = this.scope_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.Tag) { - return mergeFrom((com.google.cloud.datacatalog.v1.Tag) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.Tag other) { - if (other == com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTemplate().isEmpty()) { - template_ = other.template_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTemplateDisplayName().isEmpty()) { - templateDisplayName_ = other.templateDisplayName_; - bitField0_ |= 0x00000004; - onChanged(); - } - internalGetMutableFields().mergeFrom(other.internalGetFields()); - bitField0_ |= 0x00000010; - if (other.dataplexTransferStatus_ != 0) { - setDataplexTransferStatusValue(other.getDataplexTransferStatusValue()); - } - switch (other.getScopeCase()) { - case COLUMN: - { - scopeCase_ = 4; - scope_ = other.scope_; - onChanged(); - break; - } - case SCOPE_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_ |= 0x00000001; - break; - } // case 10 - case 18: - { - template_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.TagField> - fields__ = - input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableFields() - .ensureBuilderMap() - .put(fields__.getKey(), fields__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - scopeCase_ = 4; - scope_ = s; - break; - } // case 34 - case 42: - { - templateDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 42 - case 56: - { - dataplexTransferStatus_ = input.readEnum(); - bitField0_ |= 0x00000020; - 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 scopeCase_ = 0; - private java.lang.Object scope_; - - public ScopeCase getScopeCase() { - return ScopeCase.forNumber(scopeCase_); - } - - public Builder clearScope() { - scopeCase_ = 0; - scope_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - - /** - * - * - *
-     * Identifier. The resource name of the tag in URL format where tag ID is a
-     * system-generated identifier.
-     *
-     * Note: The tag itself might not be stored in the location specified in its
-     * 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 resource name of the tag in URL format where tag ID is a
-     * system-generated identifier.
-     *
-     * Note: The tag itself might not be stored in the location specified in its
-     * 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 resource name of the tag in URL format where tag ID is a
-     * system-generated identifier.
-     *
-     * Note: The tag itself might not be stored in the location specified in its
-     * 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 resource name of the tag in URL format where tag ID is a
-     * system-generated identifier.
-     *
-     * Note: The tag itself might not be stored in the location specified in its
-     * 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 resource name of the tag in URL format where tag ID is a
-     * system-generated identifier.
-     *
-     * Note: The tag itself might not be stored in the location specified in its
-     * 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 template_ = ""; - - /** - * - * - *
-     * Required. The resource name of the tag template this tag uses. Example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}`
-     *
-     * This field cannot be modified after creation.
-     * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The template. - */ - public java.lang.String getTemplate() { - java.lang.Object ref = template_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - template_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The resource name of the tag template this tag uses. Example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}`
-     *
-     * This field cannot be modified after creation.
-     * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for template. - */ - public com.google.protobuf.ByteString getTemplateBytes() { - java.lang.Object ref = template_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - template_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The resource name of the tag template this tag uses. Example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}`
-     *
-     * This field cannot be modified after creation.
-     * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The template to set. - * @return This builder for chaining. - */ - public Builder setTemplate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The resource name of the tag template this tag uses. Example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}`
-     *
-     * This field cannot be modified after creation.
-     * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearTemplate() { - template_ = getDefaultInstance().getTemplate(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The resource name of the tag template this tag uses. Example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}`
-     *
-     * This field cannot be modified after creation.
-     * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for template to set. - * @return This builder for chaining. - */ - public Builder setTemplateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - template_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object templateDisplayName_ = ""; - - /** - * - * - *
-     * Output only. The display name of the tag template.
-     * 
- * - * string template_display_name = 5 [(.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 tag template.
-     * 
- * - * string template_display_name = 5 [(.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 tag template.
-     * 
- * - * string template_display_name = 5 [(.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 tag template.
-     * 
- * - * string template_display_name = 5 [(.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 tag template.
-     * 
- * - * string template_display_name = 5 [(.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; - } - - /** - * - * - *
-     * Resources like entry can have schemas associated with them. This scope
-     * allows you to attach tags to an individual column based on that schema.
-     *
-     * To attach a tag to a nested column, separate column names with a dot
-     * (`.`). Example: `column.nested_column`.
-     * 
- * - * string column = 4; - * - * @return Whether the column field is set. - */ - @java.lang.Override - public boolean hasColumn() { - return scopeCase_ == 4; - } - - /** - * - * - *
-     * Resources like entry can have schemas associated with them. This scope
-     * allows you to attach tags to an individual column based on that schema.
-     *
-     * To attach a tag to a nested column, separate column names with a dot
-     * (`.`). Example: `column.nested_column`.
-     * 
- * - * string column = 4; - * - * @return The column. - */ - @java.lang.Override - public java.lang.String getColumn() { - java.lang.Object ref = ""; - if (scopeCase_ == 4) { - ref = scope_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (scopeCase_ == 4) { - scope_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Resources like entry can have schemas associated with them. This scope
-     * allows you to attach tags to an individual column based on that schema.
-     *
-     * To attach a tag to a nested column, separate column names with a dot
-     * (`.`). Example: `column.nested_column`.
-     * 
- * - * string column = 4; - * - * @return The bytes for column. - */ - @java.lang.Override - public com.google.protobuf.ByteString getColumnBytes() { - java.lang.Object ref = ""; - if (scopeCase_ == 4) { - ref = scope_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (scopeCase_ == 4) { - scope_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Resources like entry can have schemas associated with them. This scope
-     * allows you to attach tags to an individual column based on that schema.
-     *
-     * To attach a tag to a nested column, separate column names with a dot
-     * (`.`). Example: `column.nested_column`.
-     * 
- * - * string column = 4; - * - * @param value The column to set. - * @return This builder for chaining. - */ - public Builder setColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - scopeCase_ = 4; - scope_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Resources like entry can have schemas associated with them. This scope
-     * allows you to attach tags to an individual column based on that schema.
-     *
-     * To attach a tag to a nested column, separate column names with a dot
-     * (`.`). Example: `column.nested_column`.
-     * 
- * - * string column = 4; - * - * @return This builder for chaining. - */ - public Builder clearColumn() { - if (scopeCase_ == 4) { - scopeCase_ = 0; - scope_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Resources like entry can have schemas associated with them. This scope
-     * allows you to attach tags to an individual column based on that schema.
-     *
-     * To attach a tag to a nested column, separate column names with a dot
-     * (`.`). Example: `column.nested_column`.
-     * 
- * - * string column = 4; - * - * @param value The bytes for column to set. - * @return This builder for chaining. - */ - public Builder setColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - scopeCase_ = 4; - scope_ = value; - onChanged(); - return this; - } - - private static final class FieldsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.datacatalog.v1.TagFieldOrBuilder, - com.google.cloud.datacatalog.v1.TagField> { - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField build( - com.google.cloud.datacatalog.v1.TagFieldOrBuilder val) { - if (val instanceof com.google.cloud.datacatalog.v1.TagField) { - return (com.google.cloud.datacatalog.v1.TagField) val; - } - return ((com.google.cloud.datacatalog.v1.TagField.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.TagField> - defaultEntry() { - return FieldsDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final FieldsConverter fieldsConverter = new FieldsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.TagFieldOrBuilder, - com.google.cloud.datacatalog.v1.TagField, - com.google.cloud.datacatalog.v1.TagField.Builder> - fields_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.TagFieldOrBuilder, - com.google.cloud.datacatalog.v1.TagField, - com.google.cloud.datacatalog.v1.TagField.Builder> - internalGetFields() { - if (fields_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); - } - return fields_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.TagFieldOrBuilder, - com.google.cloud.datacatalog.v1.TagField, - com.google.cloud.datacatalog.v1.TagField.Builder> - internalGetMutableFields() { - if (fields_ == null) { - fields_ = new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); - } - bitField0_ |= 0x00000010; - onChanged(); - return fields_; - } - - public int getFieldsCount() { - return internalGetFields().ensureBuilderMap().size(); - } - - /** - * - * - *
-     * Required. Maps the ID of a tag field to its value and additional
-     * information about that field.
-     *
-     * Tag template defines valid field IDs. A tag
-     * must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetFields().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getFields() { - return getFieldsMap(); - } - - /** - * - * - *
-     * Required. Maps the ID of a tag field to its value and additional
-     * information about that field.
-     *
-     * Tag template defines valid field IDs. A tag
-     * must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map - getFieldsMap() { - return internalGetFields().getImmutableMap(); - } - - /** - * - * - *
-     * Required. Maps the ID of a tag field to its value and additional
-     * information about that field.
-     *
-     * Tag template defines valid field IDs. A tag
-     * must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1.TagField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.TagField defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableFields().ensureBuilderMap(); - return map.containsKey(key) ? fieldsConverter.build(map.get(key)) : defaultValue; - } - - /** - * - * - *
-     * Required. Maps the ID of a tag field to its value and additional
-     * information about that field.
-     *
-     * Tag template defines valid field IDs. A tag
-     * must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField getFieldsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableFields().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return fieldsConverter.build(map.get(key)); - } - - public Builder clearFields() { - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableFields().clear(); - return this; - } - - /** - * - * - *
-     * Required. Maps the ID of a tag field to its value and additional
-     * information about that field.
-     *
-     * Tag template defines valid field IDs. A tag
-     * must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableFields().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableFields() { - bitField0_ |= 0x00000010; - return internalGetMutableFields().ensureMessageMap(); - } - - /** - * - * - *
-     * Required. Maps the ID of a tag field to its value and additional
-     * information about that field.
-     *
-     * Tag template defines valid field IDs. A tag
-     * must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putFields(java.lang.String key, com.google.cloud.datacatalog.v1.TagField value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableFields().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000010; - return this; - } - - /** - * - * - *
-     * Required. Maps the ID of a tag field to its value and additional
-     * information about that field.
-     *
-     * Tag template defines valid field IDs. A tag
-     * must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putAllFields( - java.util.Map values) { - for (java.util.Map.Entry e : - values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableFields().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000010; - return this; - } - - /** - * - * - *
-     * Required. Maps the ID of a tag field to its value and additional
-     * information about that field.
-     *
-     * Tag template defines valid field IDs. A tag
-     * must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagField.Builder putFieldsBuilderIfAbsent( - java.lang.String key) { - java.util.Map - builderMap = internalGetMutableFields().ensureBuilderMap(); - com.google.cloud.datacatalog.v1.TagFieldOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.datacatalog.v1.TagField.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.datacatalog.v1.TagField) { - entry = ((com.google.cloud.datacatalog.v1.TagField) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.datacatalog.v1.TagField.Builder) entry; - } - - private int dataplexTransferStatus_ = 0; - - /** - * - * - *
-     * Output only. Denotes the transfer status of the Tag Template.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for dataplexTransferStatus. - */ - @java.lang.Override - public int getDataplexTransferStatusValue() { - return dataplexTransferStatus_; - } - - /** - * - * - *
-     * Output only. Denotes the transfer status of the Tag Template.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for dataplexTransferStatus to set. - * @return This builder for chaining. - */ - public Builder setDataplexTransferStatusValue(int value) { - dataplexTransferStatus_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Denotes the transfer status of the Tag Template.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataplexTransferStatus. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus - getDataplexTransferStatus() { - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus result = - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.forNumber( - dataplexTransferStatus_); - return result == null - ? com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Output only. Denotes the transfer status of the Tag Template.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The dataplexTransferStatus to set. - * @return This builder for chaining. - */ - public Builder setDataplexTransferStatus( - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000020; - dataplexTransferStatus_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Denotes the transfer status of the Tag Template.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearDataplexTransferStatus() { - bitField0_ = (bitField0_ & ~0x00000020); - dataplexTransferStatus_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.Tag) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.Tag) - private static final com.google.cloud.datacatalog.v1.Tag DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.Tag(); - } - - public static com.google.cloud.datacatalog.v1.Tag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Tag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Tag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagField.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagField.java deleted file mode 100644 index a936726cfc06..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagField.java +++ /dev/null @@ -1,2860 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Contains the value and additional information on a field within
- * a [Tag][google.cloud.datacatalog.v1.Tag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TagField} - */ -@com.google.protobuf.Generated -public final class TagField extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagField) - TagFieldOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TagField"); - } - - // Use TagField.newBuilder() to construct. - private TagField(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TagField() { - displayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TagField.class, - com.google.cloud.datacatalog.v1.TagField.Builder.class); - } - - public interface EnumValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.TagField.EnumValue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The display name of the enum value.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-     * The display name of the enum value.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - } - - /** - * - * - *
-   * An enum value.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TagField.EnumValue} - */ - public static final class EnumValue extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagField.EnumValue) - EnumValueOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EnumValue"); - } - - // Use EnumValue.newBuilder() to construct. - private EnumValue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private EnumValue() { - displayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TagField.EnumValue.class, - com.google.cloud.datacatalog.v1.TagField.EnumValue.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-     * The display name of the enum value.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - - /** - * - * - *
-     * The display name of the enum value.
-     * 
- * - * string display_name = 1; - * - * @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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.TagField.EnumValue)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.TagField.EnumValue other = - (com.google.cloud.datacatalog.v1.TagField.EnumValue) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.TagField.EnumValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-     * An enum value.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TagField.EnumValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.TagField.EnumValue) - com.google.cloud.datacatalog.v1.TagField.EnumValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TagField.EnumValue.class, - com.google.cloud.datacatalog.v1.TagField.EnumValue.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.TagField.EnumValue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField.EnumValue getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField.EnumValue build() { - com.google.cloud.datacatalog.v1.TagField.EnumValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField.EnumValue buildPartial() { - com.google.cloud.datacatalog.v1.TagField.EnumValue result = - new com.google.cloud.datacatalog.v1.TagField.EnumValue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.TagField.EnumValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.TagField.EnumValue) { - return mergeFrom((com.google.cloud.datacatalog.v1.TagField.EnumValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.TagField.EnumValue other) { - if (other == com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance()) - return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - 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: - { - displayName_ = 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 displayName_ = ""; - - /** - * - * - *
-       * The display name of the enum value.
-       * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * The display name of the enum value.
-       * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * The display name of the enum value.
-       * 
- * - * string display_name = 1; - * - * @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; - } - - /** - * - * - *
-       * The display name of the enum value.
-       * 
- * - * string display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * The display name of the enum value.
-       * 
- * - * string display_name = 1; - * - * @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; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.TagField.EnumValue) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.TagField.EnumValue) - private static final com.google.cloud.datacatalog.v1.TagField.EnumValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.TagField.EnumValue(); - } - - public static com.google.cloud.datacatalog.v1.TagField.EnumValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField.EnumValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int kindCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object kind_; - - public enum KindCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - DOUBLE_VALUE(2), - STRING_VALUE(3), - BOOL_VALUE(4), - TIMESTAMP_VALUE(5), - ENUM_VALUE(6), - RICHTEXT_VALUE(8), - KIND_NOT_SET(0); - private final int value; - - private KindCase(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 KindCase valueOf(int value) { - return forNumber(value); - } - - public static KindCase forNumber(int value) { - switch (value) { - case 2: - return DOUBLE_VALUE; - case 3: - return STRING_VALUE; - case 4: - return BOOL_VALUE; - case 5: - return TIMESTAMP_VALUE; - case 6: - return ENUM_VALUE; - case 8: - return RICHTEXT_VALUE; - case 0: - return KIND_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public KindCase getKindCase() { - return KindCase.forNumber(kindCase_); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-   * Output only. The display name of this field.
-   * 
- * - * 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. The display name of this field.
-   * 
- * - * 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 DOUBLE_VALUE_FIELD_NUMBER = 2; - - /** - * - * - *
-   * The value of a tag field with a double type.
-   * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return kindCase_ == 2; - } - - /** - * - * - *
-   * The value of a tag field with a double type.
-   * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - if (kindCase_ == 2) { - return (java.lang.Double) kind_; - } - return 0D; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 3; - - /** - * - * - *
-   * The value of a tag field with a string type.
-   *
-   * The maximum length is 2000 UTF-8 characters.
-   * 
- * - * string string_value = 3; - * - * @return Whether the stringValue field is set. - */ - public boolean hasStringValue() { - return kindCase_ == 3; - } - - /** - * - * - *
-   * The value of a tag field with a string type.
-   *
-   * The maximum length is 2000 UTF-8 characters.
-   * 
- * - * string string_value = 3; - * - * @return The stringValue. - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (kindCase_ == 3) { - kind_ = s; - } - return s; - } - } - - /** - * - * - *
-   * The value of a tag field with a string type.
-   *
-   * The maximum length is 2000 UTF-8 characters.
-   * 
- * - * string string_value = 3; - * - * @return The bytes for stringValue. - */ - public com.google.protobuf.ByteString getStringValueBytes() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (kindCase_ == 3) { - kind_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOOL_VALUE_FIELD_NUMBER = 4; - - /** - * - * - *
-   * The value of a tag field with a boolean type.
-   * 
- * - * bool bool_value = 4; - * - * @return Whether the boolValue field is set. - */ - @java.lang.Override - public boolean hasBoolValue() { - return kindCase_ == 4; - } - - /** - * - * - *
-   * The value of a tag field with a boolean type.
-   * 
- * - * bool bool_value = 4; - * - * @return The boolValue. - */ - @java.lang.Override - public boolean getBoolValue() { - if (kindCase_ == 4) { - return (java.lang.Boolean) kind_; - } - return false; - } - - public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 5; - - /** - * - * - *
-   * The value of a tag field with a timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return Whether the timestampValue field is set. - */ - @java.lang.Override - public boolean hasTimestampValue() { - return kindCase_ == 5; - } - - /** - * - * - *
-   * The value of a tag field with a timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return The timestampValue. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getTimestampValue() { - if (kindCase_ == 5) { - return (com.google.protobuf.Timestamp) kind_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - /** - * - * - *
-   * The value of a tag field with a timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { - if (kindCase_ == 5) { - return (com.google.protobuf.Timestamp) kind_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int ENUM_VALUE_FIELD_NUMBER = 6; - - /** - * - * - *
-   * The value of a tag field with an enum type.
-   *
-   * This value must be one of the allowed values listed in this enum.
-   * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - * - * @return Whether the enumValue field is set. - */ - @java.lang.Override - public boolean hasEnumValue() { - return kindCase_ == 6; - } - - /** - * - * - *
-   * The value of a tag field with an enum type.
-   *
-   * This value must be one of the allowed values listed in this enum.
-   * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - * - * @return The enumValue. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField.EnumValue getEnumValue() { - if (kindCase_ == 6) { - return (com.google.cloud.datacatalog.v1.TagField.EnumValue) kind_; - } - return com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance(); - } - - /** - * - * - *
-   * The value of a tag field with an enum type.
-   *
-   * This value must be one of the allowed values listed in this enum.
-   * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField.EnumValueOrBuilder getEnumValueOrBuilder() { - if (kindCase_ == 6) { - return (com.google.cloud.datacatalog.v1.TagField.EnumValue) kind_; - } - return com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance(); - } - - public static final int RICHTEXT_VALUE_FIELD_NUMBER = 8; - - /** - * - * - *
-   * The value of a tag field with a rich text type.
-   *
-   * The maximum length is 10 MiB as this value holds HTML descriptions
-   * including encoded images. The maximum length of the text without images
-   * is 100 KiB.
-   * 
- * - * string richtext_value = 8; - * - * @return Whether the richtextValue field is set. - */ - public boolean hasRichtextValue() { - return kindCase_ == 8; - } - - /** - * - * - *
-   * The value of a tag field with a rich text type.
-   *
-   * The maximum length is 10 MiB as this value holds HTML descriptions
-   * including encoded images. The maximum length of the text without images
-   * is 100 KiB.
-   * 
- * - * string richtext_value = 8; - * - * @return The richtextValue. - */ - public java.lang.String getRichtextValue() { - java.lang.Object ref = ""; - if (kindCase_ == 8) { - ref = kind_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (kindCase_ == 8) { - kind_ = s; - } - return s; - } - } - - /** - * - * - *
-   * The value of a tag field with a rich text type.
-   *
-   * The maximum length is 10 MiB as this value holds HTML descriptions
-   * including encoded images. The maximum length of the text without images
-   * is 100 KiB.
-   * 
- * - * string richtext_value = 8; - * - * @return The bytes for richtextValue. - */ - public com.google.protobuf.ByteString getRichtextValueBytes() { - java.lang.Object ref = ""; - if (kindCase_ == 8) { - ref = kind_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (kindCase_ == 8) { - kind_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORDER_FIELD_NUMBER = 7; - private int order_ = 0; - - /** - * - * - *
-   * Output only. The order of this field with respect to other fields in this
-   * tag. Can be set by
-   * [Tag][google.cloud.datacatalog.v1.TagTemplateField.order].
-   *
-   * For example, a higher value can indicate a more important field.
-   * The value can be negative. Multiple fields can have the same order, and
-   * field orders within a tag don't have to be sequential.
-   * 
- * - * int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The order. - */ - @java.lang.Override - public int getOrder() { - return order_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (kindCase_ == 2) { - output.writeDouble(2, (double) ((java.lang.Double) kind_)); - } - if (kindCase_ == 3) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, kind_); - } - if (kindCase_ == 4) { - output.writeBool(4, (boolean) ((java.lang.Boolean) kind_)); - } - if (kindCase_ == 5) { - output.writeMessage(5, (com.google.protobuf.Timestamp) kind_); - } - if (kindCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datacatalog.v1.TagField.EnumValue) kind_); - } - if (order_ != 0) { - output.writeInt32(7, order_); - } - if (kindCase_ == 8) { - com.google.protobuf.GeneratedMessage.writeString(output, 8, kind_); - } - 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 (kindCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 2, (double) ((java.lang.Double) kind_)); - } - if (kindCase_ == 3) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, kind_); - } - if (kindCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 4, (boolean) ((java.lang.Boolean) kind_)); - } - if (kindCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.protobuf.Timestamp) kind_); - } - if (kindCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.datacatalog.v1.TagField.EnumValue) kind_); - } - if (order_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, order_); - } - if (kindCase_ == 8) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(8, kind_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.TagField)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.TagField other = (com.google.cloud.datacatalog.v1.TagField) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getOrder() != other.getOrder()) return false; - if (!getKindCase().equals(other.getKindCase())) return false; - switch (kindCase_) { - case 2: - if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; - break; - case 3: - if (!getStringValue().equals(other.getStringValue())) return false; - break; - case 4: - if (getBoolValue() != other.getBoolValue()) return false; - break; - case 5: - if (!getTimestampValue().equals(other.getTimestampValue())) return false; - break; - case 6: - if (!getEnumValue().equals(other.getEnumValue())) return false; - break; - case 8: - if (!getRichtextValue().equals(other.getRichtextValue())) 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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + ORDER_FIELD_NUMBER; - hash = (53 * hash) + getOrder(); - switch (kindCase_) { - case 2: - hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); - break; - case 3: - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 4: - hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); - break; - case 5: - hash = (37 * hash) + TIMESTAMP_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getTimestampValue().hashCode(); - break; - case 6: - hash = (37 * hash) + ENUM_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getEnumValue().hashCode(); - break; - case 8: - hash = (37 * hash) + RICHTEXT_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getRichtextValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.TagField parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagField parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagField parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagField parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagField parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagField parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagField parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagField parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagField parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagField parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagField parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagField parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.TagField prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Contains the value and additional information on a field within
-   * a [Tag][google.cloud.datacatalog.v1.Tag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TagField} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.TagField) - com.google.cloud.datacatalog.v1.TagFieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TagField.class, - com.google.cloud.datacatalog.v1.TagField.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.TagField.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - if (timestampValueBuilder_ != null) { - timestampValueBuilder_.clear(); - } - if (enumValueBuilder_ != null) { - enumValueBuilder_.clear(); - } - order_ = 0; - kindCase_ = 0; - kind_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagField_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.TagField.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField build() { - com.google.cloud.datacatalog.v1.TagField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField buildPartial() { - com.google.cloud.datacatalog.v1.TagField result = - new com.google.cloud.datacatalog.v1.TagField(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.TagField result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.order_ = order_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.TagField result) { - result.kindCase_ = kindCase_; - result.kind_ = this.kind_; - if (kindCase_ == 5 && timestampValueBuilder_ != null) { - result.kind_ = timestampValueBuilder_.build(); - } - if (kindCase_ == 6 && enumValueBuilder_ != null) { - result.kind_ = enumValueBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.TagField) { - return mergeFrom((com.google.cloud.datacatalog.v1.TagField) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.TagField other) { - if (other == com.google.cloud.datacatalog.v1.TagField.getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getOrder() != 0) { - setOrder(other.getOrder()); - } - switch (other.getKindCase()) { - case DOUBLE_VALUE: - { - setDoubleValue(other.getDoubleValue()); - break; - } - case STRING_VALUE: - { - kindCase_ = 3; - kind_ = other.kind_; - onChanged(); - break; - } - case BOOL_VALUE: - { - setBoolValue(other.getBoolValue()); - break; - } - case TIMESTAMP_VALUE: - { - mergeTimestampValue(other.getTimestampValue()); - break; - } - case ENUM_VALUE: - { - mergeEnumValue(other.getEnumValue()); - break; - } - case RICHTEXT_VALUE: - { - kindCase_ = 8; - kind_ = other.kind_; - onChanged(); - break; - } - case KIND_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: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: - { - kind_ = input.readDouble(); - kindCase_ = 2; - break; - } // case 17 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - kindCase_ = 3; - kind_ = s; - break; - } // case 26 - case 32: - { - kind_ = input.readBool(); - kindCase_ = 4; - break; - } // case 32 - case 42: - { - input.readMessage( - internalGetTimestampValueFieldBuilder().getBuilder(), extensionRegistry); - kindCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetEnumValueFieldBuilder().getBuilder(), extensionRegistry); - kindCase_ = 6; - break; - } // case 50 - case 56: - { - order_ = input.readInt32(); - bitField0_ |= 0x00000080; - break; - } // case 56 - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - kindCase_ = 8; - kind_ = s; - 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 kindCase_ = 0; - private java.lang.Object kind_; - - public KindCase getKindCase() { - return KindCase.forNumber(kindCase_); - } - - public Builder clearKind() { - kindCase_ = 0; - kind_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object displayName_ = ""; - - /** - * - * - *
-     * Output only. The display name of this field.
-     * 
- * - * 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. The display name of this field.
-     * 
- * - * 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. The display name of this field.
-     * 
- * - * 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. The display name of this field.
-     * 
- * - * 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. The display name of this field.
-     * 
- * - * 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; - } - - /** - * - * - *
-     * The value of a tag field with a double type.
-     * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - public boolean hasDoubleValue() { - return kindCase_ == 2; - } - - /** - * - * - *
-     * The value of a tag field with a double type.
-     * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - public double getDoubleValue() { - if (kindCase_ == 2) { - return (java.lang.Double) kind_; - } - return 0D; - } - - /** - * - * - *
-     * The value of a tag field with a double type.
-     * 
- * - * double double_value = 2; - * - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - - kindCase_ = 2; - kind_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The value of a tag field with a double type.
-     * 
- * - * double double_value = 2; - * - * @return This builder for chaining. - */ - public Builder clearDoubleValue() { - if (kindCase_ == 2) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The value of a tag field with a string type.
-     *
-     * The maximum length is 2000 UTF-8 characters.
-     * 
- * - * string string_value = 3; - * - * @return Whether the stringValue field is set. - */ - @java.lang.Override - public boolean hasStringValue() { - return kindCase_ == 3; - } - - /** - * - * - *
-     * The value of a tag field with a string type.
-     *
-     * The maximum length is 2000 UTF-8 characters.
-     * 
- * - * string string_value = 3; - * - * @return The stringValue. - */ - @java.lang.Override - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (kindCase_ == 3) { - kind_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The value of a tag field with a string type.
-     *
-     * The maximum length is 2000 UTF-8 characters.
-     * 
- * - * string string_value = 3; - * - * @return The bytes for stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStringValueBytes() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (kindCase_ == 3) { - kind_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The value of a tag field with a string type.
-     *
-     * The maximum length is 2000 UTF-8 characters.
-     * 
- * - * string string_value = 3; - * - * @param value The stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - kindCase_ = 3; - kind_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The value of a tag field with a string type.
-     *
-     * The maximum length is 2000 UTF-8 characters.
-     * 
- * - * string string_value = 3; - * - * @return This builder for chaining. - */ - public Builder clearStringValue() { - if (kindCase_ == 3) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The value of a tag field with a string type.
-     *
-     * The maximum length is 2000 UTF-8 characters.
-     * 
- * - * string string_value = 3; - * - * @param value The bytes for stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - kindCase_ = 3; - kind_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The value of a tag field with a boolean type.
-     * 
- * - * bool bool_value = 4; - * - * @return Whether the boolValue field is set. - */ - public boolean hasBoolValue() { - return kindCase_ == 4; - } - - /** - * - * - *
-     * The value of a tag field with a boolean type.
-     * 
- * - * bool bool_value = 4; - * - * @return The boolValue. - */ - public boolean getBoolValue() { - if (kindCase_ == 4) { - return (java.lang.Boolean) kind_; - } - return false; - } - - /** - * - * - *
-     * The value of a tag field with a boolean type.
-     * 
- * - * bool bool_value = 4; - * - * @param value The boolValue to set. - * @return This builder for chaining. - */ - public Builder setBoolValue(boolean value) { - - kindCase_ = 4; - kind_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The value of a tag field with a boolean type.
-     * 
- * - * bool bool_value = 4; - * - * @return This builder for chaining. - */ - public Builder clearBoolValue() { - if (kindCase_ == 4) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - timestampValueBuilder_; - - /** - * - * - *
-     * The value of a tag field with a timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return Whether the timestampValue field is set. - */ - @java.lang.Override - public boolean hasTimestampValue() { - return kindCase_ == 5; - } - - /** - * - * - *
-     * The value of a tag field with a timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return The timestampValue. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getTimestampValue() { - if (timestampValueBuilder_ == null) { - if (kindCase_ == 5) { - return (com.google.protobuf.Timestamp) kind_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (kindCase_ == 5) { - return timestampValueBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - - /** - * - * - *
-     * The value of a tag field with a timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - public Builder setTimestampValue(com.google.protobuf.Timestamp value) { - if (timestampValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - timestampValueBuilder_.setMessage(value); - } - kindCase_ = 5; - return this; - } - - /** - * - * - *
-     * The value of a tag field with a timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - timestampValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 5; - return this; - } - - /** - * - * - *
-     * The value of a tag field with a timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) { - if (timestampValueBuilder_ == null) { - if (kindCase_ == 5 && kind_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - kind_ = - com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) kind_) - .mergeFrom(value) - .buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 5) { - timestampValueBuilder_.mergeFrom(value); - } else { - timestampValueBuilder_.setMessage(value); - } - } - kindCase_ = 5; - return this; - } - - /** - * - * - *
-     * The value of a tag field with a timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - public Builder clearTimestampValue() { - if (timestampValueBuilder_ == null) { - if (kindCase_ == 5) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 5) { - kindCase_ = 0; - kind_ = null; - } - timestampValueBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * The value of a tag field with a timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() { - return internalGetTimestampValueFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The value of a tag field with a timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { - if ((kindCase_ == 5) && (timestampValueBuilder_ != null)) { - return timestampValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 5) { - return (com.google.protobuf.Timestamp) kind_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - - /** - * - * - *
-     * The value of a tag field with a timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetTimestampValueFieldBuilder() { - if (timestampValueBuilder_ == null) { - if (!(kindCase_ == 5)) { - kind_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - timestampValueBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) kind_, getParentForChildren(), isClean()); - kind_ = null; - } - kindCase_ = 5; - onChanged(); - return timestampValueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagField.EnumValue, - com.google.cloud.datacatalog.v1.TagField.EnumValue.Builder, - com.google.cloud.datacatalog.v1.TagField.EnumValueOrBuilder> - enumValueBuilder_; - - /** - * - * - *
-     * The value of a tag field with an enum type.
-     *
-     * This value must be one of the allowed values listed in this enum.
-     * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - * - * @return Whether the enumValue field is set. - */ - @java.lang.Override - public boolean hasEnumValue() { - return kindCase_ == 6; - } - - /** - * - * - *
-     * The value of a tag field with an enum type.
-     *
-     * This value must be one of the allowed values listed in this enum.
-     * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - * - * @return The enumValue. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField.EnumValue getEnumValue() { - if (enumValueBuilder_ == null) { - if (kindCase_ == 6) { - return (com.google.cloud.datacatalog.v1.TagField.EnumValue) kind_; - } - return com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance(); - } else { - if (kindCase_ == 6) { - return enumValueBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance(); - } - } - - /** - * - * - *
-     * The value of a tag field with an enum type.
-     *
-     * This value must be one of the allowed values listed in this enum.
-     * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - */ - public Builder setEnumValue(com.google.cloud.datacatalog.v1.TagField.EnumValue value) { - if (enumValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - enumValueBuilder_.setMessage(value); - } - kindCase_ = 6; - return this; - } - - /** - * - * - *
-     * The value of a tag field with an enum type.
-     *
-     * This value must be one of the allowed values listed in this enum.
-     * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - */ - public Builder setEnumValue( - com.google.cloud.datacatalog.v1.TagField.EnumValue.Builder builderForValue) { - if (enumValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - enumValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 6; - return this; - } - - /** - * - * - *
-     * The value of a tag field with an enum type.
-     *
-     * This value must be one of the allowed values listed in this enum.
-     * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - */ - public Builder mergeEnumValue(com.google.cloud.datacatalog.v1.TagField.EnumValue value) { - if (enumValueBuilder_ == null) { - if (kindCase_ == 6 - && kind_ != com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance()) { - kind_ = - com.google.cloud.datacatalog.v1.TagField.EnumValue.newBuilder( - (com.google.cloud.datacatalog.v1.TagField.EnumValue) kind_) - .mergeFrom(value) - .buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 6) { - enumValueBuilder_.mergeFrom(value); - } else { - enumValueBuilder_.setMessage(value); - } - } - kindCase_ = 6; - return this; - } - - /** - * - * - *
-     * The value of a tag field with an enum type.
-     *
-     * This value must be one of the allowed values listed in this enum.
-     * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - */ - public Builder clearEnumValue() { - if (enumValueBuilder_ == null) { - if (kindCase_ == 6) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 6) { - kindCase_ = 0; - kind_ = null; - } - enumValueBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * The value of a tag field with an enum type.
-     *
-     * This value must be one of the allowed values listed in this enum.
-     * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - */ - public com.google.cloud.datacatalog.v1.TagField.EnumValue.Builder getEnumValueBuilder() { - return internalGetEnumValueFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The value of a tag field with an enum type.
-     *
-     * This value must be one of the allowed values listed in this enum.
-     * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField.EnumValueOrBuilder getEnumValueOrBuilder() { - if ((kindCase_ == 6) && (enumValueBuilder_ != null)) { - return enumValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 6) { - return (com.google.cloud.datacatalog.v1.TagField.EnumValue) kind_; - } - return com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance(); - } - } - - /** - * - * - *
-     * The value of a tag field with an enum type.
-     *
-     * This value must be one of the allowed values listed in this enum.
-     * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagField.EnumValue, - com.google.cloud.datacatalog.v1.TagField.EnumValue.Builder, - com.google.cloud.datacatalog.v1.TagField.EnumValueOrBuilder> - internalGetEnumValueFieldBuilder() { - if (enumValueBuilder_ == null) { - if (!(kindCase_ == 6)) { - kind_ = com.google.cloud.datacatalog.v1.TagField.EnumValue.getDefaultInstance(); - } - enumValueBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagField.EnumValue, - com.google.cloud.datacatalog.v1.TagField.EnumValue.Builder, - com.google.cloud.datacatalog.v1.TagField.EnumValueOrBuilder>( - (com.google.cloud.datacatalog.v1.TagField.EnumValue) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 6; - onChanged(); - return enumValueBuilder_; - } - - /** - * - * - *
-     * The value of a tag field with a rich text type.
-     *
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string richtext_value = 8; - * - * @return Whether the richtextValue field is set. - */ - @java.lang.Override - public boolean hasRichtextValue() { - return kindCase_ == 8; - } - - /** - * - * - *
-     * The value of a tag field with a rich text type.
-     *
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string richtext_value = 8; - * - * @return The richtextValue. - */ - @java.lang.Override - public java.lang.String getRichtextValue() { - java.lang.Object ref = ""; - if (kindCase_ == 8) { - ref = kind_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (kindCase_ == 8) { - kind_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The value of a tag field with a rich text type.
-     *
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string richtext_value = 8; - * - * @return The bytes for richtextValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRichtextValueBytes() { - java.lang.Object ref = ""; - if (kindCase_ == 8) { - ref = kind_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (kindCase_ == 8) { - kind_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The value of a tag field with a rich text type.
-     *
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string richtext_value = 8; - * - * @param value The richtextValue to set. - * @return This builder for chaining. - */ - public Builder setRichtextValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - kindCase_ = 8; - kind_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The value of a tag field with a rich text type.
-     *
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string richtext_value = 8; - * - * @return This builder for chaining. - */ - public Builder clearRichtextValue() { - if (kindCase_ == 8) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The value of a tag field with a rich text type.
-     *
-     * The maximum length is 10 MiB as this value holds HTML descriptions
-     * including encoded images. The maximum length of the text without images
-     * is 100 KiB.
-     * 
- * - * string richtext_value = 8; - * - * @param value The bytes for richtextValue to set. - * @return This builder for chaining. - */ - public Builder setRichtextValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - kindCase_ = 8; - kind_ = value; - onChanged(); - return this; - } - - private int order_; - - /** - * - * - *
-     * Output only. The order of this field with respect to other fields in this
-     * tag. Can be set by
-     * [Tag][google.cloud.datacatalog.v1.TagTemplateField.order].
-     *
-     * For example, a higher value can indicate a more important field.
-     * The value can be negative. Multiple fields can have the same order, and
-     * field orders within a tag don't have to be sequential.
-     * 
- * - * int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The order. - */ - @java.lang.Override - public int getOrder() { - return order_; - } - - /** - * - * - *
-     * Output only. The order of this field with respect to other fields in this
-     * tag. Can be set by
-     * [Tag][google.cloud.datacatalog.v1.TagTemplateField.order].
-     *
-     * For example, a higher value can indicate a more important field.
-     * The value can be negative. Multiple fields can have the same order, and
-     * field orders within a tag don't have to be sequential.
-     * 
- * - * int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The order to set. - * @return This builder for chaining. - */ - public Builder setOrder(int value) { - - order_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The order of this field with respect to other fields in this
-     * tag. Can be set by
-     * [Tag][google.cloud.datacatalog.v1.TagTemplateField.order].
-     *
-     * For example, a higher value can indicate a more important field.
-     * The value can be negative. Multiple fields can have the same order, and
-     * field orders within a tag don't have to be sequential.
-     * 
- * - * int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOrder() { - bitField0_ = (bitField0_ & ~0x00000080); - order_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.TagField) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.TagField) - private static final com.google.cloud.datacatalog.v1.TagField DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.TagField(); - } - - public static com.google.cloud.datacatalog.v1.TagField getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TagField parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagField getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagFieldOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagFieldOrBuilder.java deleted file mode 100644 index 02748d1d6bc8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagFieldOrBuilder.java +++ /dev/null @@ -1,303 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface TagFieldOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.TagField) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The display name of this field.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Output only. The display name of this field.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * The value of a tag field with a double type.
-   * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - boolean hasDoubleValue(); - - /** - * - * - *
-   * The value of a tag field with a double type.
-   * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - double getDoubleValue(); - - /** - * - * - *
-   * The value of a tag field with a string type.
-   *
-   * The maximum length is 2000 UTF-8 characters.
-   * 
- * - * string string_value = 3; - * - * @return Whether the stringValue field is set. - */ - boolean hasStringValue(); - - /** - * - * - *
-   * The value of a tag field with a string type.
-   *
-   * The maximum length is 2000 UTF-8 characters.
-   * 
- * - * string string_value = 3; - * - * @return The stringValue. - */ - java.lang.String getStringValue(); - - /** - * - * - *
-   * The value of a tag field with a string type.
-   *
-   * The maximum length is 2000 UTF-8 characters.
-   * 
- * - * string string_value = 3; - * - * @return The bytes for stringValue. - */ - com.google.protobuf.ByteString getStringValueBytes(); - - /** - * - * - *
-   * The value of a tag field with a boolean type.
-   * 
- * - * bool bool_value = 4; - * - * @return Whether the boolValue field is set. - */ - boolean hasBoolValue(); - - /** - * - * - *
-   * The value of a tag field with a boolean type.
-   * 
- * - * bool bool_value = 4; - * - * @return The boolValue. - */ - boolean getBoolValue(); - - /** - * - * - *
-   * The value of a tag field with a timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return Whether the timestampValue field is set. - */ - boolean hasTimestampValue(); - - /** - * - * - *
-   * The value of a tag field with a timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return The timestampValue. - */ - com.google.protobuf.Timestamp getTimestampValue(); - - /** - * - * - *
-   * The value of a tag field with a timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder(); - - /** - * - * - *
-   * The value of a tag field with an enum type.
-   *
-   * This value must be one of the allowed values listed in this enum.
-   * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - * - * @return Whether the enumValue field is set. - */ - boolean hasEnumValue(); - - /** - * - * - *
-   * The value of a tag field with an enum type.
-   *
-   * This value must be one of the allowed values listed in this enum.
-   * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - * - * @return The enumValue. - */ - com.google.cloud.datacatalog.v1.TagField.EnumValue getEnumValue(); - - /** - * - * - *
-   * The value of a tag field with an enum type.
-   *
-   * This value must be one of the allowed values listed in this enum.
-   * 
- * - * .google.cloud.datacatalog.v1.TagField.EnumValue enum_value = 6; - */ - com.google.cloud.datacatalog.v1.TagField.EnumValueOrBuilder getEnumValueOrBuilder(); - - /** - * - * - *
-   * The value of a tag field with a rich text type.
-   *
-   * The maximum length is 10 MiB as this value holds HTML descriptions
-   * including encoded images. The maximum length of the text without images
-   * is 100 KiB.
-   * 
- * - * string richtext_value = 8; - * - * @return Whether the richtextValue field is set. - */ - boolean hasRichtextValue(); - - /** - * - * - *
-   * The value of a tag field with a rich text type.
-   *
-   * The maximum length is 10 MiB as this value holds HTML descriptions
-   * including encoded images. The maximum length of the text without images
-   * is 100 KiB.
-   * 
- * - * string richtext_value = 8; - * - * @return The richtextValue. - */ - java.lang.String getRichtextValue(); - - /** - * - * - *
-   * The value of a tag field with a rich text type.
-   *
-   * The maximum length is 10 MiB as this value holds HTML descriptions
-   * including encoded images. The maximum length of the text without images
-   * is 100 KiB.
-   * 
- * - * string richtext_value = 8; - * - * @return The bytes for richtextValue. - */ - com.google.protobuf.ByteString getRichtextValueBytes(); - - /** - * - * - *
-   * Output only. The order of this field with respect to other fields in this
-   * tag. Can be set by
-   * [Tag][google.cloud.datacatalog.v1.TagTemplateField.order].
-   *
-   * For example, a higher value can indicate a more important field.
-   * The value can be negative. Multiple fields can have the same order, and
-   * field orders within a tag don't have to be sequential.
-   * 
- * - * int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The order. - */ - int getOrder(); - - com.google.cloud.datacatalog.v1.TagField.KindCase getKindCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagName.java deleted file mode 100644 index eea1116a646d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagName.java +++ /dev/null @@ -1,301 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 TagName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_ENTRY_GROUP_ENTRY_TAG = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String entryGroup; - private final String entry; - private final String tag; - - @Deprecated - protected TagName() { - project = null; - location = null; - entryGroup = null; - entry = null; - tag = null; - } - - private TagName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - entryGroup = Preconditions.checkNotNull(builder.getEntryGroup()); - entry = Preconditions.checkNotNull(builder.getEntry()); - tag = Preconditions.checkNotNull(builder.getTag()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public String getEntry() { - return entry; - } - - public String getTag() { - return tag; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TagName of( - String project, String location, String entryGroup, String entry, String tag) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setEntryGroup(entryGroup) - .setEntry(entry) - .setTag(tag) - .build(); - } - - public static String format( - String project, String location, String entryGroup, String entry, String tag) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setEntryGroup(entryGroup) - .setEntry(entry) - .setTag(tag) - .build() - .toString(); - } - - public static @Nullable TagName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_ENTRY_GROUP_ENTRY_TAG.validatedMatch( - formattedString, "TagName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("entry_group"), - matchMap.get("entry"), - matchMap.get("tag")); - } - - 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 TagName> values) { - List list = new ArrayList<>(values.size()); - for (TagName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_ENTRY_GROUP_ENTRY_TAG.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 (entryGroup != null) { - fieldMapBuilder.put("entry_group", entryGroup); - } - if (entry != null) { - fieldMapBuilder.put("entry", entry); - } - if (tag != null) { - fieldMapBuilder.put("tag", tag); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_ENTRY_GROUP_ENTRY_TAG.instantiate( - "project", - project, - "location", - location, - "entry_group", - entryGroup, - "entry", - entry, - "tag", - tag); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TagName that = ((TagName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.entryGroup, that.entryGroup) - && Objects.equals(this.entry, that.entry) - && Objects.equals(this.tag, that.tag); - } - 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(entryGroup); - h *= 1000003; - h ^= Objects.hashCode(entry); - h *= 1000003; - h ^= Objects.hashCode(tag); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}. - */ - public static class Builder { - private String project; - private String location; - private String entryGroup; - private String entry; - private String tag; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public String getEntry() { - return entry; - } - - public String getTag() { - return tag; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setEntryGroup(String entryGroup) { - this.entryGroup = entryGroup; - return this; - } - - public Builder setEntry(String entry) { - this.entry = entry; - return this; - } - - public Builder setTag(String tag) { - this.tag = tag; - return this; - } - - private Builder(TagName tagName) { - this.project = tagName.project; - this.location = tagName.location; - this.entryGroup = tagName.entryGroup; - this.entry = tagName.entry; - this.tag = tagName.tag; - } - - public TagName build() { - return new TagName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java deleted file mode 100644 index 30f9e3b23487..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagOrBuilder.java +++ /dev/null @@ -1,298 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface TagOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Tag) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. The resource name of the tag in URL format where tag ID is a
-   * system-generated identifier.
-   *
-   * Note: The tag itself might not be stored in the location specified in its
-   * name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. The resource name of the tag in URL format where tag ID is a
-   * system-generated identifier.
-   *
-   * Note: The tag itself might not be stored in the location specified in its
-   * name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The resource name of the tag template this tag uses. Example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}`
-   *
-   * This field cannot be modified after creation.
-   * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The template. - */ - java.lang.String getTemplate(); - - /** - * - * - *
-   * Required. The resource name of the tag template this tag uses. Example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}`
-   *
-   * This field cannot be modified after creation.
-   * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for template. - */ - com.google.protobuf.ByteString getTemplateBytes(); - - /** - * - * - *
-   * Output only. The display name of the tag template.
-   * 
- * - * string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The templateDisplayName. - */ - java.lang.String getTemplateDisplayName(); - - /** - * - * - *
-   * Output only. The display name of the tag template.
-   * 
- * - * string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for templateDisplayName. - */ - com.google.protobuf.ByteString getTemplateDisplayNameBytes(); - - /** - * - * - *
-   * Resources like entry can have schemas associated with them. This scope
-   * allows you to attach tags to an individual column based on that schema.
-   *
-   * To attach a tag to a nested column, separate column names with a dot
-   * (`.`). Example: `column.nested_column`.
-   * 
- * - * string column = 4; - * - * @return Whether the column field is set. - */ - boolean hasColumn(); - - /** - * - * - *
-   * Resources like entry can have schemas associated with them. This scope
-   * allows you to attach tags to an individual column based on that schema.
-   *
-   * To attach a tag to a nested column, separate column names with a dot
-   * (`.`). Example: `column.nested_column`.
-   * 
- * - * string column = 4; - * - * @return The column. - */ - java.lang.String getColumn(); - - /** - * - * - *
-   * Resources like entry can have schemas associated with them. This scope
-   * allows you to attach tags to an individual column based on that schema.
-   *
-   * To attach a tag to a nested column, separate column names with a dot
-   * (`.`). Example: `column.nested_column`.
-   * 
- * - * string column = 4; - * - * @return The bytes for column. - */ - com.google.protobuf.ByteString getColumnBytes(); - - /** - * - * - *
-   * Required. Maps the ID of a tag field to its value and additional
-   * information about that field.
-   *
-   * Tag template defines valid field IDs. A tag
-   * must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getFieldsCount(); - - /** - * - * - *
-   * Required. Maps the ID of a tag field to its value and additional
-   * information about that field.
-   *
-   * Tag template defines valid field IDs. A tag
-   * must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - boolean containsFields(java.lang.String key); - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getFields(); - - /** - * - * - *
-   * Required. Maps the ID of a tag field to its value and additional
-   * information about that field.
-   *
-   * Tag template defines valid field IDs. A tag
-   * must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.Map getFieldsMap(); - - /** - * - * - *
-   * Required. Maps the ID of a tag field to its value and additional
-   * information about that field.
-   *
-   * Tag template defines valid field IDs. A tag
-   * must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - /* nullable */ - com.google.cloud.datacatalog.v1.TagField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.TagField defaultValue); - - /** - * - * - *
-   * Required. Maps the ID of a tag field to its value and additional
-   * information about that field.
-   *
-   * Tag template defines valid field IDs. A tag
-   * must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.TagField getFieldsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Output only. Denotes the transfer status of the Tag Template.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for dataplexTransferStatus. - */ - int getDataplexTransferStatusValue(); - - /** - * - * - *
-   * Output only. Denotes the transfer status of the Tag Template.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataplexTransferStatus. - */ - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus getDataplexTransferStatus(); - - com.google.cloud.datacatalog.v1.Tag.ScopeCase getScopeCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java deleted file mode 100644 index 71b9351e6f39..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplate.java +++ /dev/null @@ -1,1915 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * A tag template defines a tag that can have one or more typed fields.
- *
- * The template is used to create tags that are attached to Google Cloud
- * resources. [Tag template roles]
- * (https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles)
- * provide permissions to create, edit, and use the template. For example,
- * see the [TagTemplate User]
- * (https://cloud.google.com/data-catalog/docs/how-to/template-user) role
- * that includes a permission to use the tag template to tag resources.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TagTemplate} - */ -@com.google.protobuf.Generated -public final class TagTemplate extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagTemplate) - TagTemplateOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TagTemplate"); - } - - // Use TagTemplate.newBuilder() to construct. - private TagTemplate(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TagTemplate() { - name_ = ""; - displayName_ = ""; - dataplexTransferStatus_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TagTemplate.class, - com.google.cloud.datacatalog.v1.TagTemplate.Builder.class); - } - - /** - * - * - *
-   * This enum describes TagTemplate transfer status to Dataplex service.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus} - */ - public enum DataplexTransferStatus implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. TagTemplate and its tags are only visible and editable in
-     * DataCatalog.
-     * 
- * - * DATAPLEX_TRANSFER_STATUS_UNSPECIFIED = 0; - */ - DATAPLEX_TRANSFER_STATUS_UNSPECIFIED(0), - /** - * - * - *
-     * TagTemplate and its tags are auto-copied to Dataplex service.
-     * Visible in both services. Editable in DataCatalog, read-only in Dataplex.
-     * Deprecated: Individual TagTemplate migration is deprecated in favor of
-     * organization or project wide TagTemplate migration opt-in.
-     * 
- * - * MIGRATED = 1 [deprecated = true]; - */ - @java.lang.Deprecated - MIGRATED(1), - /** - * - * - *
-     * TagTemplate and its tags are auto-copied to Dataplex service.
-     * Visible in both services. Editable in Dataplex, read-only in DataCatalog.
-     * 
- * - * TRANSFERRED = 2; - */ - TRANSFERRED(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataplexTransferStatus"); - } - - /** - * - * - *
-     * Default value. TagTemplate and its tags are only visible and editable in
-     * DataCatalog.
-     * 
- * - * DATAPLEX_TRANSFER_STATUS_UNSPECIFIED = 0; - */ - public static final int DATAPLEX_TRANSFER_STATUS_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * TagTemplate and its tags are auto-copied to Dataplex service.
-     * Visible in both services. Editable in DataCatalog, read-only in Dataplex.
-     * Deprecated: Individual TagTemplate migration is deprecated in favor of
-     * organization or project wide TagTemplate migration opt-in.
-     * 
- * - * MIGRATED = 1 [deprecated = true]; - */ - @java.lang.Deprecated public static final int MIGRATED_VALUE = 1; - - /** - * - * - *
-     * TagTemplate and its tags are auto-copied to Dataplex service.
-     * Visible in both services. Editable in Dataplex, read-only in DataCatalog.
-     * 
- * - * TRANSFERRED = 2; - */ - public static final int TRANSFERRED_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 DataplexTransferStatus 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 DataplexTransferStatus forNumber(int value) { - switch (value) { - case 0: - return DATAPLEX_TRANSFER_STATUS_UNSPECIFIED; - case 1: - return MIGRATED; - case 2: - return TRANSFERRED; - 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 DataplexTransferStatus findValueByNumber(int number) { - return DataplexTransferStatus.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.datacatalog.v1.TagTemplate.getDescriptor().getEnumTypes().get(0); - } - - private static final DataplexTransferStatus[] VALUES = values(); - - public static DataplexTransferStatus 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 DataplexTransferStatus(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus) - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. The resource name of the tag template in URL format.
-   *
-   * Note: The tag template itself and its child resources might not be
-   * stored in the location specified in its 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 resource name of the tag template in URL format.
-   *
-   * Note: The tag template itself and its child resources might not be
-   * stored in the location specified in its 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_ = ""; - - /** - * - * - *
-   * Display name for this template. Defaults to an empty string.
-   *
-   * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-   * dashes (-), spaces ( ), and can't start or end with spaces.
-   * The maximum length is 200 characters.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - - /** - * - * - *
-   * Display name for this template. Defaults to an empty string.
-   *
-   * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-   * dashes (-), spaces ( ), and can't start or end with spaces.
-   * The maximum length is 200 characters.
-   * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int IS_PUBLICLY_READABLE_FIELD_NUMBER = 5; - private boolean isPubliclyReadable_ = false; - - /** - * - * - *
-   * Indicates whether tags created with this template are public. Public tags
-   * do not require tag template access to appear in
-   * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags] API response.
-   *
-   * Additionally, you can search for a public tag by value with a
-   * simple search query in addition to using a ``tag:`` predicate.
-   * 
- * - * bool is_publicly_readable = 5; - * - * @return The isPubliclyReadable. - */ - @java.lang.Override - public boolean getIsPubliclyReadable() { - return isPubliclyReadable_; - } - - public static final int FIELDS_FIELD_NUMBER = 3; - - private static final class FieldsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.TagTemplateField> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplate_FieldsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1.TagTemplateField> - fields_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1.TagTemplateField> - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - - public int getFieldsCount() { - return internalGetFields().getMap().size(); - } - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. The map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. The IDs have the
-   * following limitations:
-   *
-   * * Can contain uppercase and lowercase letters, numbers (0-9) and
-   * underscores (_).
-   * * Must be at least 1 character and at most 64 characters long.
-   * * Must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetFields().getMap().containsKey(key); - } - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getFields() { - return getFieldsMap(); - } - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. The map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. The IDs have the
-   * following limitations:
-   *
-   * * Can contain uppercase and lowercase letters, numbers (0-9) and
-   * underscores (_).
-   * * Must be at least 1 character and at most 64 characters long.
-   * * Must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map - getFieldsMap() { - return internalGetFields().getMap(); - } - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. The map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. The IDs have the
-   * following limitations:
-   *
-   * * Can contain uppercase and lowercase letters, numbers (0-9) and
-   * underscores (_).
-   * * Must be at least 1 character and at most 64 characters long.
-   * * Must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1.TagTemplateField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.TagTemplateField defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetFields().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. The map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. The IDs have the
-   * following limitations:
-   *
-   * * Can contain uppercase and lowercase letters, numbers (0-9) and
-   * underscores (_).
-   * * Must be at least 1 character and at most 64 characters long.
-   * * Must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateField getFieldsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetFields().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int DATAPLEX_TRANSFER_STATUS_FIELD_NUMBER = 7; - private int dataplexTransferStatus_ = 0; - - /** - * - * - *
-   * Optional. Transfer status of the TagTemplate
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for dataplexTransferStatus. - */ - @java.lang.Override - public int getDataplexTransferStatusValue() { - return dataplexTransferStatus_; - } - - /** - * - * - *
-   * Optional. Transfer status of the TagTemplate
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dataplexTransferStatus. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus - getDataplexTransferStatus() { - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus result = - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.forNumber( - dataplexTransferStatus_); - return result == null - ? com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.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(displayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); - if (isPubliclyReadable_ != false) { - output.writeBool(5, isPubliclyReadable_); - } - if (dataplexTransferStatus_ - != com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus - .DATAPLEX_TRANSFER_STATUS_UNSPECIFIED - .getNumber()) { - output.writeEnum(7, dataplexTransferStatus_); - } - 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_); - } - for (java.util.Map.Entry - entry : internalGetFields().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.TagTemplateField> - fields__ = - FieldsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fields__); - } - if (isPubliclyReadable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, isPubliclyReadable_); - } - if (dataplexTransferStatus_ - != com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus - .DATAPLEX_TRANSFER_STATUS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, dataplexTransferStatus_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.TagTemplate)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.TagTemplate other = - (com.google.cloud.datacatalog.v1.TagTemplate) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getIsPubliclyReadable() != other.getIsPubliclyReadable()) return false; - if (!internalGetFields().equals(other.internalGetFields())) return false; - if (dataplexTransferStatus_ != other.dataplexTransferStatus_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + IS_PUBLICLY_READABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsPubliclyReadable()); - if (!internalGetFields().getMap().isEmpty()) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + internalGetFields().hashCode(); - } - hash = (37 * hash) + DATAPLEX_TRANSFER_STATUS_FIELD_NUMBER; - hash = (53 * hash) + dataplexTransferStatus_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.TagTemplate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 tag template defines a tag that can have one or more typed fields.
-   *
-   * The template is used to create tags that are attached to Google Cloud
-   * resources. [Tag template roles]
-   * (https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles)
-   * provide permissions to create, edit, and use the template. For example,
-   * see the [TagTemplate User]
-   * (https://cloud.google.com/data-catalog/docs/how-to/template-user) role
-   * that includes a permission to use the tag template to tag resources.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TagTemplate} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.TagTemplate) - com.google.cloud.datacatalog.v1.TagTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMutableFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TagTemplate.class, - com.google.cloud.datacatalog.v1.TagTemplate.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.TagTemplate.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - isPubliclyReadable_ = false; - internalGetMutableFields().clear(); - dataplexTransferStatus_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplate getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplate build() { - com.google.cloud.datacatalog.v1.TagTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplate buildPartial() { - com.google.cloud.datacatalog.v1.TagTemplate result = - new com.google.cloud.datacatalog.v1.TagTemplate(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.TagTemplate 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.isPubliclyReadable_ = isPubliclyReadable_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.fields_ = internalGetFields().build(FieldsDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.dataplexTransferStatus_ = dataplexTransferStatus_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.TagTemplate) { - return mergeFrom((com.google.cloud.datacatalog.v1.TagTemplate) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.TagTemplate other) { - if (other == com.google.cloud.datacatalog.v1.TagTemplate.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.getIsPubliclyReadable() != false) { - setIsPubliclyReadable(other.getIsPubliclyReadable()); - } - internalGetMutableFields().mergeFrom(other.internalGetFields()); - bitField0_ |= 0x00000008; - if (other.dataplexTransferStatus_ != 0) { - setDataplexTransferStatusValue(other.getDataplexTransferStatusValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.TagTemplateField> - fields__ = - input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableFields() - .ensureBuilderMap() - .put(fields__.getKey(), fields__.getValue()); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 40: - { - isPubliclyReadable_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 40 - case 56: - { - dataplexTransferStatus_ = input.readEnum(); - bitField0_ |= 0x00000010; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - - /** - * - * - *
-     * Identifier. The resource name of the tag template in URL format.
-     *
-     * Note: The tag template itself and its child resources might not be
-     * stored in the location specified in its 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 resource name of the tag template in URL format.
-     *
-     * Note: The tag template itself and its child resources might not be
-     * stored in the location specified in its 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 resource name of the tag template in URL format.
-     *
-     * Note: The tag template itself and its child resources might not be
-     * stored in the location specified in its 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 resource name of the tag template in URL format.
-     *
-     * Note: The tag template itself and its child resources might not be
-     * stored in the location specified in its 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 resource name of the tag template in URL format.
-     *
-     * Note: The tag template itself and its child resources might not be
-     * stored in the location specified in its 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_ = ""; - - /** - * - * - *
-     * Display name for this template. Defaults to an empty string.
-     *
-     * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-     * dashes (-), spaces ( ), and can't start or end with spaces.
-     * The maximum length is 200 characters.
-     * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Display name for this template. Defaults to an empty string.
-     *
-     * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-     * dashes (-), spaces ( ), and can't start or end with spaces.
-     * The maximum length is 200 characters.
-     * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Display name for this template. Defaults to an empty string.
-     *
-     * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-     * dashes (-), spaces ( ), and can't start or end with spaces.
-     * The maximum length is 200 characters.
-     * 
- * - * string display_name = 2; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Display name for this template. Defaults to an empty string.
-     *
-     * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-     * dashes (-), spaces ( ), and can't start or end with spaces.
-     * The maximum length is 200 characters.
-     * 
- * - * string display_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Display name for this template. Defaults to an empty string.
-     *
-     * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-     * dashes (-), spaces ( ), and can't start or end with spaces.
-     * The maximum length is 200 characters.
-     * 
- * - * string display_name = 2; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean isPubliclyReadable_; - - /** - * - * - *
-     * Indicates whether tags created with this template are public. Public tags
-     * do not require tag template access to appear in
-     * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags] API response.
-     *
-     * Additionally, you can search for a public tag by value with a
-     * simple search query in addition to using a ``tag:`` predicate.
-     * 
- * - * bool is_publicly_readable = 5; - * - * @return The isPubliclyReadable. - */ - @java.lang.Override - public boolean getIsPubliclyReadable() { - return isPubliclyReadable_; - } - - /** - * - * - *
-     * Indicates whether tags created with this template are public. Public tags
-     * do not require tag template access to appear in
-     * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags] API response.
-     *
-     * Additionally, you can search for a public tag by value with a
-     * simple search query in addition to using a ``tag:`` predicate.
-     * 
- * - * bool is_publicly_readable = 5; - * - * @param value The isPubliclyReadable to set. - * @return This builder for chaining. - */ - public Builder setIsPubliclyReadable(boolean value) { - - isPubliclyReadable_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Indicates whether tags created with this template are public. Public tags
-     * do not require tag template access to appear in
-     * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags] API response.
-     *
-     * Additionally, you can search for a public tag by value with a
-     * simple search query in addition to using a ``tag:`` predicate.
-     * 
- * - * bool is_publicly_readable = 5; - * - * @return This builder for chaining. - */ - public Builder clearIsPubliclyReadable() { - bitField0_ = (bitField0_ & ~0x00000004); - isPubliclyReadable_ = false; - onChanged(); - return this; - } - - private static final class FieldsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder, - com.google.cloud.datacatalog.v1.TagTemplateField> { - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateField build( - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder val) { - if (val instanceof com.google.cloud.datacatalog.v1.TagTemplateField) { - return (com.google.cloud.datacatalog.v1.TagTemplateField) val; - } - return ((com.google.cloud.datacatalog.v1.TagTemplateField.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.TagTemplateField> - defaultEntry() { - return FieldsDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final FieldsConverter fieldsConverter = new FieldsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder, - com.google.cloud.datacatalog.v1.TagTemplateField, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder> - fields_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder, - com.google.cloud.datacatalog.v1.TagTemplateField, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder> - internalGetFields() { - if (fields_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); - } - return fields_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder, - com.google.cloud.datacatalog.v1.TagTemplateField, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder> - internalGetMutableFields() { - if (fields_ == null) { - fields_ = new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); - } - bitField0_ |= 0x00000008; - onChanged(); - return fields_; - } - - public int getFieldsCount() { - return internalGetFields().ensureBuilderMap().size(); - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. The map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. The IDs have the
-     * following limitations:
-     *
-     * * Can contain uppercase and lowercase letters, numbers (0-9) and
-     * underscores (_).
-     * * Must be at least 1 character and at most 64 characters long.
-     * * Must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetFields().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getFields() { - return getFieldsMap(); - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. The map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. The IDs have the
-     * following limitations:
-     *
-     * * Can contain uppercase and lowercase letters, numbers (0-9) and
-     * underscores (_).
-     * * Must be at least 1 character and at most 64 characters long.
-     * * Must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map - getFieldsMap() { - return internalGetFields().getImmutableMap(); - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. The map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. The IDs have the
-     * following limitations:
-     *
-     * * Can contain uppercase and lowercase letters, numbers (0-9) and
-     * underscores (_).
-     * * Must be at least 1 character and at most 64 characters long.
-     * * Must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1.TagTemplateField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.TagTemplateField defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableFields().ensureBuilderMap(); - return map.containsKey(key) ? fieldsConverter.build(map.get(key)) : defaultValue; - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. The map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. The IDs have the
-     * following limitations:
-     *
-     * * Can contain uppercase and lowercase letters, numbers (0-9) and
-     * underscores (_).
-     * * Must be at least 1 character and at most 64 characters long.
-     * * Must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateField getFieldsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableFields().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return fieldsConverter.build(map.get(key)); - } - - public Builder clearFields() { - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableFields().clear(); - return this; - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. The map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. The IDs have the
-     * following limitations:
-     *
-     * * Can contain uppercase and lowercase letters, numbers (0-9) and
-     * underscores (_).
-     * * Must be at least 1 character and at most 64 characters long.
-     * * Must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableFields().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableFields() { - bitField0_ |= 0x00000008; - return internalGetMutableFields().ensureMessageMap(); - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. The map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. The IDs have the
-     * following limitations:
-     *
-     * * Can contain uppercase and lowercase letters, numbers (0-9) and
-     * underscores (_).
-     * * Must be at least 1 character and at most 64 characters long.
-     * * Must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putFields( - java.lang.String key, com.google.cloud.datacatalog.v1.TagTemplateField value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableFields().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000008; - return this; - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. The map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. The IDs have the
-     * following limitations:
-     *
-     * * Can contain uppercase and lowercase letters, numbers (0-9) and
-     * underscores (_).
-     * * Must be at least 1 character and at most 64 characters long.
-     * * Must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putAllFields( - java.util.Map values) { - for (java.util.Map.Entry - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableFields().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000008; - return this; - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. The map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. The IDs have the
-     * following limitations:
-     *
-     * * Can contain uppercase and lowercase letters, numbers (0-9) and
-     * underscores (_).
-     * * Must be at least 1 character and at most 64 characters long.
-     * * Must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagTemplateField.Builder putFieldsBuilderIfAbsent( - java.lang.String key) { - java.util.Map - builderMap = internalGetMutableFields().ensureBuilderMap(); - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.datacatalog.v1.TagTemplateField.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.datacatalog.v1.TagTemplateField) { - entry = ((com.google.cloud.datacatalog.v1.TagTemplateField) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.datacatalog.v1.TagTemplateField.Builder) entry; - } - - private int dataplexTransferStatus_ = 0; - - /** - * - * - *
-     * Optional. Transfer status of the TagTemplate
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for dataplexTransferStatus. - */ - @java.lang.Override - public int getDataplexTransferStatusValue() { - return dataplexTransferStatus_; - } - - /** - * - * - *
-     * Optional. Transfer status of the TagTemplate
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for dataplexTransferStatus to set. - * @return This builder for chaining. - */ - public Builder setDataplexTransferStatusValue(int value) { - dataplexTransferStatus_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Transfer status of the TagTemplate
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dataplexTransferStatus. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus - getDataplexTransferStatus() { - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus result = - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.forNumber( - dataplexTransferStatus_); - return result == null - ? com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Optional. Transfer status of the TagTemplate
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The dataplexTransferStatus to set. - * @return This builder for chaining. - */ - public Builder setDataplexTransferStatus( - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000010; - dataplexTransferStatus_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Transfer status of the TagTemplate
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearDataplexTransferStatus() { - bitField0_ = (bitField0_ & ~0x00000010); - dataplexTransferStatus_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.TagTemplate) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.TagTemplate) - private static final com.google.cloud.datacatalog.v1.TagTemplate DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.TagTemplate(); - } - - public static com.google.cloud.datacatalog.v1.TagTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TagTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateField.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateField.java deleted file mode 100644 index c414d3d3a7be..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateField.java +++ /dev/null @@ -1,1597 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * The template for an individual field within a tag template.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TagTemplateField} - */ -@com.google.protobuf.Generated -public final class TagTemplateField extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TagTemplateField) - TagTemplateFieldOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TagTemplateField"); - } - - // Use TagTemplateField.newBuilder() to construct. - private TagTemplateField(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TagTemplateField() { - name_ = ""; - displayName_ = ""; - description_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplateField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplateField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TagTemplateField.class, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. The resource name of the tag template field in URL format.
-   * Example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}`
-   *
-   * Note: The tag template field itself might not be stored in the location
-   * specified in its name.
-   *
-   * The name must contain only letters (a-z, A-Z), numbers (0-9),
-   * or underscores (_), and must start with a letter or underscore.
-   * The maximum length is 64 characters.
-   * 
- * - * string name = 6 [(.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 resource name of the tag template field in URL format.
-   * Example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}`
-   *
-   * Note: The tag template field itself might not be stored in the location
-   * specified in its name.
-   *
-   * The name must contain only letters (a-z, A-Z), numbers (0-9),
-   * or underscores (_), and must start with a letter or underscore.
-   * The maximum length is 64 characters.
-   * 
- * - * string name = 6 [(.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 = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-   * The display name for this field. Defaults to an empty string.
-   *
-   * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-   * dashes (-), spaces ( ), and can't start or end with spaces.
-   * The maximum length is 200 characters.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - - /** - * - * - *
-   * The display name for this field. Defaults to an empty string.
-   *
-   * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-   * dashes (-), spaces ( ), and can't start or end with spaces.
-   * The maximum length is 200 characters.
-   * 
- * - * string display_name = 1; - * - * @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 TYPE_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.FieldType type_; - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the type field is set. - */ - @java.lang.Override - public boolean hasType() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldType getType() { - return type_ == null ? com.google.cloud.datacatalog.v1.FieldType.getDefaultInstance() : type_; - } - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.FieldTypeOrBuilder getTypeOrBuilder() { - return type_ == null ? com.google.cloud.datacatalog.v1.FieldType.getDefaultInstance() : type_; - } - - public static final int IS_REQUIRED_FIELD_NUMBER = 3; - private boolean isRequired_ = false; - - /** - * - * - *
-   * If true, this field is required. Defaults to false.
-   * 
- * - * bool is_required = 3; - * - * @return The isRequired. - */ - @java.lang.Override - public boolean getIsRequired() { - return isRequired_; - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
-   * The description for this field. Defaults to an empty string.
-   * 
- * - * string description = 4; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - - /** - * - * - *
-   * The description for this field. Defaults to an empty string.
-   * 
- * - * string description = 4; - * - * @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 ORDER_FIELD_NUMBER = 5; - private int order_ = 0; - - /** - * - * - *
-   * The order of this field with respect to other fields in this tag
-   * template.
-   *
-   * For example, a higher value can indicate a more important field.
-   * The value can be negative. Multiple fields can have the same order and
-   * field orders within a tag don't have to be sequential.
-   * 
- * - * int32 order = 5; - * - * @return The order. - */ - @java.lang.Override - public int getOrder() { - return order_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getType()); - } - if (isRequired_ != false) { - output.writeBool(3, isRequired_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); - } - if (order_ != 0) { - output.writeInt32(5, order_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, 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(displayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, displayName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); - } - if (isRequired_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isRequired_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); - } - if (order_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, order_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(6, 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.datacatalog.v1.TagTemplateField)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.TagTemplateField other = - (com.google.cloud.datacatalog.v1.TagTemplateField) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType().equals(other.getType())) return false; - } - if (getIsRequired() != other.getIsRequired()) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getOrder() != other.getOrder()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (37 * hash) + IS_REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRequired()); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + ORDER_FIELD_NUMBER; - hash = (53 * hash) + getOrder(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.TagTemplateField prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 template for an individual field within a tag template.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TagTemplateField} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.TagTemplateField) - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplateField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplateField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TagTemplateField.class, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.TagTemplateField.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; - name_ = ""; - displayName_ = ""; - type_ = null; - if (typeBuilder_ != null) { - typeBuilder_.dispose(); - typeBuilder_ = null; - } - isRequired_ = false; - description_ = ""; - order_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Tags - .internal_static_google_cloud_datacatalog_v1_TagTemplateField_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateField getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateField build() { - com.google.cloud.datacatalog.v1.TagTemplateField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateField buildPartial() { - com.google.cloud.datacatalog.v1.TagTemplateField result = - new com.google.cloud.datacatalog.v1.TagTemplateField(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.TagTemplateField result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.isRequired_ = isRequired_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.order_ = order_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.TagTemplateField) { - return mergeFrom((com.google.cloud.datacatalog.v1.TagTemplateField) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.TagTemplateField other) { - if (other == com.google.cloud.datacatalog.v1.TagTemplateField.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.hasType()) { - mergeType(other.getType()); - } - if (other.getIsRequired() != false) { - setIsRequired(other.getIsRequired()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getOrder() != 0) { - setOrder(other.getOrder()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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_ |= 0x00000002; - break; - } // case 10 - case 18: - { - input.readMessage(internalGetTypeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: - { - isRequired_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 40: - { - order_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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_ = ""; - - /** - * - * - *
-     * Identifier. The resource name of the tag template field in URL format.
-     * Example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}`
-     *
-     * Note: The tag template field itself might not be stored in the location
-     * specified in its name.
-     *
-     * The name must contain only letters (a-z, A-Z), numbers (0-9),
-     * or underscores (_), and must start with a letter or underscore.
-     * The maximum length is 64 characters.
-     * 
- * - * string name = 6 [(.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 resource name of the tag template field in URL format.
-     * Example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}`
-     *
-     * Note: The tag template field itself might not be stored in the location
-     * specified in its name.
-     *
-     * The name must contain only letters (a-z, A-Z), numbers (0-9),
-     * or underscores (_), and must start with a letter or underscore.
-     * The maximum length is 64 characters.
-     * 
- * - * string name = 6 [(.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 resource name of the tag template field in URL format.
-     * Example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}`
-     *
-     * Note: The tag template field itself might not be stored in the location
-     * specified in its name.
-     *
-     * The name must contain only letters (a-z, A-Z), numbers (0-9),
-     * or underscores (_), and must start with a letter or underscore.
-     * The maximum length is 64 characters.
-     * 
- * - * string name = 6 [(.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 resource name of the tag template field in URL format.
-     * Example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}`
-     *
-     * Note: The tag template field itself might not be stored in the location
-     * specified in its name.
-     *
-     * The name must contain only letters (a-z, A-Z), numbers (0-9),
-     * or underscores (_), and must start with a letter or underscore.
-     * The maximum length is 64 characters.
-     * 
- * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Identifier. The resource name of the tag template field in URL format.
-     * Example:
-     *
-     * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}`
-     *
-     * Note: The tag template field itself might not be stored in the location
-     * specified in its name.
-     *
-     * The name must contain only letters (a-z, A-Z), numbers (0-9),
-     * or underscores (_), and must start with a letter or underscore.
-     * The maximum length is 64 characters.
-     * 
- * - * string name = 6 [(.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_ = ""; - - /** - * - * - *
-     * The display name for this field. Defaults to an empty string.
-     *
-     * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-     * dashes (-), spaces ( ), and can't start or end with spaces.
-     * The maximum length is 200 characters.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The display name for this field. Defaults to an empty string.
-     *
-     * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-     * dashes (-), spaces ( ), and can't start or end with spaces.
-     * The maximum length is 200 characters.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The display name for this field. Defaults to an empty string.
-     *
-     * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-     * dashes (-), spaces ( ), and can't start or end with spaces.
-     * The maximum length is 200 characters.
-     * 
- * - * string display_name = 1; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The display name for this field. Defaults to an empty string.
-     *
-     * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-     * dashes (-), spaces ( ), and can't start or end with spaces.
-     * The maximum length is 200 characters.
-     * 
- * - * string display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * The display name for this field. Defaults to an empty string.
-     *
-     * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-     * dashes (-), spaces ( ), and can't start or end with spaces.
-     * The maximum length is 200 characters.
-     * 
- * - * string display_name = 1; - * - * @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.datacatalog.v1.FieldType type_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FieldType, - com.google.cloud.datacatalog.v1.FieldType.Builder, - com.google.cloud.datacatalog.v1.FieldTypeOrBuilder> - typeBuilder_; - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the type field is set. - */ - public boolean hasType() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - public com.google.cloud.datacatalog.v1.FieldType getType() { - if (typeBuilder_ == null) { - return type_ == null - ? com.google.cloud.datacatalog.v1.FieldType.getDefaultInstance() - : type_; - } else { - return typeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setType(com.google.cloud.datacatalog.v1.FieldType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - } else { - typeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setType(com.google.cloud.datacatalog.v1.FieldType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeType(com.google.cloud.datacatalog.v1.FieldType value) { - if (typeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && type_ != null - && type_ != com.google.cloud.datacatalog.v1.FieldType.getDefaultInstance()) { - getTypeBuilder().mergeFrom(value); - } else { - type_ = value; - } - } else { - typeBuilder_.mergeFrom(value); - } - if (type_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000004); - type_ = null; - if (typeBuilder_ != null) { - typeBuilder_.dispose(); - typeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.FieldType.Builder getTypeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetTypeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.FieldTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null - ? com.google.cloud.datacatalog.v1.FieldType.getDefaultInstance() - : type_; - } - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FieldType, - com.google.cloud.datacatalog.v1.FieldType.Builder, - com.google.cloud.datacatalog.v1.FieldTypeOrBuilder> - internalGetTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.FieldType, - com.google.cloud.datacatalog.v1.FieldType.Builder, - com.google.cloud.datacatalog.v1.FieldTypeOrBuilder>( - getType(), getParentForChildren(), isClean()); - type_ = null; - } - return typeBuilder_; - } - - private boolean isRequired_; - - /** - * - * - *
-     * If true, this field is required. Defaults to false.
-     * 
- * - * bool is_required = 3; - * - * @return The isRequired. - */ - @java.lang.Override - public boolean getIsRequired() { - return isRequired_; - } - - /** - * - * - *
-     * If true, this field is required. Defaults to false.
-     * 
- * - * bool is_required = 3; - * - * @param value The isRequired to set. - * @return This builder for chaining. - */ - public Builder setIsRequired(boolean value) { - - isRequired_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * If true, this field is required. Defaults to false.
-     * 
- * - * bool is_required = 3; - * - * @return This builder for chaining. - */ - public Builder clearIsRequired() { - bitField0_ = (bitField0_ & ~0x00000008); - isRequired_ = false; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - - /** - * - * - *
-     * The description for this field. Defaults to an empty string.
-     * 
- * - * string description = 4; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The description for this field. Defaults to an empty string.
-     * 
- * - * string description = 4; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The description for this field. Defaults to an empty string.
-     * 
- * - * string description = 4; - * - * @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; - } - - /** - * - * - *
-     * The description for this field. Defaults to an empty string.
-     * 
- * - * string description = 4; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - /** - * - * - *
-     * The description for this field. Defaults to an empty string.
-     * 
- * - * string description = 4; - * - * @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 order_; - - /** - * - * - *
-     * The order of this field with respect to other fields in this tag
-     * template.
-     *
-     * For example, a higher value can indicate a more important field.
-     * The value can be negative. Multiple fields can have the same order and
-     * field orders within a tag don't have to be sequential.
-     * 
- * - * int32 order = 5; - * - * @return The order. - */ - @java.lang.Override - public int getOrder() { - return order_; - } - - /** - * - * - *
-     * The order of this field with respect to other fields in this tag
-     * template.
-     *
-     * For example, a higher value can indicate a more important field.
-     * The value can be negative. Multiple fields can have the same order and
-     * field orders within a tag don't have to be sequential.
-     * 
- * - * int32 order = 5; - * - * @param value The order to set. - * @return This builder for chaining. - */ - public Builder setOrder(int value) { - - order_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
-     * The order of this field with respect to other fields in this tag
-     * template.
-     *
-     * For example, a higher value can indicate a more important field.
-     * The value can be negative. Multiple fields can have the same order and
-     * field orders within a tag don't have to be sequential.
-     * 
- * - * int32 order = 5; - * - * @return This builder for chaining. - */ - public Builder clearOrder() { - bitField0_ = (bitField0_ & ~0x00000020); - order_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.TagTemplateField) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.TagTemplateField) - private static final com.google.cloud.datacatalog.v1.TagTemplateField DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.TagTemplateField(); - } - - public static com.google.cloud.datacatalog.v1.TagTemplateField getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TagTemplateField parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateField getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldEnumValueName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldEnumValueName.java deleted file mode 100644 index c345d43bc73b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldEnumValueName.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 TagTemplateFieldEnumValueName implements ResourceName { - private static final PathTemplate - PROJECT_LOCATION_TAG_TEMPLATE_TAG_TEMPLATE_FIELD_ID_ENUM_VALUE_DISPLAY_NAME = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String tagTemplate; - private final String tagTemplateFieldId; - private final String enumValueDisplayName; - - @Deprecated - protected TagTemplateFieldEnumValueName() { - project = null; - location = null; - tagTemplate = null; - tagTemplateFieldId = null; - enumValueDisplayName = null; - } - - private TagTemplateFieldEnumValueName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - tagTemplate = Preconditions.checkNotNull(builder.getTagTemplate()); - tagTemplateFieldId = Preconditions.checkNotNull(builder.getTagTemplateFieldId()); - enumValueDisplayName = Preconditions.checkNotNull(builder.getEnumValueDisplayName()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public String getTagTemplateFieldId() { - return tagTemplateFieldId; - } - - public String getEnumValueDisplayName() { - return enumValueDisplayName; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TagTemplateFieldEnumValueName of( - String project, - String location, - String tagTemplate, - String tagTemplateFieldId, - String enumValueDisplayName) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .setTagTemplateFieldId(tagTemplateFieldId) - .setEnumValueDisplayName(enumValueDisplayName) - .build(); - } - - public static String format( - String project, - String location, - String tagTemplate, - String tagTemplateFieldId, - String enumValueDisplayName) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .setTagTemplateFieldId(tagTemplateFieldId) - .setEnumValueDisplayName(enumValueDisplayName) - .build() - .toString(); - } - - public static @Nullable TagTemplateFieldEnumValueName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TAG_TEMPLATE_TAG_TEMPLATE_FIELD_ID_ENUM_VALUE_DISPLAY_NAME.validatedMatch( - formattedString, - "TagTemplateFieldEnumValueName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("tag_template"), - matchMap.get("tag_template_field_id"), - matchMap.get("enum_value_display_name")); - } - - 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 TagTemplateFieldEnumValueName> values) { - List list = new ArrayList<>(values.size()); - for (TagTemplateFieldEnumValueName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TAG_TEMPLATE_TAG_TEMPLATE_FIELD_ID_ENUM_VALUE_DISPLAY_NAME.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 (tagTemplate != null) { - fieldMapBuilder.put("tag_template", tagTemplate); - } - if (tagTemplateFieldId != null) { - fieldMapBuilder.put("tag_template_field_id", tagTemplateFieldId); - } - if (enumValueDisplayName != null) { - fieldMapBuilder.put("enum_value_display_name", enumValueDisplayName); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TAG_TEMPLATE_TAG_TEMPLATE_FIELD_ID_ENUM_VALUE_DISPLAY_NAME.instantiate( - "project", - project, - "location", - location, - "tag_template", - tagTemplate, - "tag_template_field_id", - tagTemplateFieldId, - "enum_value_display_name", - enumValueDisplayName); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TagTemplateFieldEnumValueName that = ((TagTemplateFieldEnumValueName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.tagTemplate, that.tagTemplate) - && Objects.equals(this.tagTemplateFieldId, that.tagTemplateFieldId) - && Objects.equals(this.enumValueDisplayName, that.enumValueDisplayName); - } - 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(tagTemplate); - h *= 1000003; - h ^= Objects.hashCode(tagTemplateFieldId); - h *= 1000003; - h ^= Objects.hashCode(enumValueDisplayName); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}. - */ - public static class Builder { - private String project; - private String location; - private String tagTemplate; - private String tagTemplateFieldId; - private String enumValueDisplayName; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public String getTagTemplateFieldId() { - return tagTemplateFieldId; - } - - public String getEnumValueDisplayName() { - return enumValueDisplayName; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTagTemplate(String tagTemplate) { - this.tagTemplate = tagTemplate; - return this; - } - - public Builder setTagTemplateFieldId(String tagTemplateFieldId) { - this.tagTemplateFieldId = tagTemplateFieldId; - return this; - } - - public Builder setEnumValueDisplayName(String enumValueDisplayName) { - this.enumValueDisplayName = enumValueDisplayName; - return this; - } - - private Builder(TagTemplateFieldEnumValueName tagTemplateFieldEnumValueName) { - this.project = tagTemplateFieldEnumValueName.project; - this.location = tagTemplateFieldEnumValueName.location; - this.tagTemplate = tagTemplateFieldEnumValueName.tagTemplate; - this.tagTemplateFieldId = tagTemplateFieldEnumValueName.tagTemplateFieldId; - this.enumValueDisplayName = tagTemplateFieldEnumValueName.enumValueDisplayName; - } - - public TagTemplateFieldEnumValueName build() { - return new TagTemplateFieldEnumValueName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldName.java deleted file mode 100644 index 9305564b4554..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldName.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 TagTemplateFieldName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_TAG_TEMPLATE_FIELD = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String tagTemplate; - private final String field; - - @Deprecated - protected TagTemplateFieldName() { - project = null; - location = null; - tagTemplate = null; - field = null; - } - - private TagTemplateFieldName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - tagTemplate = Preconditions.checkNotNull(builder.getTagTemplate()); - field = Preconditions.checkNotNull(builder.getField()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public String getField() { - return field; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TagTemplateFieldName of( - String project, String location, String tagTemplate, String field) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .setField(field) - .build(); - } - - public static String format(String project, String location, String tagTemplate, String field) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .setField(field) - .build() - .toString(); - } - - public static @Nullable TagTemplateFieldName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TAG_TEMPLATE_FIELD.validatedMatch( - formattedString, "TagTemplateFieldName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("tag_template"), - matchMap.get("field")); - } - - 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 TagTemplateFieldName> values) { - List list = new ArrayList<>(values.size()); - for (TagTemplateFieldName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TAG_TEMPLATE_FIELD.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 (tagTemplate != null) { - fieldMapBuilder.put("tag_template", tagTemplate); - } - if (field != null) { - fieldMapBuilder.put("field", field); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TAG_TEMPLATE_FIELD.instantiate( - "project", project, "location", location, "tag_template", tagTemplate, "field", field); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TagTemplateFieldName that = ((TagTemplateFieldName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.tagTemplate, that.tagTemplate) - && Objects.equals(this.field, that.field); - } - 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(tagTemplate); - h *= 1000003; - h ^= Objects.hashCode(field); - return h; - } - - /** - * Builder for projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}. - */ - public static class Builder { - private String project; - private String location; - private String tagTemplate; - private String field; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public String getField() { - return field; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTagTemplate(String tagTemplate) { - this.tagTemplate = tagTemplate; - return this; - } - - public Builder setField(String field) { - this.field = field; - return this; - } - - private Builder(TagTemplateFieldName tagTemplateFieldName) { - this.project = tagTemplateFieldName.project; - this.location = tagTemplateFieldName.location; - this.tagTemplate = tagTemplateFieldName.tagTemplate; - this.field = tagTemplateFieldName.field; - } - - public TagTemplateFieldName build() { - return new TagTemplateFieldName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldOrBuilder.java deleted file mode 100644 index c8e557ae9729..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateFieldOrBuilder.java +++ /dev/null @@ -1,208 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface TagTemplateFieldOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.TagTemplateField) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. The resource name of the tag template field in URL format.
-   * Example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}`
-   *
-   * Note: The tag template field itself might not be stored in the location
-   * specified in its name.
-   *
-   * The name must contain only letters (a-z, A-Z), numbers (0-9),
-   * or underscores (_), and must start with a letter or underscore.
-   * The maximum length is 64 characters.
-   * 
- * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. The resource name of the tag template field in URL format.
-   * Example:
-   *
-   * `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}`
-   *
-   * Note: The tag template field itself might not be stored in the location
-   * specified in its name.
-   *
-   * The name must contain only letters (a-z, A-Z), numbers (0-9),
-   * or underscores (_), and must start with a letter or underscore.
-   * The maximum length is 64 characters.
-   * 
- * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The display name for this field. Defaults to an empty string.
-   *
-   * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-   * dashes (-), spaces ( ), and can't start or end with spaces.
-   * The maximum length is 200 characters.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * The display name for this field. Defaults to an empty string.
-   *
-   * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-   * dashes (-), spaces ( ), and can't start or end with spaces.
-   * The maximum length is 200 characters.
-   * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the type field is set. - */ - boolean hasType(); - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - com.google.cloud.datacatalog.v1.FieldType getType(); - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.FieldTypeOrBuilder getTypeOrBuilder(); - - /** - * - * - *
-   * If true, this field is required. Defaults to false.
-   * 
- * - * bool is_required = 3; - * - * @return The isRequired. - */ - boolean getIsRequired(); - - /** - * - * - *
-   * The description for this field. Defaults to an empty string.
-   * 
- * - * string description = 4; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * The description for this field. Defaults to an empty string.
-   * 
- * - * string description = 4; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * The order of this field with respect to other fields in this tag
-   * template.
-   *
-   * For example, a higher value can indicate a more important field.
-   * The value can be negative. Multiple fields can have the same order and
-   * field orders within a tag don't have to be sequential.
-   * 
- * - * int32 order = 5; - * - * @return The order. - */ - int getOrder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateMigration.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateMigration.java deleted file mode 100644 index f77cc0bc9555..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateMigration.java +++ /dev/null @@ -1,197 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Configuration related to the opt-in status for the migration of TagTemplates
- * to Dataplex.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.TagTemplateMigration} - */ -@com.google.protobuf.Generated -public enum TagTemplateMigration implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value. Migration of Tag Templates from Data Catalog to Dataplex is
-   * not performed.
-   * 
- * - * TAG_TEMPLATE_MIGRATION_UNSPECIFIED = 0; - */ - TAG_TEMPLATE_MIGRATION_UNSPECIFIED(0), - /** - * - * - *
-   * Migration of Tag Templates from Data Catalog to Dataplex is enabled.
-   * 
- * - * TAG_TEMPLATE_MIGRATION_ENABLED = 1; - */ - TAG_TEMPLATE_MIGRATION_ENABLED(1), - /** - * - * - *
-   * Migration of Tag Templates from Data Catalog to Dataplex is disabled.
-   * 
- * - * TAG_TEMPLATE_MIGRATION_DISABLED = 2; - */ - TAG_TEMPLATE_MIGRATION_DISABLED(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TagTemplateMigration"); - } - - /** - * - * - *
-   * Default value. Migration of Tag Templates from Data Catalog to Dataplex is
-   * not performed.
-   * 
- * - * TAG_TEMPLATE_MIGRATION_UNSPECIFIED = 0; - */ - public static final int TAG_TEMPLATE_MIGRATION_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * Migration of Tag Templates from Data Catalog to Dataplex is enabled.
-   * 
- * - * TAG_TEMPLATE_MIGRATION_ENABLED = 1; - */ - public static final int TAG_TEMPLATE_MIGRATION_ENABLED_VALUE = 1; - - /** - * - * - *
-   * Migration of Tag Templates from Data Catalog to Dataplex is disabled.
-   * 
- * - * TAG_TEMPLATE_MIGRATION_DISABLED = 2; - */ - public static final int TAG_TEMPLATE_MIGRATION_DISABLED_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 TagTemplateMigration 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 TagTemplateMigration forNumber(int value) { - switch (value) { - case 0: - return TAG_TEMPLATE_MIGRATION_UNSPECIFIED; - case 1: - return TAG_TEMPLATE_MIGRATION_ENABLED; - case 2: - return TAG_TEMPLATE_MIGRATION_DISABLED; - 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 TagTemplateMigration findValueByNumber(int number) { - return TagTemplateMigration.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.datacatalog.v1.Datacatalog.getDescriptor().getEnumTypes().get(1); - } - - private static final TagTemplateMigration[] VALUES = values(); - - public static TagTemplateMigration 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 TagTemplateMigration(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.TagTemplateMigration) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateName.java deleted file mode 100644 index 26df4455fcd8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateName.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 TagTemplateName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_TAG_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/tagTemplates/{tag_template}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String tagTemplate; - - @Deprecated - protected TagTemplateName() { - project = null; - location = null; - tagTemplate = null; - } - - private TagTemplateName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - tagTemplate = Preconditions.checkNotNull(builder.getTagTemplate()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TagTemplateName of(String project, String location, String tagTemplate) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .build(); - } - - public static String format(String project, String location, String tagTemplate) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .build() - .toString(); - } - - public static @Nullable TagTemplateName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TAG_TEMPLATE.validatedMatch( - formattedString, "TagTemplateName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("tag_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 TagTemplateName> values) { - List list = new ArrayList<>(values.size()); - for (TagTemplateName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TAG_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 (tagTemplate != null) { - fieldMapBuilder.put("tag_template", tagTemplate); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TAG_TEMPLATE.instantiate( - "project", project, "location", location, "tag_template", tagTemplate); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TagTemplateName that = ((TagTemplateName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.tagTemplate, that.tagTemplate); - } - 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(tagTemplate); - return h; - } - - /** Builder for projects/{project}/locations/{location}/tagTemplates/{tag_template}. */ - public static class Builder { - private String project; - private String location; - private String tagTemplate; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTagTemplate(String tagTemplate) { - this.tagTemplate = tagTemplate; - return this; - } - - private Builder(TagTemplateName tagTemplateName) { - this.project = tagTemplateName.project; - this.location = tagTemplateName.location; - this.tagTemplate = tagTemplateName.tagTemplate; - } - - public TagTemplateName build() { - return new TagTemplateName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateOrBuilder.java deleted file mode 100644 index ea5f7f5d3cd6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TagTemplateOrBuilder.java +++ /dev/null @@ -1,265 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface TagTemplateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.TagTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. The resource name of the tag template in URL format.
-   *
-   * Note: The tag template itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. The resource name of the tag template in URL format.
-   *
-   * Note: The tag template itself and its child resources might not be
-   * stored in the location specified in its name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Display name for this template. Defaults to an empty string.
-   *
-   * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-   * dashes (-), spaces ( ), and can't start or end with spaces.
-   * The maximum length is 200 characters.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Display name for this template. Defaults to an empty string.
-   *
-   * The name must contain only Unicode letters, numbers (0-9), underscores (_),
-   * dashes (-), spaces ( ), and can't start or end with spaces.
-   * The maximum length is 200 characters.
-   * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Indicates whether tags created with this template are public. Public tags
-   * do not require tag template access to appear in
-   * [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags] API response.
-   *
-   * Additionally, you can search for a public tag by value with a
-   * simple search query in addition to using a ``tag:`` predicate.
-   * 
- * - * bool is_publicly_readable = 5; - * - * @return The isPubliclyReadable. - */ - boolean getIsPubliclyReadable(); - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. The map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. The IDs have the
-   * following limitations:
-   *
-   * * Can contain uppercase and lowercase letters, numbers (0-9) and
-   * underscores (_).
-   * * Must be at least 1 character and at most 64 characters long.
-   * * Must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getFieldsCount(); - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. The map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. The IDs have the
-   * following limitations:
-   *
-   * * Can contain uppercase and lowercase letters, numbers (0-9) and
-   * underscores (_).
-   * * Must be at least 1 character and at most 64 characters long.
-   * * Must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - boolean containsFields(java.lang.String key); - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getFields(); - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. The map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. The IDs have the
-   * following limitations:
-   *
-   * * Can contain uppercase and lowercase letters, numbers (0-9) and
-   * underscores (_).
-   * * Must be at least 1 character and at most 64 characters long.
-   * * Must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.Map getFieldsMap(); - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. The map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. The IDs have the
-   * following limitations:
-   *
-   * * Can contain uppercase and lowercase letters, numbers (0-9) and
-   * underscores (_).
-   * * Must be at least 1 character and at most 64 characters long.
-   * * Must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - /* nullable */ - com.google.cloud.datacatalog.v1.TagTemplateField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.TagTemplateField defaultValue); - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. The map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. The IDs have the
-   * following limitations:
-   *
-   * * Can contain uppercase and lowercase letters, numbers (0-9) and
-   * underscores (_).
-   * * Must be at least 1 character and at most 64 characters long.
-   * * Must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.TagTemplateField getFieldsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Optional. Transfer status of the TagTemplate
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for dataplexTransferStatus. - */ - int getDataplexTransferStatusValue(); - - /** - * - * - *
-   * Optional. Transfer status of the TagTemplate
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The dataplexTransferStatus. - */ - com.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatus getDataplexTransferStatus(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntry.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntry.java deleted file mode 100644 index 3df1105a0641..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntry.java +++ /dev/null @@ -1,1953 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dump_content.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Wrapper containing Entry and information about Tags
- * that should and should not be attached to it.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TaggedEntry} - */ -@com.google.protobuf.Generated -public final class TaggedEntry extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.TaggedEntry) - TaggedEntryOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TaggedEntry"); - } - - // Use TaggedEntry.newBuilder() to construct. - private TaggedEntry(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TaggedEntry() { - presentTags_ = java.util.Collections.emptyList(); - absentTags_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DumpContentProto - .internal_static_google_cloud_datacatalog_v1_TaggedEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DumpContentProto - .internal_static_google_cloud_datacatalog_v1_TaggedEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TaggedEntry.class, - com.google.cloud.datacatalog.v1.TaggedEntry.Builder.class); - } - - private int entryCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object entry_; - - public enum EntryCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - V1_ENTRY(1), - ENTRY_NOT_SET(0); - private final int value; - - private EntryCase(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 EntryCase valueOf(int value) { - return forNumber(value); - } - - public static EntryCase forNumber(int value) { - switch (value) { - case 1: - return V1_ENTRY; - case 0: - return ENTRY_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public EntryCase getEntryCase() { - return EntryCase.forNumber(entryCase_); - } - - public static final int V1_ENTRY_FIELD_NUMBER = 1; - - /** - * - * - *
-   * Non-encrypted Data Catalog v1 Entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - * - * @return Whether the v1Entry field is set. - */ - @java.lang.Override - public boolean hasV1Entry() { - return entryCase_ == 1; - } - - /** - * - * - *
-   * Non-encrypted Data Catalog v1 Entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - * - * @return The v1Entry. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Entry getV1Entry() { - if (entryCase_ == 1) { - return (com.google.cloud.datacatalog.v1.Entry) entry_; - } - return com.google.cloud.datacatalog.v1.Entry.getDefaultInstance(); - } - - /** - * - * - *
-   * Non-encrypted Data Catalog v1 Entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOrBuilder getV1EntryOrBuilder() { - if (entryCase_ == 1) { - return (com.google.cloud.datacatalog.v1.Entry) entry_; - } - return com.google.cloud.datacatalog.v1.Entry.getDefaultInstance(); - } - - public static final int PRESENT_TAGS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List presentTags_; - - /** - * - * - *
-   * Optional. Tags that should be ingested into the Data Catalog.
-   * Caller should populate template name, column and fields.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getPresentTagsList() { - return presentTags_; - } - - /** - * - * - *
-   * Optional. Tags that should be ingested into the Data Catalog.
-   * Caller should populate template name, column and fields.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getPresentTagsOrBuilderList() { - return presentTags_; - } - - /** - * - * - *
-   * Optional. Tags that should be ingested into the Data Catalog.
-   * Caller should populate template name, column and fields.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getPresentTagsCount() { - return presentTags_.size(); - } - - /** - * - * - *
-   * Optional. Tags that should be ingested into the Data Catalog.
-   * Caller should populate template name, column and fields.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Tag getPresentTags(int index) { - return presentTags_.get(index); - } - - /** - * - * - *
-   * Optional. Tags that should be ingested into the Data Catalog.
-   * Caller should populate template name, column and fields.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagOrBuilder getPresentTagsOrBuilder(int index) { - return presentTags_.get(index); - } - - public static final int ABSENT_TAGS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List absentTags_; - - /** - * - * - *
-   * Optional. Tags that should be deleted from the Data Catalog.
-   * Caller should populate template name and column only.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getAbsentTagsList() { - return absentTags_; - } - - /** - * - * - *
-   * Optional. Tags that should be deleted from the Data Catalog.
-   * Caller should populate template name and column only.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getAbsentTagsOrBuilderList() { - return absentTags_; - } - - /** - * - * - *
-   * Optional. Tags that should be deleted from the Data Catalog.
-   * Caller should populate template name and column only.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getAbsentTagsCount() { - return absentTags_.size(); - } - - /** - * - * - *
-   * Optional. Tags that should be deleted from the Data Catalog.
-   * Caller should populate template name and column only.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Tag getAbsentTags(int index) { - return absentTags_.get(index); - } - - /** - * - * - *
-   * Optional. Tags that should be deleted from the Data Catalog.
-   * Caller should populate template name and column only.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagOrBuilder getAbsentTagsOrBuilder(int index) { - return absentTags_.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 (entryCase_ == 1) { - output.writeMessage(1, (com.google.cloud.datacatalog.v1.Entry) entry_); - } - for (int i = 0; i < presentTags_.size(); i++) { - output.writeMessage(2, presentTags_.get(i)); - } - for (int i = 0; i < absentTags_.size(); i++) { - output.writeMessage(3, absentTags_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (entryCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.datacatalog.v1.Entry) entry_); - } - for (int i = 0; i < presentTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, presentTags_.get(i)); - } - for (int i = 0; i < absentTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, absentTags_.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.datacatalog.v1.TaggedEntry)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.TaggedEntry other = - (com.google.cloud.datacatalog.v1.TaggedEntry) obj; - - if (!getPresentTagsList().equals(other.getPresentTagsList())) return false; - if (!getAbsentTagsList().equals(other.getAbsentTagsList())) return false; - if (!getEntryCase().equals(other.getEntryCase())) return false; - switch (entryCase_) { - case 1: - if (!getV1Entry().equals(other.getV1Entry())) 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 (getPresentTagsCount() > 0) { - hash = (37 * hash) + PRESENT_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getPresentTagsList().hashCode(); - } - if (getAbsentTagsCount() > 0) { - hash = (37 * hash) + ABSENT_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getAbsentTagsList().hashCode(); - } - switch (entryCase_) { - case 1: - hash = (37 * hash) + V1_ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getV1Entry().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.TaggedEntry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Wrapper containing Entry and information about Tags
-   * that should and should not be attached to it.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.TaggedEntry} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.TaggedEntry) - com.google.cloud.datacatalog.v1.TaggedEntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.DumpContentProto - .internal_static_google_cloud_datacatalog_v1_TaggedEntry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.DumpContentProto - .internal_static_google_cloud_datacatalog_v1_TaggedEntry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.TaggedEntry.class, - com.google.cloud.datacatalog.v1.TaggedEntry.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.TaggedEntry.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (v1EntryBuilder_ != null) { - v1EntryBuilder_.clear(); - } - if (presentTagsBuilder_ == null) { - presentTags_ = java.util.Collections.emptyList(); - } else { - presentTags_ = null; - presentTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (absentTagsBuilder_ == null) { - absentTags_ = java.util.Collections.emptyList(); - } else { - absentTags_ = null; - absentTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - entryCase_ = 0; - entry_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.DumpContentProto - .internal_static_google_cloud_datacatalog_v1_TaggedEntry_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaggedEntry getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.TaggedEntry.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaggedEntry build() { - com.google.cloud.datacatalog.v1.TaggedEntry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaggedEntry buildPartial() { - com.google.cloud.datacatalog.v1.TaggedEntry result = - new com.google.cloud.datacatalog.v1.TaggedEntry(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1.TaggedEntry result) { - if (presentTagsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - presentTags_ = java.util.Collections.unmodifiableList(presentTags_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.presentTags_ = presentTags_; - } else { - result.presentTags_ = presentTagsBuilder_.build(); - } - if (absentTagsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - absentTags_ = java.util.Collections.unmodifiableList(absentTags_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.absentTags_ = absentTags_; - } else { - result.absentTags_ = absentTagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.TaggedEntry result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1.TaggedEntry result) { - result.entryCase_ = entryCase_; - result.entry_ = this.entry_; - if (entryCase_ == 1 && v1EntryBuilder_ != null) { - result.entry_ = v1EntryBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.TaggedEntry) { - return mergeFrom((com.google.cloud.datacatalog.v1.TaggedEntry) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.TaggedEntry other) { - if (other == com.google.cloud.datacatalog.v1.TaggedEntry.getDefaultInstance()) return this; - if (presentTagsBuilder_ == null) { - if (!other.presentTags_.isEmpty()) { - if (presentTags_.isEmpty()) { - presentTags_ = other.presentTags_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensurePresentTagsIsMutable(); - presentTags_.addAll(other.presentTags_); - } - onChanged(); - } - } else { - if (!other.presentTags_.isEmpty()) { - if (presentTagsBuilder_.isEmpty()) { - presentTagsBuilder_.dispose(); - presentTagsBuilder_ = null; - presentTags_ = other.presentTags_; - bitField0_ = (bitField0_ & ~0x00000002); - presentTagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetPresentTagsFieldBuilder() - : null; - } else { - presentTagsBuilder_.addAllMessages(other.presentTags_); - } - } - } - if (absentTagsBuilder_ == null) { - if (!other.absentTags_.isEmpty()) { - if (absentTags_.isEmpty()) { - absentTags_ = other.absentTags_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureAbsentTagsIsMutable(); - absentTags_.addAll(other.absentTags_); - } - onChanged(); - } - } else { - if (!other.absentTags_.isEmpty()) { - if (absentTagsBuilder_.isEmpty()) { - absentTagsBuilder_.dispose(); - absentTagsBuilder_ = null; - absentTags_ = other.absentTags_; - bitField0_ = (bitField0_ & ~0x00000004); - absentTagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetAbsentTagsFieldBuilder() - : null; - } else { - absentTagsBuilder_.addAllMessages(other.absentTags_); - } - } - } - switch (other.getEntryCase()) { - case V1_ENTRY: - { - mergeV1Entry(other.getV1Entry()); - break; - } - case ENTRY_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(internalGetV1EntryFieldBuilder().getBuilder(), extensionRegistry); - entryCase_ = 1; - break; - } // case 10 - case 18: - { - com.google.cloud.datacatalog.v1.Tag m = - input.readMessage( - com.google.cloud.datacatalog.v1.Tag.parser(), extensionRegistry); - if (presentTagsBuilder_ == null) { - ensurePresentTagsIsMutable(); - presentTags_.add(m); - } else { - presentTagsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.cloud.datacatalog.v1.Tag m = - input.readMessage( - com.google.cloud.datacatalog.v1.Tag.parser(), extensionRegistry); - if (absentTagsBuilder_ == null) { - ensureAbsentTagsIsMutable(); - absentTags_.add(m); - } else { - absentTagsBuilder_.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 entryCase_ = 0; - private java.lang.Object entry_; - - public EntryCase getEntryCase() { - return EntryCase.forNumber(entryCase_); - } - - public Builder clearEntry() { - entryCase_ = 0; - entry_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder> - v1EntryBuilder_; - - /** - * - * - *
-     * Non-encrypted Data Catalog v1 Entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - * - * @return Whether the v1Entry field is set. - */ - @java.lang.Override - public boolean hasV1Entry() { - return entryCase_ == 1; - } - - /** - * - * - *
-     * Non-encrypted Data Catalog v1 Entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - * - * @return The v1Entry. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Entry getV1Entry() { - if (v1EntryBuilder_ == null) { - if (entryCase_ == 1) { - return (com.google.cloud.datacatalog.v1.Entry) entry_; - } - return com.google.cloud.datacatalog.v1.Entry.getDefaultInstance(); - } else { - if (entryCase_ == 1) { - return v1EntryBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1.Entry.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Non-encrypted Data Catalog v1 Entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - */ - public Builder setV1Entry(com.google.cloud.datacatalog.v1.Entry value) { - if (v1EntryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entry_ = value; - onChanged(); - } else { - v1EntryBuilder_.setMessage(value); - } - entryCase_ = 1; - return this; - } - - /** - * - * - *
-     * Non-encrypted Data Catalog v1 Entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - */ - public Builder setV1Entry(com.google.cloud.datacatalog.v1.Entry.Builder builderForValue) { - if (v1EntryBuilder_ == null) { - entry_ = builderForValue.build(); - onChanged(); - } else { - v1EntryBuilder_.setMessage(builderForValue.build()); - } - entryCase_ = 1; - return this; - } - - /** - * - * - *
-     * Non-encrypted Data Catalog v1 Entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - */ - public Builder mergeV1Entry(com.google.cloud.datacatalog.v1.Entry value) { - if (v1EntryBuilder_ == null) { - if (entryCase_ == 1 - && entry_ != com.google.cloud.datacatalog.v1.Entry.getDefaultInstance()) { - entry_ = - com.google.cloud.datacatalog.v1.Entry.newBuilder( - (com.google.cloud.datacatalog.v1.Entry) entry_) - .mergeFrom(value) - .buildPartial(); - } else { - entry_ = value; - } - onChanged(); - } else { - if (entryCase_ == 1) { - v1EntryBuilder_.mergeFrom(value); - } else { - v1EntryBuilder_.setMessage(value); - } - } - entryCase_ = 1; - return this; - } - - /** - * - * - *
-     * Non-encrypted Data Catalog v1 Entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - */ - public Builder clearV1Entry() { - if (v1EntryBuilder_ == null) { - if (entryCase_ == 1) { - entryCase_ = 0; - entry_ = null; - onChanged(); - } - } else { - if (entryCase_ == 1) { - entryCase_ = 0; - entry_ = null; - } - v1EntryBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Non-encrypted Data Catalog v1 Entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - */ - public com.google.cloud.datacatalog.v1.Entry.Builder getV1EntryBuilder() { - return internalGetV1EntryFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Non-encrypted Data Catalog v1 Entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOrBuilder getV1EntryOrBuilder() { - if ((entryCase_ == 1) && (v1EntryBuilder_ != null)) { - return v1EntryBuilder_.getMessageOrBuilder(); - } else { - if (entryCase_ == 1) { - return (com.google.cloud.datacatalog.v1.Entry) entry_; - } - return com.google.cloud.datacatalog.v1.Entry.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Non-encrypted Data Catalog v1 Entry.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder> - internalGetV1EntryFieldBuilder() { - if (v1EntryBuilder_ == null) { - if (!(entryCase_ == 1)) { - entry_ = com.google.cloud.datacatalog.v1.Entry.getDefaultInstance(); - } - v1EntryBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder>( - (com.google.cloud.datacatalog.v1.Entry) entry_, getParentForChildren(), isClean()); - entry_ = null; - } - entryCase_ = 1; - onChanged(); - return v1EntryBuilder_; - } - - private java.util.List presentTags_ = - java.util.Collections.emptyList(); - - private void ensurePresentTagsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - presentTags_ = new java.util.ArrayList(presentTags_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - presentTagsBuilder_; - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getPresentTagsList() { - if (presentTagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(presentTags_); - } else { - return presentTagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getPresentTagsCount() { - if (presentTagsBuilder_ == null) { - return presentTags_.size(); - } else { - return presentTagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.Tag getPresentTags(int index) { - if (presentTagsBuilder_ == null) { - return presentTags_.get(index); - } else { - return presentTagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPresentTags(int index, com.google.cloud.datacatalog.v1.Tag value) { - if (presentTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePresentTagsIsMutable(); - presentTags_.set(index, value); - onChanged(); - } else { - presentTagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPresentTags( - int index, com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (presentTagsBuilder_ == null) { - ensurePresentTagsIsMutable(); - presentTags_.set(index, builderForValue.build()); - onChanged(); - } else { - presentTagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addPresentTags(com.google.cloud.datacatalog.v1.Tag value) { - if (presentTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePresentTagsIsMutable(); - presentTags_.add(value); - onChanged(); - } else { - presentTagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addPresentTags(int index, com.google.cloud.datacatalog.v1.Tag value) { - if (presentTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePresentTagsIsMutable(); - presentTags_.add(index, value); - onChanged(); - } else { - presentTagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addPresentTags(com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (presentTagsBuilder_ == null) { - ensurePresentTagsIsMutable(); - presentTags_.add(builderForValue.build()); - onChanged(); - } else { - presentTagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addPresentTags( - int index, com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (presentTagsBuilder_ == null) { - ensurePresentTagsIsMutable(); - presentTags_.add(index, builderForValue.build()); - onChanged(); - } else { - presentTagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllPresentTags( - java.lang.Iterable values) { - if (presentTagsBuilder_ == null) { - ensurePresentTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, presentTags_); - onChanged(); - } else { - presentTagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPresentTags() { - if (presentTagsBuilder_ == null) { - presentTags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - presentTagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removePresentTags(int index) { - if (presentTagsBuilder_ == null) { - ensurePresentTagsIsMutable(); - presentTags_.remove(index); - onChanged(); - } else { - presentTagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.Tag.Builder getPresentTagsBuilder(int index) { - return internalGetPresentTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.TagOrBuilder getPresentTagsOrBuilder(int index) { - if (presentTagsBuilder_ == null) { - return presentTags_.get(index); - } else { - return presentTagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getPresentTagsOrBuilderList() { - if (presentTagsBuilder_ != null) { - return presentTagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(presentTags_); - } - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.Tag.Builder addPresentTagsBuilder() { - return internalGetPresentTagsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()); - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.Tag.Builder addPresentTagsBuilder(int index) { - return internalGetPresentTagsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()); - } - - /** - * - * - *
-     * Optional. Tags that should be ingested into the Data Catalog.
-     * Caller should populate template name, column and fields.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getPresentTagsBuilderList() { - return internalGetPresentTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - internalGetPresentTagsFieldBuilder() { - if (presentTagsBuilder_ == null) { - presentTagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder>( - presentTags_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - presentTags_ = null; - } - return presentTagsBuilder_; - } - - private java.util.List absentTags_ = - java.util.Collections.emptyList(); - - private void ensureAbsentTagsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - absentTags_ = new java.util.ArrayList(absentTags_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - absentTagsBuilder_; - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getAbsentTagsList() { - if (absentTagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(absentTags_); - } else { - return absentTagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getAbsentTagsCount() { - if (absentTagsBuilder_ == null) { - return absentTags_.size(); - } else { - return absentTagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.Tag getAbsentTags(int index) { - if (absentTagsBuilder_ == null) { - return absentTags_.get(index); - } else { - return absentTagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAbsentTags(int index, com.google.cloud.datacatalog.v1.Tag value) { - if (absentTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAbsentTagsIsMutable(); - absentTags_.set(index, value); - onChanged(); - } else { - absentTagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAbsentTags( - int index, com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (absentTagsBuilder_ == null) { - ensureAbsentTagsIsMutable(); - absentTags_.set(index, builderForValue.build()); - onChanged(); - } else { - absentTagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAbsentTags(com.google.cloud.datacatalog.v1.Tag value) { - if (absentTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAbsentTagsIsMutable(); - absentTags_.add(value); - onChanged(); - } else { - absentTagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAbsentTags(int index, com.google.cloud.datacatalog.v1.Tag value) { - if (absentTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAbsentTagsIsMutable(); - absentTags_.add(index, value); - onChanged(); - } else { - absentTagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAbsentTags(com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (absentTagsBuilder_ == null) { - ensureAbsentTagsIsMutable(); - absentTags_.add(builderForValue.build()); - onChanged(); - } else { - absentTagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAbsentTags( - int index, com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (absentTagsBuilder_ == null) { - ensureAbsentTagsIsMutable(); - absentTags_.add(index, builderForValue.build()); - onChanged(); - } else { - absentTagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllAbsentTags( - java.lang.Iterable values) { - if (absentTagsBuilder_ == null) { - ensureAbsentTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, absentTags_); - onChanged(); - } else { - absentTagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAbsentTags() { - if (absentTagsBuilder_ == null) { - absentTags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - absentTagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeAbsentTags(int index) { - if (absentTagsBuilder_ == null) { - ensureAbsentTagsIsMutable(); - absentTags_.remove(index); - onChanged(); - } else { - absentTagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.Tag.Builder getAbsentTagsBuilder(int index) { - return internalGetAbsentTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.TagOrBuilder getAbsentTagsOrBuilder(int index) { - if (absentTagsBuilder_ == null) { - return absentTags_.get(index); - } else { - return absentTagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getAbsentTagsOrBuilderList() { - if (absentTagsBuilder_ != null) { - return absentTagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(absentTags_); - } - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.Tag.Builder addAbsentTagsBuilder() { - return internalGetAbsentTagsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()); - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1.Tag.Builder addAbsentTagsBuilder(int index) { - return internalGetAbsentTagsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()); - } - - /** - * - * - *
-     * Optional. Tags that should be deleted from the Data Catalog.
-     * Caller should populate template name and column only.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getAbsentTagsBuilderList() { - return internalGetAbsentTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - internalGetAbsentTagsFieldBuilder() { - if (absentTagsBuilder_ == null) { - absentTagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder>( - absentTags_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - absentTags_ = null; - } - return absentTagsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.TaggedEntry) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.TaggedEntry) - private static final com.google.cloud.datacatalog.v1.TaggedEntry DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.TaggedEntry(); - } - - public static com.google.cloud.datacatalog.v1.TaggedEntry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaggedEntry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaggedEntry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntryOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntryOrBuilder.java deleted file mode 100644 index ae2ff31eca13..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaggedEntryOrBuilder.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/dump_content.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface TaggedEntryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.TaggedEntry) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Non-encrypted Data Catalog v1 Entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - * - * @return Whether the v1Entry field is set. - */ - boolean hasV1Entry(); - - /** - * - * - *
-   * Non-encrypted Data Catalog v1 Entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - * - * @return The v1Entry. - */ - com.google.cloud.datacatalog.v1.Entry getV1Entry(); - - /** - * - * - *
-   * Non-encrypted Data Catalog v1 Entry.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry v1_entry = 1; - */ - com.google.cloud.datacatalog.v1.EntryOrBuilder getV1EntryOrBuilder(); - - /** - * - * - *
-   * Optional. Tags that should be ingested into the Data Catalog.
-   * Caller should populate template name, column and fields.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getPresentTagsList(); - - /** - * - * - *
-   * Optional. Tags that should be ingested into the Data Catalog.
-   * Caller should populate template name, column and fields.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.datacatalog.v1.Tag getPresentTags(int index); - - /** - * - * - *
-   * Optional. Tags that should be ingested into the Data Catalog.
-   * Caller should populate template name, column and fields.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPresentTagsCount(); - - /** - * - * - *
-   * Optional. Tags that should be ingested into the Data Catalog.
-   * Caller should populate template name, column and fields.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getPresentTagsOrBuilderList(); - - /** - * - * - *
-   * Optional. Tags that should be ingested into the Data Catalog.
-   * Caller should populate template name, column and fields.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag present_tags = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.datacatalog.v1.TagOrBuilder getPresentTagsOrBuilder(int index); - - /** - * - * - *
-   * Optional. Tags that should be deleted from the Data Catalog.
-   * Caller should populate template name and column only.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getAbsentTagsList(); - - /** - * - * - *
-   * Optional. Tags that should be deleted from the Data Catalog.
-   * Caller should populate template name and column only.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.datacatalog.v1.Tag getAbsentTags(int index); - - /** - * - * - *
-   * Optional. Tags that should be deleted from the Data Catalog.
-   * Caller should populate template name and column only.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getAbsentTagsCount(); - - /** - * - * - *
-   * Optional. Tags that should be deleted from the Data Catalog.
-   * Caller should populate template name and column only.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getAbsentTagsOrBuilderList(); - - /** - * - * - *
-   * Optional. Tags that should be deleted from the Data Catalog.
-   * Caller should populate template name and column only.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Tag absent_tags = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.datacatalog.v1.TagOrBuilder getAbsentTagsOrBuilder(int index); - - com.google.cloud.datacatalog.v1.TaggedEntry.EntryCase getEntryCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java deleted file mode 100644 index 6e216b7581de..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Tags.java +++ /dev/null @@ -1,293 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class Tags extends com.google.protobuf.GeneratedFile { - private Tags() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Tags"); - } - - 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_datacatalog_v1_Tag_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_Tag_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_TagField_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_TagField_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_TagTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_TagTemplate_FieldsEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_TagTemplate_FieldsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_TagTemplateField_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_TagTemplateField_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_FieldType_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_FieldType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_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/datacatalog/v1/tags.proto" - + "\022\033google.cloud.datacatalog.v1\032\037google/ap" - + "i/field_behavior.proto\032\031google/api/resou" - + "rce.proto\032\037google/protobuf/timestamp.proto\"\363\003\n" - + "\003Tag\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\025\n" - + "\010template\030\002 \001(\tB\003\340A\002\022\"\n" - + "\025template_display_name\030\005 \001(\tB\003\340A\003\022\020\n" - + "\006column\030\004 \001(\tH\000\022A\n" - + "\006fields\030\003 \003" - + "(\0132,.google.cloud.datacatalog.v1.Tag.FieldsEntryB\003\340A\002\022f\n" - + "\030dataplex_transfer_status\030\007" - + " \001(\0162?.google.cloud.datacatalog.v1.TagTemplate.DataplexTransferStatusB\003\340A\003\032T\n" - + "\013FieldsEntry\022\013\n" - + "\003key\030\001 \001(\t\0224\n" - + "\005value\030\002 \001(\013" - + "2%.google.cloud.datacatalog.v1.TagField:\0028\001:\201\001\352A~\n" - + "\036datacatalog.googleapis.com/Tag\022\\projects/{project}/locations/{locatio" - + "n}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}B\007\n" - + "\005scope\"\302\002\n" - + "\010TagField\022\031\n" - + "\014display_name\030\001 \001(\tB\003\340A\003\022\026\n" - + "\014double_value\030\002 \001(\001H\000\022\026\n" - + "\014string_value\030\003 \001(\tH\000\022\024\n\n" - + "bool_value\030\004 \001(\010H\000\0225\n" - + "\017timestamp_value\030\005 \001(\0132\032.google.protobuf.TimestampH\000\022E\n\n" - + "enum_value\030\006" - + " \001(\0132/.google.cloud.datacatalog.v1.TagField.EnumValueH\000\022\030\n" - + "\016richtext_value\030\010 \001(\tH\000\022\022\n" - + "\005order\030\007 \001(\005B\003\340A\003\032!\n" - + "\tEnumValue\022\024\n" - + "\014display_name\030\001 \001(\tB\006\n" - + "\004kind\"\276\004\n" - + "\013TagTemplate\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" - + "\014display_name\030\002 \001(\t\022\034\n" - + "\024is_publicly_readable\030\005 \001(\010\022I\n" - + "\006fields\030\003" - + " \003(\01324.google.cloud.datacatalog.v1.TagTemplate.FieldsEntryB\003\340A\002\022f\n" - + "\030dataplex_transfer_status\030\007 \001(\0162?.google.cloud" - + ".datacatalog.v1.TagTemplate.DataplexTransferStatusB\003\340A\001\032\\\n" - + "\013FieldsEntry\022\013\n" - + "\003key\030\001 \001(\t\022<\n" - + "\005value\030\002" - + " \001(\0132-.google.cloud.datacatalog.v1.TagTemplateField:\0028\001\"e\n" - + "\026DataplexTransferStatus\022(\n" - + "$DATAPLEX_TRANSFER_STATUS_UNSPECIFIED\020\000\022\020\n" - + "\010MIGRATED\020\001\032\002\010\001\022\017\n" - + "\013TRANSFERRED\020\002:p\352Am\n" - + "&datacatalog.googleapis.com/TagTemplate\022Cprojects/{project}/lo" - + "cations/{location}/tagTemplates/{tag_template}\"\267\002\n" - + "\020TagTemplateField\022\021\n" - + "\004name\030\006 \001(\tB\003\340A\010\022\024\n" - + "\014display_name\030\001 \001(\t\0229\n" - + "\004type\030\002 \001" - + "(\0132&.google.cloud.datacatalog.v1.FieldTypeB\003\340A\002\022\023\n" - + "\013is_required\030\003 \001(\010\022\023\n" - + "\013description\030\004 \001(\t\022\r\n" - + "\005order\030\005 \001(\005:\205\001\352A\201\001\n" - + "+datacatalog.googleapis.com/TagTemplateField\022Rpr" - + "ojects/{project}/locations/{location}/ta" - + "gTemplates/{tag_template}/fields/{field}\"\246\003\n" - + "\tFieldType\022N\n" - + "\016primitive_type\030\001 \001(\01624" - + ".google.cloud.datacatalog.v1.FieldType.PrimitiveTypeH\000\022D\n" - + "\tenum_type\030\002 \001(\0132/.goog" - + "le.cloud.datacatalog.v1.FieldType.EnumTypeH\000\032\205\001\n" - + "\010EnumType\022Q\n" - + "\016allowed_values\030\001 \003(" - + "\01329.google.cloud.datacatalog.v1.FieldType.EnumType.EnumValue\032&\n" - + "\tEnumValue\022\031\n" - + "\014display_name\030\001 \001(\tB\003\340A\002\"n\n\r" - + "PrimitiveType\022\036\n" - + "\032PRIMITIVE_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006DOUBLE\020\001\022\n\n" - + "\006STRING\020\002\022\010\n" - + "\004BOOL\020\003\022\r\n" - + "\tTIMESTAMP\020\004\022\014\n" - + "\010RICHTEXT\020\005B\013\n" - + "\ttype_declB\303\001\n" - + "\037com.google.cloud.datacatalog.v1P\001ZAcloud.google.co" - + "m/go/datacatalog/apiv1/datacatalogpb;dat" - + "acatalogpb\252\002\033Google.Cloud.DataCatalog.V1" - + "\312\002\033Google\\Cloud\\DataCatalog\\V1\352\002\036Google:" - + ":Cloud::DataCatalog::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.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_Tag_descriptor = getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_Tag_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Tag_descriptor, - new java.lang.String[] { - "Name", - "Template", - "TemplateDisplayName", - "Column", - "Fields", - "DataplexTransferStatus", - "Scope", - }); - internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_descriptor = - internal_static_google_cloud_datacatalog_v1_Tag_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_Tag_FieldsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datacatalog_v1_TagField_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_TagField_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_TagField_descriptor, - new java.lang.String[] { - "DisplayName", - "DoubleValue", - "StringValue", - "BoolValue", - "TimestampValue", - "EnumValue", - "RichtextValue", - "Order", - "Kind", - }); - internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_descriptor = - internal_static_google_cloud_datacatalog_v1_TagField_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_TagField_EnumValue_descriptor, - new java.lang.String[] { - "DisplayName", - }); - internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1_TagTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "IsPubliclyReadable", "Fields", "DataplexTransferStatus", - }); - internal_static_google_cloud_datacatalog_v1_TagTemplate_FieldsEntry_descriptor = - internal_static_google_cloud_datacatalog_v1_TagTemplate_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_TagTemplate_FieldsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_TagTemplate_FieldsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datacatalog_v1_TagTemplateField_descriptor = - getDescriptor().getMessageType(3); - internal_static_google_cloud_datacatalog_v1_TagTemplateField_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_TagTemplateField_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Type", "IsRequired", "Description", "Order", - }); - internal_static_google_cloud_datacatalog_v1_FieldType_descriptor = - getDescriptor().getMessageType(4); - internal_static_google_cloud_datacatalog_v1_FieldType_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_FieldType_descriptor, - new java.lang.String[] { - "PrimitiveType", "EnumType", "TypeDecl", - }); - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_descriptor = - internal_static_google_cloud_datacatalog_v1_FieldType_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_descriptor, - new java.lang.String[] { - "AllowedValues", - }); - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_descriptor = - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_FieldType_EnumType_EnumValue_descriptor, - new java.lang.String[] { - "DisplayName", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Taxonomy.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Taxonomy.java deleted file mode 100644 index 1c1309144de2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Taxonomy.java +++ /dev/null @@ -1,3249 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * A taxonomy is a collection of hierarchical policy tags that classify data
- * along a common axis.
- *
- * For example, a "data sensitivity" taxonomy might contain the following policy
- * tags:
- *
- * ```
- * + PII
- * + Account number
- * + Age
- * + SSN
- * + Zipcode
- * + Financials
- * + Revenue
- * ```
- *
- * A "data origin" taxonomy might contain the following policy tags:
- *
- * ```
- * + User data
- * + Employee data
- * + Partner data
- * + Public data
- * ```
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Taxonomy} - */ -@com.google.protobuf.Generated -public final class Taxonomy extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Taxonomy) - TaxonomyOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Taxonomy"); - } - - // Use Taxonomy.newBuilder() to construct. - private Taxonomy(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Taxonomy() { - name_ = ""; - displayName_ = ""; - description_ = ""; - activatedPolicyTypes_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_Taxonomy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_Taxonomy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Taxonomy.class, - com.google.cloud.datacatalog.v1.Taxonomy.Builder.class); - } - - /** - * - * - *
-   * Defines policy types where the policy tags can be used for.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.Taxonomy.PolicyType} - */ - public enum PolicyType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified policy type.
-     * 
- * - * POLICY_TYPE_UNSPECIFIED = 0; - */ - POLICY_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Fine-grained access control policy that enables access control on
-     * tagged sub-resources.
-     * 
- * - * FINE_GRAINED_ACCESS_CONTROL = 1; - */ - FINE_GRAINED_ACCESS_CONTROL(1), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PolicyType"); - } - - /** - * - * - *
-     * Unspecified policy type.
-     * 
- * - * POLICY_TYPE_UNSPECIFIED = 0; - */ - public static final int POLICY_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * Fine-grained access control policy that enables access control on
-     * tagged sub-resources.
-     * 
- * - * FINE_GRAINED_ACCESS_CONTROL = 1; - */ - public static final int FINE_GRAINED_ACCESS_CONTROL_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 FINE_GRAINED_ACCESS_CONTROL; - 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.datacatalog.v1.Taxonomy.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.datacatalog.v1.Taxonomy.PolicyType) - } - - public interface ServiceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Taxonomy.Service) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The Google Cloud service name.
-     * 
- * - * .google.cloud.datacatalog.v1.ManagingSystem name = 1; - * - * @return The enum numeric value on the wire for name. - */ - int getNameValue(); - - /** - * - * - *
-     * The Google Cloud service name.
-     * 
- * - * .google.cloud.datacatalog.v1.ManagingSystem name = 1; - * - * @return The name. - */ - com.google.cloud.datacatalog.v1.ManagingSystem getName(); - - /** - * - * - *
-     * The service agent for the service.
-     * 
- * - * string identity = 2; - * - * @return The identity. - */ - java.lang.String getIdentity(); - - /** - * - * - *
-     * The service agent for the service.
-     * 
- * - * string identity = 2; - * - * @return The bytes for identity. - */ - com.google.protobuf.ByteString getIdentityBytes(); - } - - /** - * - * - *
-   * The source system of the Taxonomy.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Taxonomy.Service} - */ - public static final class Service extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.Taxonomy.Service) - ServiceOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Service"); - } - - // Use Service.newBuilder() to construct. - private Service(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Service() { - name_ = 0; - identity_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Taxonomy.Service.class, - com.google.cloud.datacatalog.v1.Taxonomy.Service.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private int name_ = 0; - - /** - * - * - *
-     * The Google Cloud service name.
-     * 
- * - * .google.cloud.datacatalog.v1.ManagingSystem name = 1; - * - * @return The enum numeric value on the wire for name. - */ - @java.lang.Override - public int getNameValue() { - return name_; - } - - /** - * - * - *
-     * The Google Cloud service name.
-     * 
- * - * .google.cloud.datacatalog.v1.ManagingSystem name = 1; - * - * @return The name. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ManagingSystem getName() { - com.google.cloud.datacatalog.v1.ManagingSystem result = - com.google.cloud.datacatalog.v1.ManagingSystem.forNumber(name_); - return result == null ? com.google.cloud.datacatalog.v1.ManagingSystem.UNRECOGNIZED : result; - } - - public static final int IDENTITY_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object identity_ = ""; - - /** - * - * - *
-     * The service agent for the service.
-     * 
- * - * string identity = 2; - * - * @return The identity. - */ - @java.lang.Override - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - - /** - * - * - *
-     * The service agent for the service.
-     * 
- * - * string identity = 2; - * - * @return The bytes for identity. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - identity_ = 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 (name_ - != com.google.cloud.datacatalog.v1.ManagingSystem.MANAGING_SYSTEM_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identity_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, identity_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (name_ - != com.google.cloud.datacatalog.v1.ManagingSystem.MANAGING_SYSTEM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identity_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, identity_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.Taxonomy.Service)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.Taxonomy.Service other = - (com.google.cloud.datacatalog.v1.Taxonomy.Service) obj; - - if (name_ != other.name_) return false; - if (!getIdentity().equals(other.getIdentity())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + name_; - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.Taxonomy.Service prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 source system of the Taxonomy.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Taxonomy.Service} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.Taxonomy.Service) - com.google.cloud.datacatalog.v1.Taxonomy.ServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Taxonomy.Service.class, - com.google.cloud.datacatalog.v1.Taxonomy.Service.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.Taxonomy.Service.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = 0; - identity_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_Taxonomy_Service_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy.Service getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.Taxonomy.Service.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy.Service build() { - com.google.cloud.datacatalog.v1.Taxonomy.Service result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy.Service buildPartial() { - com.google.cloud.datacatalog.v1.Taxonomy.Service result = - new com.google.cloud.datacatalog.v1.Taxonomy.Service(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.Taxonomy.Service result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.identity_ = identity_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.Taxonomy.Service) { - return mergeFrom((com.google.cloud.datacatalog.v1.Taxonomy.Service) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.Taxonomy.Service other) { - if (other == com.google.cloud.datacatalog.v1.Taxonomy.Service.getDefaultInstance()) - return this; - if (other.name_ != 0) { - setNameValue(other.getNameValue()); - } - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - 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 8: - { - name_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - identity_ = 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 int name_ = 0; - - /** - * - * - *
-       * The Google Cloud service name.
-       * 
- * - * .google.cloud.datacatalog.v1.ManagingSystem name = 1; - * - * @return The enum numeric value on the wire for name. - */ - @java.lang.Override - public int getNameValue() { - return name_; - } - - /** - * - * - *
-       * The Google Cloud service name.
-       * 
- * - * .google.cloud.datacatalog.v1.ManagingSystem name = 1; - * - * @param value The enum numeric value on the wire for name to set. - * @return This builder for chaining. - */ - public Builder setNameValue(int value) { - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * The Google Cloud service name.
-       * 
- * - * .google.cloud.datacatalog.v1.ManagingSystem name = 1; - * - * @return The name. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.ManagingSystem getName() { - com.google.cloud.datacatalog.v1.ManagingSystem result = - com.google.cloud.datacatalog.v1.ManagingSystem.forNumber(name_); - return result == null - ? com.google.cloud.datacatalog.v1.ManagingSystem.UNRECOGNIZED - : result; - } - - /** - * - * - *
-       * The Google Cloud service name.
-       * 
- * - * .google.cloud.datacatalog.v1.ManagingSystem name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(com.google.cloud.datacatalog.v1.ManagingSystem value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-       * The Google Cloud service name.
-       * 
- * - * .google.cloud.datacatalog.v1.ManagingSystem name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = 0; - onChanged(); - return this; - } - - private java.lang.Object identity_ = ""; - - /** - * - * - *
-       * The service agent for the service.
-       * 
- * - * string identity = 2; - * - * @return The identity. - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * The service agent for the service.
-       * 
- * - * string identity = 2; - * - * @return The bytes for identity. - */ - public com.google.protobuf.ByteString getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * The service agent for the service.
-       * 
- * - * string identity = 2; - * - * @param value The identity to set. - * @return This builder for chaining. - */ - public Builder setIdentity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - identity_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * The service agent for the service.
-       * 
- * - * string identity = 2; - * - * @return This builder for chaining. - */ - public Builder clearIdentity() { - identity_ = getDefaultInstance().getIdentity(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-       * The service agent for the service.
-       * 
- * - * string identity = 2; - * - * @param value The bytes for identity to set. - * @return This builder for chaining. - */ - public Builder setIdentityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - identity_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.Taxonomy.Service) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.Taxonomy.Service) - private static final com.google.cloud.datacatalog.v1.Taxonomy.Service DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.Taxonomy.Service(); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy.Service getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Service parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy.Service getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. Resource name of this taxonomy in URL format.
-   *
-   * Note: Policy tag manager generates unique taxonomy IDs.
-   * 
- * - * 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. Resource name of this taxonomy in URL format.
-   *
-   * Note: Policy tag manager generates unique taxonomy IDs.
-   * 
- * - * 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_ = ""; - - /** - * - * - *
-   * Required. User-defined name of this taxonomy.
-   *
-   * The name can't start or end with spaces, must contain only Unicode letters,
-   * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
-   * when encoded in UTF-8.
-   *
-   * The taxonomy display name must be unique within an organization.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-   * Required. User-defined name of this taxonomy.
-   *
-   * The name can't start or end with spaces, must contain only Unicode letters,
-   * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
-   * when encoded in UTF-8.
-   *
-   * The taxonomy display name must be unique within an organization.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 of this taxonomy. If not set, defaults to empty.
-   *
-   * The description must contain only Unicode characters, tabs, newlines,
-   * carriage returns, and page breaks, and be at most 2000 bytes long when
-   * encoded in UTF-8.
-   * 
- * - * 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 this taxonomy. If not set, defaults to empty.
-   *
-   * The description must contain only Unicode characters, tabs, newlines,
-   * carriage returns, and page breaks, and be at most 2000 bytes long when
-   * encoded in UTF-8.
-   * 
- * - * 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_TAG_COUNT_FIELD_NUMBER = 4; - private int policyTagCount_ = 0; - - /** - * - * - *
-   * Output only. Number of policy tags in this taxonomy.
-   * 
- * - * int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The policyTagCount. - */ - @java.lang.Override - public int getPolicyTagCount() { - return policyTagCount_; - } - - public static final int TAXONOMY_TIMESTAMPS_FIELD_NUMBER = 5; - private com.google.cloud.datacatalog.v1.SystemTimestamps taxonomyTimestamps_; - - /** - * - * - *
-   * Output only. Creation and modification timestamps of this taxonomy.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the taxonomyTimestamps field is set. - */ - @java.lang.Override - public boolean hasTaxonomyTimestamps() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Output only. Creation and modification timestamps of this taxonomy.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The taxonomyTimestamps. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestamps getTaxonomyTimestamps() { - return taxonomyTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : taxonomyTimestamps_; - } - - /** - * - * - *
-   * Output only. Creation and modification timestamps of this taxonomy.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder - getTaxonomyTimestampsOrBuilder() { - return taxonomyTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : taxonomyTimestamps_; - } - - public static final int ACTIVATED_POLICY_TYPES_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList activatedPolicyTypes_ = emptyIntList(); - - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType> - activatedPolicyTypes_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType>() { - public com.google.cloud.datacatalog.v1.Taxonomy.PolicyType convert(int from) { - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType result = - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType.forNumber(from); - return result == null - ? com.google.cloud.datacatalog.v1.Taxonomy.PolicyType.UNRECOGNIZED - : result; - } - }; - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the activatedPolicyTypes. - */ - @java.lang.Override - public java.util.List - getActivatedPolicyTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType>( - activatedPolicyTypes_, activatedPolicyTypes_converter_); - } - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of activatedPolicyTypes. - */ - @java.lang.Override - public int getActivatedPolicyTypesCount() { - return activatedPolicyTypes_.size(); - } - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy.PolicyType getActivatedPolicyTypes(int index) { - return activatedPolicyTypes_converter_.convert(activatedPolicyTypes_.getInt(index)); - } - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - @java.lang.Override - public java.util.List getActivatedPolicyTypesValueList() { - return activatedPolicyTypes_; - } - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - @java.lang.Override - public int getActivatedPolicyTypesValue(int index) { - return activatedPolicyTypes_.getInt(index); - } - - private int activatedPolicyTypesMemoizedSerializedSize; - - public static final int SERVICE_FIELD_NUMBER = 7; - private com.google.cloud.datacatalog.v1.Taxonomy.Service service_; - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the service field is set. - */ - @java.lang.Override - public boolean hasService() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The service. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy.Service getService() { - return service_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.Service.getDefaultInstance() - : service_; - } - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy.ServiceOrBuilder getServiceOrBuilder() { - return service_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.Service.getDefaultInstance() - : service_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - 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 (policyTagCount_ != 0) { - output.writeInt32(4, policyTagCount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getTaxonomyTimestamps()); - } - if (getActivatedPolicyTypesList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(activatedPolicyTypesMemoizedSerializedSize); - } - for (int i = 0; i < activatedPolicyTypes_.size(); i++) { - output.writeEnumNoTag(activatedPolicyTypes_.getInt(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(7, getService()); - } - 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 (policyTagCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, policyTagCount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTaxonomyTimestamps()); - } - { - int dataSize = 0; - for (int i = 0; i < activatedPolicyTypes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - activatedPolicyTypes_.getInt(i)); - } - size += dataSize; - if (!getActivatedPolicyTypesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - activatedPolicyTypesMemoizedSerializedSize = dataSize; - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getService()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.Taxonomy)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.Taxonomy other = (com.google.cloud.datacatalog.v1.Taxonomy) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getPolicyTagCount() != other.getPolicyTagCount()) return false; - if (hasTaxonomyTimestamps() != other.hasTaxonomyTimestamps()) return false; - if (hasTaxonomyTimestamps()) { - if (!getTaxonomyTimestamps().equals(other.getTaxonomyTimestamps())) return false; - } - if (!activatedPolicyTypes_.equals(other.activatedPolicyTypes_)) return false; - if (hasService() != other.hasService()) return false; - if (hasService()) { - if (!getService().equals(other.getService())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_TAG_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTagCount(); - if (hasTaxonomyTimestamps()) { - hash = (37 * hash) + TAXONOMY_TIMESTAMPS_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomyTimestamps().hashCode(); - } - if (getActivatedPolicyTypesCount() > 0) { - hash = (37 * hash) + ACTIVATED_POLICY_TYPES_FIELD_NUMBER; - hash = (53 * hash) + activatedPolicyTypes_.hashCode(); - } - if (hasService()) { - hash = (37 * hash) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getService().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.Taxonomy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 taxonomy is a collection of hierarchical policy tags that classify data
-   * along a common axis.
-   *
-   * For example, a "data sensitivity" taxonomy might contain the following policy
-   * tags:
-   *
-   * ```
-   * + PII
-   * + Account number
-   * + Age
-   * + SSN
-   * + Zipcode
-   * + Financials
-   * + Revenue
-   * ```
-   *
-   * A "data origin" taxonomy might contain the following policy tags:
-   *
-   * ```
-   * + User data
-   * + Employee data
-   * + Partner data
-   * + Public data
-   * ```
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.Taxonomy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.Taxonomy) - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_Taxonomy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_Taxonomy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.Taxonomy.class, - com.google.cloud.datacatalog.v1.Taxonomy.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.Taxonomy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTaxonomyTimestampsFieldBuilder(); - internalGetServiceFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - description_ = ""; - policyTagCount_ = 0; - taxonomyTimestamps_ = null; - if (taxonomyTimestampsBuilder_ != null) { - taxonomyTimestampsBuilder_.dispose(); - taxonomyTimestampsBuilder_ = null; - } - activatedPolicyTypes_ = emptyIntList(); - service_ = null; - if (serviceBuilder_ != null) { - serviceBuilder_.dispose(); - serviceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_Taxonomy_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy build() { - com.google.cloud.datacatalog.v1.Taxonomy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy buildPartial() { - com.google.cloud.datacatalog.v1.Taxonomy result = - new com.google.cloud.datacatalog.v1.Taxonomy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.Taxonomy 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.policyTagCount_ = policyTagCount_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.taxonomyTimestamps_ = - taxonomyTimestampsBuilder_ == null - ? taxonomyTimestamps_ - : taxonomyTimestampsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - activatedPolicyTypes_.makeImmutable(); - result.activatedPolicyTypes_ = activatedPolicyTypes_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.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.datacatalog.v1.Taxonomy) { - return mergeFrom((com.google.cloud.datacatalog.v1.Taxonomy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.Taxonomy other) { - if (other == com.google.cloud.datacatalog.v1.Taxonomy.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.getPolicyTagCount() != 0) { - setPolicyTagCount(other.getPolicyTagCount()); - } - if (other.hasTaxonomyTimestamps()) { - mergeTaxonomyTimestamps(other.getTaxonomyTimestamps()); - } - if (!other.activatedPolicyTypes_.isEmpty()) { - if (activatedPolicyTypes_.isEmpty()) { - activatedPolicyTypes_ = other.activatedPolicyTypes_; - activatedPolicyTypes_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addAll(other.activatedPolicyTypes_); - } - onChanged(); - } - if (other.hasService()) { - mergeService(other.getService()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - policyTagCount_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage( - internalGetTaxonomyTimestampsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - int tmpRaw = input.readEnum(); - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(tmpRaw); - break; - } // case 48 - case 50: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureActivatedPolicyTypesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - activatedPolicyTypes_.addInt(input.readEnum()); - } - input.popLimit(limit); - break; - } // case 50 - case 58: - { - input.readMessage(internalGetServiceFieldBuilder().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 name_ = ""; - - /** - * - * - *
-     * Identifier. Resource name of this taxonomy in URL format.
-     *
-     * Note: Policy tag manager generates unique taxonomy IDs.
-     * 
- * - * 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. Resource name of this taxonomy in URL format.
-     *
-     * Note: Policy tag manager generates unique taxonomy IDs.
-     * 
- * - * 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. Resource name of this taxonomy in URL format.
-     *
-     * Note: Policy tag manager generates unique taxonomy IDs.
-     * 
- * - * 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. Resource name of this taxonomy in URL format.
-     *
-     * Note: Policy tag manager generates unique taxonomy IDs.
-     * 
- * - * 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. Resource name of this taxonomy in URL format.
-     *
-     * Note: Policy tag manager generates unique taxonomy IDs.
-     * 
- * - * 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_ = ""; - - /** - * - * - *
-     * Required. User-defined name of this taxonomy.
-     *
-     * The name can't start or end with spaces, must contain only Unicode letters,
-     * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
-     * when encoded in UTF-8.
-     *
-     * The taxonomy display name must be unique within an organization.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. User-defined name of this taxonomy.
-     *
-     * The name can't start or end with spaces, must contain only Unicode letters,
-     * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
-     * when encoded in UTF-8.
-     *
-     * The taxonomy display name must be unique within an organization.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. User-defined name of this taxonomy.
-     *
-     * The name can't start or end with spaces, must contain only Unicode letters,
-     * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
-     * when encoded in UTF-8.
-     *
-     * The taxonomy display name must be unique within an organization.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-     * Required. User-defined name of this taxonomy.
-     *
-     * The name can't start or end with spaces, must contain only Unicode letters,
-     * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
-     * when encoded in UTF-8.
-     *
-     * The taxonomy display name must be unique within an organization.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. User-defined name of this taxonomy.
-     *
-     * The name can't start or end with spaces, must contain only Unicode letters,
-     * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
-     * when encoded in UTF-8.
-     *
-     * The taxonomy display name must be unique within an organization.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 of this taxonomy. If not set, defaults to empty.
-     *
-     * The description must contain only Unicode characters, tabs, newlines,
-     * carriage returns, and page breaks, and be at most 2000 bytes long when
-     * encoded in UTF-8.
-     * 
- * - * 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 this taxonomy. If not set, defaults to empty.
-     *
-     * The description must contain only Unicode characters, tabs, newlines,
-     * carriage returns, and page breaks, and be at most 2000 bytes long when
-     * encoded in UTF-8.
-     * 
- * - * 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 this taxonomy. If not set, defaults to empty.
-     *
-     * The description must contain only Unicode characters, tabs, newlines,
-     * carriage returns, and page breaks, and be at most 2000 bytes long when
-     * encoded in UTF-8.
-     * 
- * - * 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 this taxonomy. If not set, defaults to empty.
-     *
-     * The description must contain only Unicode characters, tabs, newlines,
-     * carriage returns, and page breaks, and be at most 2000 bytes long when
-     * encoded in UTF-8.
-     * 
- * - * 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 this taxonomy. If not set, defaults to empty.
-     *
-     * The description must contain only Unicode characters, tabs, newlines,
-     * carriage returns, and page breaks, and be at most 2000 bytes long when
-     * encoded in UTF-8.
-     * 
- * - * 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 int policyTagCount_; - - /** - * - * - *
-     * Output only. Number of policy tags in this taxonomy.
-     * 
- * - * int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The policyTagCount. - */ - @java.lang.Override - public int getPolicyTagCount() { - return policyTagCount_; - } - - /** - * - * - *
-     * Output only. Number of policy tags in this taxonomy.
-     * 
- * - * int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The policyTagCount to set. - * @return This builder for chaining. - */ - public Builder setPolicyTagCount(int value) { - - policyTagCount_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Number of policy tags in this taxonomy.
-     * 
- * - * int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearPolicyTagCount() { - bitField0_ = (bitField0_ & ~0x00000008); - policyTagCount_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.SystemTimestamps taxonomyTimestamps_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - taxonomyTimestampsBuilder_; - - /** - * - * - *
-     * Output only. Creation and modification timestamps of this taxonomy.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the taxonomyTimestamps field is set. - */ - public boolean hasTaxonomyTimestamps() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
-     * Output only. Creation and modification timestamps of this taxonomy.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The taxonomyTimestamps. - */ - public com.google.cloud.datacatalog.v1.SystemTimestamps getTaxonomyTimestamps() { - if (taxonomyTimestampsBuilder_ == null) { - return taxonomyTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : taxonomyTimestamps_; - } else { - return taxonomyTimestampsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Creation and modification timestamps of this taxonomy.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTaxonomyTimestamps(com.google.cloud.datacatalog.v1.SystemTimestamps value) { - if (taxonomyTimestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taxonomyTimestamps_ = value; - } else { - taxonomyTimestampsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Creation and modification timestamps of this taxonomy.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTaxonomyTimestamps( - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder builderForValue) { - if (taxonomyTimestampsBuilder_ == null) { - taxonomyTimestamps_ = builderForValue.build(); - } else { - taxonomyTimestampsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Creation and modification timestamps of this taxonomy.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeTaxonomyTimestamps(com.google.cloud.datacatalog.v1.SystemTimestamps value) { - if (taxonomyTimestampsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && taxonomyTimestamps_ != null - && taxonomyTimestamps_ - != com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance()) { - getTaxonomyTimestampsBuilder().mergeFrom(value); - } else { - taxonomyTimestamps_ = value; - } - } else { - taxonomyTimestampsBuilder_.mergeFrom(value); - } - if (taxonomyTimestamps_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Creation and modification timestamps of this taxonomy.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearTaxonomyTimestamps() { - bitField0_ = (bitField0_ & ~0x00000010); - taxonomyTimestamps_ = null; - if (taxonomyTimestampsBuilder_ != null) { - taxonomyTimestampsBuilder_.dispose(); - taxonomyTimestampsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Creation and modification timestamps of this taxonomy.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.SystemTimestamps.Builder getTaxonomyTimestampsBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetTaxonomyTimestampsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Creation and modification timestamps of this taxonomy.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder - getTaxonomyTimestampsOrBuilder() { - if (taxonomyTimestampsBuilder_ != null) { - return taxonomyTimestampsBuilder_.getMessageOrBuilder(); - } else { - return taxonomyTimestamps_ == null - ? com.google.cloud.datacatalog.v1.SystemTimestamps.getDefaultInstance() - : taxonomyTimestamps_; - } - } - - /** - * - * - *
-     * Output only. Creation and modification timestamps of this taxonomy.
-     * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder> - internalGetTaxonomyTimestampsFieldBuilder() { - if (taxonomyTimestampsBuilder_ == null) { - taxonomyTimestampsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.SystemTimestamps, - com.google.cloud.datacatalog.v1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder>( - getTaxonomyTimestamps(), getParentForChildren(), isClean()); - taxonomyTimestamps_ = null; - } - return taxonomyTimestampsBuilder_; - } - - private com.google.protobuf.Internal.IntList activatedPolicyTypes_ = emptyIntList(); - - private void ensureActivatedPolicyTypesIsMutable() { - if (!activatedPolicyTypes_.isModifiable()) { - activatedPolicyTypes_ = makeMutableCopy(activatedPolicyTypes_); - } - bitField0_ |= 0x00000020; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the activatedPolicyTypes. - */ - public java.util.List - getActivatedPolicyTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType>( - activatedPolicyTypes_, activatedPolicyTypes_converter_); - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of activatedPolicyTypes. - */ - public int getActivatedPolicyTypesCount() { - return activatedPolicyTypes_.size(); - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - public com.google.cloud.datacatalog.v1.Taxonomy.PolicyType getActivatedPolicyTypes(int index) { - return activatedPolicyTypes_converter_.convert(activatedPolicyTypes_.getInt(index)); - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The activatedPolicyTypes to set. - * @return This builder for chaining. - */ - public Builder setActivatedPolicyTypes( - int index, com.google.cloud.datacatalog.v1.Taxonomy.PolicyType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addActivatedPolicyTypes( - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addAllActivatedPolicyTypes( - java.lang.Iterable values) { - ensureActivatedPolicyTypesIsMutable(); - for (com.google.cloud.datacatalog.v1.Taxonomy.PolicyType value : values) { - activatedPolicyTypes_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearActivatedPolicyTypes() { - activatedPolicyTypes_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - public java.util.List getActivatedPolicyTypesValueList() { - activatedPolicyTypes_.makeImmutable(); - return activatedPolicyTypes_; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - public int getActivatedPolicyTypesValue(int index) { - return activatedPolicyTypes_.getInt(index); - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for activatedPolicyTypes to set. - * @return This builder for chaining. - */ - public Builder setActivatedPolicyTypesValue(int index, int value) { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.setInt(index, value); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addActivatedPolicyTypesValue(int value) { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(value); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The enum numeric values on the wire for activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addAllActivatedPolicyTypesValue(java.lang.Iterable values) { - ensureActivatedPolicyTypesIsMutable(); - for (int value : values) { - activatedPolicyTypes_.addInt(value); - } - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.Taxonomy.Service service_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy.Service, - com.google.cloud.datacatalog.v1.Taxonomy.Service.Builder, - com.google.cloud.datacatalog.v1.Taxonomy.ServiceOrBuilder> - serviceBuilder_; - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the service field is set. - */ - public boolean hasService() { - return ((bitField0_ & 0x00000040) != 0); - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The service. - */ - public com.google.cloud.datacatalog.v1.Taxonomy.Service getService() { - if (serviceBuilder_ == null) { - return service_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.Service.getDefaultInstance() - : service_; - } else { - return serviceBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setService(com.google.cloud.datacatalog.v1.Taxonomy.Service value) { - if (serviceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - service_ = value; - } else { - serviceBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setService( - com.google.cloud.datacatalog.v1.Taxonomy.Service.Builder builderForValue) { - if (serviceBuilder_ == null) { - service_ = builderForValue.build(); - } else { - serviceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeService(com.google.cloud.datacatalog.v1.Taxonomy.Service value) { - if (serviceBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && service_ != null - && service_ != com.google.cloud.datacatalog.v1.Taxonomy.Service.getDefaultInstance()) { - getServiceBuilder().mergeFrom(value); - } else { - service_ = value; - } - } else { - serviceBuilder_.mergeFrom(value); - } - if (service_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearService() { - bitField0_ = (bitField0_ & ~0x00000040); - service_ = null; - if (serviceBuilder_ != null) { - serviceBuilder_.dispose(); - serviceBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.Taxonomy.Service.Builder getServiceBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return internalGetServiceFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.Taxonomy.ServiceOrBuilder getServiceOrBuilder() { - if (serviceBuilder_ != null) { - return serviceBuilder_.getMessageOrBuilder(); - } else { - return service_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.Service.getDefaultInstance() - : service_; - } - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy.Service, - com.google.cloud.datacatalog.v1.Taxonomy.Service.Builder, - com.google.cloud.datacatalog.v1.Taxonomy.ServiceOrBuilder> - internalGetServiceFieldBuilder() { - if (serviceBuilder_ == null) { - serviceBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy.Service, - com.google.cloud.datacatalog.v1.Taxonomy.Service.Builder, - com.google.cloud.datacatalog.v1.Taxonomy.ServiceOrBuilder>( - getService(), getParentForChildren(), isClean()); - service_ = null; - } - return serviceBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.Taxonomy) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.Taxonomy) - private static final com.google.cloud.datacatalog.v1.Taxonomy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.Taxonomy(); - } - - public static com.google.cloud.datacatalog.v1.Taxonomy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Taxonomy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyName.java deleted file mode 100644 index 4e7191b02063..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyName.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.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 TaxonomyName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_TAXONOMY = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/taxonomies/{taxonomy}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String taxonomy; - - @Deprecated - protected TaxonomyName() { - project = null; - location = null; - taxonomy = null; - } - - private TaxonomyName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - taxonomy = Preconditions.checkNotNull(builder.getTaxonomy()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTaxonomy() { - return taxonomy; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TaxonomyName of(String project, String location, String taxonomy) { - return newBuilder().setProject(project).setLocation(location).setTaxonomy(taxonomy).build(); - } - - public static String format(String project, String location, String taxonomy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTaxonomy(taxonomy) - .build() - .toString(); - } - - public static @Nullable TaxonomyName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TAXONOMY.validatedMatch( - formattedString, "TaxonomyName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("taxonomy")); - } - - 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 TaxonomyName> values) { - List list = new ArrayList<>(values.size()); - for (TaxonomyName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TAXONOMY.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 (taxonomy != null) { - fieldMapBuilder.put("taxonomy", taxonomy); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TAXONOMY.instantiate( - "project", project, "location", location, "taxonomy", taxonomy); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TaxonomyName that = ((TaxonomyName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.taxonomy, that.taxonomy); - } - 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(taxonomy); - return h; - } - - /** Builder for projects/{project}/locations/{location}/taxonomies/{taxonomy}. */ - public static class Builder { - private String project; - private String location; - private String taxonomy; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTaxonomy() { - return taxonomy; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTaxonomy(String taxonomy) { - this.taxonomy = taxonomy; - return this; - } - - private Builder(TaxonomyName taxonomyName) { - this.project = taxonomyName.project; - this.location = taxonomyName.location; - this.taxonomy = taxonomyName.taxonomy; - } - - public TaxonomyName build() { - return new TaxonomyName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyOrBuilder.java deleted file mode 100644 index 9f01e95f48ba..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/TaxonomyOrBuilder.java +++ /dev/null @@ -1,317 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface TaxonomyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.Taxonomy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. Resource name of this taxonomy in URL format.
-   *
-   * Note: Policy tag manager generates unique taxonomy IDs.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. Resource name of this taxonomy in URL format.
-   *
-   * Note: Policy tag manager generates unique taxonomy IDs.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. User-defined name of this taxonomy.
-   *
-   * The name can't start or end with spaces, must contain only Unicode letters,
-   * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
-   * when encoded in UTF-8.
-   *
-   * The taxonomy display name must be unique within an organization.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Required. User-defined name of this taxonomy.
-   *
-   * The name can't start or end with spaces, must contain only Unicode letters,
-   * numbers, underscores, dashes, and spaces, and be at most 200 bytes long
-   * when encoded in UTF-8.
-   *
-   * The taxonomy display name must be unique within an organization.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Optional. Description of this taxonomy. If not set, defaults to empty.
-   *
-   * The description must contain only Unicode characters, tabs, newlines,
-   * carriage returns, and page breaks, and be at most 2000 bytes long when
-   * encoded in UTF-8.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Optional. Description of this taxonomy. If not set, defaults to empty.
-   *
-   * The description must contain only Unicode characters, tabs, newlines,
-   * carriage returns, and page breaks, and be at most 2000 bytes long when
-   * encoded in UTF-8.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Output only. Number of policy tags in this taxonomy.
-   * 
- * - * int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The policyTagCount. - */ - int getPolicyTagCount(); - - /** - * - * - *
-   * Output only. Creation and modification timestamps of this taxonomy.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the taxonomyTimestamps field is set. - */ - boolean hasTaxonomyTimestamps(); - - /** - * - * - *
-   * Output only. Creation and modification timestamps of this taxonomy.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The taxonomyTimestamps. - */ - com.google.cloud.datacatalog.v1.SystemTimestamps getTaxonomyTimestamps(); - - /** - * - * - *
-   * Output only. Creation and modification timestamps of this taxonomy.
-   * 
- * - * - * .google.cloud.datacatalog.v1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.SystemTimestampsOrBuilder getTaxonomyTimestampsOrBuilder(); - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the activatedPolicyTypes. - */ - java.util.List getActivatedPolicyTypesList(); - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of activatedPolicyTypes. - */ - int getActivatedPolicyTypesCount(); - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - com.google.cloud.datacatalog.v1.Taxonomy.PolicyType getActivatedPolicyTypes(int index); - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - java.util.List getActivatedPolicyTypesValueList(); - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - int getActivatedPolicyTypesValue(int index); - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the service field is set. - */ - boolean hasService(); - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The service. - */ - com.google.cloud.datacatalog.v1.Taxonomy.Service getService(); - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.Taxonomy.ServiceOrBuilder getServiceOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java deleted file mode 100644 index 1dc3e7abb0bc..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Timestamps.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/timestamps.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class Timestamps extends com.google.protobuf.GeneratedFile { - private Timestamps() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Timestamps"); - } - - 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_datacatalog_v1_SystemTimestamps_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_SystemTimestamps_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/datacatalog/v1/timestamps" - + ".proto\022\033google.cloud.datacatalog.v1\032\037goo" - + "gle/api/field_behavior.proto\032\037google/pro" - + "tobuf/timestamp.proto\"\252\001\n\020SystemTimestam" - + "ps\022/\n\013create_time\030\001 \001(\0132\032.google.protobu" - + "f.Timestamp\022/\n\013update_time\030\002 \001(\0132\032.googl" - + "e.protobuf.Timestamp\0224\n\013expire_time\030\003 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003B\303\001\n\037c" - + "om.google.cloud.datacatalog.v1P\001ZAcloud." - + "google.com/go/datacatalog/apiv1/datacata" - + "logpb;datacatalogpb\252\002\033Google.Cloud.DataC" - + "atalog.V1\312\002\033Google\\Cloud\\DataCatalog\\V1\352" - + "\002\036Google::Cloud::DataCatalog::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_SystemTimestamps_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_SystemTimestamps_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_SystemTimestamps_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", "ExpireTime", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequest.java deleted file mode 100644 index ae78462427d0..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequest.java +++ /dev/null @@ -1,612 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [UnstarEntry][google.cloud.datacatalog.v1.DataCatalog.UnstarEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UnstarEntryRequest} - */ -@com.google.protobuf.Generated -public final class UnstarEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UnstarEntryRequest) - UnstarEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UnstarEntryRequest"); - } - - // Use UnstarEntryRequest.newBuilder() to construct. - private UnstarEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UnstarEntryRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UnstarEntryRequest.class, - com.google.cloud.datacatalog.v1.UnstarEntryRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the entry to mark as **not** starred.
-   * 
- * - * - * 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 entry to mark as **not** starred.
-   * 
- * - * - * 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.datacatalog.v1.UnstarEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UnstarEntryRequest other = - (com.google.cloud.datacatalog.v1.UnstarEntryRequest) 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.datacatalog.v1.UnstarEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.UnstarEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UnstarEntry][google.cloud.datacatalog.v1.DataCatalog.UnstarEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UnstarEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UnstarEntryRequest) - com.google.cloud.datacatalog.v1.UnstarEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UnstarEntryRequest.class, - com.google.cloud.datacatalog.v1.UnstarEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UnstarEntryRequest.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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UnstarEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UnstarEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UnstarEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UnstarEntryRequest build() { - com.google.cloud.datacatalog.v1.UnstarEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UnstarEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1.UnstarEntryRequest result = - new com.google.cloud.datacatalog.v1.UnstarEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.UnstarEntryRequest 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.datacatalog.v1.UnstarEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.UnstarEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UnstarEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1.UnstarEntryRequest.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 entry to mark as **not** starred.
-     * 
- * - * - * 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 entry to mark as **not** starred.
-     * 
- * - * - * 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 entry to mark as **not** starred.
-     * 
- * - * - * 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 entry to mark as **not** starred.
-     * 
- * - * - * 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 entry to mark as **not** starred.
-     * 
- * - * - * 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.datacatalog.v1.UnstarEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UnstarEntryRequest) - private static final com.google.cloud.datacatalog.v1.UnstarEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UnstarEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnstarEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UnstarEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequestOrBuilder.java deleted file mode 100644 index dc8c87e36679..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UnstarEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UnstarEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry to mark as **not** starred.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the entry to mark as **not** starred.
-   * 
- * - * - * 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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponse.java deleted file mode 100644 index 5435f857fea6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponse.java +++ /dev/null @@ -1,400 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Response message for
- * [UnstarEntry][google.cloud.datacatalog.v1.DataCatalog.UnstarEntry].
- * Empty for now
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UnstarEntryResponse} - */ -@com.google.protobuf.Generated -public final class UnstarEntryResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UnstarEntryResponse) - UnstarEntryResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UnstarEntryResponse"); - } - - // Use UnstarEntryResponse.newBuilder() to construct. - private UnstarEntryResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UnstarEntryResponse() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UnstarEntryResponse.class, - com.google.cloud.datacatalog.v1.UnstarEntryResponse.Builder.class); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.UnstarEntryResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UnstarEntryResponse other = - (com.google.cloud.datacatalog.v1.UnstarEntryResponse) obj; - - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.UnstarEntryResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UnstarEntry][google.cloud.datacatalog.v1.DataCatalog.UnstarEntry].
-   * Empty for now
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UnstarEntryResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UnstarEntryResponse) - com.google.cloud.datacatalog.v1.UnstarEntryResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UnstarEntryResponse.class, - com.google.cloud.datacatalog.v1.UnstarEntryResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UnstarEntryResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UnstarEntryResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UnstarEntryResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UnstarEntryResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UnstarEntryResponse build() { - com.google.cloud.datacatalog.v1.UnstarEntryResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UnstarEntryResponse buildPartial() { - com.google.cloud.datacatalog.v1.UnstarEntryResponse result = - new com.google.cloud.datacatalog.v1.UnstarEntryResponse(this); - onBuilt(); - return result; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.UnstarEntryResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1.UnstarEntryResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UnstarEntryResponse other) { - if (other == com.google.cloud.datacatalog.v1.UnstarEntryResponse.getDefaultInstance()) - return this; - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.UnstarEntryResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UnstarEntryResponse) - private static final com.google.cloud.datacatalog.v1.UnstarEntryResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UnstarEntryResponse(); - } - - public static com.google.cloud.datacatalog.v1.UnstarEntryResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UnstarEntryResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UnstarEntryResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponseOrBuilder.java deleted file mode 100644 index f88e381ba9cc..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UnstarEntryResponseOrBuilder.java +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UnstarEntryResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UnstarEntryResponse) - com.google.protobuf.MessageOrBuilder {} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequest.java deleted file mode 100644 index ef1f23826630..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequest.java +++ /dev/null @@ -1,1051 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [UpdateEntryGroup][google.cloud.datacatalog.v1.DataCatalog.UpdateEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateEntryGroupRequest} - */ -@com.google.protobuf.Generated -public final class UpdateEntryGroupRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateEntryGroupRequest) - UpdateEntryGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateEntryGroupRequest"); - } - - // Use UpdateEntryGroupRequest.newBuilder() to construct. - private UpdateEntryGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateEntryGroupRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest.class, - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest.Builder.class); - } - - private int bitField0_; - public static final int ENTRY_GROUP_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1.EntryGroup entryGroup_; - - /** - * - * - *
-   * Required. Updates for the entry group. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entryGroup field is set. - */ - @java.lang.Override - public boolean hasEntryGroup() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. Updates for the entry group. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entryGroup. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryGroup getEntryGroup() { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - - /** - * - * - *
-   * Required. Updates for the entry group. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryGroupOrBuilder getEntryGroupOrBuilder() { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getEntryGroup()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getEntryGroup()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest other = - (com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest) obj; - - if (hasEntryGroup() != other.hasEntryGroup()) return false; - if (hasEntryGroup()) { - if (!getEntryGroup().equals(other.getEntryGroup())) 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 (hasEntryGroup()) { - hash = (37 * hash) + ENTRY_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getEntryGroup().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.datacatalog.v1.UpdateEntryGroupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateEntryGroup][google.cloud.datacatalog.v1.DataCatalog.UpdateEntryGroup].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateEntryGroupRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UpdateEntryGroupRequest) - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest.class, - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetEntryGroupFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - entryGroup_ = null; - if (entryGroupBuilder_ != null) { - entryGroupBuilder_.dispose(); - entryGroupBuilder_ = 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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateEntryGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest build() { - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest buildPartial() { - com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest result = - new com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entryGroup_ = entryGroupBuilder_ == null ? entryGroup_ : entryGroupBuilder_.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.datacatalog.v1.UpdateEntryGroupRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest other) { - if (other == com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest.getDefaultInstance()) - return this; - if (other.hasEntryGroup()) { - mergeEntryGroup(other.getEntryGroup()); - } - 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( - internalGetEntryGroupFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1.EntryGroup entryGroup_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryGroup, - com.google.cloud.datacatalog.v1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> - entryGroupBuilder_; - - /** - * - * - *
-     * Required. Updates for the entry group. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entryGroup field is set. - */ - public boolean hasEntryGroup() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Required. Updates for the entry group. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entryGroup. - */ - public com.google.cloud.datacatalog.v1.EntryGroup getEntryGroup() { - if (entryGroupBuilder_ == null) { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance() - : entryGroup_; - } else { - return entryGroupBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. Updates for the entry group. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntryGroup(com.google.cloud.datacatalog.v1.EntryGroup value) { - if (entryGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entryGroup_ = value; - } else { - entryGroupBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Updates for the entry group. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntryGroup( - com.google.cloud.datacatalog.v1.EntryGroup.Builder builderForValue) { - if (entryGroupBuilder_ == null) { - entryGroup_ = builderForValue.build(); - } else { - entryGroupBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Updates for the entry group. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeEntryGroup(com.google.cloud.datacatalog.v1.EntryGroup value) { - if (entryGroupBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && entryGroup_ != null - && entryGroup_ != com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance()) { - getEntryGroupBuilder().mergeFrom(value); - } else { - entryGroup_ = value; - } - } else { - entryGroupBuilder_.mergeFrom(value); - } - if (entryGroup_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. Updates for the entry group. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearEntryGroup() { - bitField0_ = (bitField0_ & ~0x00000001); - entryGroup_ = null; - if (entryGroupBuilder_ != null) { - entryGroupBuilder_.dispose(); - entryGroupBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Updates for the entry group. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.EntryGroup.Builder getEntryGroupBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetEntryGroupFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. Updates for the entry group. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.EntryGroupOrBuilder getEntryGroupOrBuilder() { - if (entryGroupBuilder_ != null) { - return entryGroupBuilder_.getMessageOrBuilder(); - } else { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - } - - /** - * - * - *
-     * Required. Updates for the entry group. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryGroup, - com.google.cloud.datacatalog.v1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder> - internalGetEntryGroupFieldBuilder() { - if (entryGroupBuilder_ == null) { - entryGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.EntryGroup, - com.google.cloud.datacatalog.v1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder>( - getEntryGroup(), getParentForChildren(), isClean()); - entryGroup_ = null; - } - return entryGroupBuilder_; - } - - 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_; - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1.UpdateEntryGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UpdateEntryGroupRequest) - private static final com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest(); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEntryGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequestOrBuilder.java deleted file mode 100644 index 25540a6772c3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UpdateEntryGroupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UpdateEntryGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Updates for the entry group. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entryGroup field is set. - */ - boolean hasEntryGroup(); - - /** - * - * - *
-   * Required. Updates for the entry group. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entryGroup. - */ - com.google.cloud.datacatalog.v1.EntryGroup getEntryGroup(); - - /** - * - * - *
-   * Required. Updates for the entry group. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.EntryGroupOrBuilder getEntryGroupOrBuilder(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequest.java deleted file mode 100644 index d52e1e578878..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequest.java +++ /dev/null @@ -1,1316 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [UpdateEntry][google.cloud.datacatalog.v1.DataCatalog.UpdateEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateEntryRequest} - */ -@com.google.protobuf.Generated -public final class UpdateEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateEntryRequest) - UpdateEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateEntryRequest"); - } - - // Use UpdateEntryRequest.newBuilder() to construct. - private UpdateEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateEntryRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateEntryRequest.class, - com.google.cloud.datacatalog.v1.UpdateEntryRequest.Builder.class); - } - - private int bitField0_; - public static final int ENTRY_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1.Entry entry_; - - /** - * - * - *
-   * Required. Updates for the entry. The `name` field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - @java.lang.Override - public boolean hasEntry() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. Updates for the entry. The `name` field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Entry getEntry() { - return entry_ == null ? com.google.cloud.datacatalog.v1.Entry.getDefaultInstance() : entry_; - } - - /** - * - * - *
-   * Required. Updates for the entry. The `name` field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.EntryOrBuilder getEntryOrBuilder() { - return entry_ == null ? com.google.cloud.datacatalog.v1.Entry.getDefaultInstance() : entry_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * You can modify only the fields listed below.
-   *
-   * For entries with type `DATA_STREAM`:
-   *
-   * * `schema`
-   *
-   * For entries with type `FILESET`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   *
-   * For entries with `user_specified_type`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * You can modify only the fields listed below.
-   *
-   * For entries with type `DATA_STREAM`:
-   *
-   * * `schema`
-   *
-   * For entries with type `FILESET`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   *
-   * For entries with `user_specified_type`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * You can modify only the fields listed below.
-   *
-   * For entries with type `DATA_STREAM`:
-   *
-   * * `schema`
-   *
-   * For entries with type `FILESET`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   *
-   * For entries with `user_specified_type`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getEntry()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getEntry()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.UpdateEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UpdateEntryRequest other = - (com.google.cloud.datacatalog.v1.UpdateEntryRequest) obj; - - if (hasEntry() != other.hasEntry()) return false; - if (hasEntry()) { - if (!getEntry().equals(other.getEntry())) 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 (hasEntry()) { - hash = (37 * hash) + ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getEntry().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.datacatalog.v1.UpdateEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.UpdateEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateEntry][google.cloud.datacatalog.v1.DataCatalog.UpdateEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UpdateEntryRequest) - com.google.cloud.datacatalog.v1.UpdateEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateEntryRequest.class, - com.google.cloud.datacatalog.v1.UpdateEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UpdateEntryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetEntryFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - entry_ = null; - if (entryBuilder_ != null) { - entryBuilder_.dispose(); - entryBuilder_ = 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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UpdateEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateEntryRequest build() { - com.google.cloud.datacatalog.v1.UpdateEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1.UpdateEntryRequest result = - new com.google.cloud.datacatalog.v1.UpdateEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.UpdateEntryRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entry_ = entryBuilder_ == null ? entry_ : entryBuilder_.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.datacatalog.v1.UpdateEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.UpdateEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UpdateEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1.UpdateEntryRequest.getDefaultInstance()) - return this; - if (other.hasEntry()) { - mergeEntry(other.getEntry()); - } - 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(internalGetEntryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1.Entry entry_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder> - entryBuilder_; - - /** - * - * - *
-     * Required. Updates for the entry. The `name` field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - public boolean hasEntry() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Required. Updates for the entry. The `name` field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - public com.google.cloud.datacatalog.v1.Entry getEntry() { - if (entryBuilder_ == null) { - return entry_ == null ? com.google.cloud.datacatalog.v1.Entry.getDefaultInstance() : entry_; - } else { - return entryBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. Updates for the entry. The `name` field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntry(com.google.cloud.datacatalog.v1.Entry value) { - if (entryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entry_ = value; - } else { - entryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Updates for the entry. The `name` field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntry(com.google.cloud.datacatalog.v1.Entry.Builder builderForValue) { - if (entryBuilder_ == null) { - entry_ = builderForValue.build(); - } else { - entryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Updates for the entry. The `name` field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeEntry(com.google.cloud.datacatalog.v1.Entry value) { - if (entryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && entry_ != null - && entry_ != com.google.cloud.datacatalog.v1.Entry.getDefaultInstance()) { - getEntryBuilder().mergeFrom(value); - } else { - entry_ = value; - } - } else { - entryBuilder_.mergeFrom(value); - } - if (entry_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. Updates for the entry. The `name` field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearEntry() { - bitField0_ = (bitField0_ & ~0x00000001); - entry_ = null; - if (entryBuilder_ != null) { - entryBuilder_.dispose(); - entryBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Updates for the entry. The `name` field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.Entry.Builder getEntryBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetEntryFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. Updates for the entry. The `name` field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.EntryOrBuilder getEntryOrBuilder() { - if (entryBuilder_ != null) { - return entryBuilder_.getMessageOrBuilder(); - } else { - return entry_ == null ? com.google.cloud.datacatalog.v1.Entry.getDefaultInstance() : entry_; - } - } - - /** - * - * - *
-     * Required. Updates for the entry. The `name` field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder> - internalGetEntryFieldBuilder() { - if (entryBuilder_ == null) { - entryBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Entry, - com.google.cloud.datacatalog.v1.Entry.Builder, - com.google.cloud.datacatalog.v1.EntryOrBuilder>( - getEntry(), getParentForChildren(), isClean()); - entry_ = null; - } - return entryBuilder_; - } - - 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_; - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * You can modify only the fields listed below.
-     *
-     * For entries with type `DATA_STREAM`:
-     *
-     * * `schema`
-     *
-     * For entries with type `FILESET`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     *
-     * For entries with `user_specified_type`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * You can modify only the fields listed below.
-     *
-     * For entries with type `DATA_STREAM`:
-     *
-     * * `schema`
-     *
-     * For entries with type `FILESET`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     *
-     * For entries with `user_specified_type`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * You can modify only the fields listed below.
-     *
-     * For entries with type `DATA_STREAM`:
-     *
-     * * `schema`
-     *
-     * For entries with type `FILESET`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     *
-     * For entries with `user_specified_type`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * You can modify only the fields listed below.
-     *
-     * For entries with type `DATA_STREAM`:
-     *
-     * * `schema`
-     *
-     * For entries with type `FILESET`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     *
-     * For entries with `user_specified_type`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * You can modify only the fields listed below.
-     *
-     * For entries with type `DATA_STREAM`:
-     *
-     * * `schema`
-     *
-     * For entries with type `FILESET`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     *
-     * For entries with `user_specified_type`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * You can modify only the fields listed below.
-     *
-     * For entries with type `DATA_STREAM`:
-     *
-     * * `schema`
-     *
-     * For entries with type `FILESET`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     *
-     * For entries with `user_specified_type`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * You can modify only the fields listed below.
-     *
-     * For entries with type `DATA_STREAM`:
-     *
-     * * `schema`
-     *
-     * For entries with type `FILESET`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     *
-     * For entries with `user_specified_type`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * You can modify only the fields listed below.
-     *
-     * For entries with type `DATA_STREAM`:
-     *
-     * * `schema`
-     *
-     * For entries with type `FILESET`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     *
-     * For entries with `user_specified_type`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * You can modify only the fields listed below.
-     *
-     * For entries with type `DATA_STREAM`:
-     *
-     * * `schema`
-     *
-     * For entries with type `FILESET`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     *
-     * For entries with `user_specified_type`:
-     *
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1.UpdateEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UpdateEntryRequest) - private static final com.google.cloud.datacatalog.v1.UpdateEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UpdateEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1.UpdateEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequestOrBuilder.java deleted file mode 100644 index aceedb4083c9..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateEntryRequestOrBuilder.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UpdateEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UpdateEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Updates for the entry. The `name` field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - boolean hasEntry(); - - /** - * - * - *
-   * Required. Updates for the entry. The `name` field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - com.google.cloud.datacatalog.v1.Entry getEntry(); - - /** - * - * - *
-   * Required. Updates for the entry. The `name` field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.EntryOrBuilder getEntryOrBuilder(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * You can modify only the fields listed below.
-   *
-   * For entries with type `DATA_STREAM`:
-   *
-   * * `schema`
-   *
-   * For entries with type `FILESET`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   *
-   * For entries with `user_specified_type`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * You can modify only the fields listed below.
-   *
-   * For entries with type `DATA_STREAM`:
-   *
-   * * `schema`
-   *
-   * For entries with type `FILESET`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   *
-   * For entries with `user_specified_type`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * You can modify only the fields listed below.
-   *
-   * For entries with type `DATA_STREAM`:
-   *
-   * * `schema`
-   *
-   * For entries with type `FILESET`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   *
-   * For entries with `user_specified_type`:
-   *
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequest.java deleted file mode 100644 index fa97c50b4f06..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequest.java +++ /dev/null @@ -1,1050 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [UpdatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.UpdatePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdatePolicyTagRequest} - */ -@com.google.protobuf.Generated -public final class UpdatePolicyTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdatePolicyTagRequest) - UpdatePolicyTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdatePolicyTagRequest"); - } - - // Use UpdatePolicyTagRequest.newBuilder() to construct. - private UpdatePolicyTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdatePolicyTagRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest.class, - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest.Builder.class); - } - - private int bitField0_; - public static final int POLICY_TAG_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1.PolicyTag policyTag_; - - /** - * - * - *
-   * The policy tag to update. You can update only its description, display
-   * name, and parent policy tag fields.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - * - * @return Whether the policyTag field is set. - */ - @java.lang.Override - public boolean hasPolicyTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The policy tag to update. You can update only its description, display
-   * name, and parent policy tag fields.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - * - * @return The policyTag. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PolicyTag getPolicyTag() { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance() - : policyTag_; - } - - /** - * - * - *
-   * The policy tag to update. You can update only its description, display
-   * name, and parent policy tag fields.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.PolicyTagOrBuilder getPolicyTagOrBuilder() { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance() - : policyTag_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Specifies the fields to update.
-   *
-   * You can update only display name, description, and parent policy tag.
-   * If not set, defaults to all updatable fields.
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Specifies the fields to update.
-   *
-   * You can update only display name, description, and parent policy tag.
-   * If not set, defaults to all updatable fields.
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * Specifies the fields to update.
-   *
-   * You can update only display name, description, and parent policy tag.
-   * If not set, defaults to all updatable fields.
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getPolicyTag()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getPolicyTag()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest other = - (com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest) obj; - - if (hasPolicyTag() != other.hasPolicyTag()) return false; - if (hasPolicyTag()) { - if (!getPolicyTag().equals(other.getPolicyTag())) 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 (hasPolicyTag()) { - hash = (37 * hash) + POLICY_TAG_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTag().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.datacatalog.v1.UpdatePolicyTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.UpdatePolicyTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdatePolicyTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UpdatePolicyTagRequest) - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest.class, - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetPolicyTagFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - policyTag_ = null; - if (policyTagBuilder_ != null) { - policyTagBuilder_.dispose(); - policyTagBuilder_ = 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.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_UpdatePolicyTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest build() { - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest buildPartial() { - com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest result = - new com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.policyTag_ = policyTagBuilder_ == null ? policyTag_ : policyTagBuilder_.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.datacatalog.v1.UpdatePolicyTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest other) { - if (other == com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest.getDefaultInstance()) - return this; - if (other.hasPolicyTag()) { - mergePolicyTag(other.getPolicyTag()); - } - 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( - internalGetPolicyTagFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1.PolicyTag policyTag_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PolicyTag, - com.google.cloud.datacatalog.v1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> - policyTagBuilder_; - - /** - * - * - *
-     * The policy tag to update. You can update only its description, display
-     * name, and parent policy tag fields.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - * - * @return Whether the policyTag field is set. - */ - public boolean hasPolicyTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * The policy tag to update. You can update only its description, display
-     * name, and parent policy tag fields.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - * - * @return The policyTag. - */ - public com.google.cloud.datacatalog.v1.PolicyTag getPolicyTag() { - if (policyTagBuilder_ == null) { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance() - : policyTag_; - } else { - return policyTagBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The policy tag to update. You can update only its description, display
-     * name, and parent policy tag fields.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - */ - public Builder setPolicyTag(com.google.cloud.datacatalog.v1.PolicyTag value) { - if (policyTagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policyTag_ = value; - } else { - policyTagBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to update. You can update only its description, display
-     * name, and parent policy tag fields.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - */ - public Builder setPolicyTag(com.google.cloud.datacatalog.v1.PolicyTag.Builder builderForValue) { - if (policyTagBuilder_ == null) { - policyTag_ = builderForValue.build(); - } else { - policyTagBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to update. You can update only its description, display
-     * name, and parent policy tag fields.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - */ - public Builder mergePolicyTag(com.google.cloud.datacatalog.v1.PolicyTag value) { - if (policyTagBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && policyTag_ != null - && policyTag_ != com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance()) { - getPolicyTagBuilder().mergeFrom(value); - } else { - policyTag_ = value; - } - } else { - policyTagBuilder_.mergeFrom(value); - } - if (policyTag_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The policy tag to update. You can update only its description, display
-     * name, and parent policy tag fields.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - */ - public Builder clearPolicyTag() { - bitField0_ = (bitField0_ & ~0x00000001); - policyTag_ = null; - if (policyTagBuilder_ != null) { - policyTagBuilder_.dispose(); - policyTagBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to update. You can update only its description, display
-     * name, and parent policy tag fields.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - */ - public com.google.cloud.datacatalog.v1.PolicyTag.Builder getPolicyTagBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetPolicyTagFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The policy tag to update. You can update only its description, display
-     * name, and parent policy tag fields.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - */ - public com.google.cloud.datacatalog.v1.PolicyTagOrBuilder getPolicyTagOrBuilder() { - if (policyTagBuilder_ != null) { - return policyTagBuilder_.getMessageOrBuilder(); - } else { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1.PolicyTag.getDefaultInstance() - : policyTag_; - } - } - - /** - * - * - *
-     * The policy tag to update. You can update only its description, display
-     * name, and parent policy tag fields.
-     * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PolicyTag, - com.google.cloud.datacatalog.v1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder> - internalGetPolicyTagFieldBuilder() { - if (policyTagBuilder_ == null) { - policyTagBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.PolicyTag, - com.google.cloud.datacatalog.v1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder>( - getPolicyTag(), getParentForChildren(), isClean()); - policyTag_ = null; - } - return policyTagBuilder_; - } - - 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_; - - /** - * - * - *
-     * Specifies the fields to update.
-     *
-     * You can update only display name, description, and parent policy tag.
-     * If not set, defaults to all updatable fields.
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Specifies the fields to update.
-     *
-     * You can update only display name, description, and parent policy tag.
-     * If not set, defaults to all updatable fields.
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Specifies the fields to update.
-     *
-     * You can update only display name, description, and parent policy tag.
-     * If not set, defaults to all updatable fields.
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Specifies the fields to update.
-     *
-     * You can update only display name, description, and parent policy tag.
-     * If not set, defaults to all updatable fields.
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Specifies the fields to update.
-     *
-     * You can update only display name, description, and parent policy tag.
-     * If not set, defaults to all updatable fields.
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Specifies the fields to update.
-     *
-     * You can update only display name, description, and parent policy tag.
-     * If not set, defaults to all updatable fields.
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Specifies the fields to update.
-     *
-     * You can update only display name, description, and parent policy tag.
-     * If not set, defaults to all updatable fields.
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specifies the fields to update.
-     *
-     * You can update only display name, description, and parent policy tag.
-     * If not set, defaults to all updatable fields.
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * Specifies the fields to update.
-     *
-     * You can update only display name, description, and parent policy tag.
-     * If not set, defaults to all updatable fields.
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1.UpdatePolicyTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UpdatePolicyTagRequest) - private static final com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest(); - } - - public static com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePolicyTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequestOrBuilder.java deleted file mode 100644 index 723d533658a7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdatePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UpdatePolicyTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UpdatePolicyTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The policy tag to update. You can update only its description, display
-   * name, and parent policy tag fields.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - * - * @return Whether the policyTag field is set. - */ - boolean hasPolicyTag(); - - /** - * - * - *
-   * The policy tag to update. You can update only its description, display
-   * name, and parent policy tag fields.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - * - * @return The policyTag. - */ - com.google.cloud.datacatalog.v1.PolicyTag getPolicyTag(); - - /** - * - * - *
-   * The policy tag to update. You can update only its description, display
-   * name, and parent policy tag fields.
-   * 
- * - * .google.cloud.datacatalog.v1.PolicyTag policy_tag = 1; - */ - com.google.cloud.datacatalog.v1.PolicyTagOrBuilder getPolicyTagOrBuilder(); - - /** - * - * - *
-   * Specifies the fields to update.
-   *
-   * You can update only display name, description, and parent policy tag.
-   * If not set, defaults to all updatable fields.
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Specifies the fields to update.
-   *
-   * You can update only display name, description, and parent policy tag.
-   * If not set, defaults to all updatable fields.
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Specifies the fields to update.
-   *
-   * You can update only display name, description, and parent policy tag.
-   * If not set, defaults to all updatable fields.
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequest.java deleted file mode 100644 index e18055877e2b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequest.java +++ /dev/null @@ -1,1040 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [UpdateTag][google.cloud.datacatalog.v1.DataCatalog.UpdateTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagRequest} - */ -@com.google.protobuf.Generated -public final class UpdateTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTagRequest) - UpdateTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateTagRequest"); - } - - // Use UpdateTagRequest.newBuilder() to construct. - private UpdateTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateTagRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateTagRequest.class, - com.google.cloud.datacatalog.v1.UpdateTagRequest.Builder.class); - } - - private int bitField0_; - public static final int TAG_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1.Tag tag_; - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - @java.lang.Override - public boolean hasTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Tag getTag() { - return tag_ == null ? com.google.cloud.datacatalog.v1.Tag.getDefaultInstance() : tag_; - } - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagOrBuilder getTagOrBuilder() { - return tag_ == null ? com.google.cloud.datacatalog.v1.Tag.getDefaultInstance() : tag_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getTag()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getTag()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.UpdateTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UpdateTagRequest other = - (com.google.cloud.datacatalog.v1.UpdateTagRequest) obj; - - if (hasTag() != other.hasTag()) return false; - if (hasTag()) { - if (!getTag().equals(other.getTag())) 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 (hasTag()) { - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().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.datacatalog.v1.UpdateTagRequest parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.UpdateTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateTag][google.cloud.datacatalog.v1.DataCatalog.UpdateTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UpdateTagRequest) - com.google.cloud.datacatalog.v1.UpdateTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateTagRequest.class, - com.google.cloud.datacatalog.v1.UpdateTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UpdateTagRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tag_ = null; - if (tagBuilder_ != null) { - tagBuilder_.dispose(); - tagBuilder_ = 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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UpdateTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagRequest build() { - com.google.cloud.datacatalog.v1.UpdateTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagRequest buildPartial() { - com.google.cloud.datacatalog.v1.UpdateTagRequest result = - new com.google.cloud.datacatalog.v1.UpdateTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.UpdateTagRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tag_ = tagBuilder_ == null ? tag_ : tagBuilder_.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.datacatalog.v1.UpdateTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.UpdateTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UpdateTagRequest other) { - if (other == com.google.cloud.datacatalog.v1.UpdateTagRequest.getDefaultInstance()) - return this; - if (other.hasTag()) { - mergeTag(other.getTag()); - } - 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(internalGetTagFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1.Tag tag_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - tagBuilder_; - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - public boolean hasTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - public com.google.cloud.datacatalog.v1.Tag getTag() { - if (tagBuilder_ == null) { - return tag_ == null ? com.google.cloud.datacatalog.v1.Tag.getDefaultInstance() : tag_; - } else { - return tagBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTag(com.google.cloud.datacatalog.v1.Tag value) { - if (tagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tag_ = value; - } else { - tagBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTag(com.google.cloud.datacatalog.v1.Tag.Builder builderForValue) { - if (tagBuilder_ == null) { - tag_ = builderForValue.build(); - } else { - tagBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTag(com.google.cloud.datacatalog.v1.Tag value) { - if (tagBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && tag_ != null - && tag_ != com.google.cloud.datacatalog.v1.Tag.getDefaultInstance()) { - getTagBuilder().mergeFrom(value); - } else { - tag_ = value; - } - } else { - tagBuilder_.mergeFrom(value); - } - if (tag_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTag() { - bitField0_ = (bitField0_ & ~0x00000001); - tag_ = null; - if (tagBuilder_ != null) { - tagBuilder_.dispose(); - tagBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.Tag.Builder getTagBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetTagFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagOrBuilder getTagOrBuilder() { - if (tagBuilder_ != null) { - return tagBuilder_.getMessageOrBuilder(); - } else { - return tag_ == null ? com.google.cloud.datacatalog.v1.Tag.getDefaultInstance() : tag_; - } - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder> - internalGetTagFieldBuilder() { - if (tagBuilder_ == null) { - tagBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Tag, - com.google.cloud.datacatalog.v1.Tag.Builder, - com.google.cloud.datacatalog.v1.TagOrBuilder>( - getTag(), getParentForChildren(), isClean()); - tag_ = null; - } - return tagBuilder_; - } - - 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_; - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1.UpdateTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UpdateTagRequest) - private static final com.google.cloud.datacatalog.v1.UpdateTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UpdateTagRequest(); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequestOrBuilder.java deleted file mode 100644 index 789e398b98d5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagRequestOrBuilder.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UpdateTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UpdateTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - boolean hasTag(); - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - com.google.cloud.datacatalog.v1.Tag getTag(); - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.TagOrBuilder getTagOrBuilder(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequest.java deleted file mode 100644 index 387b783152fb..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequest.java +++ /dev/null @@ -1,1406 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [UpdateTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest} - */ -@com.google.protobuf.Generated -public final class UpdateTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest) - UpdateTagTemplateFieldRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateTagTemplateFieldRequest"); - } - - // Use UpdateTagTemplateFieldRequest.newBuilder() to construct. - private UpdateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateTagTemplateFieldRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest.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 tag template field.
-   * 
- * - * - * 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 tag template field.
-   * 
- * - * - * 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 TAG_TEMPLATE_FIELD_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1.TagTemplateField tagTemplateField_; - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - @java.lang.Override - public boolean hasTagTemplateField() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateField getTagTemplateField() { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder getTagTemplateFieldOrBuilder() { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Optional. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Optional. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getTagTemplateField()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getUpdateMask()); - } - 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, getTagTemplateField()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest other = - (com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasTagTemplateField() != other.hasTagTemplateField()) return false; - if (hasTagTemplateField()) { - if (!getTagTemplateField().equals(other.getTagTemplateField())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasTagTemplateField()) { - hash = (37 * hash) + TAG_TEMPLATE_FIELD_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplateField().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.datacatalog.v1.UpdateTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplateField].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest) - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagTemplateFieldFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - tagTemplateField_ = null; - if (tagTemplateFieldBuilder_ != null) { - tagTemplateFieldBuilder_.dispose(); - tagTemplateFieldBuilder_ = 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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest build() { - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest buildPartial() { - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest result = - new com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagTemplateField_ = - tagTemplateFieldBuilder_ == null ? tagTemplateField_ : tagTemplateFieldBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 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.datacatalog.v1.UpdateTagTemplateFieldRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest other) { - if (other - == com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasTagTemplateField()) { - mergeTagTemplateField(other.getTagTemplateField()); - } - 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: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetTagTemplateFieldFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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 tag template field.
-     * 
- * - * - * 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 tag template field.
-     * 
- * - * - * 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 tag template field.
-     * 
- * - * - * 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 tag template field.
-     * 
- * - * - * 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 tag template field.
-     * 
- * - * - * 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.datacatalog.v1.TagTemplateField tagTemplateField_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplateField, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder> - tagTemplateFieldBuilder_; - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - public boolean hasTagTemplateField() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - public com.google.cloud.datacatalog.v1.TagTemplateField getTagTemplateField() { - if (tagTemplateFieldBuilder_ == null) { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } else { - return tagTemplateFieldBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplateField(com.google.cloud.datacatalog.v1.TagTemplateField value) { - if (tagTemplateFieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplateField_ = value; - } else { - tagTemplateFieldBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplateField( - com.google.cloud.datacatalog.v1.TagTemplateField.Builder builderForValue) { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateField_ = builderForValue.build(); - } else { - tagTemplateFieldBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTagTemplateField(com.google.cloud.datacatalog.v1.TagTemplateField value) { - if (tagTemplateFieldBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && tagTemplateField_ != null - && tagTemplateField_ - != com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance()) { - getTagTemplateFieldBuilder().mergeFrom(value); - } else { - tagTemplateField_ = value; - } - } else { - tagTemplateFieldBuilder_.mergeFrom(value); - } - if (tagTemplateField_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTagTemplateField() { - bitField0_ = (bitField0_ & ~0x00000002); - tagTemplateField_ = null; - if (tagTemplateFieldBuilder_ != null) { - tagTemplateFieldBuilder_.dispose(); - tagTemplateFieldBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagTemplateField.Builder getTagTemplateFieldBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetTagTemplateFieldFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder - getTagTemplateFieldOrBuilder() { - if (tagTemplateFieldBuilder_ != null) { - return tagTemplateFieldBuilder_.getMessageOrBuilder(); - } else { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplateField, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder> - internalGetTagTemplateFieldFieldBuilder() { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateFieldBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplateField, - com.google.cloud.datacatalog.v1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder>( - getTagTemplateField(), getParentForChildren(), isClean()); - tagTemplateField_ = null; - } - return tagTemplateFieldBuilder_; - } - - 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. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - if (updateMask_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000004); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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.datacatalog.v1.UpdateTagTemplateFieldRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest) - private static final com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest(); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTagTemplateFieldRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index b18903e62fbe..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UpdateTagTemplateFieldRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag template field.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag template field.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - boolean hasTagTemplateField(); - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - com.google.cloud.datacatalog.v1.TagTemplateField getTagTemplateField(); - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.TagTemplateFieldOrBuilder getTagTemplateFieldOrBuilder(); - - /** - * - * - *
-   * Optional. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Optional. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Optional. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java deleted file mode 100644 index 8bcc451d2615..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequest.java +++ /dev/null @@ -1,1100 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [UpdateTagTemplate][google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagTemplateRequest} - */ -@com.google.protobuf.Generated -public final class UpdateTagTemplateRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTagTemplateRequest) - UpdateTagTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateTagTemplateRequest"); - } - - // Use UpdateTagTemplateRequest.newBuilder() to construct. - private UpdateTagTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateTagTemplateRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest.class, - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest.Builder.class); - } - - private int bitField0_; - public static final int TAG_TEMPLATE_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1.TagTemplate tagTemplate_; - - /** - * - * - *
-   * Required. The template to update. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - @java.lang.Override - public boolean hasTagTemplate() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The template to update. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplate getTagTemplate() { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - - /** - * - * - *
-   * Required. The template to update. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TagTemplateOrBuilder getTagTemplateOrBuilder() { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` and `is_publicly_readable` can be overwritten.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * Note: Updating the `is_publicly_readable` field may require up to 12
-   * hours to take effect in search results.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` and `is_publicly_readable` can be overwritten.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * Note: Updating the `is_publicly_readable` field may require up to 12
-   * hours to take effect in search results.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` and `is_publicly_readable` can be overwritten.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * Note: Updating the `is_publicly_readable` field may require up to 12
-   * hours to take effect in search results.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getTagTemplate()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getTagTemplate()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest other = - (com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest) obj; - - if (hasTagTemplate() != other.hasTagTemplate()) return false; - if (hasTagTemplate()) { - if (!getTagTemplate().equals(other.getTagTemplate())) 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 (hasTagTemplate()) { - hash = (37 * hash) + TAG_TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplate().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.datacatalog.v1.UpdateTagTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateTagTemplate][google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplate].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTagTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UpdateTagTemplateRequest) - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest.class, - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagTemplateFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tagTemplate_ = null; - if (tagTemplateBuilder_ != null) { - tagTemplateBuilder_.dispose(); - tagTemplateBuilder_ = 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.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_UpdateTagTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest build() { - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest buildPartial() { - com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest result = - new com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tagTemplate_ = - tagTemplateBuilder_ == null ? tagTemplate_ : tagTemplateBuilder_.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.datacatalog.v1.UpdateTagTemplateRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest other) { - if (other == com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest.getDefaultInstance()) - return this; - if (other.hasTagTemplate()) { - mergeTagTemplate(other.getTagTemplate()); - } - 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( - internalGetTagTemplateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1.TagTemplate tagTemplate_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplate, - com.google.cloud.datacatalog.v1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1.TagTemplateOrBuilder> - tagTemplateBuilder_; - - /** - * - * - *
-     * Required. The template to update. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - public boolean hasTagTemplate() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Required. The template to update. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - public com.google.cloud.datacatalog.v1.TagTemplate getTagTemplate() { - if (tagTemplateBuilder_ == null) { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } else { - return tagTemplateBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The template to update. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplate(com.google.cloud.datacatalog.v1.TagTemplate value) { - if (tagTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplate_ = value; - } else { - tagTemplateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplate( - com.google.cloud.datacatalog.v1.TagTemplate.Builder builderForValue) { - if (tagTemplateBuilder_ == null) { - tagTemplate_ = builderForValue.build(); - } else { - tagTemplateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTagTemplate(com.google.cloud.datacatalog.v1.TagTemplate value) { - if (tagTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && tagTemplate_ != null - && tagTemplate_ != com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance()) { - getTagTemplateBuilder().mergeFrom(value); - } else { - tagTemplate_ = value; - } - } else { - tagTemplateBuilder_.mergeFrom(value); - } - if (tagTemplate_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The template to update. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTagTemplate() { - bitField0_ = (bitField0_ & ~0x00000001); - tagTemplate_ = null; - if (tagTemplateBuilder_ != null) { - tagTemplateBuilder_.dispose(); - tagTemplateBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagTemplate.Builder getTagTemplateBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetTagTemplateFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The template to update. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1.TagTemplateOrBuilder getTagTemplateOrBuilder() { - if (tagTemplateBuilder_ != null) { - return tagTemplateBuilder_.getMessageOrBuilder(); - } else { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - } - - /** - * - * - *
-     * Required. The template to update. The `name` field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplate, - com.google.cloud.datacatalog.v1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1.TagTemplateOrBuilder> - internalGetTagTemplateFieldBuilder() { - if (tagTemplateBuilder_ == null) { - tagTemplateBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.TagTemplate, - com.google.cloud.datacatalog.v1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1.TagTemplateOrBuilder>( - getTagTemplate(), getParentForChildren(), isClean()); - tagTemplate_ = null; - } - return tagTemplateBuilder_; - } - - 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_; - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` and `is_publicly_readable` can be overwritten.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * Note: Updating the `is_publicly_readable` field may require up to 12
-     * hours to take effect in search results.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` and `is_publicly_readable` can be overwritten.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * Note: Updating the `is_publicly_readable` field may require up to 12
-     * hours to take effect in search results.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` and `is_publicly_readable` can be overwritten.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * Note: Updating the `is_publicly_readable` field may require up to 12
-     * hours to take effect in search results.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` and `is_publicly_readable` can be overwritten.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * Note: Updating the `is_publicly_readable` field may require up to 12
-     * hours to take effect in search results.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` and `is_publicly_readable` can be overwritten.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * Note: Updating the `is_publicly_readable` field may require up to 12
-     * hours to take effect in search results.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` and `is_publicly_readable` can be overwritten.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * Note: Updating the `is_publicly_readable` field may require up to 12
-     * hours to take effect in search results.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` and `is_publicly_readable` can be overwritten.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * Note: Updating the `is_publicly_readable` field may require up to 12
-     * hours to take effect in search results.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` and `is_publicly_readable` can be overwritten.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * Note: Updating the `is_publicly_readable` field may require up to 12
-     * hours to take effect in search results.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` and `is_publicly_readable` can be overwritten.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * Note: Updating the `is_publicly_readable` field may require up to 12
-     * hours to take effect in search results.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1.UpdateTagTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UpdateTagTemplateRequest) - private static final com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest(); - } - - public static com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTagTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java deleted file mode 100644 index 4cdb650bf786..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UpdateTagTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UpdateTagTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The template to update. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - boolean hasTagTemplate(); - - /** - * - * - *
-   * Required. The template to update. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - com.google.cloud.datacatalog.v1.TagTemplate getTagTemplate(); - - /** - * - * - *
-   * Required. The template to update. The `name` field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1.TagTemplateOrBuilder getTagTemplateOrBuilder(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` and `is_publicly_readable` can be overwritten.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * Note: Updating the `is_publicly_readable` field may require up to 12
-   * hours to take effect in search results.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` and `is_publicly_readable` can be overwritten.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * Note: Updating the `is_publicly_readable` field may require up to 12
-   * hours to take effect in search results.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` and `is_publicly_readable` can be overwritten.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * Note: Updating the `is_publicly_readable` field may require up to 12
-   * hours to take effect in search results.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequest.java deleted file mode 100644 index 87ce6bd454dc..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequest.java +++ /dev/null @@ -1,1038 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Request message for
- * [UpdateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.UpdateTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTaxonomyRequest} - */ -@com.google.protobuf.Generated -public final class UpdateTaxonomyRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UpdateTaxonomyRequest) - UpdateTaxonomyRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateTaxonomyRequest"); - } - - // Use UpdateTaxonomyRequest.newBuilder() to construct. - private UpdateTaxonomyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateTaxonomyRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest.class, - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest.Builder.class); - } - - private int bitField0_; - public static final int TAXONOMY_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1.Taxonomy taxonomy_; - - /** - * - * - *
-   * The taxonomy to update. You can update only its description, display name,
-   * and activated policy types.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - * - * @return Whether the taxonomy field is set. - */ - @java.lang.Override - public boolean hasTaxonomy() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The taxonomy to update. You can update only its description, display name,
-   * and activated policy types.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - * - * @return The taxonomy. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomy() { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - - /** - * - * - *
-   * The taxonomy to update. You can update only its description, display name,
-   * and activated policy types.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomyOrBuilder() { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Specifies fields to update. If not set, defaults to all fields you can
-   * update.
-   *
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Specifies fields to update. If not set, defaults to all fields you can
-   * update.
-   *
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * Specifies fields to update. If not set, defaults to all fields you can
-   * update.
-   *
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getTaxonomy()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getTaxonomy()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest other = - (com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest) obj; - - if (hasTaxonomy() != other.hasTaxonomy()) return false; - if (hasTaxonomy()) { - if (!getTaxonomy().equals(other.getTaxonomy())) 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 (hasTaxonomy()) { - hash = (37 * hash) + TAXONOMY_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomy().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.datacatalog.v1.UpdateTaxonomyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.UpdateTaxonomy].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UpdateTaxonomyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UpdateTaxonomyRequest) - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest.class, - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTaxonomyFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - taxonomy_ = null; - if (taxonomyBuilder_ != null) { - taxonomyBuilder_.dispose(); - taxonomyBuilder_ = 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.datacatalog.v1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1_UpdateTaxonomyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest build() { - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest buildPartial() { - com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest result = - new com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.taxonomy_ = taxonomyBuilder_ == null ? taxonomy_ : taxonomyBuilder_.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.datacatalog.v1.UpdateTaxonomyRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest other) { - if (other == com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest.getDefaultInstance()) - return this; - if (other.hasTaxonomy()) { - mergeTaxonomy(other.getTaxonomy()); - } - 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( - internalGetTaxonomyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1.Taxonomy taxonomy_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - taxonomyBuilder_; - - /** - * - * - *
-     * The taxonomy to update. You can update only its description, display name,
-     * and activated policy types.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - * - * @return Whether the taxonomy field is set. - */ - public boolean hasTaxonomy() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * The taxonomy to update. You can update only its description, display name,
-     * and activated policy types.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - * - * @return The taxonomy. - */ - public com.google.cloud.datacatalog.v1.Taxonomy getTaxonomy() { - if (taxonomyBuilder_ == null) { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance() - : taxonomy_; - } else { - return taxonomyBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The taxonomy to update. You can update only its description, display name,
-     * and activated policy types.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - */ - public Builder setTaxonomy(com.google.cloud.datacatalog.v1.Taxonomy value) { - if (taxonomyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taxonomy_ = value; - } else { - taxonomyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to update. You can update only its description, display name,
-     * and activated policy types.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - */ - public Builder setTaxonomy(com.google.cloud.datacatalog.v1.Taxonomy.Builder builderForValue) { - if (taxonomyBuilder_ == null) { - taxonomy_ = builderForValue.build(); - } else { - taxonomyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to update. You can update only its description, display name,
-     * and activated policy types.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - */ - public Builder mergeTaxonomy(com.google.cloud.datacatalog.v1.Taxonomy value) { - if (taxonomyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && taxonomy_ != null - && taxonomy_ != com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance()) { - getTaxonomyBuilder().mergeFrom(value); - } else { - taxonomy_ = value; - } - } else { - taxonomyBuilder_.mergeFrom(value); - } - if (taxonomy_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The taxonomy to update. You can update only its description, display name,
-     * and activated policy types.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - */ - public Builder clearTaxonomy() { - bitField0_ = (bitField0_ & ~0x00000001); - taxonomy_ = null; - if (taxonomyBuilder_ != null) { - taxonomyBuilder_.dispose(); - taxonomyBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to update. You can update only its description, display name,
-     * and activated policy types.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - */ - public com.google.cloud.datacatalog.v1.Taxonomy.Builder getTaxonomyBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetTaxonomyFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The taxonomy to update. You can update only its description, display name,
-     * and activated policy types.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - */ - public com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomyOrBuilder() { - if (taxonomyBuilder_ != null) { - return taxonomyBuilder_.getMessageOrBuilder(); - } else { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - } - - /** - * - * - *
-     * The taxonomy to update. You can update only its description, display name,
-     * and activated policy types.
-     * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder> - internalGetTaxonomyFieldBuilder() { - if (taxonomyBuilder_ == null) { - taxonomyBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.Taxonomy, - com.google.cloud.datacatalog.v1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder>( - getTaxonomy(), getParentForChildren(), isClean()); - taxonomy_ = null; - } - return taxonomyBuilder_; - } - - 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_; - - /** - * - * - *
-     * Specifies fields to update. If not set, defaults to all fields you can
-     * update.
-     *
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Specifies fields to update. If not set, defaults to all fields you can
-     * update.
-     *
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Specifies fields to update. If not set, defaults to all fields you can
-     * update.
-     *
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Specifies fields to update. If not set, defaults to all fields you can
-     * update.
-     *
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Specifies fields to update. If not set, defaults to all fields you can
-     * update.
-     *
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Specifies fields to update. If not set, defaults to all fields you can
-     * update.
-     *
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Specifies fields to update. If not set, defaults to all fields you can
-     * update.
-     *
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specifies fields to update. If not set, defaults to all fields you can
-     * update.
-     *
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * Specifies fields to update. If not set, defaults to all fields you can
-     * update.
-     *
-     * For more information, see [FieldMask]
-     * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1.UpdateTaxonomyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UpdateTaxonomyRequest) - private static final com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest(); - } - - public static com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTaxonomyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequestOrBuilder.java deleted file mode 100644 index a0d3b4f79680..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UpdateTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UpdateTaxonomyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UpdateTaxonomyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The taxonomy to update. You can update only its description, display name,
-   * and activated policy types.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - * - * @return Whether the taxonomy field is set. - */ - boolean hasTaxonomy(); - - /** - * - * - *
-   * The taxonomy to update. You can update only its description, display name,
-   * and activated policy types.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - * - * @return The taxonomy. - */ - com.google.cloud.datacatalog.v1.Taxonomy getTaxonomy(); - - /** - * - * - *
-   * The taxonomy to update. You can update only its description, display name,
-   * and activated policy types.
-   * 
- * - * .google.cloud.datacatalog.v1.Taxonomy taxonomy = 1; - */ - com.google.cloud.datacatalog.v1.TaxonomyOrBuilder getTaxonomyOrBuilder(); - - /** - * - * - *
-   * Specifies fields to update. If not set, defaults to all fields you can
-   * update.
-   *
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Specifies fields to update. If not set, defaults to all fields you can
-   * update.
-   *
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Specifies fields to update. If not set, defaults to all fields you can
-   * update.
-   *
-   * For more information, see [FieldMask]
-   * (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask).
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Usage.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Usage.java deleted file mode 100644 index c92dbf4afac4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/Usage.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public final class Usage extends com.google.protobuf.GeneratedFile { - private Usage() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Usage"); - } - - 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_datacatalog_v1_UsageStats_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UsageStats_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_CommonUsageStats_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_CommonUsageStats_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UsageSignal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UsageSignal_UsageWithinTimeRangeEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UsageSignal_UsageWithinTimeRangeEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1_UsageSignal_CommonUsageWithinTimeRangeEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1_UsageSignal_CommonUsageWithinTimeRangeEntry_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/datacatalog/v1/usage.prot" - + "o\022\033google.cloud.datacatalog.v1\032\037google/a" - + "pi/field_behavior.proto\032\037google/protobuf" - + "/timestamp.proto\"\221\001\n\nUsageStats\022\031\n\021total" - + "_completions\030\001 \001(\002\022\026\n\016total_failures\030\002 \001" - + "(\002\022\033\n\023total_cancellations\030\003 \001(\002\0223\n+total" - + "_execution_time_for_completions_millis\030\004" - + " \001(\002\":\n\020CommonUsageStats\022\027\n\nview_count\030\001" - + " \001(\003H\000\210\001\001B\r\n\013_view_count\"\242\004\n\013UsageSignal" - + "\022/\n\013update_time\030\001 \001(\0132\032.google.protobuf." - + "Timestamp\022h\n\027usage_within_time_range\030\002 \003" - + "(\0132B.google.cloud.datacatalog.v1.UsageSi" - + "gnal.UsageWithinTimeRangeEntryB\003\340A\003\022p\n\036c" - + "ommon_usage_within_time_range\030\003 \003(\0132H.go" - + "ogle.cloud.datacatalog.v1.UsageSignal.Co" - + "mmonUsageWithinTimeRangeEntry\022\033\n\016favorit" - + "e_count\030\004 \001(\003H\000\210\001\001\032d\n\031UsageWithinTimeRan" - + "geEntry\022\013\n\003key\030\001 \001(\t\0226\n\005value\030\002 \001(\0132\'.go" - + "ogle.cloud.datacatalog.v1.UsageStats:\0028\001" - + "\032p\n\037CommonUsageWithinTimeRangeEntry\022\013\n\003k" - + "ey\030\001 \001(\t\022<\n\005value\030\002 \001(\0132-.google.cloud.d" - + "atacatalog.v1.CommonUsageStats:\0028\001B\021\n\017_f" - + "avorite_countB\303\001\n\037com.google.cloud.datac" - + "atalog.v1P\001ZAcloud.google.com/go/datacat" - + "alog/apiv1/datacatalogpb;datacatalogpb\252\002" - + "\033Google.Cloud.DataCatalog.V1\312\002\033Google\\Cl" - + "oud\\DataCatalog\\V1\352\002\036Google::Cloud::Data" - + "Catalog::V1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1_UsageStats_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1_UsageStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UsageStats_descriptor, - new java.lang.String[] { - "TotalCompletions", - "TotalFailures", - "TotalCancellations", - "TotalExecutionTimeForCompletionsMillis", - }); - internal_static_google_cloud_datacatalog_v1_CommonUsageStats_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1_CommonUsageStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_CommonUsageStats_descriptor, - new java.lang.String[] { - "ViewCount", - }); - internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1_UsageSignal_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor, - new java.lang.String[] { - "UpdateTime", "UsageWithinTimeRange", "CommonUsageWithinTimeRange", "FavoriteCount", - }); - internal_static_google_cloud_datacatalog_v1_UsageSignal_UsageWithinTimeRangeEntry_descriptor = - internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1_UsageSignal_UsageWithinTimeRangeEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UsageSignal_UsageWithinTimeRangeEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datacatalog_v1_UsageSignal_CommonUsageWithinTimeRangeEntry_descriptor = - internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor.getNestedType(1); - internal_static_google_cloud_datacatalog_v1_UsageSignal_CommonUsageWithinTimeRangeEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1_UsageSignal_CommonUsageWithinTimeRangeEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.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-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignal.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignal.java deleted file mode 100644 index 7e9c02259656..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignal.java +++ /dev/null @@ -1,1820 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * The set of all usage signals that Data Catalog stores.
- *
- * Note: Usually, these signals are updated daily. In rare cases, an update may
- * fail but will be performed again on the next day.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UsageSignal} - */ -@com.google.protobuf.Generated -public final class UsageSignal extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UsageSignal) - UsageSignalOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UsageSignal"); - } - - // Use UsageSignal.newBuilder() to construct. - private UsageSignal(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UsageSignal() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetUsageWithinTimeRange(); - case 3: - return internalGetCommonUsageWithinTimeRange(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageSignal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UsageSignal.class, - com.google.cloud.datacatalog.v1.UsageSignal.Builder.class); - } - - private int bitField0_; - public static final int UPDATE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp updateTime_; - - /** - * - * - *
-   * The end timestamp of the duration of usage statistics.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The end timestamp of the duration of usage statistics.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - /** - * - * - *
-   * The end timestamp of the duration of usage statistics.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int USAGE_WITHIN_TIME_RANGE_FIELD_NUMBER = 2; - - private static final class UsageWithinTimeRangeDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.UsageStats> - defaultEntry = - com.google.protobuf.MapEntry - .newDefaultInstance( - com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageSignal_UsageWithinTimeRangeEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.datacatalog.v1.UsageStats.getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField - usageWithinTimeRange_; - - private com.google.protobuf.MapField - internalGetUsageWithinTimeRange() { - if (usageWithinTimeRange_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - return usageWithinTimeRange_; - } - - public int getUsageWithinTimeRangeCount() { - return internalGetUsageWithinTimeRange().getMap().size(); - } - - /** - * - * - *
-   * Output only. BigQuery usage statistics over each of the predefined time
-   * ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsUsageWithinTimeRange(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetUsageWithinTimeRange().getMap().containsKey(key); - } - - /** Use {@link #getUsageWithinTimeRangeMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getUsageWithinTimeRange() { - return getUsageWithinTimeRangeMap(); - } - - /** - * - * - *
-   * Output only. BigQuery usage statistics over each of the predefined time
-   * ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map - getUsageWithinTimeRangeMap() { - return internalGetUsageWithinTimeRange().getMap(); - } - - /** - * - * - *
-   * Output only. BigQuery usage statistics over each of the predefined time
-   * ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1.UsageStats getUsageWithinTimeRangeOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.UsageStats defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetUsageWithinTimeRange().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-   * Output only. BigQuery usage statistics over each of the predefined time
-   * ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageStats getUsageWithinTimeRangeOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetUsageWithinTimeRange().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int COMMON_USAGE_WITHIN_TIME_RANGE_FIELD_NUMBER = 3; - - private static final class CommonUsageWithinTimeRangeDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.CommonUsageStats> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageSignal_CommonUsageWithinTimeRangeEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.datacatalog.v1.CommonUsageStats.getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1.CommonUsageStats> - commonUsageWithinTimeRange_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1.CommonUsageStats> - internalGetCommonUsageWithinTimeRange() { - if (commonUsageWithinTimeRange_ == null) { - return com.google.protobuf.MapField.emptyMapField( - CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - return commonUsageWithinTimeRange_; - } - - public int getCommonUsageWithinTimeRangeCount() { - return internalGetCommonUsageWithinTimeRange().getMap().size(); - } - - /** - * - * - *
-   * Common usage statistics over each of the predefined time ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - @java.lang.Override - public boolean containsCommonUsageWithinTimeRange(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetCommonUsageWithinTimeRange().getMap().containsKey(key); - } - - /** Use {@link #getCommonUsageWithinTimeRangeMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCommonUsageWithinTimeRange() { - return getCommonUsageWithinTimeRangeMap(); - } - - /** - * - * - *
-   * Common usage statistics over each of the predefined time ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - @java.lang.Override - public java.util.Map - getCommonUsageWithinTimeRangeMap() { - return internalGetCommonUsageWithinTimeRange().getMap(); - } - - /** - * - * - *
-   * Common usage statistics over each of the predefined time ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1.CommonUsageStats - getCommonUsageWithinTimeRangeOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.CommonUsageStats defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetCommonUsageWithinTimeRange().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-   * Common usage statistics over each of the predefined time ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CommonUsageStats getCommonUsageWithinTimeRangeOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetCommonUsageWithinTimeRange().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int FAVORITE_COUNT_FIELD_NUMBER = 4; - private long favoriteCount_ = 0L; - - /** - * - * - *
-   * Favorite count in the source system.
-   * 
- * - * optional int64 favorite_count = 4; - * - * @return Whether the favoriteCount field is set. - */ - @java.lang.Override - public boolean hasFavoriteCount() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Favorite count in the source system.
-   * 
- * - * optional int64 favorite_count = 4; - * - * @return The favoriteCount. - */ - @java.lang.Override - public long getFavoriteCount() { - return favoriteCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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, getUpdateTime()); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, - internalGetUsageWithinTimeRange(), - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry, - 2); - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, - internalGetCommonUsageWithinTimeRange(), - CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry, - 3); - if (((bitField0_ & 0x00000002) != 0)) { - output.writeInt64(4, favoriteCount_); - } - 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, getUpdateTime()); - } - for (java.util.Map.Entry entry : - internalGetUsageWithinTimeRange().getMap().entrySet()) { - com.google.protobuf.MapEntry - usageWithinTimeRange__ = - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, usageWithinTimeRange__); - } - for (java.util.Map.Entry - entry : internalGetCommonUsageWithinTimeRange().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.CommonUsageStats> - commonUsageWithinTimeRange__ = - CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, commonUsageWithinTimeRange__); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, favoriteCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.UsageSignal)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UsageSignal other = - (com.google.cloud.datacatalog.v1.UsageSignal) obj; - - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetUsageWithinTimeRange().equals(other.internalGetUsageWithinTimeRange())) - return false; - if (!internalGetCommonUsageWithinTimeRange() - .equals(other.internalGetCommonUsageWithinTimeRange())) return false; - if (hasFavoriteCount() != other.hasFavoriteCount()) return false; - if (hasFavoriteCount()) { - if (getFavoriteCount() != other.getFavoriteCount()) return false; - } - if (!getUnknownFields().equals(other.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 (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (!internalGetUsageWithinTimeRange().getMap().isEmpty()) { - hash = (37 * hash) + USAGE_WITHIN_TIME_RANGE_FIELD_NUMBER; - hash = (53 * hash) + internalGetUsageWithinTimeRange().hashCode(); - } - if (!internalGetCommonUsageWithinTimeRange().getMap().isEmpty()) { - hash = (37 * hash) + COMMON_USAGE_WITHIN_TIME_RANGE_FIELD_NUMBER; - hash = (53 * hash) + internalGetCommonUsageWithinTimeRange().hashCode(); - } - if (hasFavoriteCount()) { - hash = (37 * hash) + FAVORITE_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFavoriteCount()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.UsageSignal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 set of all usage signals that Data Catalog stores.
-   *
-   * Note: Usually, these signals are updated daily. In rare cases, an update may
-   * fail but will be performed again on the next day.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UsageSignal} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UsageSignal) - com.google.cloud.datacatalog.v1.UsageSignalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetUsageWithinTimeRange(); - case 3: - return internalGetCommonUsageWithinTimeRange(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetMutableUsageWithinTimeRange(); - case 3: - return internalGetMutableCommonUsageWithinTimeRange(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageSignal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UsageSignal.class, - com.google.cloud.datacatalog.v1.UsageSignal.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UsageSignal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetUpdateTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - internalGetMutableUsageWithinTimeRange().clear(); - internalGetMutableCommonUsageWithinTimeRange().clear(); - favoriteCount_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageSignal_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageSignal getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageSignal build() { - com.google.cloud.datacatalog.v1.UsageSignal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageSignal buildPartial() { - com.google.cloud.datacatalog.v1.UsageSignal result = - new com.google.cloud.datacatalog.v1.UsageSignal(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.UsageSignal result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.usageWithinTimeRange_ = - internalGetUsageWithinTimeRange() - .build(UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.commonUsageWithinTimeRange_ = - internalGetCommonUsageWithinTimeRange() - .build(CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.favoriteCount_ = favoriteCount_; - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.UsageSignal) { - return mergeFrom((com.google.cloud.datacatalog.v1.UsageSignal) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UsageSignal other) { - if (other == com.google.cloud.datacatalog.v1.UsageSignal.getDefaultInstance()) return this; - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableUsageWithinTimeRange().mergeFrom(other.internalGetUsageWithinTimeRange()); - bitField0_ |= 0x00000002; - internalGetMutableCommonUsageWithinTimeRange() - .mergeFrom(other.internalGetCommonUsageWithinTimeRange()); - bitField0_ |= 0x00000004; - if (other.hasFavoriteCount()) { - setFavoriteCount(other.getFavoriteCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.UsageStats> - usageWithinTimeRange__ = - input.readMessage( - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableUsageWithinTimeRange() - .ensureBuilderMap() - .put(usageWithinTimeRange__.getKey(), usageWithinTimeRange__.getValue()); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.CommonUsageStats> - commonUsageWithinTimeRange__ = - input.readMessage( - CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry - .getParserForType(), - extensionRegistry); - internalGetMutableCommonUsageWithinTimeRange() - .ensureBuilderMap() - .put( - commonUsageWithinTimeRange__.getKey(), - commonUsageWithinTimeRange__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - favoriteCount_ = input.readInt64(); - 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 com.google.protobuf.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - - /** - * - * - *
-     * The end timestamp of the duration of usage statistics.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * The end timestamp of the duration of usage statistics.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The end timestamp of the duration of usage statistics.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The end timestamp of the duration of usage statistics.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The end timestamp of the duration of usage statistics.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - if (updateTime_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The end timestamp of the duration of usage statistics.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000001); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The end timestamp of the duration of usage statistics.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The end timestamp of the duration of usage statistics.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - - /** - * - * - *
-     * The end timestamp of the duration of usage statistics.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - 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 static final class UsageWithinTimeRangeConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.datacatalog.v1.UsageStatsOrBuilder, - com.google.cloud.datacatalog.v1.UsageStats> { - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageStats build( - com.google.cloud.datacatalog.v1.UsageStatsOrBuilder val) { - if (val instanceof com.google.cloud.datacatalog.v1.UsageStats) { - return (com.google.cloud.datacatalog.v1.UsageStats) val; - } - return ((com.google.cloud.datacatalog.v1.UsageStats.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.UsageStats> - defaultEntry() { - return UsageWithinTimeRangeDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final UsageWithinTimeRangeConverter usageWithinTimeRangeConverter = - new UsageWithinTimeRangeConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.UsageStatsOrBuilder, - com.google.cloud.datacatalog.v1.UsageStats, - com.google.cloud.datacatalog.v1.UsageStats.Builder> - usageWithinTimeRange_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.UsageStatsOrBuilder, - com.google.cloud.datacatalog.v1.UsageStats, - com.google.cloud.datacatalog.v1.UsageStats.Builder> - internalGetUsageWithinTimeRange() { - if (usageWithinTimeRange_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(usageWithinTimeRangeConverter); - } - return usageWithinTimeRange_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.UsageStatsOrBuilder, - com.google.cloud.datacatalog.v1.UsageStats, - com.google.cloud.datacatalog.v1.UsageStats.Builder> - internalGetMutableUsageWithinTimeRange() { - if (usageWithinTimeRange_ == null) { - usageWithinTimeRange_ = - new com.google.protobuf.MapFieldBuilder<>(usageWithinTimeRangeConverter); - } - bitField0_ |= 0x00000002; - onChanged(); - return usageWithinTimeRange_; - } - - public int getUsageWithinTimeRangeCount() { - return internalGetUsageWithinTimeRange().ensureBuilderMap().size(); - } - - /** - * - * - *
-     * Output only. BigQuery usage statistics over each of the predefined time
-     * ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public boolean containsUsageWithinTimeRange(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetUsageWithinTimeRange().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getUsageWithinTimeRangeMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getUsageWithinTimeRange() { - return getUsageWithinTimeRangeMap(); - } - - /** - * - * - *
-     * Output only. BigQuery usage statistics over each of the predefined time
-     * ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.Map - getUsageWithinTimeRangeMap() { - return internalGetUsageWithinTimeRange().getImmutableMap(); - } - - /** - * - * - *
-     * Output only. BigQuery usage statistics over each of the predefined time
-     * ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1.UsageStats - getUsageWithinTimeRangeOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.UsageStats defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableUsageWithinTimeRange().ensureBuilderMap(); - return map.containsKey(key) - ? usageWithinTimeRangeConverter.build(map.get(key)) - : defaultValue; - } - - /** - * - * - *
-     * Output only. BigQuery usage statistics over each of the predefined time
-     * ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageStats getUsageWithinTimeRangeOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableUsageWithinTimeRange().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return usageWithinTimeRangeConverter.build(map.get(key)); - } - - public Builder clearUsageWithinTimeRange() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableUsageWithinTimeRange().clear(); - return this; - } - - /** - * - * - *
-     * Output only. BigQuery usage statistics over each of the predefined time
-     * ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeUsageWithinTimeRange(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableUsageWithinTimeRange().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableUsageWithinTimeRange() { - bitField0_ |= 0x00000002; - return internalGetMutableUsageWithinTimeRange().ensureMessageMap(); - } - - /** - * - * - *
-     * Output only. BigQuery usage statistics over each of the predefined time
-     * ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putUsageWithinTimeRange( - java.lang.String key, com.google.cloud.datacatalog.v1.UsageStats value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableUsageWithinTimeRange().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000002; - return this; - } - - /** - * - * - *
-     * Output only. BigQuery usage statistics over each of the predefined time
-     * ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder putAllUsageWithinTimeRange( - java.util.Map values) { - for (java.util.Map.Entry e : - values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableUsageWithinTimeRange().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000002; - return this; - } - - /** - * - * - *
-     * Output only. BigQuery usage statistics over each of the predefined time
-     * ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1.UsageStats.Builder - putUsageWithinTimeRangeBuilderIfAbsent(java.lang.String key) { - java.util.Map - builderMap = internalGetMutableUsageWithinTimeRange().ensureBuilderMap(); - com.google.cloud.datacatalog.v1.UsageStatsOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.datacatalog.v1.UsageStats.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.datacatalog.v1.UsageStats) { - entry = ((com.google.cloud.datacatalog.v1.UsageStats) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.datacatalog.v1.UsageStats.Builder) entry; - } - - private static final class CommonUsageWithinTimeRangeConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.datacatalog.v1.CommonUsageStatsOrBuilder, - com.google.cloud.datacatalog.v1.CommonUsageStats> { - @java.lang.Override - public com.google.cloud.datacatalog.v1.CommonUsageStats build( - com.google.cloud.datacatalog.v1.CommonUsageStatsOrBuilder val) { - if (val instanceof com.google.cloud.datacatalog.v1.CommonUsageStats) { - return (com.google.cloud.datacatalog.v1.CommonUsageStats) val; - } - return ((com.google.cloud.datacatalog.v1.CommonUsageStats.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1.CommonUsageStats> - defaultEntry() { - return CommonUsageWithinTimeRangeDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final CommonUsageWithinTimeRangeConverter commonUsageWithinTimeRangeConverter = - new CommonUsageWithinTimeRangeConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.CommonUsageStatsOrBuilder, - com.google.cloud.datacatalog.v1.CommonUsageStats, - com.google.cloud.datacatalog.v1.CommonUsageStats.Builder> - commonUsageWithinTimeRange_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.CommonUsageStatsOrBuilder, - com.google.cloud.datacatalog.v1.CommonUsageStats, - com.google.cloud.datacatalog.v1.CommonUsageStats.Builder> - internalGetCommonUsageWithinTimeRange() { - if (commonUsageWithinTimeRange_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(commonUsageWithinTimeRangeConverter); - } - return commonUsageWithinTimeRange_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1.CommonUsageStatsOrBuilder, - com.google.cloud.datacatalog.v1.CommonUsageStats, - com.google.cloud.datacatalog.v1.CommonUsageStats.Builder> - internalGetMutableCommonUsageWithinTimeRange() { - if (commonUsageWithinTimeRange_ == null) { - commonUsageWithinTimeRange_ = - new com.google.protobuf.MapFieldBuilder<>(commonUsageWithinTimeRangeConverter); - } - bitField0_ |= 0x00000004; - onChanged(); - return commonUsageWithinTimeRange_; - } - - public int getCommonUsageWithinTimeRangeCount() { - return internalGetCommonUsageWithinTimeRange().ensureBuilderMap().size(); - } - - /** - * - * - *
-     * Common usage statistics over each of the predefined time ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - @java.lang.Override - public boolean containsCommonUsageWithinTimeRange(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetCommonUsageWithinTimeRange().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getCommonUsageWithinTimeRangeMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getCommonUsageWithinTimeRange() { - return getCommonUsageWithinTimeRangeMap(); - } - - /** - * - * - *
-     * Common usage statistics over each of the predefined time ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - @java.lang.Override - public java.util.Map - getCommonUsageWithinTimeRangeMap() { - return internalGetCommonUsageWithinTimeRange().getImmutableMap(); - } - - /** - * - * - *
-     * Common usage statistics over each of the predefined time ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1.CommonUsageStats - getCommonUsageWithinTimeRangeOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.CommonUsageStats defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableCommonUsageWithinTimeRange().ensureBuilderMap(); - return map.containsKey(key) - ? commonUsageWithinTimeRangeConverter.build(map.get(key)) - : defaultValue; - } - - /** - * - * - *
-     * Common usage statistics over each of the predefined time ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.CommonUsageStats getCommonUsageWithinTimeRangeOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableCommonUsageWithinTimeRange().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return commonUsageWithinTimeRangeConverter.build(map.get(key)); - } - - public Builder clearCommonUsageWithinTimeRange() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableCommonUsageWithinTimeRange().clear(); - return this; - } - - /** - * - * - *
-     * Common usage statistics over each of the predefined time ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - public Builder removeCommonUsageWithinTimeRange(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableCommonUsageWithinTimeRange().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableCommonUsageWithinTimeRange() { - bitField0_ |= 0x00000004; - return internalGetMutableCommonUsageWithinTimeRange().ensureMessageMap(); - } - - /** - * - * - *
-     * Common usage statistics over each of the predefined time ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - public Builder putCommonUsageWithinTimeRange( - java.lang.String key, com.google.cloud.datacatalog.v1.CommonUsageStats value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableCommonUsageWithinTimeRange().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000004; - return this; - } - - /** - * - * - *
-     * Common usage statistics over each of the predefined time ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - public Builder putAllCommonUsageWithinTimeRange( - java.util.Map values) { - for (java.util.Map.Entry - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableCommonUsageWithinTimeRange().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000004; - return this; - } - - /** - * - * - *
-     * Common usage statistics over each of the predefined time ranges.
-     *
-     * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - public com.google.cloud.datacatalog.v1.CommonUsageStats.Builder - putCommonUsageWithinTimeRangeBuilderIfAbsent(java.lang.String key) { - java.util.Map - builderMap = internalGetMutableCommonUsageWithinTimeRange().ensureBuilderMap(); - com.google.cloud.datacatalog.v1.CommonUsageStatsOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.datacatalog.v1.CommonUsageStats.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.datacatalog.v1.CommonUsageStats) { - entry = ((com.google.cloud.datacatalog.v1.CommonUsageStats) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.datacatalog.v1.CommonUsageStats.Builder) entry; - } - - private long favoriteCount_; - - /** - * - * - *
-     * Favorite count in the source system.
-     * 
- * - * optional int64 favorite_count = 4; - * - * @return Whether the favoriteCount field is set. - */ - @java.lang.Override - public boolean hasFavoriteCount() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-     * Favorite count in the source system.
-     * 
- * - * optional int64 favorite_count = 4; - * - * @return The favoriteCount. - */ - @java.lang.Override - public long getFavoriteCount() { - return favoriteCount_; - } - - /** - * - * - *
-     * Favorite count in the source system.
-     * 
- * - * optional int64 favorite_count = 4; - * - * @param value The favoriteCount to set. - * @return This builder for chaining. - */ - public Builder setFavoriteCount(long value) { - - favoriteCount_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Favorite count in the source system.
-     * 
- * - * optional int64 favorite_count = 4; - * - * @return This builder for chaining. - */ - public Builder clearFavoriteCount() { - bitField0_ = (bitField0_ & ~0x00000008); - favoriteCount_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.UsageSignal) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UsageSignal) - private static final com.google.cloud.datacatalog.v1.UsageSignal DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UsageSignal(); - } - - public static com.google.cloud.datacatalog.v1.UsageSignal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UsageSignal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageSignal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignalOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignalOrBuilder.java deleted file mode 100644 index 5e0854caaf01..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageSignalOrBuilder.java +++ /dev/null @@ -1,267 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UsageSignalOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UsageSignal) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The end timestamp of the duration of usage statistics.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - - /** - * - * - *
-   * The end timestamp of the duration of usage statistics.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - - /** - * - * - *
-   * The end timestamp of the duration of usage statistics.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. BigQuery usage statistics over each of the predefined time
-   * ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getUsageWithinTimeRangeCount(); - - /** - * - * - *
-   * Output only. BigQuery usage statistics over each of the predefined time
-   * ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - boolean containsUsageWithinTimeRange(java.lang.String key); - - /** Use {@link #getUsageWithinTimeRangeMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getUsageWithinTimeRange(); - - /** - * - * - *
-   * Output only. BigQuery usage statistics over each of the predefined time
-   * ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.Map - getUsageWithinTimeRangeMap(); - - /** - * - * - *
-   * Output only. BigQuery usage statistics over each of the predefined time
-   * ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - /* nullable */ - com.google.cloud.datacatalog.v1.UsageStats getUsageWithinTimeRangeOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.UsageStats defaultValue); - - /** - * - * - *
-   * Output only. BigQuery usage statistics over each of the predefined time
-   * ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.UsageStats> usage_within_time_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1.UsageStats getUsageWithinTimeRangeOrThrow(java.lang.String key); - - /** - * - * - *
-   * Common usage statistics over each of the predefined time ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - int getCommonUsageWithinTimeRangeCount(); - - /** - * - * - *
-   * Common usage statistics over each of the predefined time ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - boolean containsCommonUsageWithinTimeRange(java.lang.String key); - - /** Use {@link #getCommonUsageWithinTimeRangeMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getCommonUsageWithinTimeRange(); - - /** - * - * - *
-   * Common usage statistics over each of the predefined time ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - java.util.Map - getCommonUsageWithinTimeRangeMap(); - - /** - * - * - *
-   * Common usage statistics over each of the predefined time ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - /* nullable */ - com.google.cloud.datacatalog.v1.CommonUsageStats getCommonUsageWithinTimeRangeOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1.CommonUsageStats defaultValue); - - /** - * - * - *
-   * Common usage statistics over each of the predefined time ranges.
-   *
-   * Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1.CommonUsageStats> common_usage_within_time_range = 3; - * - */ - com.google.cloud.datacatalog.v1.CommonUsageStats getCommonUsageWithinTimeRangeOrThrow( - java.lang.String key); - - /** - * - * - *
-   * Favorite count in the source system.
-   * 
- * - * optional int64 favorite_count = 4; - * - * @return Whether the favoriteCount field is set. - */ - boolean hasFavoriteCount(); - - /** - * - * - *
-   * Favorite count in the source system.
-   * 
- * - * optional int64 favorite_count = 4; - * - * @return The favoriteCount. - */ - long getFavoriteCount(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStats.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStats.java deleted file mode 100644 index 2bc7de872608..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStats.java +++ /dev/null @@ -1,821 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Detailed statistics on the entry's usage.
- *
- * Usage statistics have the following limitations:
- *
- * - Only BigQuery tables have them.
- * - They only include BigQuery query jobs.
- * - They might be underestimated because wildcard table references
- * are not yet counted. For more information, see
- * [Querying multiple tables using a wildcard table]
- * (https://cloud.google.com/bigquery/docs/querying-wildcard-tables)
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UsageStats} - */ -@com.google.protobuf.Generated -public final class UsageStats extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.UsageStats) - UsageStatsOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UsageStats"); - } - - // Use UsageStats.newBuilder() to construct. - private UsageStats(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UsageStats() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UsageStats.class, - com.google.cloud.datacatalog.v1.UsageStats.Builder.class); - } - - public static final int TOTAL_COMPLETIONS_FIELD_NUMBER = 1; - private float totalCompletions_ = 0F; - - /** - * - * - *
-   * The number of successful uses of the underlying entry.
-   * 
- * - * float total_completions = 1; - * - * @return The totalCompletions. - */ - @java.lang.Override - public float getTotalCompletions() { - return totalCompletions_; - } - - public static final int TOTAL_FAILURES_FIELD_NUMBER = 2; - private float totalFailures_ = 0F; - - /** - * - * - *
-   * The number of failed attempts to use the underlying entry.
-   * 
- * - * float total_failures = 2; - * - * @return The totalFailures. - */ - @java.lang.Override - public float getTotalFailures() { - return totalFailures_; - } - - public static final int TOTAL_CANCELLATIONS_FIELD_NUMBER = 3; - private float totalCancellations_ = 0F; - - /** - * - * - *
-   * The number of cancelled attempts to use the underlying entry.
-   * 
- * - * float total_cancellations = 3; - * - * @return The totalCancellations. - */ - @java.lang.Override - public float getTotalCancellations() { - return totalCancellations_; - } - - public static final int TOTAL_EXECUTION_TIME_FOR_COMPLETIONS_MILLIS_FIELD_NUMBER = 4; - private float totalExecutionTimeForCompletionsMillis_ = 0F; - - /** - * - * - *
-   * Total time spent only on successful uses, in milliseconds.
-   * 
- * - * float total_execution_time_for_completions_millis = 4; - * - * @return The totalExecutionTimeForCompletionsMillis. - */ - @java.lang.Override - public float getTotalExecutionTimeForCompletionsMillis() { - return totalExecutionTimeForCompletionsMillis_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Float.floatToRawIntBits(totalCompletions_) != 0) { - output.writeFloat(1, totalCompletions_); - } - if (java.lang.Float.floatToRawIntBits(totalFailures_) != 0) { - output.writeFloat(2, totalFailures_); - } - if (java.lang.Float.floatToRawIntBits(totalCancellations_) != 0) { - output.writeFloat(3, totalCancellations_); - } - if (java.lang.Float.floatToRawIntBits(totalExecutionTimeForCompletionsMillis_) != 0) { - output.writeFloat(4, totalExecutionTimeForCompletionsMillis_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(totalCompletions_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, totalCompletions_); - } - if (java.lang.Float.floatToRawIntBits(totalFailures_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, totalFailures_); - } - if (java.lang.Float.floatToRawIntBits(totalCancellations_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, totalCancellations_); - } - if (java.lang.Float.floatToRawIntBits(totalExecutionTimeForCompletionsMillis_) != 0) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 4, totalExecutionTimeForCompletionsMillis_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.UsageStats)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.UsageStats other = - (com.google.cloud.datacatalog.v1.UsageStats) obj; - - if (java.lang.Float.floatToIntBits(getTotalCompletions()) - != java.lang.Float.floatToIntBits(other.getTotalCompletions())) return false; - if (java.lang.Float.floatToIntBits(getTotalFailures()) - != java.lang.Float.floatToIntBits(other.getTotalFailures())) return false; - if (java.lang.Float.floatToIntBits(getTotalCancellations()) - != java.lang.Float.floatToIntBits(other.getTotalCancellations())) return false; - if (java.lang.Float.floatToIntBits(getTotalExecutionTimeForCompletionsMillis()) - != java.lang.Float.floatToIntBits(other.getTotalExecutionTimeForCompletionsMillis())) - return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOTAL_COMPLETIONS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTotalCompletions()); - hash = (37 * hash) + TOTAL_FAILURES_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTotalFailures()); - hash = (37 * hash) + TOTAL_CANCELLATIONS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTotalCancellations()); - hash = (37 * hash) + TOTAL_EXECUTION_TIME_FOR_COMPLETIONS_MILLIS_FIELD_NUMBER; - hash = - (53 * hash) + java.lang.Float.floatToIntBits(getTotalExecutionTimeForCompletionsMillis()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.UsageStats parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.UsageStats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Detailed statistics on the entry's usage.
-   *
-   * Usage statistics have the following limitations:
-   *
-   * - Only BigQuery tables have them.
-   * - They only include BigQuery query jobs.
-   * - They might be underestimated because wildcard table references
-   * are not yet counted. For more information, see
-   * [Querying multiple tables using a wildcard table]
-   * (https://cloud.google.com/bigquery/docs/querying-wildcard-tables)
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.UsageStats} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.UsageStats) - com.google.cloud.datacatalog.v1.UsageStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.UsageStats.class, - com.google.cloud.datacatalog.v1.UsageStats.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.UsageStats.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - totalCompletions_ = 0F; - totalFailures_ = 0F; - totalCancellations_ = 0F; - totalExecutionTimeForCompletionsMillis_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Usage - .internal_static_google_cloud_datacatalog_v1_UsageStats_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageStats getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.UsageStats.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageStats build() { - com.google.cloud.datacatalog.v1.UsageStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageStats buildPartial() { - com.google.cloud.datacatalog.v1.UsageStats result = - new com.google.cloud.datacatalog.v1.UsageStats(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.UsageStats result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalCompletions_ = totalCompletions_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.totalFailures_ = totalFailures_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.totalCancellations_ = totalCancellations_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.totalExecutionTimeForCompletionsMillis_ = totalExecutionTimeForCompletionsMillis_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.UsageStats) { - return mergeFrom((com.google.cloud.datacatalog.v1.UsageStats) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.UsageStats other) { - if (other == com.google.cloud.datacatalog.v1.UsageStats.getDefaultInstance()) return this; - if (java.lang.Float.floatToRawIntBits(other.getTotalCompletions()) != 0) { - setTotalCompletions(other.getTotalCompletions()); - } - if (java.lang.Float.floatToRawIntBits(other.getTotalFailures()) != 0) { - setTotalFailures(other.getTotalFailures()); - } - if (java.lang.Float.floatToRawIntBits(other.getTotalCancellations()) != 0) { - setTotalCancellations(other.getTotalCancellations()); - } - if (java.lang.Float.floatToRawIntBits(other.getTotalExecutionTimeForCompletionsMillis()) - != 0) { - setTotalExecutionTimeForCompletionsMillis( - other.getTotalExecutionTimeForCompletionsMillis()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: - { - totalCompletions_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 21: - { - totalFailures_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 29: - { - totalCancellations_ = input.readFloat(); - bitField0_ |= 0x00000004; - break; - } // case 29 - case 37: - { - totalExecutionTimeForCompletionsMillis_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private float totalCompletions_; - - /** - * - * - *
-     * The number of successful uses of the underlying entry.
-     * 
- * - * float total_completions = 1; - * - * @return The totalCompletions. - */ - @java.lang.Override - public float getTotalCompletions() { - return totalCompletions_; - } - - /** - * - * - *
-     * The number of successful uses of the underlying entry.
-     * 
- * - * float total_completions = 1; - * - * @param value The totalCompletions to set. - * @return This builder for chaining. - */ - public Builder setTotalCompletions(float value) { - - totalCompletions_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The number of successful uses of the underlying entry.
-     * 
- * - * float total_completions = 1; - * - * @return This builder for chaining. - */ - public Builder clearTotalCompletions() { - bitField0_ = (bitField0_ & ~0x00000001); - totalCompletions_ = 0F; - onChanged(); - return this; - } - - private float totalFailures_; - - /** - * - * - *
-     * The number of failed attempts to use the underlying entry.
-     * 
- * - * float total_failures = 2; - * - * @return The totalFailures. - */ - @java.lang.Override - public float getTotalFailures() { - return totalFailures_; - } - - /** - * - * - *
-     * The number of failed attempts to use the underlying entry.
-     * 
- * - * float total_failures = 2; - * - * @param value The totalFailures to set. - * @return This builder for chaining. - */ - public Builder setTotalFailures(float value) { - - totalFailures_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The number of failed attempts to use the underlying entry.
-     * 
- * - * float total_failures = 2; - * - * @return This builder for chaining. - */ - public Builder clearTotalFailures() { - bitField0_ = (bitField0_ & ~0x00000002); - totalFailures_ = 0F; - onChanged(); - return this; - } - - private float totalCancellations_; - - /** - * - * - *
-     * The number of cancelled attempts to use the underlying entry.
-     * 
- * - * float total_cancellations = 3; - * - * @return The totalCancellations. - */ - @java.lang.Override - public float getTotalCancellations() { - return totalCancellations_; - } - - /** - * - * - *
-     * The number of cancelled attempts to use the underlying entry.
-     * 
- * - * float total_cancellations = 3; - * - * @param value The totalCancellations to set. - * @return This builder for chaining. - */ - public Builder setTotalCancellations(float value) { - - totalCancellations_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The number of cancelled attempts to use the underlying entry.
-     * 
- * - * float total_cancellations = 3; - * - * @return This builder for chaining. - */ - public Builder clearTotalCancellations() { - bitField0_ = (bitField0_ & ~0x00000004); - totalCancellations_ = 0F; - onChanged(); - return this; - } - - private float totalExecutionTimeForCompletionsMillis_; - - /** - * - * - *
-     * Total time spent only on successful uses, in milliseconds.
-     * 
- * - * float total_execution_time_for_completions_millis = 4; - * - * @return The totalExecutionTimeForCompletionsMillis. - */ - @java.lang.Override - public float getTotalExecutionTimeForCompletionsMillis() { - return totalExecutionTimeForCompletionsMillis_; - } - - /** - * - * - *
-     * Total time spent only on successful uses, in milliseconds.
-     * 
- * - * float total_execution_time_for_completions_millis = 4; - * - * @param value The totalExecutionTimeForCompletionsMillis to set. - * @return This builder for chaining. - */ - public Builder setTotalExecutionTimeForCompletionsMillis(float value) { - - totalExecutionTimeForCompletionsMillis_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Total time spent only on successful uses, in milliseconds.
-     * 
- * - * float total_execution_time_for_completions_millis = 4; - * - * @return This builder for chaining. - */ - public Builder clearTotalExecutionTimeForCompletionsMillis() { - bitField0_ = (bitField0_ & ~0x00000008); - totalExecutionTimeForCompletionsMillis_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.UsageStats) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.UsageStats) - private static final com.google.cloud.datacatalog.v1.UsageStats DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.UsageStats(); - } - - public static com.google.cloud.datacatalog.v1.UsageStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UsageStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.UsageStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStatsOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStatsOrBuilder.java deleted file mode 100644 index 3db9abdc7d44..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/UsageStatsOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface UsageStatsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.UsageStats) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The number of successful uses of the underlying entry.
-   * 
- * - * float total_completions = 1; - * - * @return The totalCompletions. - */ - float getTotalCompletions(); - - /** - * - * - *
-   * The number of failed attempts to use the underlying entry.
-   * 
- * - * float total_failures = 2; - * - * @return The totalFailures. - */ - float getTotalFailures(); - - /** - * - * - *
-   * The number of cancelled attempts to use the underlying entry.
-   * 
- * - * float total_cancellations = 3; - * - * @return The totalCancellations. - */ - float getTotalCancellations(); - - /** - * - * - *
-   * Total time spent only on successful uses, in milliseconds.
-   * 
- * - * float total_execution_time_for_completions_millis = 4; - * - * @return The totalExecutionTimeForCompletionsMillis. - */ - float getTotalExecutionTimeForCompletionsMillis(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpec.java deleted file mode 100644 index f8938a51718c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpec.java +++ /dev/null @@ -1,1080 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification for vertex dataset resources.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.VertexDatasetSpec} - */ -@com.google.protobuf.Generated -public final class VertexDatasetSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.VertexDatasetSpec) - VertexDatasetSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "VertexDatasetSpec"); - } - - // Use VertexDatasetSpec.newBuilder() to construct. - private VertexDatasetSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private VertexDatasetSpec() { - dataType_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.VertexDatasetSpec.class, - com.google.cloud.datacatalog.v1.VertexDatasetSpec.Builder.class); - } - - /** - * - * - *
-   * Type of data stored in the dataset.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.VertexDatasetSpec.DataType} - */ - public enum DataType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Should not be used.
-     * 
- * - * DATA_TYPE_UNSPECIFIED = 0; - */ - DATA_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Structured data dataset.
-     * 
- * - * TABLE = 1; - */ - TABLE(1), - /** - * - * - *
-     * Image dataset which supports ImageClassification, ImageObjectDetection
-     * and ImageSegmentation problems.
-     * 
- * - * IMAGE = 2; - */ - IMAGE(2), - /** - * - * - *
-     * Document dataset which supports TextClassification, TextExtraction and
-     * TextSentiment problems.
-     * 
- * - * TEXT = 3; - */ - TEXT(3), - /** - * - * - *
-     * Video dataset which supports VideoClassification, VideoObjectTracking and
-     * VideoActionRecognition problems.
-     * 
- * - * VIDEO = 4; - */ - VIDEO(4), - /** - * - * - *
-     * Conversation dataset which supports conversation problems.
-     * 
- * - * CONVERSATION = 5; - */ - CONVERSATION(5), - /** - * - * - *
-     * TimeSeries dataset.
-     * 
- * - * TIME_SERIES = 6; - */ - TIME_SERIES(6), - /** - * - * - *
-     * Document dataset which supports DocumentAnnotation problems.
-     * 
- * - * DOCUMENT = 7; - */ - DOCUMENT(7), - /** - * - * - *
-     * TextToSpeech dataset which supports TextToSpeech problems.
-     * 
- * - * TEXT_TO_SPEECH = 8; - */ - TEXT_TO_SPEECH(8), - /** - * - * - *
-     * Translation dataset which supports Translation problems.
-     * 
- * - * TRANSLATION = 9; - */ - TRANSLATION(9), - /** - * - * - *
-     * Store Vision dataset which is used for HITL integration.
-     * 
- * - * STORE_VISION = 10; - */ - STORE_VISION(10), - /** - * - * - *
-     * Enterprise Knowledge Graph dataset which is used for HITL labeling
-     * integration.
-     * 
- * - * ENTERPRISE_KNOWLEDGE_GRAPH = 11; - */ - ENTERPRISE_KNOWLEDGE_GRAPH(11), - /** - * - * - *
-     * Text prompt dataset which supports Large Language Models.
-     * 
- * - * TEXT_PROMPT = 12; - */ - TEXT_PROMPT(12), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataType"); - } - - /** - * - * - *
-     * Should not be used.
-     * 
- * - * DATA_TYPE_UNSPECIFIED = 0; - */ - public static final int DATA_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * Structured data dataset.
-     * 
- * - * TABLE = 1; - */ - public static final int TABLE_VALUE = 1; - - /** - * - * - *
-     * Image dataset which supports ImageClassification, ImageObjectDetection
-     * and ImageSegmentation problems.
-     * 
- * - * IMAGE = 2; - */ - public static final int IMAGE_VALUE = 2; - - /** - * - * - *
-     * Document dataset which supports TextClassification, TextExtraction and
-     * TextSentiment problems.
-     * 
- * - * TEXT = 3; - */ - public static final int TEXT_VALUE = 3; - - /** - * - * - *
-     * Video dataset which supports VideoClassification, VideoObjectTracking and
-     * VideoActionRecognition problems.
-     * 
- * - * VIDEO = 4; - */ - public static final int VIDEO_VALUE = 4; - - /** - * - * - *
-     * Conversation dataset which supports conversation problems.
-     * 
- * - * CONVERSATION = 5; - */ - public static final int CONVERSATION_VALUE = 5; - - /** - * - * - *
-     * TimeSeries dataset.
-     * 
- * - * TIME_SERIES = 6; - */ - public static final int TIME_SERIES_VALUE = 6; - - /** - * - * - *
-     * Document dataset which supports DocumentAnnotation problems.
-     * 
- * - * DOCUMENT = 7; - */ - public static final int DOCUMENT_VALUE = 7; - - /** - * - * - *
-     * TextToSpeech dataset which supports TextToSpeech problems.
-     * 
- * - * TEXT_TO_SPEECH = 8; - */ - public static final int TEXT_TO_SPEECH_VALUE = 8; - - /** - * - * - *
-     * Translation dataset which supports Translation problems.
-     * 
- * - * TRANSLATION = 9; - */ - public static final int TRANSLATION_VALUE = 9; - - /** - * - * - *
-     * Store Vision dataset which is used for HITL integration.
-     * 
- * - * STORE_VISION = 10; - */ - public static final int STORE_VISION_VALUE = 10; - - /** - * - * - *
-     * Enterprise Knowledge Graph dataset which is used for HITL labeling
-     * integration.
-     * 
- * - * ENTERPRISE_KNOWLEDGE_GRAPH = 11; - */ - public static final int ENTERPRISE_KNOWLEDGE_GRAPH_VALUE = 11; - - /** - * - * - *
-     * Text prompt dataset which supports Large Language Models.
-     * 
- * - * TEXT_PROMPT = 12; - */ - public static final int TEXT_PROMPT_VALUE = 12; - - 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 DataType 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 DataType forNumber(int value) { - switch (value) { - case 0: - return DATA_TYPE_UNSPECIFIED; - case 1: - return TABLE; - case 2: - return IMAGE; - case 3: - return TEXT; - case 4: - return VIDEO; - case 5: - return CONVERSATION; - case 6: - return TIME_SERIES; - case 7: - return DOCUMENT; - case 8: - return TEXT_TO_SPEECH; - case 9: - return TRANSLATION; - case 10: - return STORE_VISION; - case 11: - return ENTERPRISE_KNOWLEDGE_GRAPH; - case 12: - return TEXT_PROMPT; - 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 DataType findValueByNumber(int number) { - return DataType.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.datacatalog.v1.VertexDatasetSpec.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final DataType[] VALUES = values(); - - public static DataType 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 DataType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.VertexDatasetSpec.DataType) - } - - public static final int DATA_ITEM_COUNT_FIELD_NUMBER = 1; - private long dataItemCount_ = 0L; - - /** - * - * - *
-   * The number of DataItems in this Dataset. Only apply for non-structured
-   * Dataset.
-   * 
- * - * int64 data_item_count = 1; - * - * @return The dataItemCount. - */ - @java.lang.Override - public long getDataItemCount() { - return dataItemCount_; - } - - public static final int DATA_TYPE_FIELD_NUMBER = 2; - private int dataType_ = 0; - - /** - * - * - *
-   * Type of the dataset.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; - * - * @return The enum numeric value on the wire for dataType. - */ - @java.lang.Override - public int getDataTypeValue() { - return dataType_; - } - - /** - * - * - *
-   * Type of the dataset.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; - * - * @return The dataType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType getDataType() { - com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType result = - com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType.forNumber(dataType_); - return result == null - ? com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType.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 (dataItemCount_ != 0L) { - output.writeInt64(1, dataItemCount_); - } - if (dataType_ - != com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType.DATA_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, dataType_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (dataItemCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, dataItemCount_); - } - if (dataType_ - != com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType.DATA_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, dataType_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.VertexDatasetSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.VertexDatasetSpec other = - (com.google.cloud.datacatalog.v1.VertexDatasetSpec) obj; - - if (getDataItemCount() != other.getDataItemCount()) return false; - if (dataType_ != other.dataType_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATA_ITEM_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getDataItemCount()); - hash = (37 * hash) + DATA_TYPE_FIELD_NUMBER; - hash = (53 * hash) + dataType_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.VertexDatasetSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification for vertex dataset resources.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.VertexDatasetSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.VertexDatasetSpec) - com.google.cloud.datacatalog.v1.VertexDatasetSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.VertexDatasetSpec.class, - com.google.cloud.datacatalog.v1.VertexDatasetSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.VertexDatasetSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataItemCount_ = 0L; - dataType_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexDatasetSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexDatasetSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.VertexDatasetSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexDatasetSpec build() { - com.google.cloud.datacatalog.v1.VertexDatasetSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexDatasetSpec buildPartial() { - com.google.cloud.datacatalog.v1.VertexDatasetSpec result = - new com.google.cloud.datacatalog.v1.VertexDatasetSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.VertexDatasetSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataItemCount_ = dataItemCount_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.dataType_ = dataType_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.VertexDatasetSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.VertexDatasetSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.VertexDatasetSpec other) { - if (other == com.google.cloud.datacatalog.v1.VertexDatasetSpec.getDefaultInstance()) - return this; - if (other.getDataItemCount() != 0L) { - setDataItemCount(other.getDataItemCount()); - } - if (other.dataType_ != 0) { - setDataTypeValue(other.getDataTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - dataItemCount_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - dataType_ = 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 long dataItemCount_; - - /** - * - * - *
-     * The number of DataItems in this Dataset. Only apply for non-structured
-     * Dataset.
-     * 
- * - * int64 data_item_count = 1; - * - * @return The dataItemCount. - */ - @java.lang.Override - public long getDataItemCount() { - return dataItemCount_; - } - - /** - * - * - *
-     * The number of DataItems in this Dataset. Only apply for non-structured
-     * Dataset.
-     * 
- * - * int64 data_item_count = 1; - * - * @param value The dataItemCount to set. - * @return This builder for chaining. - */ - public Builder setDataItemCount(long value) { - - dataItemCount_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The number of DataItems in this Dataset. Only apply for non-structured
-     * Dataset.
-     * 
- * - * int64 data_item_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearDataItemCount() { - bitField0_ = (bitField0_ & ~0x00000001); - dataItemCount_ = 0L; - onChanged(); - return this; - } - - private int dataType_ = 0; - - /** - * - * - *
-     * Type of the dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; - * - * @return The enum numeric value on the wire for dataType. - */ - @java.lang.Override - public int getDataTypeValue() { - return dataType_; - } - - /** - * - * - *
-     * Type of the dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; - * - * @param value The enum numeric value on the wire for dataType to set. - * @return This builder for chaining. - */ - public Builder setDataTypeValue(int value) { - dataType_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of the dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; - * - * @return The dataType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType getDataType() { - com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType result = - com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType.forNumber(dataType_); - return result == null - ? com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Type of the dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; - * - * @param value The dataType to set. - * @return This builder for chaining. - */ - public Builder setDataType(com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000002; - dataType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of the dataset.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; - * - * @return This builder for chaining. - */ - public Builder clearDataType() { - bitField0_ = (bitField0_ & ~0x00000002); - dataType_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.VertexDatasetSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.VertexDatasetSpec) - private static final com.google.cloud.datacatalog.v1.VertexDatasetSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.VertexDatasetSpec(); - } - - public static com.google.cloud.datacatalog.v1.VertexDatasetSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VertexDatasetSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexDatasetSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpecOrBuilder.java deleted file mode 100644 index 814f5a1ea53b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexDatasetSpecOrBuilder.java +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface VertexDatasetSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.VertexDatasetSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The number of DataItems in this Dataset. Only apply for non-structured
-   * Dataset.
-   * 
- * - * int64 data_item_count = 1; - * - * @return The dataItemCount. - */ - long getDataItemCount(); - - /** - * - * - *
-   * Type of the dataset.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; - * - * @return The enum numeric value on the wire for dataType. - */ - int getDataTypeValue(); - - /** - * - * - *
-   * Type of the dataset.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexDatasetSpec.DataType data_type = 2; - * - * @return The dataType. - */ - com.google.cloud.datacatalog.v1.VertexDatasetSpec.DataType getDataType(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfo.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfo.java deleted file mode 100644 index 59a1c975ff99..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfo.java +++ /dev/null @@ -1,976 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Detail description of the source information of a Vertex model.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.VertexModelSourceInfo} - */ -@com.google.protobuf.Generated -public final class VertexModelSourceInfo extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.VertexModelSourceInfo) - VertexModelSourceInfoOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "VertexModelSourceInfo"); - } - - // Use VertexModelSourceInfo.newBuilder() to construct. - private VertexModelSourceInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private VertexModelSourceInfo() { - sourceType_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.class, - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.Builder.class); - } - - /** - * - * - *
-   * Source of the model.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType} - */ - public enum ModelSourceType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Should not be used.
-     * 
- * - * MODEL_SOURCE_TYPE_UNSPECIFIED = 0; - */ - MODEL_SOURCE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * The Model is uploaded by automl training pipeline.
-     * 
- * - * AUTOML = 1; - */ - AUTOML(1), - /** - * - * - *
-     * The Model is uploaded by user or custom training pipeline.
-     * 
- * - * CUSTOM = 2; - */ - CUSTOM(2), - /** - * - * - *
-     * The Model is registered and sync'ed from BigQuery ML.
-     * 
- * - * BQML = 3; - */ - BQML(3), - /** - * - * - *
-     * The Model is saved or tuned from Model Garden.
-     * 
- * - * MODEL_GARDEN = 4; - */ - MODEL_GARDEN(4), - /** - * - * - *
-     * The Model is saved or tuned from Genie.
-     * 
- * - * GENIE = 5; - */ - GENIE(5), - /** - * - * - *
-     * The Model is uploaded by text embedding finetuning pipeline.
-     * 
- * - * CUSTOM_TEXT_EMBEDDING = 6; - */ - CUSTOM_TEXT_EMBEDDING(6), - /** - * - * - *
-     * The Model is saved or tuned from Marketplace.
-     * 
- * - * MARKETPLACE = 7; - */ - MARKETPLACE(7), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ModelSourceType"); - } - - /** - * - * - *
-     * Should not be used.
-     * 
- * - * MODEL_SOURCE_TYPE_UNSPECIFIED = 0; - */ - public static final int MODEL_SOURCE_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * The Model is uploaded by automl training pipeline.
-     * 
- * - * AUTOML = 1; - */ - public static final int AUTOML_VALUE = 1; - - /** - * - * - *
-     * The Model is uploaded by user or custom training pipeline.
-     * 
- * - * CUSTOM = 2; - */ - public static final int CUSTOM_VALUE = 2; - - /** - * - * - *
-     * The Model is registered and sync'ed from BigQuery ML.
-     * 
- * - * BQML = 3; - */ - public static final int BQML_VALUE = 3; - - /** - * - * - *
-     * The Model is saved or tuned from Model Garden.
-     * 
- * - * MODEL_GARDEN = 4; - */ - public static final int MODEL_GARDEN_VALUE = 4; - - /** - * - * - *
-     * The Model is saved or tuned from Genie.
-     * 
- * - * GENIE = 5; - */ - public static final int GENIE_VALUE = 5; - - /** - * - * - *
-     * The Model is uploaded by text embedding finetuning pipeline.
-     * 
- * - * CUSTOM_TEXT_EMBEDDING = 6; - */ - public static final int CUSTOM_TEXT_EMBEDDING_VALUE = 6; - - /** - * - * - *
-     * The Model is saved or tuned from Marketplace.
-     * 
- * - * MARKETPLACE = 7; - */ - public static final int MARKETPLACE_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 ModelSourceType 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 ModelSourceType forNumber(int value) { - switch (value) { - case 0: - return MODEL_SOURCE_TYPE_UNSPECIFIED; - case 1: - return AUTOML; - case 2: - return CUSTOM; - case 3: - return BQML; - case 4: - return MODEL_GARDEN; - case 5: - return GENIE; - case 6: - return CUSTOM_TEXT_EMBEDDING; - case 7: - return MARKETPLACE; - 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 ModelSourceType findValueByNumber(int number) { - return ModelSourceType.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.datacatalog.v1.VertexModelSourceInfo.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final ModelSourceType[] VALUES = values(); - - public static ModelSourceType 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 ModelSourceType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType) - } - - public static final int SOURCE_TYPE_FIELD_NUMBER = 1; - private int sourceType_ = 0; - - /** - * - * - *
-   * Type of the model source.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; - * - * - * @return The enum numeric value on the wire for sourceType. - */ - @java.lang.Override - public int getSourceTypeValue() { - return sourceType_; - } - - /** - * - * - *
-   * Type of the model source.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; - * - * - * @return The sourceType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType getSourceType() { - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType result = - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType.forNumber( - sourceType_); - return result == null - ? com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType.UNRECOGNIZED - : result; - } - - public static final int COPY_FIELD_NUMBER = 2; - private boolean copy_ = false; - - /** - * - * - *
-   * If this Model is copy of another Model. If true then
-   * [source_type][google.cloud.datacatalog.v1.VertexModelSourceInfo.source_type]
-   * pertains to the original.
-   * 
- * - * bool copy = 2; - * - * @return The copy. - */ - @java.lang.Override - public boolean getCopy() { - return copy_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (sourceType_ - != com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType - .MODEL_SOURCE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, sourceType_); - } - if (copy_ != false) { - output.writeBool(2, copy_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sourceType_ - != com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType - .MODEL_SOURCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, sourceType_); - } - if (copy_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, copy_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.VertexModelSourceInfo)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.VertexModelSourceInfo other = - (com.google.cloud.datacatalog.v1.VertexModelSourceInfo) obj; - - if (sourceType_ != other.sourceType_) return false; - if (getCopy() != other.getCopy()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_TYPE_FIELD_NUMBER; - hash = (53 * hash) + sourceType_; - hash = (37 * hash) + COPY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCopy()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1.VertexModelSourceInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Detail description of the source information of a Vertex model.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.VertexModelSourceInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.VertexModelSourceInfo) - com.google.cloud.datacatalog.v1.VertexModelSourceInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.class, - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.VertexModelSourceInfo.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - sourceType_ = 0; - copy_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexModelSourceInfo_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSourceInfo getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.VertexModelSourceInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSourceInfo build() { - com.google.cloud.datacatalog.v1.VertexModelSourceInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSourceInfo buildPartial() { - com.google.cloud.datacatalog.v1.VertexModelSourceInfo result = - new com.google.cloud.datacatalog.v1.VertexModelSourceInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.VertexModelSourceInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.sourceType_ = sourceType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.copy_ = copy_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.VertexModelSourceInfo) { - return mergeFrom((com.google.cloud.datacatalog.v1.VertexModelSourceInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.VertexModelSourceInfo other) { - if (other == com.google.cloud.datacatalog.v1.VertexModelSourceInfo.getDefaultInstance()) - return this; - if (other.sourceType_ != 0) { - setSourceTypeValue(other.getSourceTypeValue()); - } - if (other.getCopy() != false) { - setCopy(other.getCopy()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - sourceType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - copy_ = 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 int sourceType_ = 0; - - /** - * - * - *
-     * Type of the model source.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; - * - * - * @return The enum numeric value on the wire for sourceType. - */ - @java.lang.Override - public int getSourceTypeValue() { - return sourceType_; - } - - /** - * - * - *
-     * Type of the model source.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; - * - * - * @param value The enum numeric value on the wire for sourceType to set. - * @return This builder for chaining. - */ - public Builder setSourceTypeValue(int value) { - sourceType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of the model source.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; - * - * - * @return The sourceType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType getSourceType() { - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType result = - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType.forNumber( - sourceType_); - return result == null - ? com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Type of the model source.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; - * - * - * @param value The sourceType to set. - * @return This builder for chaining. - */ - public Builder setSourceType( - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - sourceType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of the model source.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearSourceType() { - bitField0_ = (bitField0_ & ~0x00000001); - sourceType_ = 0; - onChanged(); - return this; - } - - private boolean copy_; - - /** - * - * - *
-     * If this Model is copy of another Model. If true then
-     * [source_type][google.cloud.datacatalog.v1.VertexModelSourceInfo.source_type]
-     * pertains to the original.
-     * 
- * - * bool copy = 2; - * - * @return The copy. - */ - @java.lang.Override - public boolean getCopy() { - return copy_; - } - - /** - * - * - *
-     * If this Model is copy of another Model. If true then
-     * [source_type][google.cloud.datacatalog.v1.VertexModelSourceInfo.source_type]
-     * pertains to the original.
-     * 
- * - * bool copy = 2; - * - * @param value The copy to set. - * @return This builder for chaining. - */ - public Builder setCopy(boolean value) { - - copy_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * If this Model is copy of another Model. If true then
-     * [source_type][google.cloud.datacatalog.v1.VertexModelSourceInfo.source_type]
-     * pertains to the original.
-     * 
- * - * bool copy = 2; - * - * @return This builder for chaining. - */ - public Builder clearCopy() { - bitField0_ = (bitField0_ & ~0x00000002); - copy_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.VertexModelSourceInfo) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.VertexModelSourceInfo) - private static final com.google.cloud.datacatalog.v1.VertexModelSourceInfo DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.VertexModelSourceInfo(); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSourceInfo getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VertexModelSourceInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSourceInfo getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfoOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfoOrBuilder.java deleted file mode 100644 index f077636880c0..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSourceInfoOrBuilder.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface VertexModelSourceInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.VertexModelSourceInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Type of the model source.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; - * - * - * @return The enum numeric value on the wire for sourceType. - */ - int getSourceTypeValue(); - - /** - * - * - *
-   * Type of the model source.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType source_type = 1; - * - * - * @return The sourceType. - */ - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.ModelSourceType getSourceType(); - - /** - * - * - *
-   * If this Model is copy of another Model. If true then
-   * [source_type][google.cloud.datacatalog.v1.VertexModelSourceInfo.source_type]
-   * pertains to the original.
-   * 
- * - * bool copy = 2; - * - * @return The copy. - */ - boolean getCopy(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpec.java deleted file mode 100644 index 17a2745140bd..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpec.java +++ /dev/null @@ -1,1587 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Specification for vertex model resources.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.VertexModelSpec} - */ -@com.google.protobuf.Generated -public final class VertexModelSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.VertexModelSpec) - VertexModelSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "VertexModelSpec"); - } - - // Use VertexModelSpec.newBuilder() to construct. - private VertexModelSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private VertexModelSpec() { - versionId_ = ""; - versionAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); - versionDescription_ = ""; - containerImageUri_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexModelSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexModelSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.VertexModelSpec.class, - com.google.cloud.datacatalog.v1.VertexModelSpec.Builder.class); - } - - private int bitField0_; - public static final int VERSION_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object versionId_ = ""; - - /** - * - * - *
-   * The version ID of the model.
-   * 
- * - * string version_id = 1; - * - * @return The versionId. - */ - @java.lang.Override - public java.lang.String getVersionId() { - java.lang.Object ref = versionId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - versionId_ = s; - return s; - } - } - - /** - * - * - *
-   * The version ID of the model.
-   * 
- * - * string version_id = 1; - * - * @return The bytes for versionId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVersionIdBytes() { - java.lang.Object ref = versionId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - versionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERSION_ALIASES_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList versionAliases_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * User provided version aliases so that a model version can be referenced via
-   * alias
-   * 
- * - * repeated string version_aliases = 2; - * - * @return A list containing the versionAliases. - */ - public com.google.protobuf.ProtocolStringList getVersionAliasesList() { - return versionAliases_; - } - - /** - * - * - *
-   * User provided version aliases so that a model version can be referenced via
-   * alias
-   * 
- * - * repeated string version_aliases = 2; - * - * @return The count of versionAliases. - */ - public int getVersionAliasesCount() { - return versionAliases_.size(); - } - - /** - * - * - *
-   * User provided version aliases so that a model version can be referenced via
-   * alias
-   * 
- * - * repeated string version_aliases = 2; - * - * @param index The index of the element to return. - * @return The versionAliases at the given index. - */ - public java.lang.String getVersionAliases(int index) { - return versionAliases_.get(index); - } - - /** - * - * - *
-   * User provided version aliases so that a model version can be referenced via
-   * alias
-   * 
- * - * repeated string version_aliases = 2; - * - * @param index The index of the value to return. - * @return The bytes of the versionAliases at the given index. - */ - public com.google.protobuf.ByteString getVersionAliasesBytes(int index) { - return versionAliases_.getByteString(index); - } - - public static final int VERSION_DESCRIPTION_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object versionDescription_ = ""; - - /** - * - * - *
-   * The description of this version.
-   * 
- * - * string version_description = 3; - * - * @return The versionDescription. - */ - @java.lang.Override - public java.lang.String getVersionDescription() { - java.lang.Object ref = versionDescription_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - versionDescription_ = s; - return s; - } - } - - /** - * - * - *
-   * The description of this version.
-   * 
- * - * string version_description = 3; - * - * @return The bytes for versionDescription. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVersionDescriptionBytes() { - java.lang.Object ref = versionDescription_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - versionDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VERTEX_MODEL_SOURCE_INFO_FIELD_NUMBER = 4; - private com.google.cloud.datacatalog.v1.VertexModelSourceInfo vertexModelSourceInfo_; - - /** - * - * - *
-   * Source of a Vertex model.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - * - * @return Whether the vertexModelSourceInfo field is set. - */ - @java.lang.Override - public boolean hasVertexModelSourceInfo() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Source of a Vertex model.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - * - * @return The vertexModelSourceInfo. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSourceInfo getVertexModelSourceInfo() { - return vertexModelSourceInfo_ == null - ? com.google.cloud.datacatalog.v1.VertexModelSourceInfo.getDefaultInstance() - : vertexModelSourceInfo_; - } - - /** - * - * - *
-   * Source of a Vertex model.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSourceInfoOrBuilder - getVertexModelSourceInfoOrBuilder() { - return vertexModelSourceInfo_ == null - ? com.google.cloud.datacatalog.v1.VertexModelSourceInfo.getDefaultInstance() - : vertexModelSourceInfo_; - } - - public static final int CONTAINER_IMAGE_URI_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object containerImageUri_ = ""; - - /** - * - * - *
-   * URI of the Docker image to be used as the custom container for serving
-   * predictions.
-   * 
- * - * string container_image_uri = 5; - * - * @return The containerImageUri. - */ - @java.lang.Override - public java.lang.String getContainerImageUri() { - java.lang.Object ref = containerImageUri_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - containerImageUri_ = s; - return s; - } - } - - /** - * - * - *
-   * URI of the Docker image to be used as the custom container for serving
-   * predictions.
-   * 
- * - * string container_image_uri = 5; - * - * @return The bytes for containerImageUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContainerImageUriBytes() { - java.lang.Object ref = containerImageUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - containerImageUri_ = 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(versionId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, versionId_); - } - for (int i = 0; i < versionAliases_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, versionAliases_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(versionDescription_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, versionDescription_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getVertexModelSourceInfo()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(containerImageUri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, containerImageUri_); - } - 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(versionId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, versionId_); - } - { - int dataSize = 0; - for (int i = 0; i < versionAliases_.size(); i++) { - dataSize += computeStringSizeNoTag(versionAliases_.getRaw(i)); - } - size += dataSize; - size += 1 * getVersionAliasesList().size(); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(versionDescription_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, versionDescription_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(4, getVertexModelSourceInfo()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(containerImageUri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, containerImageUri_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.VertexModelSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.VertexModelSpec other = - (com.google.cloud.datacatalog.v1.VertexModelSpec) obj; - - if (!getVersionId().equals(other.getVersionId())) return false; - if (!getVersionAliasesList().equals(other.getVersionAliasesList())) return false; - if (!getVersionDescription().equals(other.getVersionDescription())) return false; - if (hasVertexModelSourceInfo() != other.hasVertexModelSourceInfo()) return false; - if (hasVertexModelSourceInfo()) { - if (!getVertexModelSourceInfo().equals(other.getVertexModelSourceInfo())) return false; - } - if (!getContainerImageUri().equals(other.getContainerImageUri())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VERSION_ID_FIELD_NUMBER; - hash = (53 * hash) + getVersionId().hashCode(); - if (getVersionAliasesCount() > 0) { - hash = (37 * hash) + VERSION_ALIASES_FIELD_NUMBER; - hash = (53 * hash) + getVersionAliasesList().hashCode(); - } - hash = (37 * hash) + VERSION_DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getVersionDescription().hashCode(); - if (hasVertexModelSourceInfo()) { - hash = (37 * hash) + VERTEX_MODEL_SOURCE_INFO_FIELD_NUMBER; - hash = (53 * hash) + getVertexModelSourceInfo().hashCode(); - } - hash = (37 * hash) + CONTAINER_IMAGE_URI_FIELD_NUMBER; - hash = (53 * hash) + getContainerImageUri().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.VertexModelSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Specification for vertex model resources.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.VertexModelSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.VertexModelSpec) - com.google.cloud.datacatalog.v1.VertexModelSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexModelSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexModelSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.VertexModelSpec.class, - com.google.cloud.datacatalog.v1.VertexModelSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.VertexModelSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetVertexModelSourceInfoFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - versionId_ = ""; - versionAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); - versionDescription_ = ""; - vertexModelSourceInfo_ = null; - if (vertexModelSourceInfoBuilder_ != null) { - vertexModelSourceInfoBuilder_.dispose(); - vertexModelSourceInfoBuilder_ = null; - } - containerImageUri_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.Datacatalog - .internal_static_google_cloud_datacatalog_v1_VertexModelSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.VertexModelSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSpec build() { - com.google.cloud.datacatalog.v1.VertexModelSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSpec buildPartial() { - com.google.cloud.datacatalog.v1.VertexModelSpec result = - new com.google.cloud.datacatalog.v1.VertexModelSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.VertexModelSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.versionId_ = versionId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - versionAliases_.makeImmutable(); - result.versionAliases_ = versionAliases_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.versionDescription_ = versionDescription_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.vertexModelSourceInfo_ = - vertexModelSourceInfoBuilder_ == null - ? vertexModelSourceInfo_ - : vertexModelSourceInfoBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.containerImageUri_ = containerImageUri_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.VertexModelSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.VertexModelSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.VertexModelSpec other) { - if (other == com.google.cloud.datacatalog.v1.VertexModelSpec.getDefaultInstance()) - return this; - if (!other.getVersionId().isEmpty()) { - versionId_ = other.versionId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.versionAliases_.isEmpty()) { - if (versionAliases_.isEmpty()) { - versionAliases_ = other.versionAliases_; - bitField0_ |= 0x00000002; - } else { - ensureVersionAliasesIsMutable(); - versionAliases_.addAll(other.versionAliases_); - } - onChanged(); - } - if (!other.getVersionDescription().isEmpty()) { - versionDescription_ = other.versionDescription_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasVertexModelSourceInfo()) { - mergeVertexModelSourceInfo(other.getVertexModelSourceInfo()); - } - if (!other.getContainerImageUri().isEmpty()) { - containerImageUri_ = other.containerImageUri_; - 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: - { - versionId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureVersionAliasesIsMutable(); - versionAliases_.add(s); - break; - } // case 18 - case 26: - { - versionDescription_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetVertexModelSourceInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - containerImageUri_ = 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 versionId_ = ""; - - /** - * - * - *
-     * The version ID of the model.
-     * 
- * - * string version_id = 1; - * - * @return The versionId. - */ - public java.lang.String getVersionId() { - java.lang.Object ref = versionId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - versionId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The version ID of the model.
-     * 
- * - * string version_id = 1; - * - * @return The bytes for versionId. - */ - public com.google.protobuf.ByteString getVersionIdBytes() { - java.lang.Object ref = versionId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - versionId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The version ID of the model.
-     * 
- * - * string version_id = 1; - * - * @param value The versionId to set. - * @return This builder for chaining. - */ - public Builder setVersionId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - versionId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The version ID of the model.
-     * 
- * - * string version_id = 1; - * - * @return This builder for chaining. - */ - public Builder clearVersionId() { - versionId_ = getDefaultInstance().getVersionId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * The version ID of the model.
-     * 
- * - * string version_id = 1; - * - * @param value The bytes for versionId to set. - * @return This builder for chaining. - */ - public Builder setVersionIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - versionId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList versionAliases_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureVersionAliasesIsMutable() { - if (!versionAliases_.isModifiable()) { - versionAliases_ = new com.google.protobuf.LazyStringArrayList(versionAliases_); - } - bitField0_ |= 0x00000002; - } - - /** - * - * - *
-     * User provided version aliases so that a model version can be referenced via
-     * alias
-     * 
- * - * repeated string version_aliases = 2; - * - * @return A list containing the versionAliases. - */ - public com.google.protobuf.ProtocolStringList getVersionAliasesList() { - versionAliases_.makeImmutable(); - return versionAliases_; - } - - /** - * - * - *
-     * User provided version aliases so that a model version can be referenced via
-     * alias
-     * 
- * - * repeated string version_aliases = 2; - * - * @return The count of versionAliases. - */ - public int getVersionAliasesCount() { - return versionAliases_.size(); - } - - /** - * - * - *
-     * User provided version aliases so that a model version can be referenced via
-     * alias
-     * 
- * - * repeated string version_aliases = 2; - * - * @param index The index of the element to return. - * @return The versionAliases at the given index. - */ - public java.lang.String getVersionAliases(int index) { - return versionAliases_.get(index); - } - - /** - * - * - *
-     * User provided version aliases so that a model version can be referenced via
-     * alias
-     * 
- * - * repeated string version_aliases = 2; - * - * @param index The index of the value to return. - * @return The bytes of the versionAliases at the given index. - */ - public com.google.protobuf.ByteString getVersionAliasesBytes(int index) { - return versionAliases_.getByteString(index); - } - - /** - * - * - *
-     * User provided version aliases so that a model version can be referenced via
-     * alias
-     * 
- * - * repeated string version_aliases = 2; - * - * @param index The index to set the value at. - * @param value The versionAliases to set. - * @return This builder for chaining. - */ - public Builder setVersionAliases(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureVersionAliasesIsMutable(); - versionAliases_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * User provided version aliases so that a model version can be referenced via
-     * alias
-     * 
- * - * repeated string version_aliases = 2; - * - * @param value The versionAliases to add. - * @return This builder for chaining. - */ - public Builder addVersionAliases(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureVersionAliasesIsMutable(); - versionAliases_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * User provided version aliases so that a model version can be referenced via
-     * alias
-     * 
- * - * repeated string version_aliases = 2; - * - * @param values The versionAliases to add. - * @return This builder for chaining. - */ - public Builder addAllVersionAliases(java.lang.Iterable values) { - ensureVersionAliasesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, versionAliases_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * User provided version aliases so that a model version can be referenced via
-     * alias
-     * 
- * - * repeated string version_aliases = 2; - * - * @return This builder for chaining. - */ - public Builder clearVersionAliases() { - versionAliases_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * User provided version aliases so that a model version can be referenced via
-     * alias
-     * 
- * - * repeated string version_aliases = 2; - * - * @param value The bytes of the versionAliases to add. - * @return This builder for chaining. - */ - public Builder addVersionAliasesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureVersionAliasesIsMutable(); - versionAliases_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object versionDescription_ = ""; - - /** - * - * - *
-     * The description of this version.
-     * 
- * - * string version_description = 3; - * - * @return The versionDescription. - */ - public java.lang.String getVersionDescription() { - java.lang.Object ref = versionDescription_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - versionDescription_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The description of this version.
-     * 
- * - * string version_description = 3; - * - * @return The bytes for versionDescription. - */ - public com.google.protobuf.ByteString getVersionDescriptionBytes() { - java.lang.Object ref = versionDescription_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - versionDescription_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The description of this version.
-     * 
- * - * string version_description = 3; - * - * @param value The versionDescription to set. - * @return This builder for chaining. - */ - public Builder setVersionDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - versionDescription_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The description of this version.
-     * 
- * - * string version_description = 3; - * - * @return This builder for chaining. - */ - public Builder clearVersionDescription() { - versionDescription_ = getDefaultInstance().getVersionDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * The description of this version.
-     * 
- * - * string version_description = 3; - * - * @param value The bytes for versionDescription to set. - * @return This builder for chaining. - */ - public Builder setVersionDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - versionDescription_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1.VertexModelSourceInfo vertexModelSourceInfo_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.VertexModelSourceInfo, - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.Builder, - com.google.cloud.datacatalog.v1.VertexModelSourceInfoOrBuilder> - vertexModelSourceInfoBuilder_; - - /** - * - * - *
-     * Source of a Vertex model.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - * - * @return Whether the vertexModelSourceInfo field is set. - */ - public boolean hasVertexModelSourceInfo() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-     * Source of a Vertex model.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - * - * @return The vertexModelSourceInfo. - */ - public com.google.cloud.datacatalog.v1.VertexModelSourceInfo getVertexModelSourceInfo() { - if (vertexModelSourceInfoBuilder_ == null) { - return vertexModelSourceInfo_ == null - ? com.google.cloud.datacatalog.v1.VertexModelSourceInfo.getDefaultInstance() - : vertexModelSourceInfo_; - } else { - return vertexModelSourceInfoBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Source of a Vertex model.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - */ - public Builder setVertexModelSourceInfo( - com.google.cloud.datacatalog.v1.VertexModelSourceInfo value) { - if (vertexModelSourceInfoBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - vertexModelSourceInfo_ = value; - } else { - vertexModelSourceInfoBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Source of a Vertex model.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - */ - public Builder setVertexModelSourceInfo( - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.Builder builderForValue) { - if (vertexModelSourceInfoBuilder_ == null) { - vertexModelSourceInfo_ = builderForValue.build(); - } else { - vertexModelSourceInfoBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Source of a Vertex model.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - */ - public Builder mergeVertexModelSourceInfo( - com.google.cloud.datacatalog.v1.VertexModelSourceInfo value) { - if (vertexModelSourceInfoBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && vertexModelSourceInfo_ != null - && vertexModelSourceInfo_ - != com.google.cloud.datacatalog.v1.VertexModelSourceInfo.getDefaultInstance()) { - getVertexModelSourceInfoBuilder().mergeFrom(value); - } else { - vertexModelSourceInfo_ = value; - } - } else { - vertexModelSourceInfoBuilder_.mergeFrom(value); - } - if (vertexModelSourceInfo_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Source of a Vertex model.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - */ - public Builder clearVertexModelSourceInfo() { - bitField0_ = (bitField0_ & ~0x00000008); - vertexModelSourceInfo_ = null; - if (vertexModelSourceInfoBuilder_ != null) { - vertexModelSourceInfoBuilder_.dispose(); - vertexModelSourceInfoBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Source of a Vertex model.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - */ - public com.google.cloud.datacatalog.v1.VertexModelSourceInfo.Builder - getVertexModelSourceInfoBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetVertexModelSourceInfoFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Source of a Vertex model.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - */ - public com.google.cloud.datacatalog.v1.VertexModelSourceInfoOrBuilder - getVertexModelSourceInfoOrBuilder() { - if (vertexModelSourceInfoBuilder_ != null) { - return vertexModelSourceInfoBuilder_.getMessageOrBuilder(); - } else { - return vertexModelSourceInfo_ == null - ? com.google.cloud.datacatalog.v1.VertexModelSourceInfo.getDefaultInstance() - : vertexModelSourceInfo_; - } - } - - /** - * - * - *
-     * Source of a Vertex model.
-     * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.VertexModelSourceInfo, - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.Builder, - com.google.cloud.datacatalog.v1.VertexModelSourceInfoOrBuilder> - internalGetVertexModelSourceInfoFieldBuilder() { - if (vertexModelSourceInfoBuilder_ == null) { - vertexModelSourceInfoBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1.VertexModelSourceInfo, - com.google.cloud.datacatalog.v1.VertexModelSourceInfo.Builder, - com.google.cloud.datacatalog.v1.VertexModelSourceInfoOrBuilder>( - getVertexModelSourceInfo(), getParentForChildren(), isClean()); - vertexModelSourceInfo_ = null; - } - return vertexModelSourceInfoBuilder_; - } - - private java.lang.Object containerImageUri_ = ""; - - /** - * - * - *
-     * URI of the Docker image to be used as the custom container for serving
-     * predictions.
-     * 
- * - * string container_image_uri = 5; - * - * @return The containerImageUri. - */ - public java.lang.String getContainerImageUri() { - java.lang.Object ref = containerImageUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - containerImageUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * URI of the Docker image to be used as the custom container for serving
-     * predictions.
-     * 
- * - * string container_image_uri = 5; - * - * @return The bytes for containerImageUri. - */ - public com.google.protobuf.ByteString getContainerImageUriBytes() { - java.lang.Object ref = containerImageUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - containerImageUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * URI of the Docker image to be used as the custom container for serving
-     * predictions.
-     * 
- * - * string container_image_uri = 5; - * - * @param value The containerImageUri to set. - * @return This builder for chaining. - */ - public Builder setContainerImageUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - containerImageUri_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * URI of the Docker image to be used as the custom container for serving
-     * predictions.
-     * 
- * - * string container_image_uri = 5; - * - * @return This builder for chaining. - */ - public Builder clearContainerImageUri() { - containerImageUri_ = getDefaultInstance().getContainerImageUri(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - /** - * - * - *
-     * URI of the Docker image to be used as the custom container for serving
-     * predictions.
-     * 
- * - * string container_image_uri = 5; - * - * @param value The bytes for containerImageUri to set. - * @return This builder for chaining. - */ - public Builder setContainerImageUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - containerImageUri_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.VertexModelSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.VertexModelSpec) - private static final com.google.cloud.datacatalog.v1.VertexModelSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.VertexModelSpec(); - } - - public static com.google.cloud.datacatalog.v1.VertexModelSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public VertexModelSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.VertexModelSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpecOrBuilder.java deleted file mode 100644 index 48f4c4f59b99..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/VertexModelSpecOrBuilder.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface VertexModelSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.VertexModelSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The version ID of the model.
-   * 
- * - * string version_id = 1; - * - * @return The versionId. - */ - java.lang.String getVersionId(); - - /** - * - * - *
-   * The version ID of the model.
-   * 
- * - * string version_id = 1; - * - * @return The bytes for versionId. - */ - com.google.protobuf.ByteString getVersionIdBytes(); - - /** - * - * - *
-   * User provided version aliases so that a model version can be referenced via
-   * alias
-   * 
- * - * repeated string version_aliases = 2; - * - * @return A list containing the versionAliases. - */ - java.util.List getVersionAliasesList(); - - /** - * - * - *
-   * User provided version aliases so that a model version can be referenced via
-   * alias
-   * 
- * - * repeated string version_aliases = 2; - * - * @return The count of versionAliases. - */ - int getVersionAliasesCount(); - - /** - * - * - *
-   * User provided version aliases so that a model version can be referenced via
-   * alias
-   * 
- * - * repeated string version_aliases = 2; - * - * @param index The index of the element to return. - * @return The versionAliases at the given index. - */ - java.lang.String getVersionAliases(int index); - - /** - * - * - *
-   * User provided version aliases so that a model version can be referenced via
-   * alias
-   * 
- * - * repeated string version_aliases = 2; - * - * @param index The index of the value to return. - * @return The bytes of the versionAliases at the given index. - */ - com.google.protobuf.ByteString getVersionAliasesBytes(int index); - - /** - * - * - *
-   * The description of this version.
-   * 
- * - * string version_description = 3; - * - * @return The versionDescription. - */ - java.lang.String getVersionDescription(); - - /** - * - * - *
-   * The description of this version.
-   * 
- * - * string version_description = 3; - * - * @return The bytes for versionDescription. - */ - com.google.protobuf.ByteString getVersionDescriptionBytes(); - - /** - * - * - *
-   * Source of a Vertex model.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - * - * @return Whether the vertexModelSourceInfo field is set. - */ - boolean hasVertexModelSourceInfo(); - - /** - * - * - *
-   * Source of a Vertex model.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - * - * @return The vertexModelSourceInfo. - */ - com.google.cloud.datacatalog.v1.VertexModelSourceInfo getVertexModelSourceInfo(); - - /** - * - * - *
-   * Source of a Vertex model.
-   * 
- * - * .google.cloud.datacatalog.v1.VertexModelSourceInfo vertex_model_source_info = 4; - */ - com.google.cloud.datacatalog.v1.VertexModelSourceInfoOrBuilder - getVertexModelSourceInfoOrBuilder(); - - /** - * - * - *
-   * URI of the Docker image to be used as the custom container for serving
-   * predictions.
-   * 
- * - * string container_image_uri = 5; - * - * @return The containerImageUri. - */ - java.lang.String getContainerImageUri(); - - /** - * - * - *
-   * URI of the Docker image to be used as the custom container for serving
-   * predictions.
-   * 
- * - * string container_image_uri = 5; - * - * @return The bytes for containerImageUri. - */ - com.google.protobuf.ByteString getContainerImageUriBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpec.java deleted file mode 100644 index 637405899f78..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpec.java +++ /dev/null @@ -1,594 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -/** - * - * - *
- * Table view specification.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ViewSpec} - */ -@com.google.protobuf.Generated -public final class ViewSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1.ViewSpec) - ViewSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ViewSpec"); - } - - // Use ViewSpec.newBuilder() to construct. - private ViewSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ViewSpec() { - viewQuery_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_ViewSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_ViewSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ViewSpec.class, - com.google.cloud.datacatalog.v1.ViewSpec.Builder.class); - } - - public static final int VIEW_QUERY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object viewQuery_ = ""; - - /** - * - * - *
-   * Output only. The query that defines the table view.
-   * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The viewQuery. - */ - @java.lang.Override - public java.lang.String getViewQuery() { - java.lang.Object ref = viewQuery_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - viewQuery_ = s; - return s; - } - } - - /** - * - * - *
-   * Output only. The query that defines the table view.
-   * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for viewQuery. - */ - @java.lang.Override - public com.google.protobuf.ByteString getViewQueryBytes() { - java.lang.Object ref = viewQuery_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - viewQuery_ = 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(viewQuery_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, viewQuery_); - } - 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(viewQuery_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, viewQuery_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1.ViewSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1.ViewSpec other = (com.google.cloud.datacatalog.v1.ViewSpec) obj; - - if (!getViewQuery().equals(other.getViewQuery())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VIEW_QUERY_FIELD_NUMBER; - hash = (53 * hash) + getViewQuery().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1.ViewSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Table view specification.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1.ViewSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1.ViewSpec) - com.google.cloud.datacatalog.v1.ViewSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_ViewSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_ViewSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1.ViewSpec.class, - com.google.cloud.datacatalog.v1.ViewSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1.ViewSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - viewQuery_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1_ViewSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ViewSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ViewSpec build() { - com.google.cloud.datacatalog.v1.ViewSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ViewSpec buildPartial() { - com.google.cloud.datacatalog.v1.ViewSpec result = - new com.google.cloud.datacatalog.v1.ViewSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1.ViewSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.viewQuery_ = viewQuery_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1.ViewSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1.ViewSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1.ViewSpec other) { - if (other == com.google.cloud.datacatalog.v1.ViewSpec.getDefaultInstance()) return this; - if (!other.getViewQuery().isEmpty()) { - viewQuery_ = other.viewQuery_; - 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: - { - viewQuery_ = 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 viewQuery_ = ""; - - /** - * - * - *
-     * Output only. The query that defines the table view.
-     * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The viewQuery. - */ - public java.lang.String getViewQuery() { - java.lang.Object ref = viewQuery_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - viewQuery_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Output only. The query that defines the table view.
-     * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for viewQuery. - */ - public com.google.protobuf.ByteString getViewQueryBytes() { - java.lang.Object ref = viewQuery_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - viewQuery_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Output only. The query that defines the table view.
-     * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The viewQuery to set. - * @return This builder for chaining. - */ - public Builder setViewQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - viewQuery_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The query that defines the table view.
-     * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearViewQuery() { - viewQuery_ = getDefaultInstance().getViewQuery(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The query that defines the table view.
-     * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for viewQuery to set. - * @return This builder for chaining. - */ - public Builder setViewQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - viewQuery_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1.ViewSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1.ViewSpec) - private static final com.google.cloud.datacatalog.v1.ViewSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1.ViewSpec(); - } - - public static com.google.cloud.datacatalog.v1.ViewSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViewSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1.ViewSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpecOrBuilder.java deleted file mode 100644 index 352d5e704b98..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/java/com/google/cloud/datacatalog/v1/ViewSpecOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1; - -@com.google.protobuf.Generated -public interface ViewSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1.ViewSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The query that defines the table view.
-   * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The viewQuery. - */ - java.lang.String getViewQuery(); - - /** - * - * - *
-   * Output only. The query that defines the table view.
-   * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for viewQuery. - */ - com.google.protobuf.ByteString getViewQueryBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/bigquery.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/bigquery.proto deleted file mode 100644 index 7da0ef536ff8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/bigquery.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_outer_classname = "BigQueryProto"; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Specification for the BigQuery connection. -message BigQueryConnectionSpec { - // The type of the BigQuery connection. - enum ConnectionType { - // Unspecified type. - CONNECTION_TYPE_UNSPECIFIED = 0; - - // Cloud SQL connection. - CLOUD_SQL = 1; - } - - // The type of the BigQuery connection. - ConnectionType connection_type = 1; - - oneof connection_spec { - // Specification for the BigQuery connection to a Cloud SQL instance. - CloudSqlBigQueryConnectionSpec cloud_sql = 2; - } - - // True if there are credentials attached to the BigQuery connection; false - // otherwise. - bool has_credential = 3; -} - -// Specification for the BigQuery connection to a Cloud SQL instance. -message CloudSqlBigQueryConnectionSpec { - // Supported Cloud SQL database types. - enum DatabaseType { - // Unspecified database type. - DATABASE_TYPE_UNSPECIFIED = 0; - - // Cloud SQL for PostgreSQL. - POSTGRES = 1; - - // Cloud SQL for MySQL. - MYSQL = 2; - } - - // Cloud SQL instance ID in the format of `project:location:instance`. - string instance_id = 1; - - // Database name. - string database = 2; - - // Type of the Cloud SQL database. - DatabaseType type = 3; -} - -// Fields specific for BigQuery routines. -message BigQueryRoutineSpec { - // Paths of the imported libraries. - repeated string imported_libraries = 1; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto deleted file mode 100644 index 6aa023567c64..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/common.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Entry metadata relevant only to the user and private to them. -message PersonalDetails { - // True if the entry is starred by the user; false otherwise. - bool starred = 1; - - // Set if the entry is starred; unset otherwise. - google.protobuf.Timestamp star_time = 2; -} - -// This enum lists all the systems that Data Catalog integrates with. -enum IntegratedSystem { - // Default unknown system. - INTEGRATED_SYSTEM_UNSPECIFIED = 0; - - // BigQuery. - BIGQUERY = 1; - - // Cloud Pub/Sub. - CLOUD_PUBSUB = 2; - - // Dataproc Metastore. - DATAPROC_METASTORE = 3; - - // Dataplex. - DATAPLEX = 4; - - // Cloud Spanner - CLOUD_SPANNER = 6; - - // Cloud Bigtable - CLOUD_BIGTABLE = 7; - - // Cloud Sql - CLOUD_SQL = 8; - - // Looker - LOOKER = 9; - - // Vertex AI - VERTEX_AI = 10; -} - -// This enum describes all the systems that manage -// Taxonomy and PolicyTag resources in DataCatalog. -enum ManagingSystem { - // Default value - MANAGING_SYSTEM_UNSPECIFIED = 0; - - // Dataplex. - MANAGING_SYSTEM_DATAPLEX = 1; - - // Other - MANAGING_SYSTEM_OTHER = 2; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/data_source.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/data_source.proto deleted file mode 100644 index 39d9fdaaa469..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/data_source.proto +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_outer_classname = "DataSourceProto"; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Physical location of an entry. -message DataSource { - // Name of a service that stores the data. - enum Service { - // Default unknown service. - SERVICE_UNSPECIFIED = 0; - - // Google Cloud Storage service. - CLOUD_STORAGE = 1; - - // BigQuery service. - BIGQUERY = 2; - } - - // Service that physically stores the data. - Service service = 1; - - // Full name of a resource as defined by the service. For example: - // - // `//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}` - string resource = 2; - - // Output only. Data Catalog entry name, if applicable. - string source_entry = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - oneof properties { - // Detailed properties of the underlying storage. - StorageProperties storage_properties = 4; - } -} - -// Details the properties of the underlying storage. -message StorageProperties { - // Patterns to identify a set of files for this fileset. - // - // Examples of a valid `file_pattern`: - // - // * `gs://bucket_name/dir/*`: matches all files in the `bucket_name/dir` - // directory - // * `gs://bucket_name/dir/**`: matches all files in the `bucket_name/dir` - // and all subdirectories recursively - // * `gs://bucket_name/file*`: matches files prefixed by `file` in - // `bucket_name` - // * `gs://bucket_name/??.txt`: matches files with two characters followed by - // `.txt` in `bucket_name` - // * `gs://bucket_name/[aeiou].txt`: matches files that contain a single - // vowel character followed by `.txt` in - // `bucket_name` - // * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... - // or `m` followed by `.txt` in `bucket_name` - // * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match - // the `a/*/b` pattern, such as `a/c/b`, `a/d/b` - // * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` - repeated string file_pattern = 1; - - // File type in MIME format, for example, `text/plain`. - string file_type = 2; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto deleted file mode 100644 index 5afe891ddb66..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/datacatalog.proto +++ /dev/null @@ -1,2457 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/datacatalog/v1/bigquery.proto"; -import "google/cloud/datacatalog/v1/common.proto"; -import "google/cloud/datacatalog/v1/data_source.proto"; -import "google/cloud/datacatalog/v1/dataplex_spec.proto"; -import "google/cloud/datacatalog/v1/gcs_fileset_spec.proto"; -import "google/cloud/datacatalog/v1/schema.proto"; -import "google/cloud/datacatalog/v1/search.proto"; -import "google/cloud/datacatalog/v1/table_spec.proto"; -import "google/cloud/datacatalog/v1/tags.proto"; -import "google/cloud/datacatalog/v1/timestamps.proto"; -import "google/cloud/datacatalog/v1/usage.proto"; -import "google/iam/v1/iam_policy.proto"; -import "google/iam/v1/policy.proto"; -import "google/longrunning/operations.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; -option (google.api.resource_definition) = { - type: "datacatalog.googleapis.com/TagTemplateFieldEnumValue" - pattern: "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}" -}; - -// Deprecated: Please use Dataplex Catalog instead. -// -// Data Catalog API service allows you to discover, understand, and manage -// your data. -service DataCatalog { - option deprecated = true; - option (google.api.default_host) = "datacatalog.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Searches Data Catalog for multiple resources like entries and tags that - // match a query. - // - // This is a [Custom Method] - // (https://cloud.google.com/apis/design/custom_methods) that doesn't return - // all information on a resource, only its ID and high level fields. To get - // more information, you can subsequently call specific get methods. - // - // Note: Data Catalog search queries don't guarantee full recall. Results - // that match your query might not be returned, even in subsequent - // result pages. Additionally, returned (and not returned) results can vary - // if you repeat search queries. - // - // For more information, see [Data Catalog search syntax] - // (https://cloud.google.com/data-catalog/docs/how-to/search-reference). - rpc SearchCatalog(SearchCatalogRequest) returns (SearchCatalogResponse) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/catalog:search" - body: "*" - }; - option (google.api.method_signature) = "scope,query"; - } - - // Creates an entry group. - // - // An entry group contains logically related entries together with [Cloud - // Identity and Access Management](/data-catalog/docs/concepts/iam) policies. - // These policies specify users who can create, edit, and view entries - // within entry groups. - // - // Data Catalog automatically creates entry groups with names that start with - // the `@` symbol for the following resources: - // - // * BigQuery entries (`@bigquery`) - // * Pub/Sub topics (`@pubsub`) - // * Dataproc Metastore services (`@dataproc_metastore_{SERVICE_NAME_HASH}`) - // - // You can create your own entry groups for Cloud Storage fileset entries - // and custom entries together with the corresponding IAM policies. - // User-created entry groups can't contain the `@` symbol, it is reserved - // for automatically created groups. - // - // Entry groups, like entries, can be searched. - // - // A maximum of 10,000 entry groups may be created per organization across all - // locations. - // - // You must enable the Data Catalog API in the project identified by - // the `parent` parameter. For more information, see [Data Catalog resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc CreateEntryGroup(CreateEntryGroupRequest) returns (EntryGroup) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/entryGroups" - body: "entry_group" - }; - option (google.api.method_signature) = "parent,entry_group_id,entry_group"; - } - - // Gets an entry group. - rpc GetEntryGroup(GetEntryGroupRequest) returns (EntryGroup) { - option deprecated = true; - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/entryGroups/*}" - }; - option (google.api.method_signature) = "name"; - option (google.api.method_signature) = "name,read_mask"; - } - - // Updates an entry group. - // - // You must enable the Data Catalog API in the project identified by - // the `entry_group.name` parameter. For more information, see [Data Catalog - // resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc UpdateEntryGroup(UpdateEntryGroupRequest) returns (EntryGroup) { - option deprecated = true; - option (google.api.http) = { - patch: "/v1/{entry_group.name=projects/*/locations/*/entryGroups/*}" - body: "entry_group" - }; - option (google.api.method_signature) = "entry_group"; - option (google.api.method_signature) = "entry_group,update_mask"; - } - - // Deletes an entry group. - // - // You must enable the Data Catalog API in the project - // identified by the `name` parameter. For more information, see [Data Catalog - // resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc DeleteEntryGroup(DeleteEntryGroupRequest) - returns (google.protobuf.Empty) { - option deprecated = true; - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/entryGroups/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists entry groups. - rpc ListEntryGroups(ListEntryGroupsRequest) - returns (ListEntryGroupsResponse) { - option deprecated = true; - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/entryGroups" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates an entry. - // - // You can create entries only with 'FILESET', 'CLUSTER', 'DATA_STREAM', - // or custom types. Data Catalog automatically creates entries with other - // types during metadata ingestion from integrated systems. - // - // You must enable the Data Catalog API in the project identified by - // the `parent` parameter. For more information, see [Data Catalog resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - // - // An entry group can have a maximum of 100,000 entries. - rpc CreateEntry(CreateEntryRequest) returns (Entry) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*/entryGroups/*}/entries" - body: "entry" - }; - option (google.api.method_signature) = "parent,entry_id,entry"; - } - - // Updates an existing entry. - // - // You must enable the Data Catalog API in the project identified by - // the `entry.name` parameter. For more information, see [Data Catalog - // resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc UpdateEntry(UpdateEntryRequest) returns (Entry) { - option deprecated = true; - option (google.api.http) = { - patch: "/v1/{entry.name=projects/*/locations/*/entryGroups/*/entries/*}" - body: "entry" - }; - option (google.api.method_signature) = "entry"; - option (google.api.method_signature) = "entry,update_mask"; - } - - // Deletes an existing entry. - // - // You can delete only the entries created by the - // [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry] - // method. - // - // You must enable the Data Catalog API in the project identified by - // the `name` parameter. For more information, see [Data Catalog - // resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc DeleteEntry(DeleteEntryRequest) returns (google.protobuf.Empty) { - option deprecated = true; - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Gets an entry. - rpc GetEntry(GetEntryRequest) returns (Entry) { - option deprecated = true; - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Gets an entry by its target resource name. - // - // The resource name comes from the source Google Cloud Platform service. - rpc LookupEntry(LookupEntryRequest) returns (Entry) { - option deprecated = true; - option (google.api.http) = { - get: "/v1/entries:lookup" - }; - } - - // Lists entries. - // - // Note: Currently, this method can list only custom entries. - // To get a list of both custom and automatically created entries, use - // [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. - rpc ListEntries(ListEntriesRequest) returns (ListEntriesResponse) { - option deprecated = true; - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*/entryGroups/*}/entries" - }; - option (google.api.method_signature) = "parent"; - } - - // Modifies entry overview, part of the business context of an - // [Entry][google.cloud.datacatalog.v1.Entry]. - // - // To call this method, you must have the `datacatalog.entries.updateOverview` - // IAM permission on the corresponding project. - rpc ModifyEntryOverview(ModifyEntryOverviewRequest) returns (EntryOverview) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:modifyEntryOverview" - body: "*" - }; - } - - // Modifies contacts, part of the business context of an - // [Entry][google.cloud.datacatalog.v1.Entry]. - // - // To call this method, you must have the `datacatalog.entries.updateContacts` - // IAM permission on the corresponding project. - rpc ModifyEntryContacts(ModifyEntryContactsRequest) returns (Contacts) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:modifyEntryContacts" - body: "*" - }; - } - - // Creates a tag template. - // - // You must enable the Data Catalog API in the project identified by the - // `parent` parameter. - // For more information, see [Data Catalog resource project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc CreateTagTemplate(CreateTagTemplateRequest) returns (TagTemplate) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/tagTemplates" - body: "tag_template" - }; - option (google.api.method_signature) = - "parent,tag_template_id,tag_template"; - } - - // Gets a tag template. - rpc GetTagTemplate(GetTagTemplateRequest) returns (TagTemplate) { - option deprecated = true; - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/tagTemplates/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a tag template. - // - // You can't update template fields with this method. These fields are - // separate resources with their own create, update, and delete methods. - // - // You must enable the Data Catalog API in the project identified by - // the `tag_template.name` parameter. For more information, see [Data Catalog - // resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc UpdateTagTemplate(UpdateTagTemplateRequest) returns (TagTemplate) { - option deprecated = true; - option (google.api.http) = { - patch: "/v1/{tag_template.name=projects/*/locations/*/tagTemplates/*}" - body: "tag_template" - }; - option (google.api.method_signature) = "tag_template"; - option (google.api.method_signature) = "tag_template,update_mask"; - } - - // Deletes a tag template and all tags that use it. - // - // You must enable the Data Catalog API in the project identified by - // the `name` parameter. For more information, see [Data Catalog resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc DeleteTagTemplate(DeleteTagTemplateRequest) - returns (google.protobuf.Empty) { - option deprecated = true; - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/tagTemplates/*}" - }; - option (google.api.method_signature) = "name,force"; - } - - // Creates a field in a tag template. - // - // You must enable the Data Catalog API in the project identified by - // the `parent` parameter. For more information, see [Data Catalog resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc CreateTagTemplateField(CreateTagTemplateFieldRequest) - returns (TagTemplateField) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*/tagTemplates/*}/fields" - body: "tag_template_field" - }; - option (google.api.method_signature) = - "parent,tag_template_field_id,tag_template_field"; - } - - // Updates a field in a tag template. - // - // You can't update the field type with this method. - // - // You must enable the Data Catalog API in the project - // identified by the `name` parameter. For more information, see [Data Catalog - // resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc UpdateTagTemplateField(UpdateTagTemplateFieldRequest) - returns (TagTemplateField) { - option deprecated = true; - option (google.api.http) = { - patch: "/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*}" - body: "tag_template_field" - }; - option (google.api.method_signature) = "name,tag_template_field"; - option (google.api.method_signature) = - "name,tag_template_field,update_mask"; - } - - // Renames a field in a tag template. - // - // You must enable the Data Catalog API in the project identified by the - // `name` parameter. For more information, see [Data Catalog resource project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc RenameTagTemplateField(RenameTagTemplateFieldRequest) - returns (TagTemplateField) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*}:rename" - body: "*" - }; - option (google.api.method_signature) = "name,new_tag_template_field_id"; - } - - // Renames an enum value in a tag template. - // - // Within a single enum field, enum values must be unique. - rpc RenameTagTemplateFieldEnumValue(RenameTagTemplateFieldEnumValueRequest) - returns (TagTemplateField) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*/enumValues/*}:rename" - body: "*" - }; - option (google.api.method_signature) = "name,new_enum_value_display_name"; - } - - // Deletes a field in a tag template and all uses of this field from the tags - // based on this template. - // - // You must enable the Data Catalog API in the project identified by - // the `name` parameter. For more information, see [Data Catalog resource - // project](https://cloud.google.com/data-catalog/docs/concepts/resource-project). - rpc DeleteTagTemplateField(DeleteTagTemplateFieldRequest) - returns (google.protobuf.Empty) { - option deprecated = true; - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/tagTemplates/*/fields/*}" - }; - option (google.api.method_signature) = "name,force"; - } - - // Creates a tag and assigns it to: - // - // * An [Entry][google.cloud.datacatalog.v1.Entry] if the method name is - // `projects.locations.entryGroups.entries.tags.create`. - // * Or [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]if the method - // name is `projects.locations.entryGroups.tags.create`. - // - // Note: The project identified by the `parent` parameter for the [tag] - // (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters) - // and the [tag template] - // (https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters) - // used to create the tag must be in the same organization. - rpc CreateTag(CreateTagRequest) returns (Tag) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags" - body: "tag" - additional_bindings { - post: "/v1/{parent=projects/*/locations/*/entryGroups/*}/tags" - body: "tag" - } - }; - option (google.api.method_signature) = "parent,tag"; - } - - // Updates an existing tag. - rpc UpdateTag(UpdateTagRequest) returns (Tag) { - option deprecated = true; - option (google.api.http) = { - patch: "/v1/{tag.name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}" - body: "tag" - additional_bindings { - patch: "/v1/{tag.name=projects/*/locations/*/entryGroups/*/tags/*}" - body: "tag" - } - }; - option (google.api.method_signature) = "tag"; - option (google.api.method_signature) = "tag,update_mask"; - } - - // Deletes a tag. - rpc DeleteTag(DeleteTagRequest) returns (google.protobuf.Empty) { - option deprecated = true; - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}" - additional_bindings { - delete: "/v1/{name=projects/*/locations/*/entryGroups/*/tags/*}" - } - }; - option (google.api.method_signature) = "name"; - } - - // Lists tags assigned to an [Entry][google.cloud.datacatalog.v1.Entry]. - // The [columns][google.cloud.datacatalog.v1.Tag.column] in the response are - // lowercased. - rpc ListTags(ListTagsRequest) returns (ListTagsResponse) { - option deprecated = true; - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags" - additional_bindings { - get: "/v1/{parent=projects/*/locations/*/entryGroups/*}/tags" - } - }; - option (google.api.method_signature) = "parent"; - } - - // `ReconcileTags` creates or updates a list of tags on the entry. - // If the - // [ReconcileTagsRequest.force_delete_missing][google.cloud.datacatalog.v1.ReconcileTagsRequest.force_delete_missing] - // parameter is set, the operation deletes tags not included in the input tag - // list. - // - // `ReconcileTags` returns a [long-running operation] - // [google.longrunning.Operation] resource that can be queried with - // [Operations.GetOperation][google.longrunning.Operations.GetOperation] - // to return [ReconcileTagsMetadata] - // [google.cloud.datacatalog.v1.ReconcileTagsMetadata] and - // a [ReconcileTagsResponse] - // [google.cloud.datacatalog.v1.ReconcileTagsResponse] message. - rpc ReconcileTags(ReconcileTagsRequest) - returns (google.longrunning.Operation) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags:reconcile" - body: "*" - }; - option (google.longrunning.operation_info) = { - response_type: "ReconcileTagsResponse" - metadata_type: "ReconcileTagsMetadata" - }; - } - - // Marks an [Entry][google.cloud.datacatalog.v1.Entry] as starred by - // the current user. Starring information is private to each user. - rpc StarEntry(StarEntryRequest) returns (StarEntryResponse) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:star" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Marks an [Entry][google.cloud.datacatalog.v1.Entry] as NOT starred by - // the current user. Starring information is private to each user. - rpc UnstarEntry(UnstarEntryRequest) returns (UnstarEntryResponse) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/entryGroups/*/entries/*}:unstar" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Sets an access control policy for a resource. Replaces any existing - // policy. - // - // Supported resources are: - // - // - Tag templates - // - Entry groups - // - // Note: This method sets policies only within Data Catalog and can't be - // used to manage policies in BigQuery, Pub/Sub, Dataproc Metastore, and any - // external Google Cloud Platform resources synced with the Data Catalog. - // - // To call this method, you must have the following Google IAM permissions: - // - // - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag - // templates. - // - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) - returns (google.iam.v1.Policy) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{resource=projects/*/locations/*/tagTemplates/*}:setIamPolicy" - body: "*" - additional_bindings { - post: "/v1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy" - body: "*" - } - }; - option (google.api.method_signature) = "resource,policy"; - } - - // Gets the access control policy for a resource. - // - // May return: - // - // * A`NOT_FOUND` error if the resource doesn't exist or you don't have the - // permission to view it. - // * An empty policy if the resource exists but doesn't have a set policy. - // - // Supported resources are: - // - // - Tag templates - // - Entry groups - // - // Note: This method doesn't get policies from Google Cloud Platform - // resources ingested into Data Catalog. - // - // To call this method, you must have the following Google IAM permissions: - // - // - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag - // templates. - // - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) - returns (google.iam.v1.Policy) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{resource=projects/*/locations/*/tagTemplates/*}:getIamPolicy" - body: "*" - additional_bindings { - post: "/v1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy" - body: "*" - } - additional_bindings { - post: "/v1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:getIamPolicy" - body: "*" - } - }; - option (google.api.method_signature) = "resource"; - } - - // Gets your permissions on a resource. - // - // Returns an empty set of permissions if the resource doesn't exist. - // - // Supported resources are: - // - // - Tag templates - // - Entry groups - // - // Note: This method gets policies only within Data Catalog and can't be - // used to get policies from BigQuery, Pub/Sub, Dataproc Metastore, and any - // external Google Cloud Platform resources ingested into Data Catalog. - // - // No Google IAM permissions are required to call this method. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) - returns (google.iam.v1.TestIamPermissionsResponse) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{resource=projects/*/locations/*/tagTemplates/*}:testIamPermissions" - body: "*" - additional_bindings { - post: "/v1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions" - body: "*" - } - additional_bindings { - post: "/v1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:testIamPermissions" - body: "*" - } - }; - } - - // Imports entries from a source, such as data previously dumped into a - // Cloud Storage bucket, into Data Catalog. Import of entries - // is a sync operation that reconciles the state of the third-party system - // with the Data Catalog. - // - // `ImportEntries` accepts source data snapshots of a third-party system. - // Snapshot should be delivered as a .wire or base65-encoded .txt file - // containing a sequence of Protocol Buffer messages of - // [DumpItem][google.cloud.datacatalog.v1.DumpItem] type. - // - // `ImportEntries` returns a [long-running operation] - // [google.longrunning.Operation] resource that can be queried with - // [Operations.GetOperation][google.longrunning.Operations.GetOperation] - // to return - // [ImportEntriesMetadata][google.cloud.datacatalog.v1.ImportEntriesMetadata] - // and an - // [ImportEntriesResponse][google.cloud.datacatalog.v1.ImportEntriesResponse] - // message. - rpc ImportEntries(ImportEntriesRequest) - returns (google.longrunning.Operation) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*/entryGroups/*}/entries:import" - body: "*" - }; - option (google.longrunning.operation_info) = { - response_type: "ImportEntriesResponse" - metadata_type: "ImportEntriesMetadata" - }; - } - - // Sets the configuration related to the migration to Dataplex for an - // organization or project. - rpc SetConfig(SetConfigRequest) returns (MigrationConfig) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{name=organizations/*/locations/*}:setConfig" - body: "*" - additional_bindings { - post: "/v1/{name=projects/*/locations/*}:setConfig" - body: "*" - } - }; - } - - // Retrieves the configuration related to the migration from Data Catalog to - // Dataplex for a specific organization, including all the projects under it - // which have a separate configuration set. - rpc RetrieveConfig(RetrieveConfigRequest) returns (OrganizationConfig) { - option deprecated = true; - option (google.api.http) = { - get: "/v1/{name=organizations/*/locations/*}:retrieveConfig" - }; - } - - // Retrieves the effective configuration related to the migration from Data - // Catalog to Dataplex for a specific organization or project. If there is no - // specific configuration set for the resource, the setting is checked - // hierarchicahlly through the ancestors of the resource, starting from the - // resource itself. - rpc RetrieveEffectiveConfig(RetrieveEffectiveConfigRequest) - returns (MigrationConfig) { - option deprecated = true; - option (google.api.http) = { - get: "/v1/{name=organizations/*/locations/*}:retrieveEffectiveConfig" - additional_bindings { - get: "/v1/{name=projects/*/locations/*}:retrieveEffectiveConfig" - } - }; - } -} - -// Request message for -// [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. -message SearchCatalogRequest { - // The criteria that select the subspace used for query matching. - message Scope { - // The list of organization IDs to search within. - // - // To find your organization ID, follow the steps from - // [Creating and managing organizations] - // (/resource-manager/docs/creating-managing-organization). - repeated string include_org_ids = 2; - - // The list of project IDs to search within. - // - // For more information on the distinction between project names, IDs, and - // numbers, see [Projects](/docs/overview/#projects). - repeated string include_project_ids = 3; - - // If `true`, include Google Cloud public datasets in - // search results. By default, they are excluded. - // - // See [Google Cloud Public Datasets](/public-datasets) for more - // information. - bool include_gcp_public_datasets = 7; - - // Optional. The list of locations to search within. If empty, all locations - // are searched. - // - // Returns an error if any location in the list isn't one of the [Supported - // regions](https://cloud.google.com/data-catalog/docs/concepts/regions#supported_regions). - // - // If a location is unreachable, its name is returned in the - // `SearchCatalogResponse.unreachable` field. To get additional information - // on the error, repeat the search request and set the location name as the - // value of this parameter. - repeated string restricted_locations = 16 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If `true`, search only among starred entries. - // - // By default, all results are returned, starred or not. - bool starred_only = 18 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. This field is deprecated. The search mechanism for public and - // private tag templates is the same. - bool include_public_tag_templates = 19 - [deprecated = true, (google.api.field_behavior) = OPTIONAL]; - } - - // Required. The scope of this search request. - // - // The `scope` is invalid if `include_org_ids`, `include_project_ids` are - // empty AND `include_gcp_public_datasets` is set to `false`. In this case, - // the request returns an error. - Scope scope = 6 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The query string with a minimum of 3 characters and specific - // syntax. For more information, see [Data Catalog search - // syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference). - // - // An empty query string returns all data assets (in the specified scope) - // that you have access to. - // - // A query string can be a simple `xyz` or qualified by predicates: - // - // * `name:x` - // * `column:y` - // * `description:z` - string query = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Upper bound on the number of results you can get in a single response. - // - // Can't be negative or 0, defaults to 10 in this case. - // The maximum number is 1000. If exceeded, throws an "invalid argument" - // exception. - int32 page_size = 2; - - // Optional. Pagination token that, if specified, returns the next page of - // search results. If empty, returns the first page. - // - // This token is returned in the - // [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1.SearchCatalogResponse.next_page_token] - // field of the response to a previous - // [SearchCatalogRequest][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog] - // call. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Specifies the order of results. - // - // Currently supported case-sensitive values are: - // - // * `relevance` that can only be descending - // * `last_modified_timestamp [asc|desc]` with descending (`desc`) as default - // * `default` that can only be descending - // - // Search queries don't guarantee full recall. Results that match your query - // might not be returned, even in subsequent result pages. Additionally, - // returned (and not returned) results can vary if you repeat search queries. - // If you are experiencing recall issues and you don't have to fetch the - // results in any specific order, consider setting this parameter to - // `default`. - // - // If this parameter is omitted, it defaults to the descending `relevance`. - string order_by = 5; - - // Optional. If set, use searchAll permission granted on organizations from - // `include_org_ids` and projects from `include_project_ids` instead of the - // fine grained per resource permissions when filtering the search results. - // The only allowed `order_by` criteria for admin_search mode is `default`. - // Using this flags guarantees a full recall of the search results. - bool admin_search = 17 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for -// [SearchCatalog][google.cloud.datacatalog.v1.DataCatalog.SearchCatalog]. -message SearchCatalogResponse { - // Search results. - repeated SearchCatalogResult results = 1; - - // The approximate total number of entries matched by the query. - int32 total_size = 2; - - // Pagination token that can be used in subsequent calls to retrieve the next - // page of results. - string next_page_token = 3; - - // Unreachable locations. Search results don't include data from those - // locations. - // - // To get additional information on an error, repeat the search request and - // restrict it to specific locations by setting the - // `SearchCatalogRequest.scope.restricted_locations` parameter. - repeated string unreachable = 6; -} - -// Request message for -// [CreateEntryGroup][google.cloud.datacatalog.v1.DataCatalog.CreateEntryGroup]. -message CreateEntryGroupRequest { - // Required. The names of the project and location that the new entry group - // belongs to. - // - // Note: The entry group itself and its child resources might not be - // stored in the location specified in its name. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // Required. The ID of the entry group to create. - // - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), and must start with a letter or underscore. - // The maximum size is 64 bytes when encoded in UTF-8. - string entry_group_id = 3 [(google.api.field_behavior) = REQUIRED]; - - // The entry group to create. Defaults to empty. - EntryGroup entry_group = 2; -} - -// Request message for -// [UpdateEntryGroup][google.cloud.datacatalog.v1.DataCatalog.UpdateEntryGroup]. -message UpdateEntryGroupRequest { - // Required. Updates for the entry group. The `name` field must be set. - EntryGroup entry_group = 1 [(google.api.field_behavior) = REQUIRED]; - - // Names of fields whose values to overwrite on an entry group. - // - // If this parameter is absent or empty, all modifiable fields - // are overwritten. If such fields are non-required and omitted in the - // request body, their values are emptied. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [GetEntryGroup][google.cloud.datacatalog.v1.DataCatalog.GetEntryGroup]. -message GetEntryGroupRequest { - // Required. The name of the entry group to get. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // The fields to return. If empty or omitted, all fields are returned. - google.protobuf.FieldMask read_mask = 2; -} - -// Request message for -// [DeleteEntryGroup][google.cloud.datacatalog.v1.DataCatalog.DeleteEntryGroup]. -message DeleteEntryGroupRequest { - // Required. The name of the entry group to delete. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // Optional. If true, deletes all entries in the entry group. - bool force = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request message for -// [ListEntryGroups][google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups]. -message ListEntryGroupsRequest { - // Required. The name of the location that contains the entry groups to list. - // - // Can be provided as a URL. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // Optional. The maximum number of items to return. - // - // Default is 10. Maximum limit is 1000. - // Throws an invalid argument if `page_size` is greater than 1000. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Pagination token that specifies the next page to return. - // If empty, returns the first page. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for -// [ListEntryGroups][google.cloud.datacatalog.v1.DataCatalog.ListEntryGroups]. -message ListEntryGroupsResponse { - // Entry group details. - repeated EntryGroup entry_groups = 1; - - // Pagination token to specify in the next call to retrieve the next page of - // results. Empty if there are no more items. - string next_page_token = 2; -} - -// Request message for -// [CreateEntry][google.cloud.datacatalog.v1.DataCatalog.CreateEntry]. -message CreateEntryRequest { - // Required. The name of the entry group this entry belongs to. - // - // Note: The entry itself and its child resources might not be stored in - // the location specified in its name. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // Required. The ID of the entry to create. - // - // The ID must contain only letters (a-z, A-Z), numbers (0-9), - // and underscores (_). - // The maximum size is 64 bytes when encoded in UTF-8. - string entry_id = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The entry to create. - Entry entry = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [UpdateEntry][google.cloud.datacatalog.v1.DataCatalog.UpdateEntry]. -message UpdateEntryRequest { - // Required. Updates for the entry. The `name` field must be set. - Entry entry = 1 [(google.api.field_behavior) = REQUIRED]; - - // Names of fields whose values to overwrite on an entry. - // - // If this parameter is absent or empty, all modifiable fields - // are overwritten. If such fields are non-required and omitted in the - // request body, their values are emptied. - // - // You can modify only the fields listed below. - // - // For entries with type `DATA_STREAM`: - // - // * `schema` - // - // For entries with type `FILESET`: - // - // * `schema` - // * `display_name` - // * `description` - // * `gcs_fileset_spec` - // * `gcs_fileset_spec.file_patterns` - // - // For entries with `user_specified_type`: - // - // * `schema` - // * `display_name` - // * `description` - // * `user_specified_type` - // * `user_specified_system` - // * `linked_resource` - // * `source_system_timestamps` - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [DeleteEntry][google.cloud.datacatalog.v1.DataCatalog.DeleteEntry]. -message DeleteEntryRequest { - // Required. The name of the entry to delete. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; -} - -// Request message for -// [GetEntry][google.cloud.datacatalog.v1.DataCatalog.GetEntry]. -message GetEntryRequest { - // Required. The name of the entry to get. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; -} - -// Request message for -// [LookupEntry][google.cloud.datacatalog.v1.DataCatalog.LookupEntry]. -message LookupEntryRequest { - // Required. A full name, SQL name, or a fully qualified name of a - // Google Cloud Platform resource. - oneof target_name { - // The full name of the Google Cloud Platform resource the Data Catalog - // entry represents. For more information, see [Full Resource Name] - // (https://cloud.google.com/apis/design/resource_names#full_resource_name). - // - // Full names are case-sensitive. For example: - // - // * `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` - // * `//pubsub.googleapis.com/projects/{PROJECT_ID}/topics/{TOPIC_ID}` - string linked_resource = 1; - - // The SQL name of the entry. SQL names are case-sensitive. - // - // Examples: - // - // * `pubsub.topic.{PROJECT_ID}.{TOPIC_ID}` - // * `pubsub.topic.{PROJECT_ID}.`\``{TOPIC.ID.SEPARATED.WITH.DOTS}`\` - // * `bigquery.table.{PROJECT_ID}.{DATASET_ID}.{TABLE_ID}` - // * `bigquery.dataset.{PROJECT_ID}.{DATASET_ID}` - // * `datacatalog.entry.{PROJECT_ID}.{LOCATION_ID}.{ENTRY_GROUP_ID}.{ENTRY_ID}` - // - // Identifiers (`*_ID`) should comply with the - // [Lexical structure in GoogleSQL] - // (https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical). - string sql_resource = 3; - - // [Fully Qualified Name - // (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) - // of the resource. - // - // FQNs take two forms: - // - // * For non-regionalized resources: - // - // `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` - // - // * For regionalized resources: - // - // `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` - // - // Example for a DPMS table: - // - // `dataproc_metastore:{PROJECT_ID}.{LOCATION_ID}.{INSTANCE_ID}.{DATABASE_ID}.{TABLE_ID}` - string fully_qualified_name = 5; - } - - // Project where the lookup should be performed. Required to lookup - // entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` - // using its `fully_qualified_name`. Ignored in other cases. - string project = 6; - - // Location where the lookup should be performed. Required to lookup - // entry that is not a part of `DPMS` or `DATAPLEX` `integrated_system` - // using its `fully_qualified_name`. Ignored in other cases. - string location = 7; -} - -// Entry metadata. -// A Data Catalog entry represents another resource in Google -// Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic) or -// outside of it. You can use the `linked_resource` field -// in the entry resource to refer to the original resource ID of the source -// system. -// -// An entry resource contains resource details, for example, its schema. -// Additionally, you can attach flexible metadata to an entry in the form of a -// [Tag][google.cloud.datacatalog.v1.Tag]. -message Entry { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/Entry" - pattern: "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}" - }; - - // Output only. Identifier. The resource name of an entry in URL format. - // - // Note: The entry itself and its child resources might not be - // stored in the location specified in its name. - string name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // The resource this metadata entry refers to. - // - // For Google Cloud Platform resources, `linked_resource` is the - // [Full Resource Name] - // (https://cloud.google.com/apis/design/resource_names#full_resource_name). - // For example, the `linked_resource` for a table resource from BigQuery is: - // - // `//bigquery.googleapis.com/projects/{PROJECT_ID}/datasets/{DATASET_ID}/tables/{TABLE_ID}` - // - // Output only when the entry is one of the types in the `EntryType` enum. - // - // For entries with a `user_specified_type`, this field is optional and - // defaults to an empty string. - // - // The resource string must contain only letters (a-z, A-Z), numbers (0-9), - // underscores (_), periods (.), colons (:), slashes (/), dashes (-), - // and hashes (#). - // The maximum size is 200 bytes when encoded in UTF-8. - string linked_resource = 9; - - // [Fully Qualified Name - // (FQN)](https://cloud.google.com//data-catalog/docs/fully-qualified-names) - // of the resource. Set automatically for entries representing resources from - // synced systems. Settable only during creation, and read-only later. Can - // be used for search and lookup of the entries. - // - string fully_qualified_name = 29; - - // Required. Entry type. - oneof entry_type { - // The type of the entry. - // - // For details, see [`EntryType`](#entrytype). - EntryType type = 2; - - // Custom entry type that doesn't match any of the values allowed for input - // and listed in the `EntryType` enum. - // - // When creating an entry, first check the type values in the enum. - // If there are no appropriate types for the new entry, - // provide a custom value, for example, `my_special_type`. - // - // The `user_specified_type` string has the following limitations: - // - // * Is case insensitive. - // * Must begin with a letter or underscore. - // * Can only contain letters, numbers, and underscores. - // * Must be at least 1 character and at most 64 characters long. - string user_specified_type = 16; - } - - // The source system of the entry. - oneof system { - // Output only. Indicates the entry's source system that Data Catalog - // integrates with, such as BigQuery, Pub/Sub, or Dataproc Metastore. - IntegratedSystem integrated_system = 17 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Indicates the entry's source system that Data Catalog doesn't - // automatically integrate with. - // - // The `user_specified_system` string has the following limitations: - // - // * Is case insensitive. - // * Must begin with a letter or underscore. - // * Can only contain letters, numbers, and underscores. - // * Must be at least 1 character and at most 64 characters long. - string user_specified_system = 18; - } - - // System specification. - // Can be used as a complement for `spec`, when some metadata is relevant for - // all entries existing within given system - oneof system_spec { - // Specification that applies to a relational database system. Only settable - // when `user_specified_system` is equal to `SQL_DATABASE` - SqlDatabaseSystemSpec sql_database_system_spec = 39; - - // Specification that applies to Looker sysstem. Only settable when - // `user_specified_system` is equal to `LOOKER` - LookerSystemSpec looker_system_spec = 40; - - // Specification that applies to Cloud Bigtable system. Only settable when - // `integrated_system` is equal to `CLOUD_BIGTABLE` - CloudBigtableSystemSpec cloud_bigtable_system_spec = 41; - } - - // Type specification. - oneof type_spec { - // Specification that applies to a Cloud Storage fileset. Valid only - // for entries with the `FILESET` type. - GcsFilesetSpec gcs_fileset_spec = 6; - - // Output only. Specification that applies to a BigQuery table. Valid only - // for entries with the `TABLE` type. - BigQueryTableSpec bigquery_table_spec = 12 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Specification for a group of BigQuery tables with - // the `[prefix]YYYYMMDD` name pattern. - // - // For more information, see [Introduction to partitioned tables] - // (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). - BigQueryDateShardedSpec bigquery_date_sharded_spec = 15 - [(google.api.field_behavior) = OUTPUT_ONLY]; - } - - // Type- and system-specific information. Specifications for types contain - // fields common to all entries of a given type, and sub-specifications with - // fields specific to a given source system. - // - // When extending the API with new types and systems, use this field instead - // of the legacy `type_spec`. - oneof spec { - // Specification that applies to a table resource. Valid only - // for entries with the `TABLE` or `EXPLORE` type. - DatabaseTableSpec database_table_spec = 24; - - // Specification that applies to a data source connection. Valid only - // for entries with the `DATA_SOURCE_CONNECTION` type. - DataSourceConnectionSpec data_source_connection_spec = 27; - - // Specification that applies to a user-defined function or procedure. Valid - // only for entries with the `ROUTINE` type. - RoutineSpec routine_spec = 28; - - // Specification that applies to a dataset. - DatasetSpec dataset_spec = 32; - - // Specification that applies to a fileset resource. Valid only - // for entries with the `FILESET` type. - FilesetSpec fileset_spec = 33; - - // Specification that applies to a Service resource. - ServiceSpec service_spec = 42; - - // Model specification. - ModelSpec model_spec = 43; - - // FeatureonlineStore spec for Vertex AI Feature Store. - FeatureOnlineStoreSpec feature_online_store_spec = 45; - } - - // Display name of an entry. - // - // The maximum size is 500 bytes when encoded in UTF-8. - // Default value is an empty string. - string display_name = 3; - - // Entry description that can consist of several sentences or paragraphs - // that describe entry contents. - // - // The description must not contain Unicode non-characters as well as C0 - // and C1 control codes except tabs (HT), new lines (LF), carriage returns - // (CR), and page breaks (FF). - // The maximum size is 2000 bytes when encoded in UTF-8. - // Default value is an empty string. - string description = 4; - - // Business Context of the entry. Not supported for BigQuery datasets - BusinessContext business_context = 37; - - // Schema of the entry. An entry might not have any schema attached to it. - Schema schema = 5; - - // Timestamps from the underlying resource, not from the Data Catalog - // entry. - // - // Output only when the entry has a system listed in the `IntegratedSystem` - // enum. For entries with `user_specified_system`, this field is optional - // and defaults to an empty timestamp. - SystemTimestamps source_system_timestamps = 7; - - // Resource usage statistics. - UsageSignal usage_signal = 13; - - // Cloud labels attached to the entry. - // - // In Data Catalog, you can create and modify labels attached only to custom - // entries. Synced entries have unmodifiable labels that come from the source - // system. - map labels = 14; - - // Output only. Physical location of the entry. - DataSource data_source = 20 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Additional information related to the entry. Private to the - // current user. - PersonalDetails personal_details = 26 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Specification that applies to a table resource. Valid only -// for entries with the `TABLE` type. -message DatabaseTableSpec { - // Type of the table. - enum TableType { - // Default unknown table type. - TABLE_TYPE_UNSPECIFIED = 0; - - // Native table. - NATIVE = 1; - - // External table. - EXTERNAL = 2; - } - - // Specification that applies to database view. - message DatabaseViewSpec { - // Concrete type of the view. - enum ViewType { - // Default unknown view type. - VIEW_TYPE_UNSPECIFIED = 0; - - // Standard view. - STANDARD_VIEW = 1; - - // Materialized view. - MATERIALIZED_VIEW = 2; - } - - // Type of this view. - ViewType view_type = 1; - - // Definition of the view. - oneof source_definition { - // Name of a singular table this view reflects one to one. - string base_table = 2; - - // SQL query used to generate this view. - string sql_query = 3; - } - } - - // Type of this table. - TableType type = 1; - - // Output only. Fields specific to a Dataplex table and present only in the - // Dataplex table entries. - DataplexTableSpec dataplex_table = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Spec what applies to tables that are actually views. - // Not set for "real" tables. - DatabaseViewSpec database_view_spec = 3; -} - -// Specification that applies to a fileset. Valid only for entries with the -// 'FILESET' type. -message FilesetSpec { - // Fields specific to a Dataplex fileset and present only in the Dataplex - // fileset entries. - DataplexFilesetSpec dataplex_fileset = 1; -} - -// Specification that applies to a data source connection. Valid only for -// entries with the `DATA_SOURCE_CONNECTION` type. -// Only one of internal specs can be set at the time, and cannot -// be changed later. -message DataSourceConnectionSpec { - // Output only. Fields specific to BigQuery connections. - BigQueryConnectionSpec bigquery_connection_spec = 1; -} - -// Specification that applies to a routine. Valid only for -// entries with the `ROUTINE` type. -message RoutineSpec { - // The fine-grained type of the routine. - enum RoutineType { - // Unspecified type. - ROUTINE_TYPE_UNSPECIFIED = 0; - - // Non-builtin permanent scalar function. - SCALAR_FUNCTION = 1; - - // Stored procedure. - PROCEDURE = 2; - } - - // Input or output argument of a function or stored procedure. - message Argument { - // The input or output mode of the argument. - enum Mode { - // Unspecified mode. - MODE_UNSPECIFIED = 0; - - // The argument is input-only. - IN = 1; - - // The argument is output-only. - OUT = 2; - - // The argument is both an input and an output. - INOUT = 3; - } - - // The name of the argument. A return argument of a function might not have - // a name. - string name = 1; - - // Specifies whether the argument is input or output. - Mode mode = 2; - - // Type of the argument. The exact value depends on the source system and - // the language. - string type = 3; - } - - // The type of the routine. - RoutineType routine_type = 1; - - // The language the routine is written in. The exact value depends on the - // source system. For BigQuery routines, possible values are: - // - // * `SQL` - // * `JAVASCRIPT` - string language = 2; - - // Arguments of the routine. - repeated Argument routine_arguments = 3; - - // Return type of the argument. The exact value depends on the source system - // and the language. - string return_type = 4; - - // The body of the routine. - string definition_body = 5; - - // Contains fields specific to the source system. - oneof system_spec { - // Fields specific for BigQuery routines. - BigQueryRoutineSpec bigquery_routine_spec = 6; - } -} - -// Specification that applies to a dataset. Valid only for -// entries with the `DATASET` type. -message DatasetSpec { - // Fields specific to the source system. - oneof system_spec { - // Vertex AI Dataset specific fields - VertexDatasetSpec vertex_dataset_spec = 2; - } -} - -// Specification that applies to -// entries that are part `SQL_DATABASE` system -// (user_specified_type) -message SqlDatabaseSystemSpec { - // SQL Database Engine. - // enum SqlEngine { - // UNDEFINED = 0; - // MY_SQL = 1; - // POSTGRE_SQL = 2; - // SQL_SERVER = 3; - // } - // Engine of the enclosing database instance. - string sql_engine = 1; - - // Version of the database engine. - string database_version = 2; - - // Host of the SQL database - // enum InstanceHost { - // UNDEFINED = 0; - // SELF_HOSTED = 1; - // CLOUD_SQL = 2; - // AMAZON_RDS = 3; - // AZURE_SQL = 4; - // } - // Host of the enclousing database instance. - string instance_host = 3; -} - -// Specification that applies to -// entries that are part `LOOKER` system -// (user_specified_type) -message LookerSystemSpec { - // ID of the parent Looker Instance. Empty if it does not exist. - // Example value: `someinstance.looker.com` - string parent_instance_id = 1; - - // Name of the parent Looker Instance. Empty if it does not exist. - string parent_instance_display_name = 2; - - // ID of the parent Model. Empty if it does not exist. - string parent_model_id = 3; - - // Name of the parent Model. Empty if it does not exist. - string parent_model_display_name = 4; - - // ID of the parent View. Empty if it does not exist. - string parent_view_id = 5; - - // Name of the parent View. Empty if it does not exist. - string parent_view_display_name = 6; -} - -// Specification that applies to -// all entries that are part of `CLOUD_BIGTABLE` system -// (user_specified_type) -message CloudBigtableSystemSpec { - // Display name of the Instance. This is user specified and different from - // the resource name. - string instance_display_name = 1; -} - -// Specification that applies to Instance -// entries that are part of `CLOUD_BIGTABLE` system. -// (user_specified_type) -message CloudBigtableInstanceSpec { - // Spec that applies to clusters of an Instance of Cloud Bigtable. - message CloudBigtableClusterSpec { - // Name of the cluster. - string display_name = 1; - - // Location of the cluster, typically a Cloud zone. - string location = 2; - - // Type of the resource. For a cluster this would be "CLUSTER". - string type = 3; - - // A link back to the parent resource, in this case Instance. - string linked_resource = 4; - } - - // The list of clusters for the Instance. - repeated CloudBigtableClusterSpec cloud_bigtable_cluster_specs = 1; -} - -// Specification that applies to a Service resource. Valid only -// for entries with the `SERVICE` type. -message ServiceSpec { - // System spec - oneof system_spec { - // Specification that applies to Instance entries of `CLOUD_BIGTABLE` - // system. - CloudBigtableInstanceSpec cloud_bigtable_instance_spec = 1; - } -} - -// Detail description of the source information of a Vertex model. -message VertexModelSourceInfo { - // Source of the model. - enum ModelSourceType { - // Should not be used. - MODEL_SOURCE_TYPE_UNSPECIFIED = 0; - - // The Model is uploaded by automl training pipeline. - AUTOML = 1; - - // The Model is uploaded by user or custom training pipeline. - CUSTOM = 2; - - // The Model is registered and sync'ed from BigQuery ML. - BQML = 3; - - // The Model is saved or tuned from Model Garden. - MODEL_GARDEN = 4; - - // The Model is saved or tuned from Genie. - GENIE = 5; - - // The Model is uploaded by text embedding finetuning pipeline. - CUSTOM_TEXT_EMBEDDING = 6; - - // The Model is saved or tuned from Marketplace. - MARKETPLACE = 7; - } - - // Type of the model source. - ModelSourceType source_type = 1; - - // If this Model is copy of another Model. If true then - // [source_type][google.cloud.datacatalog.v1.VertexModelSourceInfo.source_type] - // pertains to the original. - bool copy = 2; -} - -// Specification for vertex model resources. -message VertexModelSpec { - // The version ID of the model. - string version_id = 1; - - // User provided version aliases so that a model version can be referenced via - // alias - repeated string version_aliases = 2; - - // The description of this version. - string version_description = 3; - - // Source of a Vertex model. - VertexModelSourceInfo vertex_model_source_info = 4; - - // URI of the Docker image to be used as the custom container for serving - // predictions. - string container_image_uri = 5; -} - -// Specification for vertex dataset resources. -message VertexDatasetSpec { - // Type of data stored in the dataset. - enum DataType { - // Should not be used. - DATA_TYPE_UNSPECIFIED = 0; - - // Structured data dataset. - TABLE = 1; - - // Image dataset which supports ImageClassification, ImageObjectDetection - // and ImageSegmentation problems. - IMAGE = 2; - - // Document dataset which supports TextClassification, TextExtraction and - // TextSentiment problems. - TEXT = 3; - - // Video dataset which supports VideoClassification, VideoObjectTracking and - // VideoActionRecognition problems. - VIDEO = 4; - - // Conversation dataset which supports conversation problems. - CONVERSATION = 5; - - // TimeSeries dataset. - TIME_SERIES = 6; - - // Document dataset which supports DocumentAnnotation problems. - DOCUMENT = 7; - - // TextToSpeech dataset which supports TextToSpeech problems. - TEXT_TO_SPEECH = 8; - - // Translation dataset which supports Translation problems. - TRANSLATION = 9; - - // Store Vision dataset which is used for HITL integration. - STORE_VISION = 10; - - // Enterprise Knowledge Graph dataset which is used for HITL labeling - // integration. - ENTERPRISE_KNOWLEDGE_GRAPH = 11; - - // Text prompt dataset which supports Large Language Models. - TEXT_PROMPT = 12; - } - - // The number of DataItems in this Dataset. Only apply for non-structured - // Dataset. - int64 data_item_count = 1; - - // Type of the dataset. - DataType data_type = 2; -} - -// Specification that applies to a model. Valid only for -// entries with the `MODEL` type. -message ModelSpec { - // System spec - oneof system_spec { - // Specification for vertex model resources. - VertexModelSpec vertex_model_spec = 1; - } -} - -// Detail description of the source information of a Vertex Feature Online -// Store. -message FeatureOnlineStoreSpec { - // Type of underlying storage type. - enum StorageType { - // Should not be used. - STORAGE_TYPE_UNSPECIFIED = 0; - - // Underlsying storgae is Bigtable. - BIGTABLE = 1; - - // Underlying is optimized online server (Lightning). - OPTIMIZED = 2; - } - - // Output only. Type of underlying storage for the FeatureOnlineStore. - StorageType storage_type = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Business Context of the entry. -message BusinessContext { - // Entry overview fields for rich text descriptions of entries. - EntryOverview entry_overview = 1; - - // Contact people for the entry. - Contacts contacts = 2; -} - -// Entry overview fields for rich text descriptions of entries. -message EntryOverview { - // Entry overview with support for rich text. - // - // The overview must only contain Unicode characters, and should be - // formatted using HTML. - // The maximum length is 10 MiB as this value holds HTML descriptions - // including encoded images. The maximum length of the text without images - // is 100 KiB. - string overview = 1; -} - -// Contact people for the entry. -message Contacts { - // A contact person for the entry. - message Person { - // Designation of the person, for example, Data Steward. - string designation = 1; - - // Email of the person in the format of `john.doe@xyz`, - // ``, or `John Doe`. - string email = 2; - } - - // The list of contact people for the entry. - repeated Person people = 1; -} - -// Entry group metadata. -// -// An `EntryGroup` resource represents a logical grouping of zero or more -// Data Catalog [Entry][google.cloud.datacatalog.v1.Entry] resources. -message EntryGroup { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/EntryGroup" - pattern: "projects/{project}/locations/{location}/entryGroups/{entry_group}" - }; - - // Identifier. The resource name of the entry group in URL format. - // - // Note: The entry group itself and its child resources might not be - // stored in the location specified in its name. - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // A short name to identify the entry group, for example, - // "analytics data - jan 2011". Default value is an empty string. - string display_name = 2; - - // Entry group description. Can consist of several sentences or - // paragraphs that describe the entry group contents. - // Default value is an empty string. - string description = 3; - - // Output only. Timestamps of the entry group. Default value is empty. - SystemTimestamps data_catalog_timestamps = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. When set to [true], it means DataCatalog EntryGroup was - // transferred to Dataplex Catalog Service. It makes EntryGroup and its - // Entries to be read-only in DataCatalog. However, new Tags on EntryGroup and - // its Entries can be created. After setting the flag to [true] it cannot be - // unset. - bool transferred_to_dataplex = 9 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request message for -// [CreateTagTemplate][google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplate]. -message CreateTagTemplateRequest { - // Required. The name of the project and the template location - // [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/TagTemplate" - } - ]; - - // Required. The ID of the tag template to create. - // - // The ID must contain only lowercase letters (a-z), numbers (0-9), - // or underscores (_), and must start with a letter or underscore. - // The maximum size is 64 bytes when encoded in UTF-8. - string tag_template_id = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The tag template to create. - TagTemplate tag_template = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [GetTagTemplate][google.cloud.datacatalog.v1.DataCatalog.GetTagTemplate]. -message GetTagTemplateRequest { - // Required. The name of the tag template to get. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplate" - } - ]; -} - -// Request message for -// [UpdateTagTemplate][google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplate]. -message UpdateTagTemplateRequest { - // Required. The template to update. The `name` field must be set. - TagTemplate tag_template = 1 [(google.api.field_behavior) = REQUIRED]; - - // Names of fields whose values to overwrite on a tag template. Currently, - // only `display_name` and `is_publicly_readable` can be overwritten. - // - // If this parameter is absent or empty, all modifiable fields - // are overwritten. If such fields are non-required and omitted in the - // request body, their values are emptied. - // - // Note: Updating the `is_publicly_readable` field may require up to 12 - // hours to take effect in search results. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [DeleteTagTemplate][google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplate]. -message DeleteTagTemplateRequest { - // Required. The name of the tag template to delete. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplate" - } - ]; - - // Required. If true, deletes all tags that use this template. - // - // Currently, `true` is the only supported value. - bool force = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [CreateTag][google.cloud.datacatalog.v1.DataCatalog.CreateTag]. -message CreateTagRequest { - // Required. The name of the resource to attach this tag to. - // - // Tags can be attached to entries or entry groups. An entry can have up to - // 1000 attached tags. - // - // Note: The tag and its child resources might not be stored in - // the location specified in its name. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Tag" - } - ]; - - // Required. The tag to create. - Tag tag = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [UpdateTag][google.cloud.datacatalog.v1.DataCatalog.UpdateTag]. -message UpdateTagRequest { - // Required. The updated tag. The "name" field must be set. - Tag tag = 1 [(google.api.field_behavior) = REQUIRED]; - - // Names of fields whose values to overwrite on a tag. Currently, a tag has - // the only modifiable field with the name `fields`. - // - // In general, if this parameter is absent or empty, all modifiable fields - // are overwritten. If such fields are non-required and omitted in the - // request body, their values are emptied. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [DeleteTag][google.cloud.datacatalog.v1.DataCatalog.DeleteTag]. -message DeleteTagRequest { - // Required. The name of the tag to delete. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Tag" - } - ]; -} - -// Request message for -// [CreateTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.CreateTagTemplateField]. -message CreateTagTemplateFieldRequest { - // Required. The name of the project and the template location - // [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplate" - } - ]; - - // Required. The ID of the tag template field to create. - // - // Note: Adding a required field to an existing template is *not* allowed. - // - // Field IDs can contain letters (both uppercase and lowercase), numbers - // (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 - // character long and at most 128 characters long. Field IDs must also be - // unique within their template. - string tag_template_field_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The tag template field to create. - TagTemplateField tag_template_field = 3 - [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [UpdateTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.UpdateTagTemplateField]. -message UpdateTagTemplateFieldRequest { - // Required. The name of the tag template field. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplateField" - } - ]; - - // Required. The template to update. - TagTemplateField tag_template_field = 2 - [(google.api.field_behavior) = REQUIRED]; - - // Optional. Names of fields whose values to overwrite on an individual field - // of a tag template. The following fields are modifiable: - // - // * `display_name` - // * `type.enum_type` - // * `is_required` - // - // If this parameter is absent or empty, all modifiable fields - // are overwritten. If such fields are non-required and omitted in the request - // body, their values are emptied with one exception: when updating an enum - // type, the provided values are merged with the existing values. Therefore, - // enum values can only be added, existing enum values cannot be deleted or - // renamed. - // - // Additionally, updating a template field from optional to required is - // *not* allowed. - google.protobuf.FieldMask update_mask = 3 - [(google.api.field_behavior) = OPTIONAL]; -} - -// Request message for -// [RenameTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateField]. -message RenameTagTemplateFieldRequest { - // Required. The name of the tag template field. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplateField" - } - ]; - - // Required. The new ID of this tag template field. For example, - // `my_new_field`. - string new_tag_template_field_id = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [RenameTagTemplateFieldEnumValue][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue]. -message RenameTagTemplateFieldEnumValueRequest { - // Required. The name of the enum field value. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplateFieldEnumValue" - } - ]; - - // Required. The new display name of the enum value. For example, - // `my_new_enum_value`. - string new_enum_value_display_name = 2 - [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [DeleteTagTemplateField][google.cloud.datacatalog.v1.DataCatalog.DeleteTagTemplateField]. -message DeleteTagTemplateFieldRequest { - // Required. The name of the tag template field to delete. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplateField" - } - ]; - - // Required. If true, deletes this field from any tags that use it. - // - // Currently, `true` is the only supported value. - bool force = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags]. -message ListTagsRequest { - // Required. The name of the Data Catalog resource to list the tags of. - // - // The resource can be an [Entry][google.cloud.datacatalog.v1.Entry] - // or an [EntryGroup][google.cloud.datacatalog.v1.EntryGroup] - // (without `/entries/{entries}` at the end). - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Tag" - } - ]; - - // The maximum number of tags to return. Default is 10. Maximum limit is 1000. - int32 page_size = 2; - - // Pagination token that specifies the next page to return. If empty, the - // first page is returned. - string page_token = 3; -} - -// Response message for -// [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags]. -message ListTagsResponse { - // [Tag][google.cloud.datacatalog.v1.Tag] details. - repeated Tag tags = 1; - - // Pagination token of the next results page. Empty if there are - // no more items in results. - string next_page_token = 2; -} - -// Request message for -// [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags]. -message ReconcileTagsRequest { - // Required. Name of [Entry][google.cloud.datacatalog.v1.Entry] to be tagged. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; - - // Required. The name of the tag template, which is used for reconciliation. - string tag_template = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplate" - } - ]; - - // If set to `true`, deletes entry tags related to a tag template - // not listed in the tags source from an entry. If set to `false`, - // unlisted tags are retained. - bool force_delete_missing = 3; - - // A list of tags to apply to an entry. A tag can specify a - // tag template, which must be the template specified in the - // `ReconcileTagsRequest`. - // The sole entry and each of its columns must be mentioned at most once. - repeated Tag tags = 4; -} - -// [Long-running operation][google.longrunning.Operation] -// response message returned by -// [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags]. -message ReconcileTagsResponse { - // Number of tags created in the request. - int64 created_tags_count = 1; - - // Number of tags updated in the request. - int64 updated_tags_count = 2; - - // Number of tags deleted in the request. - int64 deleted_tags_count = 3; -} - -// [Long-running operation][google.longrunning.Operation] -// metadata message returned by the -// [ReconcileTags][google.cloud.datacatalog.v1.DataCatalog.ReconcileTags]. -message ReconcileTagsMetadata { - // Enum holding possible states of the reconciliation operation. - enum ReconciliationState { - // Default value. This value is unused. - RECONCILIATION_STATE_UNSPECIFIED = 0; - - // The reconciliation has been queued and awaits for execution. - RECONCILIATION_QUEUED = 1; - - // The reconciliation is in progress. - RECONCILIATION_IN_PROGRESS = 2; - - // The reconciliation has been finished. - RECONCILIATION_DONE = 3; - } - - // State of the reconciliation operation. - ReconciliationState state = 1; - - // Maps the name of each tagged column (or empty string for a - // sole entry) to tagging operation [status][google.rpc.Status]. - map errors = 2; -} - -// Request message for -// [ListEntries][google.cloud.datacatalog.v1.DataCatalog.ListEntries]. -message ListEntriesRequest { - // Required. The name of the entry group that contains the entries to list. - // - // Can be provided in URL format. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // The maximum number of items to return. Default is 10. Maximum limit is - // 1000. Throws an invalid argument if `page_size` is more than 1000. - int32 page_size = 2; - - // Pagination token that specifies the next page to return. If empty, the - // first page is returned. - string page_token = 3; - - // The fields to return for each entry. If empty or omitted, all - // fields are returned. - // - // For example, to return a list of entries with only the `name` field, - // set `read_mask` to only one path with the `name` value. - google.protobuf.FieldMask read_mask = 4; -} - -// Response message for -// [ListEntries][google.cloud.datacatalog.v1.DataCatalog.ListEntries]. -message ListEntriesResponse { - // Entry details. - repeated Entry entries = 1; - - // Pagination token of the next results page. Empty if there are no more items - // in results. - string next_page_token = 2; -} - -// Request message for -// [StarEntry][google.cloud.datacatalog.v1.DataCatalog.StarEntry]. -message StarEntryRequest { - // Required. The name of the entry to mark as starred. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; -} - -// Response message for -// [StarEntry][google.cloud.datacatalog.v1.DataCatalog.StarEntry]. -// Empty for now -message StarEntryResponse {} - -// Request message for -// [UnstarEntry][google.cloud.datacatalog.v1.DataCatalog.UnstarEntry]. -message UnstarEntryRequest { - // Required. The name of the entry to mark as **not** starred. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; -} - -// Response message for -// [UnstarEntry][google.cloud.datacatalog.v1.DataCatalog.UnstarEntry]. -// Empty for now -message UnstarEntryResponse {} - -// Request message for -// [ImportEntries][google.cloud.datacatalog.v1.DataCatalog.ImportEntries] -// method. -message ImportEntriesRequest { - // Required. Target entry group for ingested entries. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Entry" - } - ]; - - // Source of imported entries, e.g. dump stored in a Cloud Storage - oneof source { - // Path to a Cloud Storage bucket that contains a dump ready for ingestion. - string gcs_bucket_path = 2; - } - - // Optional. (Optional) Dataplex task job id, if specified will be used as - // part of ImportEntries LRO ID - string job_id = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for [long-running operation][google.longrunning.Operation] -// returned by the -// [ImportEntries][google.cloud.datacatalog.v1.DataCatalog.ImportEntries]. -message ImportEntriesResponse { - // Cumulative number of entries created and entries updated as a result of - // import operation. - optional int64 upserted_entries_count = 5; - - // Number of entries deleted as a result of import operation. - optional int64 deleted_entries_count = 6; -} - -// Metadata message for [long-running operation][google.longrunning.Operation] -// returned by the -// [ImportEntries][google.cloud.datacatalog.v1.DataCatalog.ImportEntries]. -message ImportEntriesMetadata { - // Enum holding possible states of the import operation. - enum ImportState { - // Default value. This value is unused. - IMPORT_STATE_UNSPECIFIED = 0; - - // The dump with entries has been queued for import. - IMPORT_QUEUED = 1; - - // The import of entries is in progress. - IMPORT_IN_PROGRESS = 2; - - // The import of entries has been finished. - IMPORT_DONE = 3; - - // The import of entries has been abandoned in favor of a newer request. - IMPORT_OBSOLETE = 4; - } - - // State of the import operation. - ImportState state = 1; - - // Partial errors that are encountered during the ImportEntries operation. - // There is no guarantee that all the encountered errors are reported. - // However, if no errors are reported, it means that no errors were - // encountered. - repeated google.rpc.Status errors = 2; -} - -// Request message for -// [ModifyEntryOverview][google.cloud.datacatalog.v1.DataCatalog.ModifyEntryOverview]. -message ModifyEntryOverviewRequest { - // Required. The full resource name of the entry. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; - - // Required. The new value for the Entry Overview. - EntryOverview entry_overview = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [ModifyEntryContacts][google.cloud.datacatalog.v1.DataCatalog.ModifyEntryContacts]. -message ModifyEntryContactsRequest { - // Required. The full resource name of the entry. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; - - // Required. The new value for the Contacts. - Contacts contacts = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Metadata automatically ingested from Google Cloud resources like BigQuery -// tables or Pub/Sub topics always uses enum values from `EntryType` as the type -// of entry. -// -// Other sources of metadata like Hive or Oracle databases can identify the type -// by either using one of the enum values from `EntryType` (for example, -// `FILESET` for a Cloud Storage fileset) or specifying a custom value using -// the [`Entry`](#resource:-entry) field `user_specified_type`. For more -// information, see -// [Surface files from Cloud Storage with fileset -// entries](/data-catalog/docs/how-to/filesets) or [Create custom entries for -// your data sources](/data-catalog/docs/how-to/custom-entries). -enum EntryType { - // Default unknown type. - ENTRY_TYPE_UNSPECIFIED = 0; - - // The entry type that has a GoogleSQL schema, including - // logical views. - TABLE = 2; - - // The type of models. - // - // For more information, see [Supported models in BigQuery - // ML](/bigquery/docs/bqml-introduction#supported_models). - MODEL = 5; - - // An entry type for streaming entries. For example, a Pub/Sub topic. - DATA_STREAM = 3; - - // An entry type for a set of files or objects. For example, a - // Cloud Storage fileset. - FILESET = 4; - - // A group of servers that work together. For example, a Kafka cluster. - CLUSTER = 6; - - // A database. - DATABASE = 7; - - // Connection to a data source. For example, a BigQuery - // connection. - DATA_SOURCE_CONNECTION = 8; - - // Routine, for example, a BigQuery routine. - ROUTINE = 9; - - // A Dataplex lake. - LAKE = 10; - - // A Dataplex zone. - ZONE = 11; - - // A service, for example, a Dataproc Metastore service. - SERVICE = 14; - - // Schema within a relational database. - DATABASE_SCHEMA = 15; - - // A Dashboard, for example from Looker. - DASHBOARD = 16; - - // A Looker Explore. - // - // For more information, see [Looker Explore API] - // (https://developers.looker.com/api/explorer/4.0/methods/LookmlModel/lookml_model_explore). - EXPLORE = 17; - - // A Looker Look. - // - // For more information, see [Looker Look API] - // (https://developers.looker.com/api/explorer/4.0/methods/Look). - LOOK = 18; - - // Feature Online Store resource in Vertex AI Feature Store. - FEATURE_ONLINE_STORE = 19; - - // Feature View resource in Vertex AI Feature Store. - FEATURE_VIEW = 20; - - // Feature Group resource in Vertex AI Feature Store. - FEATURE_GROUP = 21; -} - -// Request message for -// [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig]. -message SetConfigRequest { - // Required. The organization or project whose config is being specified. - string name = 1 [(google.api.field_behavior) = REQUIRED]; - - // The configuration field to set. - oneof configuration { - // Opt-in status for the migration of Tag Templates to Dataplex. - TagTemplateMigration tag_template_migration = 2; - - // Opt-in status for the UI switch to Dataplex. - CatalogUIExperience catalog_ui_experience = 3; - } -} - -// Request message for -// [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig]. -message RetrieveConfigRequest { - // Required. The organization whose config is being retrieved. - string name = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig]. -message RetrieveEffectiveConfigRequest { - // Required. The resource whose effective config is being retrieved. - string name = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// Configuration related to the opt-in status for the migration of TagTemplates -// to Dataplex. -enum TagTemplateMigration { - // Default value. Migration of Tag Templates from Data Catalog to Dataplex is - // not performed. - TAG_TEMPLATE_MIGRATION_UNSPECIFIED = 0; - - // Migration of Tag Templates from Data Catalog to Dataplex is enabled. - TAG_TEMPLATE_MIGRATION_ENABLED = 1; - - // Migration of Tag Templates from Data Catalog to Dataplex is disabled. - TAG_TEMPLATE_MIGRATION_DISABLED = 2; -} - -// Configuration related to the opt-in status for the UI switch to Dataplex. -enum CatalogUIExperience { - // Default value. The default UI is Dataplex. - CATALOG_UI_EXPERIENCE_UNSPECIFIED = 0; - - // The UI is Dataplex. - CATALOG_UI_EXPERIENCE_ENABLED = 1; - - // The UI is Data Catalog. - CATALOG_UI_EXPERIENCE_DISABLED = 2; -} - -// The configuration related to the migration from Data Catalog to Dataplex that -// has been applied to an organization and any projects under it. It is the -// response message for -// [RetrieveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveConfig]. -message OrganizationConfig { - // Map of organizations and project resource names and their configuration. - // The format for the map keys is `organizations/{organizationId}` or - // `projects/{projectId}`. - map config = 1; -} - -// The configuration related to the migration to Dataplex applied to an -// organization or project. -// It is the response message for -// [SetConfig][google.cloud.datacatalog.v1.DataCatalog.SetConfig] and -// [RetrieveEffectiveConfig][google.cloud.datacatalog.v1.DataCatalog.RetrieveEffectiveConfig]. -message MigrationConfig { - // Opt-in status for the migration of Tag Templates to Dataplex. - TagTemplateMigration tag_template_migration = 1; - - // Opt-in status for the UI switch to Dataplex. - CatalogUIExperience catalog_ui_experience = 2; - - // The time when the Tag Template migration was enabled. - // If the Tag Template migration is not enabled, this field is not set. - google.protobuf.Timestamp template_migration_enabled_time = 3; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dataplex_spec.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dataplex_spec.proto deleted file mode 100644 index b210b23acded..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dataplex_spec.proto +++ /dev/null @@ -1,89 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/cloud/datacatalog/v1/common.proto"; -import "google/cloud/datacatalog/v1/physical_schema.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_outer_classname = "DataplexSpecProto"; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Common Dataplex fields. -message DataplexSpec { - // Fully qualified resource name of an asset in Dataplex, to which the - // underlying data source (Cloud Storage bucket or BigQuery dataset) of the - // entity is attached. - string asset = 1; - - // Format of the data. - PhysicalSchema data_format = 2; - - // Compression format of the data, e.g., zip, gzip etc. - string compression_format = 3; - - // Project ID of the underlying Cloud Storage or BigQuery data. Note that - // this may not be the same project as the correspondingly Dataplex lake / - // zone / asset. - string project_id = 4; -} - -// Entry specyfication for a Dataplex fileset. -message DataplexFilesetSpec { - // Common Dataplex fields. - DataplexSpec dataplex_spec = 1; -} - -// Entry specification for a Dataplex table. -message DataplexTableSpec { - // List of external tables registered by Dataplex in other systems based on - // the same underlying data. - // - // External tables allow to query this data in those systems. - repeated DataplexExternalTable external_tables = 1; - - // Common Dataplex fields. - DataplexSpec dataplex_spec = 2; - - // Indicates if the table schema is managed by the user or not. - bool user_managed = 3; -} - -// External table registered by Dataplex. -// Dataplex publishes data discovered from an asset into multiple other systems -// (BigQuery, DPMS) in form of tables. We call them "external tables". External -// tables are also synced into the Data Catalog. -// This message contains pointers to -// those external tables (fully qualified name, resource name et cetera) within -// the Data Catalog. -message DataplexExternalTable { - // Service in which the external table is registered. - IntegratedSystem system = 1; - - // Fully qualified name (FQN) of the external table. - string fully_qualified_name = 28; - - // Google Cloud resource name of the external table. - string google_cloud_resource = 3; - - // Name of the Data Catalog entry representing the external table. - string data_catalog_entry = 4; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dump_content.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dump_content.proto deleted file mode 100644 index 4d1d363c7afd..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/dump_content.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/field_behavior.proto"; -import "google/cloud/datacatalog/v1/datacatalog.proto"; -import "google/cloud/datacatalog/v1/tags.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_outer_classname = "DumpContentProto"; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Wrapper containing Entry and information about Tags -// that should and should not be attached to it. -message TaggedEntry { - // Required. Entry to be ingested. - oneof entry { - // Non-encrypted Data Catalog v1 Entry. - Entry v1_entry = 1; - } - - // Optional. Tags that should be ingested into the Data Catalog. - // Caller should populate template name, column and fields. - repeated Tag present_tags = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Tags that should be deleted from the Data Catalog. - // Caller should populate template name and column only. - repeated Tag absent_tags = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Wrapper for any item that can be contained in the dump. -message DumpItem { - oneof item { - // Entry and its tags. - TaggedEntry tagged_entry = 1; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/gcs_fileset_spec.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/gcs_fileset_spec.proto deleted file mode 100644 index a08e24662015..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/gcs_fileset_spec.proto +++ /dev/null @@ -1,80 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/field_behavior.proto"; -import "google/cloud/datacatalog/v1/timestamps.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Describes a Cloud Storage fileset entry. -message GcsFilesetSpec { - // Required. Patterns to identify a set of files in Google Cloud Storage. - // - // For more information, see [Wildcard Names] - // (https://cloud.google.com/storage/docs/wildcards). - // - // Note: Currently, bucket wildcards are not supported. - // - // Examples of valid `file_patterns`: - // - // * `gs://bucket_name/dir/*`: matches all files in `bucket_name/dir` - // directory - // * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` - // and all subdirectories - // * `gs://bucket_name/file*`: matches files prefixed by `file` in - // `bucket_name` - // * `gs://bucket_name/??.txt`: matches files with two characters followed by - // `.txt` in `bucket_name` - // * `gs://bucket_name/[aeiou].txt`: matches files that contain a single - // vowel character followed by `.txt` in - // `bucket_name` - // * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... - // or `m` followed by `.txt` in `bucket_name` - // * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match - // the `a/*/b` pattern, such as `a/c/b`, `a/d/b` - // * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` - // - // You can combine wildcards to match complex sets of files, for example: - // - // `gs://bucket_name/[a-m]??.j*g` - repeated string file_patterns = 1 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Sample files contained in this fileset, not all files - // contained in this fileset are represented here. - repeated GcsFileSpec sample_gcs_file_specs = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Specification of a single file in Cloud Storage. -message GcsFileSpec { - // Required. Full file path. Example: `gs://bucket_name/a/b.txt`. - string file_path = 1 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Creation, modification, and expiration timestamps of a Cloud - // Storage file. - SystemTimestamps gcs_timestamps = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. File size in bytes. - int64 size_bytes = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/physical_schema.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/physical_schema.proto deleted file mode 100644 index 7aebf50b055d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/physical_schema.proto +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_outer_classname = "PhysicalSchemaProto"; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Native schema used by a resource represented as an entry. Used by query -// engines for deserializing and parsing source data. -message PhysicalSchema { - // Schema in Avro JSON format. - message AvroSchema { - // JSON source of the Avro schema. - string text = 1; - } - - // Schema in Thrift format. - message ThriftSchema { - // Thrift IDL source of the schema. - string text = 1; - } - - // Schema in protocol buffer format. - message ProtobufSchema { - // Protocol buffer source of the schema. - string text = 1; - } - - // Marks a Parquet-encoded data source. - message ParquetSchema {} - - // Marks an ORC-encoded data source. - message OrcSchema {} - - // Marks a CSV-encoded data source. - message CsvSchema {} - - oneof schema { - // Schema in Avro JSON format. - AvroSchema avro = 1; - - // Schema in Thrift format. - ThriftSchema thrift = 2; - - // Schema in protocol buffer format. - ProtobufSchema protobuf = 3; - - // Marks a Parquet-encoded data source. - ParquetSchema parquet = 4; - - // Marks an ORC-encoded data source. - OrcSchema orc = 5; - - // Marks a CSV-encoded data source. - CsvSchema csv = 6; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto deleted file mode 100644 index 6b6b252c394f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanager.proto +++ /dev/null @@ -1,506 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/datacatalog/v1/common.proto"; -import "google/cloud/datacatalog/v1/timestamps.proto"; -import "google/iam/v1/iam_policy.proto"; -import "google/iam/v1/policy.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTagManagerProto"; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Policy Tag Manager API service allows you to manage your policy tags and -// taxonomies. -// -// Policy tags are used to tag BigQuery columns and apply additional access -// control policies. A taxonomy is a hierarchical grouping of policy tags that -// classify data along a common axis. -service PolicyTagManager { - option (google.api.default_host) = "datacatalog.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Creates a taxonomy in a specified project. - // - // The taxonomy is initially empty, that is, it doesn't contain policy tags. - rpc CreateTaxonomy(CreateTaxonomyRequest) returns (Taxonomy) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/taxonomies" - body: "taxonomy" - }; - option (google.api.method_signature) = "parent,taxonomy"; - } - - // Deletes a taxonomy, including all policy tags in this - // taxonomy, their associated policies, and the policy tags references from - // BigQuery columns. - rpc DeleteTaxonomy(DeleteTaxonomyRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/taxonomies/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a taxonomy, including its display name, - // description, and activated policy types. - rpc UpdateTaxonomy(UpdateTaxonomyRequest) returns (Taxonomy) { - option (google.api.http) = { - patch: "/v1/{taxonomy.name=projects/*/locations/*/taxonomies/*}" - body: "taxonomy" - }; - option (google.api.method_signature) = "taxonomy"; - } - - // Lists all taxonomies in a project in a particular location that you - // have a permission to view. - rpc ListTaxonomies(ListTaxonomiesRequest) returns (ListTaxonomiesResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/taxonomies" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a taxonomy. - rpc GetTaxonomy(GetTaxonomyRequest) returns (Taxonomy) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/taxonomies/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a policy tag in a taxonomy. - rpc CreatePolicyTag(CreatePolicyTagRequest) returns (PolicyTag) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*/taxonomies/*}/policyTags" - body: "policy_tag" - }; - option (google.api.method_signature) = "parent,policy_tag"; - } - - // Deletes a policy tag together with the following: - // - // * All of its descendant policy tags, if any - // * Policies associated with the policy tag and its descendants - // * References from BigQuery table schema of the policy tag and its - // descendants - rpc DeletePolicyTag(DeletePolicyTagRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a policy tag, including its display - // name, description, and parent policy tag. - rpc UpdatePolicyTag(UpdatePolicyTagRequest) returns (PolicyTag) { - option (google.api.http) = { - patch: "/v1/{policy_tag.name=projects/*/locations/*/taxonomies/*/policyTags/*}" - body: "policy_tag" - }; - option (google.api.method_signature) = "policy_tag"; - } - - // Lists all policy tags in a taxonomy. - rpc ListPolicyTags(ListPolicyTagsRequest) returns (ListPolicyTagsResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*/taxonomies/*}/policyTags" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a policy tag. - rpc GetPolicyTag(GetPolicyTagRequest) returns (PolicyTag) { - option (google.api.http) = { - get: "/v1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Gets the IAM policy for a policy tag or a taxonomy. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) - returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v1/{resource=projects/*/locations/*/taxonomies/*}:getIamPolicy" - body: "*" - additional_bindings { - post: "/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:getIamPolicy" - body: "*" - } - }; - } - - // Sets the IAM policy for a policy tag or a taxonomy. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) - returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v1/{resource=projects/*/locations/*/taxonomies/*}:setIamPolicy" - body: "*" - additional_bindings { - post: "/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:setIamPolicy" - body: "*" - } - }; - } - - // Returns your permissions on a specified policy tag or - // taxonomy. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) - returns (google.iam.v1.TestIamPermissionsResponse) { - option (google.api.http) = { - post: "/v1/{resource=projects/*/locations/*/taxonomies/*}:testIamPermissions" - body: "*" - additional_bindings { - post: "/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:testIamPermissions" - body: "*" - } - }; - } -} - -// A taxonomy is a collection of hierarchical policy tags that classify data -// along a common axis. -// -// For example, a "data sensitivity" taxonomy might contain the following policy -// tags: -// -// ``` -// + PII -// + Account number -// + Age -// + SSN -// + Zipcode -// + Financials -// + Revenue -// ``` -// -// A "data origin" taxonomy might contain the following policy tags: -// -// ``` -// + User data -// + Employee data -// + Partner data -// + Public data -// ``` -message Taxonomy { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/Taxonomy" - pattern: "projects/{project}/locations/{location}/taxonomies/{taxonomy}" - }; - - // Defines policy types where the policy tags can be used for. - enum PolicyType { - // Unspecified policy type. - POLICY_TYPE_UNSPECIFIED = 0; - - // Fine-grained access control policy that enables access control on - // tagged sub-resources. - FINE_GRAINED_ACCESS_CONTROL = 1; - } - - // The source system of the Taxonomy. - message Service { - // The Google Cloud service name. - ManagingSystem name = 1; - - // The service agent for the service. - string identity = 2; - } - - // Identifier. Resource name of this taxonomy in URL format. - // - // Note: Policy tag manager generates unique taxonomy IDs. - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // Required. User-defined name of this taxonomy. - // - // The name can't start or end with spaces, must contain only Unicode letters, - // numbers, underscores, dashes, and spaces, and be at most 200 bytes long - // when encoded in UTF-8. - // - // The taxonomy display name must be unique within an organization. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Description of this taxonomy. If not set, defaults to empty. - // - // The description must contain only Unicode characters, tabs, newlines, - // carriage returns, and page breaks, and be at most 2000 bytes long when - // encoded in UTF-8. - string description = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Number of policy tags in this taxonomy. - int32 policy_tag_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Creation and modification timestamps of this taxonomy. - SystemTimestamps taxonomy_timestamps = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. A list of policy types that are activated for this taxonomy. If - // not set, defaults to an empty list. - repeated PolicyType activated_policy_types = 6 - [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Identity of the service which owns the Taxonomy. This field is - // only populated when the taxonomy is created by a Google Cloud service. - // Currently only 'DATAPLEX' is supported. - Service service = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Denotes one policy tag in a taxonomy, for example, SSN. -// -// Policy tags can be defined in a hierarchy. For example: -// -// ``` -// + Geolocation -// + LatLong -// + City -// + ZipCode -// ``` -// -// Where the "Geolocation" policy tag contains three children. -message PolicyTag { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/PolicyTag" - pattern: "projects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}" - }; - - // Identifier. Resource name of this policy tag in the URL format. - // - // The policy tag manager generates unique taxonomy IDs and policy tag IDs. - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // Required. User-defined name of this policy tag. - // - // The name can't start or end with spaces and must be unique within the - // parent taxonomy, contain only Unicode letters, numbers, underscores, dashes - // and spaces, and be at most 200 bytes long when encoded in UTF-8. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Description of this policy tag. If not set, defaults to empty. - // - // The description must contain only Unicode characters, - // tabs, newlines, carriage returns and page breaks, and be at most 2000 bytes - // long when encoded in UTF-8. - string description = 3; - - // Resource name of this policy tag's parent policy tag. If empty, this is a - // top level tag. If not set, defaults to an empty string. - // - // For example, for the "LatLong" policy tag in the example above, this field - // contains the resource name of the "Geolocation" policy tag, and, for - // "Geolocation", this field is empty. - string parent_policy_tag = 4; - - // Output only. Resource names of child policy tags of this policy tag. - repeated string child_policy_tags = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request message for -// [CreateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.CreateTaxonomy]. -message CreateTaxonomyRequest { - // Required. Resource name of the project that the taxonomy will belong to. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // The taxonomy to create. - Taxonomy taxonomy = 2; -} - -// Request message for -// [DeleteTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.DeleteTaxonomy]. -message DeleteTaxonomyRequest { - // Required. Resource name of the taxonomy to delete. - // - // Note: All policy tags in this taxonomy are also deleted. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Taxonomy" - } - ]; -} - -// Request message for -// [UpdateTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.UpdateTaxonomy]. -message UpdateTaxonomyRequest { - // The taxonomy to update. You can update only its description, display name, - // and activated policy types. - Taxonomy taxonomy = 1; - - // Specifies fields to update. If not set, defaults to all fields you can - // update. - // - // For more information, see [FieldMask] - // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies]. -message ListTaxonomiesRequest { - // Required. Resource name of the project to list the taxonomies of. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // The maximum number of items to return. Must be a value between 1 and 1000 - // inclusively. If not set, defaults to 50. - int32 page_size = 2; - - // The pagination token of the next results page. If not set, - // the first page is returned. - // - // The token is returned in the response to a previous list request. - string page_token = 3; - - // Supported field for filter is 'service' and value is 'dataplex'. - // Eg: service=dataplex. - string filter = 4; -} - -// Response message for -// [ListTaxonomies][google.cloud.datacatalog.v1.PolicyTagManager.ListTaxonomies]. -message ListTaxonomiesResponse { - // Taxonomies that the project contains. - repeated Taxonomy taxonomies = 1; - - // Pagination token of the next results page. Empty if there are no - // more results in the list. - string next_page_token = 2; -} - -// Request message for -// [GetTaxonomy][google.cloud.datacatalog.v1.PolicyTagManager.GetTaxonomy]. -message GetTaxonomyRequest { - // Required. Resource name of the taxonomy to get. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Taxonomy" - } - ]; -} - -// Request message for -// [CreatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.CreatePolicyTag]. -message CreatePolicyTagRequest { - // Required. Resource name of the taxonomy that the policy tag will belong to. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/PolicyTag" - } - ]; - - // The policy tag to create. - PolicyTag policy_tag = 2; -} - -// Request message for -// [DeletePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.DeletePolicyTag]. -message DeletePolicyTagRequest { - // Required. Resource name of the policy tag to delete. - // - // Note: All of its descendant policy tags are also deleted. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/PolicyTag" - } - ]; -} - -// Request message for -// [UpdatePolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.UpdatePolicyTag]. -message UpdatePolicyTagRequest { - // The policy tag to update. You can update only its description, display - // name, and parent policy tag fields. - PolicyTag policy_tag = 1; - - // Specifies the fields to update. - // - // You can update only display name, description, and parent policy tag. - // If not set, defaults to all updatable fields. - // For more information, see [FieldMask] - // (https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask). - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags]. -message ListPolicyTagsRequest { - // Required. Resource name of the taxonomy to list the policy tags of. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/PolicyTag" - } - ]; - - // The maximum number of items to return. Must be a value between 1 and 1000 - // inclusively. - // If not set, defaults to 50. - int32 page_size = 2; - - // The pagination token of the next results page. If not set, returns the - // first page. - // - // The token is returned in the response to a previous list request. - string page_token = 3; -} - -// Response message for -// [ListPolicyTags][google.cloud.datacatalog.v1.PolicyTagManager.ListPolicyTags]. -message ListPolicyTagsResponse { - // The policy tags that belong to the taxonomy. - repeated PolicyTag policy_tags = 1; - - // Pagination token of the next results page. Empty if there are no - // more results in the list. - string next_page_token = 2; -} - -// Request message for -// [GetPolicyTag][google.cloud.datacatalog.v1.PolicyTagManager.GetPolicyTag]. -message GetPolicyTagRequest { - // Required. Resource name of the policy tag. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/PolicyTag" - } - ]; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanagerserialization.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanagerserialization.proto deleted file mode 100644 index c7e4f60a5eb5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/policytagmanagerserialization.proto +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/datacatalog/v1/policytagmanager.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTagManagerSerializationProto"; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Policy Tag Manager Serialization API service allows you to manipulate -// your policy tags and taxonomies in a serialized format. -// -// Taxonomy is a hierarchical group of policy tags. -service PolicyTagManagerSerialization { - option (google.api.default_host) = "datacatalog.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Replaces (updates) a taxonomy and all its policy tags. - // - // The taxonomy and its entire hierarchy of policy tags must be - // represented literally by `SerializedTaxonomy` and the nested - // `SerializedPolicyTag` messages. - // - // This operation automatically does the following: - // - // - Deletes the existing policy tags that are missing from the - // `SerializedPolicyTag`. - // - Creates policy tags that don't have resource names. They are considered - // new. - // - Updates policy tags with valid resources names accordingly. - rpc ReplaceTaxonomy(ReplaceTaxonomyRequest) returns (Taxonomy) { - option (google.api.http) = { - post: "/v1/{name=projects/*/locations/*/taxonomies/*}:replace" - body: "*" - }; - } - - // Creates new taxonomies (including their policy tags) in a given project - // by importing from inlined or cross-regional sources. - // - // For a cross-regional source, new taxonomies are created by copying - // from a source in another region. - // - // For an inlined source, taxonomies and policy tags are created in bulk using - // nested protocol buffer structures. - rpc ImportTaxonomies(ImportTaxonomiesRequest) - returns (ImportTaxonomiesResponse) { - option (google.api.http) = { - post: "/v1/{parent=projects/*/locations/*}/taxonomies:import" - body: "*" - }; - } - - // Exports taxonomies in the requested type and returns them, - // including their policy tags. The requested taxonomies must belong to the - // same project. - // - // This method generates `SerializedTaxonomy` protocol buffers with nested - // policy tags that can be used as input for `ImportTaxonomies` calls. - rpc ExportTaxonomies(ExportTaxonomiesRequest) - returns (ExportTaxonomiesResponse) { - option (google.api.http) = { - get: "/v1/{parent=projects/*/locations/*}/taxonomies:export" - }; - } -} - -// A nested protocol buffer that represents a taxonomy and the hierarchy of its -// policy tags. Used for taxonomy replacement, import, and -// export. -message SerializedTaxonomy { - // Required. Display name of the taxonomy. At most 200 bytes when encoded in - // UTF-8. - string display_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Description of the serialized taxonomy. At most 2000 bytes when - // encoded in UTF-8. If not set, defaults to an empty description. - string description = 2; - - // Top level policy tags associated with the taxonomy, if any. - repeated SerializedPolicyTag policy_tags = 3; - - // A list of policy types that are activated per taxonomy. - repeated Taxonomy.PolicyType activated_policy_types = 4; -} - -// A nested protocol buffer that represents a policy tag and all its -// descendants. -message SerializedPolicyTag { - // Resource name of the policy tag. - // - // This field is ignored when calling `ImportTaxonomies`. - string policy_tag = 1; - - // Required. Display name of the policy tag. At most 200 bytes when encoded - // in UTF-8. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Description of the serialized policy tag. At most - // 2000 bytes when encoded in UTF-8. If not set, defaults to an - // empty description. - string description = 3; - - // Children of the policy tag, if any. - repeated SerializedPolicyTag child_policy_tags = 4; -} - -// Request message for -// [ReplaceTaxonomy][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ReplaceTaxonomy]. -message ReplaceTaxonomyRequest { - // Required. Resource name of the taxonomy to update. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // Required. Taxonomy to update along with its child policy tags. - SerializedTaxonomy serialized_taxonomy = 2 - [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [ImportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies]. -message ImportTaxonomiesRequest { - // Required. Resource name of project that the imported taxonomies will belong - // to. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // Source taxonomies to import. - oneof source { - // Inline source taxonomy to import. - InlineSource inline_source = 2; - - // Cross-regional source taxonomy to import. - CrossRegionalSource cross_regional_source = 3; - } -} - -// Inline source containing taxonomies to import. -message InlineSource { - // Required. Taxonomies to import. - repeated SerializedTaxonomy taxonomies = 1 - [(google.api.field_behavior) = REQUIRED]; -} - -// Cross-regional source used to import an existing taxonomy into a different -// region. -message CrossRegionalSource { - // Required. The resource name of the source taxonomy to import. - string taxonomy = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Taxonomy" - } - ]; -} - -// Response message for -// [ImportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ImportTaxonomies]. -message ImportTaxonomiesResponse { - // Imported taxonomies. - repeated Taxonomy taxonomies = 1; -} - -// Request message for -// [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies]. -message ExportTaxonomiesRequest { - // Required. Resource name of the project that the exported taxonomies belong - // to. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // Required. Resource names of the taxonomies to export. - repeated string taxonomies = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // Required. Export destination for taxonomies. - oneof destination { - // Serialized export taxonomies that contain all the policy - // tags as nested protocol buffers. - bool serialized_taxonomies = 3; - } -} - -// Response message for -// [ExportTaxonomies][google.cloud.datacatalog.v1.PolicyTagManagerSerialization.ExportTaxonomies]. -message ExportTaxonomiesResponse { - // List of taxonomies and policy tags as nested protocol buffers. - repeated SerializedTaxonomy taxonomies = 1; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/schema.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/schema.proto deleted file mode 100644 index f3773c2e445d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/schema.proto +++ /dev/null @@ -1,148 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Represents a schema, for example, a BigQuery, GoogleSQL, or Avro schema. -message Schema { - // The unified GoogleSQL-like schema of columns. - // - // The overall maximum number of columns and nested columns is 10,000. - // The maximum nested depth is 15 levels. - repeated ColumnSchema columns = 2; -} - -// A column within a schema. Columns can be nested inside -// other columns. -message ColumnSchema { - // Specifies inclusion of the column in an index - enum IndexingType { - // Unspecified. - INDEXING_TYPE_UNSPECIFIED = 0; - - // Column not a part of an index. - INDEXING_TYPE_NONE = 1; - - // Column Part of non unique index. - INDEXING_TYPE_NON_UNIQUE = 2; - - // Column part of unique index. - INDEXING_TYPE_UNIQUE = 3; - - // Column part of the primary key. - INDEXING_TYPE_PRIMARY_KEY = 4; - } - - // Column info specific to Looker System. - message LookerColumnSpec { - // Column type in Looker. - enum LookerColumnType { - // Unspecified. - LOOKER_COLUMN_TYPE_UNSPECIFIED = 0; - - // Dimension. - DIMENSION = 1; - - // Dimension group - parent for Dimension. - DIMENSION_GROUP = 2; - - // Filter. - FILTER = 3; - - // Measure. - MEASURE = 4; - - // Parameter. - PARAMETER = 5; - } - - // Looker specific column type of this column. - LookerColumnType type = 1; - } - - // Represents the type of a field element. - message FieldElementType { - // Required. The type of a field element. See - // [ColumnSchema.type][google.cloud.datacatalog.v1.ColumnSchema.type]. - string type = 1 [(google.api.field_behavior) = REQUIRED]; - } - - // Required. Name of the column. - // - // Must be a UTF-8 string without dots (.). - // The maximum size is 64 bytes. - string column = 6 [(google.api.field_behavior) = REQUIRED]; - - // Required. Type of the column. - // - // Must be a UTF-8 string with the maximum size of 128 bytes. - string type = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Description of the column. Default value is an empty string. - // - // The description must be a UTF-8 string with the maximum size of 2000 - // bytes. - string description = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A column's mode indicates whether values in this column are - // required, nullable, or repeated. - // - // Only `NULLABLE`, `REQUIRED`, and `REPEATED` values are supported. - // Default mode is `NULLABLE`. - string mode = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Default value for the column. - string default_value = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Ordinal position - int32 ordinal_position = 9 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Most important inclusion of this column. - IndexingType highest_indexing_type = 10 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Schema of sub-columns. A column can have zero or more - // sub-columns. - repeated ColumnSchema subcolumns = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Information only applying for columns in Entries from a specific system. - oneof system_spec { - // Looker specific column info of this column. - LookerColumnSpec looker_column_spec = 18; - } - - // Optional. The subtype of the RANGE, if the type of this field is RANGE. If - // the type is RANGE, this field is required. Possible values for the field - // element type of a RANGE include: - // * DATE - // * DATETIME - // * TIMESTAMP - FieldElementType range_element_type = 19 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Garbage collection policy for the column or column family. - // Applies to systems like Cloud Bigtable. - string gc_rule = 11 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto deleted file mode 100644 index 2e0cb01021db..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/search.proto +++ /dev/null @@ -1,119 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/field_behavior.proto"; -import "google/cloud/datacatalog/v1/common.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Result in the response to a search request. -// -// Each result captures details of one entry that matches the search. -message SearchCatalogResult { - // Type of the search result. - // - // You can use this field to determine which get method to call to fetch the - // full resource. - SearchResultType search_result_type = 1; - - // Sub-type of the search result. - // - // A dot-delimited full type of the resource. The same type you - // specify in the `type` search predicate. - // - // Examples: `entry.table`, `entry.dataStream`, `tagTemplate`. - string search_result_subtype = 2; - - // The relative name of the resource in URL format. - // - // Examples: - // - // * `projects/{PROJECT_ID}/locations/{LOCATION_ID}/entryGroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}` - // * `projects/{PROJECT_ID}/tagTemplates/{TAG_TEMPLATE_ID}` - string relative_resource_name = 3; - - // The full name of the Google Cloud resource the entry belongs to. - // - // For more information, see [Full Resource Name] - // (/apis/design/resource_names#full_resource_name). - // - // Example: - // - // `//bigquery.googleapis.com/projects/PROJECT_ID/datasets/DATASET_ID/tables/TABLE_ID` - string linked_resource = 4; - - // The last modification timestamp of the entry in the source system. - google.protobuf.Timestamp modify_time = 7; - - // The source system of the entry. Applicable only when the - // `search_result_type` is `ENTRY`. - oneof system { - // Output only. The source system that Data Catalog automatically integrates - // with, such as BigQuery, Cloud Pub/Sub, or Dataproc Metastore. - IntegratedSystem integrated_system = 8 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Custom source system that you can manually integrate Data Catalog with. - string user_specified_system = 9; - } - - // Fully qualified name (FQN) of the resource. - // - // FQNs take two forms: - // - // * For non-regionalized resources: - // - // `{SYSTEM}:{PROJECT}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` - // - // * For regionalized resources: - // - // `{SYSTEM}:{PROJECT}.{LOCATION_ID}.{PATH_TO_RESOURCE_SEPARATED_WITH_DOTS}` - // - // Example for a DPMS table: - // - // `dataproc_metastore:PROJECT_ID.LOCATION_ID.INSTANCE_ID.DATABASE_ID.TABLE_ID` - string fully_qualified_name = 10; - - // The display name of the result. - string display_name = 12; - - // Entry description that can consist of several sentences or paragraphs that - // describe entry contents. - string description = 13; -} - -// The resource types that can be returned in search results. -enum SearchResultType { - // Default unknown type. - SEARCH_RESULT_TYPE_UNSPECIFIED = 0; - - // An [Entry][google.cloud.datacatalog.v1.Entry]. - ENTRY = 1; - - // A [TagTemplate][google.cloud.datacatalog.v1.TagTemplate]. - TAG_TEMPLATE = 2; - - // An [EntryGroup][google.cloud.datacatalog.v1.EntryGroup]. - ENTRY_GROUP = 3; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/table_spec.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/table_spec.proto deleted file mode 100644 index 5cae9b699f34..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/table_spec.proto +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Describes a BigQuery table. -message BigQueryTableSpec { - // Output only. The table source type. - TableSourceType table_source_type = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. - oneof type_spec { - // Table view specification. Populated only if - // the `table_source_type` is `BIGQUERY_VIEW`. - ViewSpec view_spec = 2; - - // Specification of a BigQuery table. Populated only if - // the `table_source_type` is `BIGQUERY_TABLE`. - TableSpec table_spec = 3; - } -} - -// Table source type. -enum TableSourceType { - // Default unknown type. - TABLE_SOURCE_TYPE_UNSPECIFIED = 0; - - // Table view. - BIGQUERY_VIEW = 2; - - // BigQuery native table. - BIGQUERY_TABLE = 5; - - // BigQuery materialized view. - BIGQUERY_MATERIALIZED_VIEW = 7; -} - -// Table view specification. -message ViewSpec { - // Output only. The query that defines the table view. - string view_query = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Normal BigQuery table specification. -message TableSpec { - // Output only. If the table is date-sharded, that is, it matches the - // `[prefix]YYYYMMDD` name pattern, this field is the Data Catalog resource - // name of the date-sharded grouped entry. For example: - // - // `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. - // - // Otherwise, `grouped_entry` is empty. - string grouped_entry = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; -} - -// Specification for a group of BigQuery tables with the `[prefix]YYYYMMDD` name -// pattern. -// -// For more information, see [Introduction to partitioned tables] -// (https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding). -message BigQueryDateShardedSpec { - // Output only. The Data Catalog resource name of the dataset entry the - // current table belongs to. For example: - // - // `projects/{PROJECT_ID}/locations/{LOCATION}/entrygroups/{ENTRY_GROUP_ID}/entries/{ENTRY_ID}`. - string dataset = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; - - // Output only. The table name prefix of the shards. - // - // The name of any given shard is `[table_prefix]YYYYMMDD`. - // For example, for the `MyTable20180101` shard, the - // `table_prefix` is `MyTable`. - string table_prefix = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Total number of shards. - int64 shard_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. BigQuery resource name of the latest shard. - string latest_shard_resource = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/tags.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/tags.proto deleted file mode 100644 index ba963006bee6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/tags.proto +++ /dev/null @@ -1,307 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Tags contain custom metadata and are attached to Data Catalog resources. Tags -// conform with the specification of their tag template. -// -// See [Data Catalog -// IAM](https://cloud.google.com/data-catalog/docs/concepts/iam) for information -// on the permissions needed to create or view tags. -message Tag { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/Tag" - pattern: "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}" - }; - - // Identifier. The resource name of the tag in URL format where tag ID is a - // system-generated identifier. - // - // Note: The tag itself might not be stored in the location specified in its - // name. - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // Required. The resource name of the tag template this tag uses. Example: - // - // `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE_ID}` - // - // This field cannot be modified after creation. - string template = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. The display name of the tag template. - string template_display_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The scope within the parent resource that this tag is attached to. If not - // provided, the tag is attached to the parent resource itself. - // - // Deleting the scope from the parent resource deletes all tags attached - // to that scope. - // - // These fields cannot be updated after creation. - oneof scope { - // Resources like entry can have schemas associated with them. This scope - // allows you to attach tags to an individual column based on that schema. - // - // To attach a tag to a nested column, separate column names with a dot - // (`.`). Example: `column.nested_column`. - string column = 4; - } - - // Required. Maps the ID of a tag field to its value and additional - // information about that field. - // - // Tag template defines valid field IDs. A tag - // must have at least 1 field and at most 500 fields. - map fields = 3 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Denotes the transfer status of the Tag Template. - TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Contains the value and additional information on a field within -// a [Tag][google.cloud.datacatalog.v1.Tag]. -message TagField { - // An enum value. - message EnumValue { - // The display name of the enum value. - string display_name = 1; - } - - // Output only. The display name of this field. - string display_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. The value of this field. - oneof kind { - // The value of a tag field with a double type. - double double_value = 2; - - // The value of a tag field with a string type. - // - // The maximum length is 2000 UTF-8 characters. - string string_value = 3; - - // The value of a tag field with a boolean type. - bool bool_value = 4; - - // The value of a tag field with a timestamp type. - google.protobuf.Timestamp timestamp_value = 5; - - // The value of a tag field with an enum type. - // - // This value must be one of the allowed values listed in this enum. - EnumValue enum_value = 6; - - // The value of a tag field with a rich text type. - // - // The maximum length is 10 MiB as this value holds HTML descriptions - // including encoded images. The maximum length of the text without images - // is 100 KiB. - string richtext_value = 8; - } - - // Output only. The order of this field with respect to other fields in this - // tag. Can be set by - // [Tag][google.cloud.datacatalog.v1.TagTemplateField.order]. - // - // For example, a higher value can indicate a more important field. - // The value can be negative. Multiple fields can have the same order, and - // field orders within a tag don't have to be sequential. - int32 order = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A tag template defines a tag that can have one or more typed fields. -// -// The template is used to create tags that are attached to Google Cloud -// resources. [Tag template roles] -// (https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles) -// provide permissions to create, edit, and use the template. For example, -// see the [TagTemplate User] -// (https://cloud.google.com/data-catalog/docs/how-to/template-user) role -// that includes a permission to use the tag template to tag resources. -message TagTemplate { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/TagTemplate" - pattern: "projects/{project}/locations/{location}/tagTemplates/{tag_template}" - }; - - // This enum describes TagTemplate transfer status to Dataplex service. - enum DataplexTransferStatus { - // Default value. TagTemplate and its tags are only visible and editable in - // DataCatalog. - DATAPLEX_TRANSFER_STATUS_UNSPECIFIED = 0; - - // TagTemplate and its tags are auto-copied to Dataplex service. - // Visible in both services. Editable in DataCatalog, read-only in Dataplex. - // Deprecated: Individual TagTemplate migration is deprecated in favor of - // organization or project wide TagTemplate migration opt-in. - MIGRATED = 1 [deprecated = true]; - - // TagTemplate and its tags are auto-copied to Dataplex service. - // Visible in both services. Editable in Dataplex, read-only in DataCatalog. - TRANSFERRED = 2; - } - - // Identifier. The resource name of the tag template in URL format. - // - // Note: The tag template itself and its child resources might not be - // stored in the location specified in its name. - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // Display name for this template. Defaults to an empty string. - // - // The name must contain only Unicode letters, numbers (0-9), underscores (_), - // dashes (-), spaces ( ), and can't start or end with spaces. - // The maximum length is 200 characters. - string display_name = 2; - - // Indicates whether tags created with this template are public. Public tags - // do not require tag template access to appear in - // [ListTags][google.cloud.datacatalog.v1.DataCatalog.ListTags] API response. - // - // Additionally, you can search for a public tag by value with a - // simple search query in addition to using a ``tag:`` predicate. - bool is_publicly_readable = 5; - - // Required. Map of tag template field IDs to the settings for the field. - // This map is an exhaustive list of the allowed fields. The map must contain - // at least one field and at most 500 fields. - // - // The keys to this map are tag template field IDs. The IDs have the - // following limitations: - // - // * Can contain uppercase and lowercase letters, numbers (0-9) and - // underscores (_). - // * Must be at least 1 character and at most 64 characters long. - // * Must start with a letter or underscore. - map fields = 3 - [(google.api.field_behavior) = REQUIRED]; - - // Optional. Transfer status of the TagTemplate - DataplexTransferStatus dataplex_transfer_status = 7 - [(google.api.field_behavior) = OPTIONAL]; -} - -// The template for an individual field within a tag template. -message TagTemplateField { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/TagTemplateField" - pattern: "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}" - }; - - // Identifier. The resource name of the tag template field in URL format. - // Example: - // - // `projects/{PROJECT_ID}/locations/{LOCATION}/tagTemplates/{TAG_TEMPLATE}/fields/{FIELD}` - // - // Note: The tag template field itself might not be stored in the location - // specified in its name. - // - // The name must contain only letters (a-z, A-Z), numbers (0-9), - // or underscores (_), and must start with a letter or underscore. - // The maximum length is 64 characters. - string name = 6 [(google.api.field_behavior) = IDENTIFIER]; - - // The display name for this field. Defaults to an empty string. - // - // The name must contain only Unicode letters, numbers (0-9), underscores (_), - // dashes (-), spaces ( ), and can't start or end with spaces. - // The maximum length is 200 characters. - string display_name = 1; - - // Required. The type of value this tag field can contain. - FieldType type = 2 [(google.api.field_behavior) = REQUIRED]; - - // If true, this field is required. Defaults to false. - bool is_required = 3; - - // The description for this field. Defaults to an empty string. - string description = 4; - - // The order of this field with respect to other fields in this tag - // template. - // - // For example, a higher value can indicate a more important field. - // The value can be negative. Multiple fields can have the same order and - // field orders within a tag don't have to be sequential. - int32 order = 5; -} - -message FieldType { - enum PrimitiveType { - // The default invalid value for a type. - PRIMITIVE_TYPE_UNSPECIFIED = 0; - - // A double precision number. - DOUBLE = 1; - - // An UTF-8 string. - STRING = 2; - - // A boolean value. - BOOL = 3; - - // A timestamp. - TIMESTAMP = 4; - - // A Richtext description. - RICHTEXT = 5; - } - - message EnumType { - message EnumValue { - // Required. The display name of the enum value. Must not be an empty - // string. - // - // The name must contain only Unicode letters, numbers (0-9), underscores - // (_), dashes (-), spaces ( ), and can't start or end with spaces. The - // maximum length is 200 characters. - string display_name = 1 [(google.api.field_behavior) = REQUIRED]; - } - - // The set of allowed values for this enum. - // - // This set must not be empty and can include up to 100 allowed values. - // The display names of the values in this set must not be empty and must - // be case-insensitively unique within this set. - // - // The order of items in this set is preserved. This field can be used to - // create, remove, and reorder enum values. To rename enum values, use the - // `RenameTagTemplateFieldEnumValue` method. - repeated EnumValue allowed_values = 1; - } - - // Required. - oneof type_decl { - // Primitive types, such as string, boolean, etc. - PrimitiveType primitive_type = 1; - - // An enum type. - EnumType enum_type = 2; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/timestamps.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/timestamps.proto deleted file mode 100644 index 1798792c9a16..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/timestamps.proto +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/field_behavior.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Timestamps associated with this resource in a particular system. -message SystemTimestamps { - // Creation timestamp of the resource within the given system. - google.protobuf.Timestamp create_time = 1; - - // Timestamp of the last modification of the resource or its metadata within - // a given system. - // - // Note: Depending on the source system, not every modification updates this - // timestamp. - // For example, BigQuery timestamps every metadata modification but not data - // or permission changes. - google.protobuf.Timestamp update_time = 2; - - // Output only. Expiration timestamp of the resource within the given system. - // - // Currently only applicable to BigQuery resources. - google.protobuf.Timestamp expire_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/usage.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/usage.proto deleted file mode 100644 index 7ef3f5d7fe37..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1/src/main/proto/google/cloud/datacatalog/v1/usage.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1; - -import "google/api/field_behavior.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1"; -option ruby_package = "Google::Cloud::DataCatalog::V1"; - -// Detailed statistics on the entry's usage. -// -// Usage statistics have the following limitations: -// -// - Only BigQuery tables have them. -// - They only include BigQuery query jobs. -// - They might be underestimated because wildcard table references -// are not yet counted. For more information, see -// [Querying multiple tables using a wildcard table] -// (https://cloud.google.com/bigquery/docs/querying-wildcard-tables) -message UsageStats { - // The number of successful uses of the underlying entry. - float total_completions = 1; - - // The number of failed attempts to use the underlying entry. - float total_failures = 2; - - // The number of cancelled attempts to use the underlying entry. - float total_cancellations = 3; - - // Total time spent only on successful uses, in milliseconds. - float total_execution_time_for_completions_millis = 4; -} - -// Common statistics on the entry's usage. -// -// They can be set on any system. -message CommonUsageStats { - // View count in source system. - optional int64 view_count = 1; -} - -// The set of all usage signals that Data Catalog stores. -// -// Note: Usually, these signals are updated daily. In rare cases, an update may -// fail but will be performed again on the next day. -message UsageSignal { - // The end timestamp of the duration of usage statistics. - google.protobuf.Timestamp update_time = 1; - - // Output only. BigQuery usage statistics over each of the predefined time - // ranges. - // - // Supported time ranges are `{"24H", "7D", "30D"}`. - map usage_within_time_range = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Common usage statistics over each of the predefined time ranges. - // - // Supported time ranges are `{"24H", "7D", "30D", "Lifetime"}`. - map common_usage_within_time_range = 3; - - // Favorite count in the source system. - optional int64 favorite_count = 4; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/clirr-ignored-differences.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/clirr-ignored-differences.xml deleted file mode 100644 index 5602b647e1b9..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/clirr-ignored-differences.xml +++ /dev/null @@ -1,80 +0,0 @@ - - - - - 7012 - com/google/cloud/datacatalog/v1beta1/*OrBuilder - * get*(*) - - - 7012 - com/google/cloud/datacatalog/v1beta1/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/cloud/datacatalog/v1beta1/*OrBuilder - boolean has*(*) - - - - 7006 - com/google/cloud/datacatalog/v1beta1/** - * getDefaultInstanceForType() - ** - - - 7006 - com/google/cloud/datacatalog/v1beta1/** - * addRepeatedField(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1beta1/** - * clear() - ** - - - 7006 - com/google/cloud/datacatalog/v1beta1/** - * clearField(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1beta1/** - * clearOneof(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1beta1/** - * clone() - ** - - - 7006 - com/google/cloud/datacatalog/v1beta1/** - * mergeUnknownFields(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1beta1/** - * setField(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1beta1/** - * setRepeatedField(*) - ** - - - 7006 - com/google/cloud/datacatalog/v1beta1/** - * setUnknownFields(*) - ** - - diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml deleted file mode 100644 index 78c8ca5f5a2d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/pom.xml +++ /dev/null @@ -1,37 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-cloud-datacatalog-v1beta1 - 1.102.0 - proto-google-cloud-datacatalog-v1beta1 - PROTO library for proto-google-cloud-datacatalog-v1beta1 - - com.google.cloud - google-cloud-datacatalog-parent - 1.102.0 - - - - 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 - - - \ No newline at end of file diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpec.java deleted file mode 100644 index 68eb8efc20d1..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpec.java +++ /dev/null @@ -1,940 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`.
- * Context:
- * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec} - */ -@com.google.protobuf.Generated -public final class BigQueryDateShardedSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) - BigQueryDateShardedSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "BigQueryDateShardedSpec"); - } - - // Use BigQueryDateShardedSpec.newBuilder() to construct. - private BigQueryDateShardedSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private BigQueryDateShardedSpec() { - dataset_ = ""; - tablePrefix_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.class, - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder.class); - } - - public static final int DATASET_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object dataset_ = ""; - - /** - * - * - *
-   * Output only. The Data Catalog resource name of the dataset entry the
-   * current table belongs to, for example,
-   * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-   * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The dataset. - */ - @java.lang.Override - public java.lang.String getDataset() { - java.lang.Object ref = dataset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataset_ = s; - return s; - } - } - - /** - * - * - *
-   * Output only. The Data Catalog resource name of the dataset entry the
-   * current table belongs to, for example,
-   * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-   * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataset. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDatasetBytes() { - java.lang.Object ref = dataset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TABLE_PREFIX_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object tablePrefix_ = ""; - - /** - * - * - *
-   * Output only. The table name prefix of the shards. The name of any given
-   * shard is
-   * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the
-   * `table_prefix` is `MyTable`.
-   * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tablePrefix. - */ - @java.lang.Override - public java.lang.String getTablePrefix() { - java.lang.Object ref = tablePrefix_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tablePrefix_ = s; - return s; - } - } - - /** - * - * - *
-   * Output only. The table name prefix of the shards. The name of any given
-   * shard is
-   * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the
-   * `table_prefix` is `MyTable`.
-   * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for tablePrefix. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTablePrefixBytes() { - java.lang.Object ref = tablePrefix_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tablePrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SHARD_COUNT_FIELD_NUMBER = 3; - private long shardCount_ = 0L; - - /** - * - * - *
-   * Output only. Total number of shards.
-   * 
- * - * int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The shardCount. - */ - @java.lang.Override - public long getShardCount() { - return shardCount_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(dataset_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, dataset_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tablePrefix_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, tablePrefix_); - } - if (shardCount_ != 0L) { - output.writeInt64(3, shardCount_); - } - 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(dataset_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, dataset_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tablePrefix_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tablePrefix_); - } - if (shardCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(3, shardCount_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec other = - (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) obj; - - if (!getDataset().equals(other.getDataset())) return false; - if (!getTablePrefix().equals(other.getTablePrefix())) return false; - if (getShardCount() != other.getShardCount()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DATASET_FIELD_NUMBER; - hash = (53 * hash) + getDataset().hashCode(); - hash = (37 * hash) + TABLE_PREFIX_FIELD_NUMBER; - hash = (53 * hash) + getTablePrefix().hashCode(); - hash = (37 * hash) + SHARD_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getShardCount()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`.
-   * Context:
-   * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.class, - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - dataset_ = ""; - tablePrefix_ = ""; - shardCount_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec build() { - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec buildPartial() { - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec result = - new com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.dataset_ = dataset_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tablePrefix_ = tablePrefix_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.shardCount_ = shardCount_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec other) { - if (other - == com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance()) - return this; - if (!other.getDataset().isEmpty()) { - dataset_ = other.dataset_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTablePrefix().isEmpty()) { - tablePrefix_ = other.tablePrefix_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getShardCount() != 0L) { - setShardCount(other.getShardCount()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - dataset_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - tablePrefix_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - shardCount_ = input.readInt64(); - 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 dataset_ = ""; - - /** - * - * - *
-     * Output only. The Data Catalog resource name of the dataset entry the
-     * current table belongs to, for example,
-     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The dataset. - */ - public java.lang.String getDataset() { - java.lang.Object ref = dataset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - dataset_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Output only. The Data Catalog resource name of the dataset entry the
-     * current table belongs to, for example,
-     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataset. - */ - public com.google.protobuf.ByteString getDatasetBytes() { - java.lang.Object ref = dataset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - dataset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Output only. The Data Catalog resource name of the dataset entry the
-     * current table belongs to, for example,
-     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The dataset to set. - * @return This builder for chaining. - */ - public Builder setDataset(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - dataset_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The Data Catalog resource name of the dataset entry the
-     * current table belongs to, for example,
-     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearDataset() { - dataset_ = getDefaultInstance().getDataset(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The Data Catalog resource name of the dataset entry the
-     * current table belongs to, for example,
-     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-     * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for dataset to set. - * @return This builder for chaining. - */ - public Builder setDatasetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - dataset_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object tablePrefix_ = ""; - - /** - * - * - *
-     * Output only. The table name prefix of the shards. The name of any given
-     * shard is
-     * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the
-     * `table_prefix` is `MyTable`.
-     * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tablePrefix. - */ - public java.lang.String getTablePrefix() { - java.lang.Object ref = tablePrefix_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tablePrefix_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Output only. The table name prefix of the shards. The name of any given
-     * shard is
-     * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the
-     * `table_prefix` is `MyTable`.
-     * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for tablePrefix. - */ - public com.google.protobuf.ByteString getTablePrefixBytes() { - java.lang.Object ref = tablePrefix_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tablePrefix_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Output only. The table name prefix of the shards. The name of any given
-     * shard is
-     * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the
-     * `table_prefix` is `MyTable`.
-     * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The tablePrefix to set. - * @return This builder for chaining. - */ - public Builder setTablePrefix(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tablePrefix_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The table name prefix of the shards. The name of any given
-     * shard is
-     * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the
-     * `table_prefix` is `MyTable`.
-     * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearTablePrefix() { - tablePrefix_ = getDefaultInstance().getTablePrefix(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The table name prefix of the shards. The name of any given
-     * shard is
-     * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the
-     * `table_prefix` is `MyTable`.
-     * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for tablePrefix to set. - * @return This builder for chaining. - */ - public Builder setTablePrefixBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tablePrefix_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private long shardCount_; - - /** - * - * - *
-     * Output only. Total number of shards.
-     * 
- * - * int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The shardCount. - */ - @java.lang.Override - public long getShardCount() { - return shardCount_; - } - - /** - * - * - *
-     * Output only. Total number of shards.
-     * 
- * - * int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The shardCount to set. - * @return This builder for chaining. - */ - public Builder setShardCount(long value) { - - shardCount_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Total number of shards.
-     * 
- * - * int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearShardCount() { - bitField0_ = (bitField0_ & ~0x00000004); - shardCount_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) - private static final com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec(); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryDateShardedSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpecOrBuilder.java deleted file mode 100644 index a6829844d014..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryDateShardedSpecOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface BigQueryDateShardedSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The Data Catalog resource name of the dataset entry the
-   * current table belongs to, for example,
-   * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-   * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The dataset. - */ - java.lang.String getDataset(); - - /** - * - * - *
-   * Output only. The Data Catalog resource name of the dataset entry the
-   * current table belongs to, for example,
-   * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-   * 
- * - * - * string dataset = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for dataset. - */ - com.google.protobuf.ByteString getDatasetBytes(); - - /** - * - * - *
-   * Output only. The table name prefix of the shards. The name of any given
-   * shard is
-   * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the
-   * `table_prefix` is `MyTable`.
-   * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The tablePrefix. - */ - java.lang.String getTablePrefix(); - - /** - * - * - *
-   * Output only. The table name prefix of the shards. The name of any given
-   * shard is
-   * `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the
-   * `table_prefix` is `MyTable`.
-   * 
- * - * string table_prefix = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for tablePrefix. - */ - com.google.protobuf.ByteString getTablePrefixBytes(); - - /** - * - * - *
-   * Output only. Total number of shards.
-   * 
- * - * int64 shard_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The shardCount. - */ - long getShardCount(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpec.java deleted file mode 100644 index 83a1ef3288ce..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpec.java +++ /dev/null @@ -1,1306 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Describes a BigQuery table.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.BigQueryTableSpec} - */ -@com.google.protobuf.Generated -public final class BigQueryTableSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.BigQueryTableSpec) - BigQueryTableSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "BigQueryTableSpec"); - } - - // Use BigQueryTableSpec.newBuilder() to construct. - private BigQueryTableSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private BigQueryTableSpec() { - tableSourceType_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.class, - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder.class); - } - - private int typeSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object typeSpec_; - - public enum TypeSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - VIEW_SPEC(2), - TABLE_SPEC(3), - TYPESPEC_NOT_SET(0); - private final int value; - - private TypeSpecCase(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 TypeSpecCase valueOf(int value) { - return forNumber(value); - } - - public static TypeSpecCase forNumber(int value) { - switch (value) { - case 2: - return VIEW_SPEC; - case 3: - return TABLE_SPEC; - case 0: - return TYPESPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TypeSpecCase getTypeSpecCase() { - return TypeSpecCase.forNumber(typeSpecCase_); - } - - public static final int TABLE_SOURCE_TYPE_FIELD_NUMBER = 1; - private int tableSourceType_ = 0; - - /** - * - * - *
-   * Output only. The table source type.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for tableSourceType. - */ - @java.lang.Override - public int getTableSourceTypeValue() { - return tableSourceType_; - } - - /** - * - * - *
-   * Output only. The table source type.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tableSourceType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TableSourceType getTableSourceType() { - com.google.cloud.datacatalog.v1beta1.TableSourceType result = - com.google.cloud.datacatalog.v1beta1.TableSourceType.forNumber(tableSourceType_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.TableSourceType.UNRECOGNIZED - : result; - } - - public static final int VIEW_SPEC_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Table view specification. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - * - * @return Whether the viewSpec field is set. - */ - @java.lang.Override - public boolean hasViewSpec() { - return typeSpecCase_ == 2; - } - - /** - * - * - *
-   * Table view specification. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - * - * @return The viewSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ViewSpec getViewSpec() { - if (typeSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.ViewSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Table view specification. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ViewSpecOrBuilder getViewSpecOrBuilder() { - if (typeSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.ViewSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance(); - } - - public static final int TABLE_SPEC_FIELD_NUMBER = 3; - - /** - * - * - *
-   * Spec of a BigQuery table. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - * - * @return Whether the tableSpec field is set. - */ - @java.lang.Override - public boolean hasTableSpec() { - return typeSpecCase_ == 3; - } - - /** - * - * - *
-   * Spec of a BigQuery table. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - * - * @return The tableSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TableSpec getTableSpec() { - if (typeSpecCase_ == 3) { - return (com.google.cloud.datacatalog.v1beta1.TableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.TableSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Spec of a BigQuery table. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder() { - if (typeSpecCase_ == 3) { - return (com.google.cloud.datacatalog.v1beta1.TableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.TableSpec.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 (tableSourceType_ - != com.google.cloud.datacatalog.v1beta1.TableSourceType.TABLE_SOURCE_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, tableSourceType_); - } - if (typeSpecCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datacatalog.v1beta1.ViewSpec) typeSpec_); - } - if (typeSpecCase_ == 3) { - output.writeMessage(3, (com.google.cloud.datacatalog.v1beta1.TableSpec) typeSpec_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (tableSourceType_ - != com.google.cloud.datacatalog.v1beta1.TableSourceType.TABLE_SOURCE_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, tableSourceType_); - } - if (typeSpecCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datacatalog.v1beta1.ViewSpec) typeSpec_); - } - if (typeSpecCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.datacatalog.v1beta1.TableSpec) typeSpec_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec other = - (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) obj; - - if (tableSourceType_ != other.tableSourceType_) return false; - if (!getTypeSpecCase().equals(other.getTypeSpecCase())) return false; - switch (typeSpecCase_) { - case 2: - if (!getViewSpec().equals(other.getViewSpec())) return false; - break; - case 3: - if (!getTableSpec().equals(other.getTableSpec())) 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) + TABLE_SOURCE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + tableSourceType_; - switch (typeSpecCase_) { - case 2: - hash = (37 * hash) + VIEW_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getViewSpec().hashCode(); - break; - case 3: - hash = (37 * hash) + TABLE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getTableSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Describes a BigQuery table.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.BigQueryTableSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.BigQueryTableSpec) - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.class, - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tableSourceType_ = 0; - if (viewSpecBuilder_ != null) { - viewSpecBuilder_.clear(); - } - if (tableSpecBuilder_ != null) { - tableSpecBuilder_.clear(); - } - typeSpecCase_ = 0; - typeSpec_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec build() { - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec buildPartial() { - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec result = - new com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tableSourceType_ = tableSourceType_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec result) { - result.typeSpecCase_ = typeSpecCase_; - result.typeSpec_ = this.typeSpec_; - if (typeSpecCase_ == 2 && viewSpecBuilder_ != null) { - result.typeSpec_ = viewSpecBuilder_.build(); - } - if (typeSpecCase_ == 3 && tableSpecBuilder_ != null) { - result.typeSpec_ = tableSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec other) { - if (other == com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance()) - return this; - if (other.tableSourceType_ != 0) { - setTableSourceTypeValue(other.getTableSourceTypeValue()); - } - switch (other.getTypeSpecCase()) { - case VIEW_SPEC: - { - mergeViewSpec(other.getViewSpec()); - break; - } - case TABLE_SPEC: - { - mergeTableSpec(other.getTableSpec()); - break; - } - case TYPESPEC_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: - { - tableSourceType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage( - internalGetViewSpecFieldBuilder().getBuilder(), extensionRegistry); - typeSpecCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetTableSpecFieldBuilder().getBuilder(), extensionRegistry); - typeSpecCase_ = 3; - 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 typeSpecCase_ = 0; - private java.lang.Object typeSpec_; - - public TypeSpecCase getTypeSpecCase() { - return TypeSpecCase.forNumber(typeSpecCase_); - } - - public Builder clearTypeSpec() { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private int tableSourceType_ = 0; - - /** - * - * - *
-     * Output only. The table source type.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for tableSourceType. - */ - @java.lang.Override - public int getTableSourceTypeValue() { - return tableSourceType_; - } - - /** - * - * - *
-     * Output only. The table source type.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for tableSourceType to set. - * @return This builder for chaining. - */ - public Builder setTableSourceTypeValue(int value) { - tableSourceType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The table source type.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tableSourceType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TableSourceType getTableSourceType() { - com.google.cloud.datacatalog.v1beta1.TableSourceType result = - com.google.cloud.datacatalog.v1beta1.TableSourceType.forNumber(tableSourceType_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.TableSourceType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Output only. The table source type.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The tableSourceType to set. - * @return This builder for chaining. - */ - public Builder setTableSourceType(com.google.cloud.datacatalog.v1beta1.TableSourceType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - tableSourceType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The table source type.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearTableSourceType() { - bitField0_ = (bitField0_ & ~0x00000001); - tableSourceType_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.ViewSpec, - com.google.cloud.datacatalog.v1beta1.ViewSpec.Builder, - com.google.cloud.datacatalog.v1beta1.ViewSpecOrBuilder> - viewSpecBuilder_; - - /** - * - * - *
-     * Table view specification. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - * - * @return Whether the viewSpec field is set. - */ - @java.lang.Override - public boolean hasViewSpec() { - return typeSpecCase_ == 2; - } - - /** - * - * - *
-     * Table view specification. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - * - * @return The viewSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ViewSpec getViewSpec() { - if (viewSpecBuilder_ == null) { - if (typeSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.ViewSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance(); - } else { - if (typeSpecCase_ == 2) { - return viewSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Table view specification. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - */ - public Builder setViewSpec(com.google.cloud.datacatalog.v1beta1.ViewSpec value) { - if (viewSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpec_ = value; - onChanged(); - } else { - viewSpecBuilder_.setMessage(value); - } - typeSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Table view specification. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - */ - public Builder setViewSpec( - com.google.cloud.datacatalog.v1beta1.ViewSpec.Builder builderForValue) { - if (viewSpecBuilder_ == null) { - typeSpec_ = builderForValue.build(); - onChanged(); - } else { - viewSpecBuilder_.setMessage(builderForValue.build()); - } - typeSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Table view specification. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - */ - public Builder mergeViewSpec(com.google.cloud.datacatalog.v1beta1.ViewSpec value) { - if (viewSpecBuilder_ == null) { - if (typeSpecCase_ == 2 - && typeSpec_ != com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance()) { - typeSpec_ = - com.google.cloud.datacatalog.v1beta1.ViewSpec.newBuilder( - (com.google.cloud.datacatalog.v1beta1.ViewSpec) typeSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - typeSpec_ = value; - } - onChanged(); - } else { - if (typeSpecCase_ == 2) { - viewSpecBuilder_.mergeFrom(value); - } else { - viewSpecBuilder_.setMessage(value); - } - } - typeSpecCase_ = 2; - return this; - } - - /** - * - * - *
-     * Table view specification. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - */ - public Builder clearViewSpec() { - if (viewSpecBuilder_ == null) { - if (typeSpecCase_ == 2) { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - } - } else { - if (typeSpecCase_ == 2) { - typeSpecCase_ = 0; - typeSpec_ = null; - } - viewSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Table view specification. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - */ - public com.google.cloud.datacatalog.v1beta1.ViewSpec.Builder getViewSpecBuilder() { - return internalGetViewSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Table view specification. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ViewSpecOrBuilder getViewSpecOrBuilder() { - if ((typeSpecCase_ == 2) && (viewSpecBuilder_ != null)) { - return viewSpecBuilder_.getMessageOrBuilder(); - } else { - if (typeSpecCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.ViewSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Table view specification. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_VIEW`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.ViewSpec, - com.google.cloud.datacatalog.v1beta1.ViewSpec.Builder, - com.google.cloud.datacatalog.v1beta1.ViewSpecOrBuilder> - internalGetViewSpecFieldBuilder() { - if (viewSpecBuilder_ == null) { - if (!(typeSpecCase_ == 2)) { - typeSpec_ = com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance(); - } - viewSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.ViewSpec, - com.google.cloud.datacatalog.v1beta1.ViewSpec.Builder, - com.google.cloud.datacatalog.v1beta1.ViewSpecOrBuilder>( - (com.google.cloud.datacatalog.v1beta1.ViewSpec) typeSpec_, - getParentForChildren(), - isClean()); - typeSpec_ = null; - } - typeSpecCase_ = 2; - onChanged(); - return viewSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TableSpec, - com.google.cloud.datacatalog.v1beta1.TableSpec.Builder, - com.google.cloud.datacatalog.v1beta1.TableSpecOrBuilder> - tableSpecBuilder_; - - /** - * - * - *
-     * Spec of a BigQuery table. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - * - * @return Whether the tableSpec field is set. - */ - @java.lang.Override - public boolean hasTableSpec() { - return typeSpecCase_ == 3; - } - - /** - * - * - *
-     * Spec of a BigQuery table. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - * - * @return The tableSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TableSpec getTableSpec() { - if (tableSpecBuilder_ == null) { - if (typeSpecCase_ == 3) { - return (com.google.cloud.datacatalog.v1beta1.TableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.TableSpec.getDefaultInstance(); - } else { - if (typeSpecCase_ == 3) { - return tableSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1beta1.TableSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Spec of a BigQuery table. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - */ - public Builder setTableSpec(com.google.cloud.datacatalog.v1beta1.TableSpec value) { - if (tableSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpec_ = value; - onChanged(); - } else { - tableSpecBuilder_.setMessage(value); - } - typeSpecCase_ = 3; - return this; - } - - /** - * - * - *
-     * Spec of a BigQuery table. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - */ - public Builder setTableSpec( - com.google.cloud.datacatalog.v1beta1.TableSpec.Builder builderForValue) { - if (tableSpecBuilder_ == null) { - typeSpec_ = builderForValue.build(); - onChanged(); - } else { - tableSpecBuilder_.setMessage(builderForValue.build()); - } - typeSpecCase_ = 3; - return this; - } - - /** - * - * - *
-     * Spec of a BigQuery table. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - */ - public Builder mergeTableSpec(com.google.cloud.datacatalog.v1beta1.TableSpec value) { - if (tableSpecBuilder_ == null) { - if (typeSpecCase_ == 3 - && typeSpec_ != com.google.cloud.datacatalog.v1beta1.TableSpec.getDefaultInstance()) { - typeSpec_ = - com.google.cloud.datacatalog.v1beta1.TableSpec.newBuilder( - (com.google.cloud.datacatalog.v1beta1.TableSpec) typeSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - typeSpec_ = value; - } - onChanged(); - } else { - if (typeSpecCase_ == 3) { - tableSpecBuilder_.mergeFrom(value); - } else { - tableSpecBuilder_.setMessage(value); - } - } - typeSpecCase_ = 3; - return this; - } - - /** - * - * - *
-     * Spec of a BigQuery table. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - */ - public Builder clearTableSpec() { - if (tableSpecBuilder_ == null) { - if (typeSpecCase_ == 3) { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - } - } else { - if (typeSpecCase_ == 3) { - typeSpecCase_ = 0; - typeSpec_ = null; - } - tableSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Spec of a BigQuery table. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - */ - public com.google.cloud.datacatalog.v1beta1.TableSpec.Builder getTableSpecBuilder() { - return internalGetTableSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Spec of a BigQuery table. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder() { - if ((typeSpecCase_ == 3) && (tableSpecBuilder_ != null)) { - return tableSpecBuilder_.getMessageOrBuilder(); - } else { - if (typeSpecCase_ == 3) { - return (com.google.cloud.datacatalog.v1beta1.TableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.TableSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Spec of a BigQuery table. This field should only be populated if
-     * `table_source_type` is `BIGQUERY_TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TableSpec, - com.google.cloud.datacatalog.v1beta1.TableSpec.Builder, - com.google.cloud.datacatalog.v1beta1.TableSpecOrBuilder> - internalGetTableSpecFieldBuilder() { - if (tableSpecBuilder_ == null) { - if (!(typeSpecCase_ == 3)) { - typeSpec_ = com.google.cloud.datacatalog.v1beta1.TableSpec.getDefaultInstance(); - } - tableSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TableSpec, - com.google.cloud.datacatalog.v1beta1.TableSpec.Builder, - com.google.cloud.datacatalog.v1beta1.TableSpecOrBuilder>( - (com.google.cloud.datacatalog.v1beta1.TableSpec) typeSpec_, - getParentForChildren(), - isClean()); - typeSpec_ = null; - } - typeSpecCase_ = 3; - onChanged(); - return tableSpecBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.BigQueryTableSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.BigQueryTableSpec) - private static final com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec(); - } - - public static com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public BigQueryTableSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpecOrBuilder.java deleted file mode 100644 index 9681a4bc02ab..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/BigQueryTableSpecOrBuilder.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface BigQueryTableSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.BigQueryTableSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The table source type.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for tableSourceType. - */ - int getTableSourceTypeValue(); - - /** - * - * - *
-   * Output only. The table source type.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TableSourceType table_source_type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The tableSourceType. - */ - com.google.cloud.datacatalog.v1beta1.TableSourceType getTableSourceType(); - - /** - * - * - *
-   * Table view specification. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - * - * @return Whether the viewSpec field is set. - */ - boolean hasViewSpec(); - - /** - * - * - *
-   * Table view specification. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - * - * @return The viewSpec. - */ - com.google.cloud.datacatalog.v1beta1.ViewSpec getViewSpec(); - - /** - * - * - *
-   * Table view specification. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_VIEW`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.ViewSpec view_spec = 2; - */ - com.google.cloud.datacatalog.v1beta1.ViewSpecOrBuilder getViewSpecOrBuilder(); - - /** - * - * - *
-   * Spec of a BigQuery table. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - * - * @return Whether the tableSpec field is set. - */ - boolean hasTableSpec(); - - /** - * - * - *
-   * Spec of a BigQuery table. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - * - * @return The tableSpec. - */ - com.google.cloud.datacatalog.v1beta1.TableSpec getTableSpec(); - - /** - * - * - *
-   * Spec of a BigQuery table. This field should only be populated if
-   * `table_source_type` is `BIGQUERY_TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TableSpec table_spec = 3; - */ - com.google.cloud.datacatalog.v1beta1.TableSpecOrBuilder getTableSpecOrBuilder(); - - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.TypeSpecCase getTypeSpecCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchema.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchema.java deleted file mode 100644 index 7b519ec6385b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchema.java +++ /dev/null @@ -1,1773 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Representation of a column within a schema. Columns could be nested inside
- * other columns.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ColumnSchema} - */ -@com.google.protobuf.Generated -public final class ColumnSchema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ColumnSchema) - ColumnSchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ColumnSchema"); - } - - // Use ColumnSchema.newBuilder() to construct. - private ColumnSchema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ColumnSchema() { - column_ = ""; - type_ = ""; - description_ = ""; - mode_ = ""; - subcolumns_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ColumnSchema.class, - com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder.class); - } - - public static final int COLUMN_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object column_ = ""; - - /** - * - * - *
-   * Required. Name of the column.
-   * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The column. - */ - @java.lang.Override - public java.lang.String getColumn() { - java.lang.Object ref = column_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - column_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. Name of the column.
-   * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for column. - */ - @java.lang.Override - public com.google.protobuf.ByteString getColumnBytes() { - java.lang.Object ref = column_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - column_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object type_ = ""; - - /** - * - * - *
-   * Required. Type of the column.
-   * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-   * Required. Type of the column.
-   * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
-   * Optional. Description of the column. Default value is an empty string.
-   * 
- * - * 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 column. Default value is an empty string.
-   * 
- * - * 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 MODE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object mode_ = ""; - - /** - * - * - *
-   * Optional. A column's mode indicates whether the values in this column are
-   * required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
-   * supported. Default mode is `NULLABLE`.
-   * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mode. - */ - @java.lang.Override - public java.lang.String getMode() { - java.lang.Object ref = mode_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mode_ = s; - return s; - } - } - - /** - * - * - *
-   * Optional. A column's mode indicates whether the values in this column are
-   * required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
-   * supported. Default mode is `NULLABLE`.
-   * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mode. - */ - @java.lang.Override - public com.google.protobuf.ByteString getModeBytes() { - java.lang.Object ref = mode_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SUBCOLUMNS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private java.util.List subcolumns_; - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getSubcolumnsList() { - return subcolumns_; - } - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getSubcolumnsOrBuilderList() { - return subcolumns_; - } - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getSubcolumnsCount() { - return subcolumns_.size(); - } - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ColumnSchema getSubcolumns(int index) { - return subcolumns_.get(index); - } - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder getSubcolumnsOrBuilder( - int index) { - return subcolumns_.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(type_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, type_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mode_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, mode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(column_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, column_); - } - for (int i = 0; i < subcolumns_.size(); i++) { - output.writeMessage(7, subcolumns_.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(type_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, type_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mode_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, mode_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(column_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(6, column_); - } - for (int i = 0; i < subcolumns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, subcolumns_.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.datacatalog.v1beta1.ColumnSchema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ColumnSchema other = - (com.google.cloud.datacatalog.v1beta1.ColumnSchema) obj; - - if (!getColumn().equals(other.getColumn())) return false; - if (!getType().equals(other.getType())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getMode().equals(other.getMode())) return false; - if (!getSubcolumnsList().equals(other.getSubcolumnsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + COLUMN_FIELD_NUMBER; - hash = (53 * hash) + getColumn().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + MODE_FIELD_NUMBER; - hash = (53 * hash) + getMode().hashCode(); - if (getSubcolumnsCount() > 0) { - hash = (37 * hash) + SUBCOLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getSubcolumnsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.ColumnSchema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Representation of a column within a schema. Columns could be nested inside
-   * other columns.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ColumnSchema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ColumnSchema) - com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ColumnSchema.class, - com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ColumnSchema.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - column_ = ""; - type_ = ""; - description_ = ""; - mode_ = ""; - if (subcolumnsBuilder_ == null) { - subcolumns_ = java.util.Collections.emptyList(); - } else { - subcolumns_ = null; - subcolumnsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ColumnSchema getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ColumnSchema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ColumnSchema build() { - com.google.cloud.datacatalog.v1beta1.ColumnSchema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ColumnSchema buildPartial() { - com.google.cloud.datacatalog.v1beta1.ColumnSchema result = - new com.google.cloud.datacatalog.v1beta1.ColumnSchema(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.ColumnSchema result) { - if (subcolumnsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - subcolumns_ = java.util.Collections.unmodifiableList(subcolumns_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.subcolumns_ = subcolumns_; - } else { - result.subcolumns_ = subcolumnsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ColumnSchema result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.column_ = column_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.type_ = type_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.mode_ = mode_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.ColumnSchema) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ColumnSchema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ColumnSchema other) { - if (other == com.google.cloud.datacatalog.v1beta1.ColumnSchema.getDefaultInstance()) - return this; - if (!other.getColumn().isEmpty()) { - column_ = other.column_; - 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.getMode().isEmpty()) { - mode_ = other.mode_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (subcolumnsBuilder_ == null) { - if (!other.subcolumns_.isEmpty()) { - if (subcolumns_.isEmpty()) { - subcolumns_ = other.subcolumns_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureSubcolumnsIsMutable(); - subcolumns_.addAll(other.subcolumns_); - } - onChanged(); - } - } else { - if (!other.subcolumns_.isEmpty()) { - if (subcolumnsBuilder_.isEmpty()) { - subcolumnsBuilder_.dispose(); - subcolumnsBuilder_ = null; - subcolumns_ = other.subcolumns_; - bitField0_ = (bitField0_ & ~0x00000010); - subcolumnsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSubcolumnsFieldBuilder() - : null; - } else { - subcolumnsBuilder_.addAllMessages(other.subcolumns_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - type_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - mode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 50: - { - column_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 50 - case 58: - { - com.google.cloud.datacatalog.v1beta1.ColumnSchema m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.ColumnSchema.parser(), - extensionRegistry); - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - subcolumns_.add(m); - } else { - subcolumnsBuilder_.addMessage(m); - } - 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 column_ = ""; - - /** - * - * - *
-     * Required. Name of the column.
-     * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The column. - */ - public java.lang.String getColumn() { - java.lang.Object ref = column_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - column_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. Name of the column.
-     * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for column. - */ - public com.google.protobuf.ByteString getColumnBytes() { - java.lang.Object ref = column_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - column_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. Name of the column.
-     * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The column to set. - * @return This builder for chaining. - */ - public Builder setColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - column_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Name of the column.
-     * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearColumn() { - column_ = getDefaultInstance().getColumn(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Name of the column.
-     * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for column to set. - * @return This builder for chaining. - */ - public Builder setColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - column_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object type_ = ""; - - /** - * - * - *
-     * Required. Type of the column.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Type of the column.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Type of the column.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-     * Required. Type of the column.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearType() { - type_ = getDefaultInstance().getType(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Type of the column.
-     * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 column. Default value is an empty string.
-     * 
- * - * 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 column. Default value is an empty string.
-     * 
- * - * 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 column. Default value is an empty string.
-     * 
- * - * 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. Description of the column. Default value is an empty string.
-     * 
- * - * 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. Description of the column. Default value is an empty string.
-     * 
- * - * 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 mode_ = ""; - - /** - * - * - *
-     * Optional. A column's mode indicates whether the values in this column are
-     * required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
-     * supported. Default mode is `NULLABLE`.
-     * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mode. - */ - public java.lang.String getMode() { - java.lang.Object ref = mode_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mode_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Optional. A column's mode indicates whether the values in this column are
-     * required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
-     * supported. Default mode is `NULLABLE`.
-     * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mode. - */ - public com.google.protobuf.ByteString getModeBytes() { - java.lang.Object ref = mode_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mode_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Optional. A column's mode indicates whether the values in this column are
-     * required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
-     * supported. Default mode is `NULLABLE`.
-     * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The mode to set. - * @return This builder for chaining. - */ - public Builder setMode(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - mode_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A column's mode indicates whether the values in this column are
-     * required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
-     * supported. Default mode is `NULLABLE`.
-     * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMode() { - mode_ = getDefaultInstance().getMode(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A column's mode indicates whether the values in this column are
-     * required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
-     * supported. Default mode is `NULLABLE`.
-     * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for mode to set. - * @return This builder for chaining. - */ - public Builder setModeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - mode_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.util.List subcolumns_ = - java.util.Collections.emptyList(); - - private void ensureSubcolumnsIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - subcolumns_ = - new java.util.ArrayList(subcolumns_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.ColumnSchema, - com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder> - subcolumnsBuilder_; - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getSubcolumnsList() { - if (subcolumnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(subcolumns_); - } else { - return subcolumnsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getSubcolumnsCount() { - if (subcolumnsBuilder_ == null) { - return subcolumns_.size(); - } else { - return subcolumnsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1beta1.ColumnSchema getSubcolumns(int index) { - if (subcolumnsBuilder_ == null) { - return subcolumns_.get(index); - } else { - return subcolumnsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSubcolumns( - int index, com.google.cloud.datacatalog.v1beta1.ColumnSchema value) { - if (subcolumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubcolumnsIsMutable(); - subcolumns_.set(index, value); - onChanged(); - } else { - subcolumnsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSubcolumns( - int index, com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder builderForValue) { - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - subcolumns_.set(index, builderForValue.build()); - onChanged(); - } else { - subcolumnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSubcolumns(com.google.cloud.datacatalog.v1beta1.ColumnSchema value) { - if (subcolumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubcolumnsIsMutable(); - subcolumns_.add(value); - onChanged(); - } else { - subcolumnsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSubcolumns( - int index, com.google.cloud.datacatalog.v1beta1.ColumnSchema value) { - if (subcolumnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSubcolumnsIsMutable(); - subcolumns_.add(index, value); - onChanged(); - } else { - subcolumnsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSubcolumns( - com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder builderForValue) { - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - subcolumns_.add(builderForValue.build()); - onChanged(); - } else { - subcolumnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSubcolumns( - int index, com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder builderForValue) { - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - subcolumns_.add(index, builderForValue.build()); - onChanged(); - } else { - subcolumnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllSubcolumns( - java.lang.Iterable values) { - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subcolumns_); - onChanged(); - } else { - subcolumnsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSubcolumns() { - if (subcolumnsBuilder_ == null) { - subcolumns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - subcolumnsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeSubcolumns(int index) { - if (subcolumnsBuilder_ == null) { - ensureSubcolumnsIsMutable(); - subcolumns_.remove(index); - onChanged(); - } else { - subcolumnsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder getSubcolumnsBuilder( - int index) { - return internalGetSubcolumnsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder getSubcolumnsOrBuilder( - int index) { - if (subcolumnsBuilder_ == null) { - return subcolumns_.get(index); - } else { - return subcolumnsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getSubcolumnsOrBuilderList() { - if (subcolumnsBuilder_ != null) { - return subcolumnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(subcolumns_); - } - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder addSubcolumnsBuilder() { - return internalGetSubcolumnsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.ColumnSchema.getDefaultInstance()); - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder addSubcolumnsBuilder( - int index) { - return internalGetSubcolumnsFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1beta1.ColumnSchema.getDefaultInstance()); - } - - /** - * - * - *
-     * Optional. Schema of sub-columns. A column can have zero or more
-     * sub-columns.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getSubcolumnsBuilderList() { - return internalGetSubcolumnsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.ColumnSchema, - com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder> - internalGetSubcolumnsFieldBuilder() { - if (subcolumnsBuilder_ == null) { - subcolumnsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.ColumnSchema, - com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder>( - subcolumns_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - subcolumns_ = null; - } - return subcolumnsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ColumnSchema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ColumnSchema) - private static final com.google.cloud.datacatalog.v1beta1.ColumnSchema DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ColumnSchema(); - } - - public static com.google.cloud.datacatalog.v1beta1.ColumnSchema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ColumnSchema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ColumnSchema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchemaOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchemaOrBuilder.java deleted file mode 100644 index 95e56b1a2af1..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ColumnSchemaOrBuilder.java +++ /dev/null @@ -1,207 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ColumnSchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ColumnSchema) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Name of the column.
-   * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The column. - */ - java.lang.String getColumn(); - - /** - * - * - *
-   * Required. Name of the column.
-   * 
- * - * string column = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for column. - */ - com.google.protobuf.ByteString getColumnBytes(); - - /** - * - * - *
-   * Required. Type of the column.
-   * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The type. - */ - java.lang.String getType(); - - /** - * - * - *
-   * Required. Type of the column.
-   * 
- * - * string type = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for type. - */ - com.google.protobuf.ByteString getTypeBytes(); - - /** - * - * - *
-   * Optional. Description of the column. Default value is an empty string.
-   * 
- * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Optional. Description of the column. Default value is an empty string.
-   * 
- * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Optional. A column's mode indicates whether the values in this column are
-   * required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
-   * supported. Default mode is `NULLABLE`.
-   * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mode. - */ - java.lang.String getMode(); - - /** - * - * - *
-   * Optional. A column's mode indicates whether the values in this column are
-   * required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are
-   * supported. Default mode is `NULLABLE`.
-   * 
- * - * string mode = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mode. - */ - com.google.protobuf.ByteString getModeBytes(); - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getSubcolumnsList(); - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.datacatalog.v1beta1.ColumnSchema getSubcolumns(int index); - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getSubcolumnsCount(); - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getSubcolumnsOrBuilderList(); - - /** - * - * - *
-   * Optional. Schema of sub-columns. A column can have zero or more
-   * sub-columns.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema subcolumns = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder getSubcolumnsOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java deleted file mode 100644 index 94e9caab2344..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Common.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/common.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public final class Common extends com.google.protobuf.GeneratedFile { - private Common() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Common"); - } - - 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/datacatalog/v1beta1/commo" - + "n.proto\022 google.cloud.datacatalog.v1beta" - + "1*U\n\020IntegratedSystem\022!\n\035INTEGRATED_SYST" - + "EM_UNSPECIFIED\020\000\022\014\n\010BIGQUERY\020\001\022\020\n\014CLOUD_" - + "PUBSUB\020\002*j\n\016ManagingSystem\022\037\n\033MANAGING_S" - + "YSTEM_UNSPECIFIED\020\000\022\034\n\030MANAGING_SYSTEM_D" - + "ATAPLEX\020\001\022\031\n\025MANAGING_SYSTEM_OTHER\020\002B\334\001\n" - + "$com.google.cloud.datacatalog.v1beta1P\001Z" - + "Fcloud.google.com/go/datacatalog/apiv1be" - + "ta1/datacatalogpb;datacatalogpb\252\002 Google" - + ".Cloud.DataCatalog.V1Beta1\312\002 Google\\Clou" - + "d\\DataCatalog\\V1beta1\352\002#Google::Cloud::D" - + "ataCatalog::V1beta1b\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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequest.java deleted file mode 100644 index b4072b47121b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequest.java +++ /dev/null @@ -1,1149 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [CreateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest} - */ -@com.google.protobuf.Generated -public final class CreateEntryGroupRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest) - CreateEntryGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateEntryGroupRequest"); - } - - // Use CreateEntryGroupRequest.newBuilder() to construct. - private CreateEntryGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateEntryGroupRequest() { - parent_ = ""; - entryGroupId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the project this entry group is in. Example:
-   *
-   * * projects/{project_id}/locations/{location}
-   *
-   * Note that this EntryGroup and its child resources may not actually be
-   * stored in the location in this name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the project this entry group is in. Example:
-   *
-   * * projects/{project_id}/locations/{location}
-   *
-   * Note that this EntryGroup and its child resources may not actually be
-   * stored in the location in this name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENTRY_GROUP_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object entryGroupId_ = ""; - - /** - * - * - *
-   * Required. The id of the entry group to create.
-   * The id must begin with a letter or underscore, contain only English
-   * letters, numbers and underscores, and be at most 64 characters.
-   * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryGroupId. - */ - @java.lang.Override - public java.lang.String getEntryGroupId() { - java.lang.Object ref = entryGroupId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entryGroupId_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The id of the entry group to create.
-   * The id must begin with a letter or underscore, contain only English
-   * letters, numbers and underscores, and be at most 64 characters.
-   * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryGroupId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEntryGroupIdBytes() { - java.lang.Object ref = entryGroupId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entryGroupId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENTRY_GROUP_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1beta1.EntryGroup entryGroup_; - - /** - * - * - *
-   * The entry group to create. Defaults to an empty entry group.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - * - * @return Whether the entryGroup field is set. - */ - @java.lang.Override - public boolean hasEntryGroup() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The entry group to create. Defaults to an empty entry group.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - * - * @return The entryGroup. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroup() { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - - /** - * - * - *
-   * The entry group to create. Defaults to an empty entry group.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder getEntryGroupOrBuilder() { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getEntryGroup()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryGroupId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, entryGroupId_); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntryGroup()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryGroupId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, entryGroupId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest other = - (com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getEntryGroupId().equals(other.getEntryGroupId())) return false; - if (hasEntryGroup() != other.hasEntryGroup()) return false; - if (hasEntryGroup()) { - if (!getEntryGroup().equals(other.getEntryGroup())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + ENTRY_GROUP_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntryGroupId().hashCode(); - if (hasEntryGroup()) { - hash = (37 * hash) + ENTRY_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getEntryGroup().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntryGroup].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest) - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetEntryGroupFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - entryGroupId_ = ""; - entryGroup_ = null; - if (entryGroupBuilder_ != null) { - entryGroupBuilder_.dispose(); - entryGroupBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest build() { - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest result = - new com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.entryGroupId_ = entryGroupId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.entryGroup_ = entryGroupBuilder_ == null ? entryGroup_ : entryGroupBuilder_.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.datacatalog.v1beta1.CreateEntryGroupRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEntryGroupId().isEmpty()) { - entryGroupId_ = other.entryGroupId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasEntryGroup()) { - mergeEntryGroup(other.getEntryGroup()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage( - internalGetEntryGroupFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - entryGroupId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the project this entry group is in. Example:
-     *
-     * * projects/{project_id}/locations/{location}
-     *
-     * Note that this EntryGroup and its child resources may not actually be
-     * stored in the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the project this entry group is in. Example:
-     *
-     * * projects/{project_id}/locations/{location}
-     *
-     * Note that this EntryGroup and its child resources may not actually be
-     * stored in the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the project this entry group is in. Example:
-     *
-     * * projects/{project_id}/locations/{location}
-     *
-     * Note that this EntryGroup and its child resources may not actually be
-     * stored in the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the project this entry group is in. Example:
-     *
-     * * projects/{project_id}/locations/{location}
-     *
-     * Note that this EntryGroup and its child resources may not actually be
-     * stored in the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the project this entry group is in. Example:
-     *
-     * * projects/{project_id}/locations/{location}
-     *
-     * Note that this EntryGroup and its child resources may not actually be
-     * stored in the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object entryGroupId_ = ""; - - /** - * - * - *
-     * Required. The id of the entry group to create.
-     * The id must begin with a letter or underscore, contain only English
-     * letters, numbers and underscores, and be at most 64 characters.
-     * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryGroupId. - */ - public java.lang.String getEntryGroupId() { - java.lang.Object ref = entryGroupId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entryGroupId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The id of the entry group to create.
-     * The id must begin with a letter or underscore, contain only English
-     * letters, numbers and underscores, and be at most 64 characters.
-     * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryGroupId. - */ - public com.google.protobuf.ByteString getEntryGroupIdBytes() { - java.lang.Object ref = entryGroupId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entryGroupId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The id of the entry group to create.
-     * The id must begin with a letter or underscore, contain only English
-     * letters, numbers and underscores, and be at most 64 characters.
-     * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The entryGroupId to set. - * @return This builder for chaining. - */ - public Builder setEntryGroupId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - entryGroupId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The id of the entry group to create.
-     * The id must begin with a letter or underscore, contain only English
-     * letters, numbers and underscores, and be at most 64 characters.
-     * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearEntryGroupId() { - entryGroupId_ = getDefaultInstance().getEntryGroupId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The id of the entry group to create.
-     * The id must begin with a letter or underscore, contain only English
-     * letters, numbers and underscores, and be at most 64 characters.
-     * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for entryGroupId to set. - * @return This builder for chaining. - */ - public Builder setEntryGroupIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - entryGroupId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.EntryGroup entryGroup_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.EntryGroup, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> - entryGroupBuilder_; - - /** - * - * - *
-     * The entry group to create. Defaults to an empty entry group.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - * - * @return Whether the entryGroup field is set. - */ - public boolean hasEntryGroup() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * The entry group to create. Defaults to an empty entry group.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - * - * @return The entryGroup. - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroup() { - if (entryGroupBuilder_ == null) { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance() - : entryGroup_; - } else { - return entryGroupBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The entry group to create. Defaults to an empty entry group.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - */ - public Builder setEntryGroup(com.google.cloud.datacatalog.v1beta1.EntryGroup value) { - if (entryGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entryGroup_ = value; - } else { - entryGroupBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The entry group to create. Defaults to an empty entry group.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - */ - public Builder setEntryGroup( - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder builderForValue) { - if (entryGroupBuilder_ == null) { - entryGroup_ = builderForValue.build(); - } else { - entryGroupBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The entry group to create. Defaults to an empty entry group.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - */ - public Builder mergeEntryGroup(com.google.cloud.datacatalog.v1beta1.EntryGroup value) { - if (entryGroupBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && entryGroup_ != null - && entryGroup_ - != com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance()) { - getEntryGroupBuilder().mergeFrom(value); - } else { - entryGroup_ = value; - } - } else { - entryGroupBuilder_.mergeFrom(value); - } - if (entryGroup_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The entry group to create. Defaults to an empty entry group.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - */ - public Builder clearEntryGroup() { - bitField0_ = (bitField0_ & ~0x00000004); - entryGroup_ = null; - if (entryGroupBuilder_ != null) { - entryGroupBuilder_.dispose(); - entryGroupBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The entry group to create. Defaults to an empty entry group.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder getEntryGroupBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetEntryGroupFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The entry group to create. Defaults to an empty entry group.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder getEntryGroupOrBuilder() { - if (entryGroupBuilder_ != null) { - return entryGroupBuilder_.getMessageOrBuilder(); - } else { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - } - - /** - * - * - *
-     * The entry group to create. Defaults to an empty entry group.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.EntryGroup, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> - internalGetEntryGroupFieldBuilder() { - if (entryGroupBuilder_ == null) { - entryGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.EntryGroup, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder>( - getEntryGroup(), getParentForChildren(), isClean()); - entryGroup_ = null; - } - return entryGroupBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest) - private static final com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEntryGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequestOrBuilder.java deleted file mode 100644 index a2e5ebf209f4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface CreateEntryGroupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the project this entry group is in. Example:
-   *
-   * * projects/{project_id}/locations/{location}
-   *
-   * Note that this EntryGroup and its child resources may not actually be
-   * stored in the location in this name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the project this entry group is in. Example:
-   *
-   * * projects/{project_id}/locations/{location}
-   *
-   * Note that this EntryGroup and its child resources may not actually be
-   * stored in the location in this name.
-   * 
- * - * - * 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 entry group to create.
-   * The id must begin with a letter or underscore, contain only English
-   * letters, numbers and underscores, and be at most 64 characters.
-   * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryGroupId. - */ - java.lang.String getEntryGroupId(); - - /** - * - * - *
-   * Required. The id of the entry group to create.
-   * The id must begin with a letter or underscore, contain only English
-   * letters, numbers and underscores, and be at most 64 characters.
-   * 
- * - * string entry_group_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryGroupId. - */ - com.google.protobuf.ByteString getEntryGroupIdBytes(); - - /** - * - * - *
-   * The entry group to create. Defaults to an empty entry group.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - * - * @return Whether the entryGroup field is set. - */ - boolean hasEntryGroup(); - - /** - * - * - *
-   * The entry group to create. Defaults to an empty entry group.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - * - * @return The entryGroup. - */ - com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroup(); - - /** - * - * - *
-   * The entry group to create. Defaults to an empty entry group.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 2; - */ - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder getEntryGroupOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequest.java deleted file mode 100644 index b7302402dc6d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequest.java +++ /dev/null @@ -1,1152 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateEntryRequest} - */ -@com.google.protobuf.Generated -public final class CreateEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateEntryRequest) - CreateEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateEntryRequest"); - } - - // Use CreateEntryRequest.newBuilder() to construct. - private CreateEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateEntryRequest() { - parent_ = ""; - entryId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the entry group this entry is in. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   *
-   * Note that this Entry and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the entry group this entry is in. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   *
-   * Note that this Entry and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENTRY_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object entryId_ = ""; - - /** - * - * - *
-   * Required. The id of the entry to create.
-   * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryId. - */ - @java.lang.Override - public java.lang.String getEntryId() { - java.lang.Object ref = entryId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entryId_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The id of the entry to create.
-   * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEntryIdBytes() { - java.lang.Object ref = entryId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entryId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENTRY_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1beta1.Entry entry_; - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - @java.lang.Override - public boolean hasEntry() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Entry getEntry() { - return entry_ == null - ? com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance() - : entry_; - } - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryOrBuilder getEntryOrBuilder() { - return entry_ == null - ? com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance() - : entry_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getEntry()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, entryId_); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEntry()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(entryId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, entryId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.CreateEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest other = - (com.google.cloud.datacatalog.v1beta1.CreateEntryRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getEntryId().equals(other.getEntryId())) return false; - if (hasEntry() != other.hasEntry()) return false; - if (hasEntry()) { - if (!getEntry().equals(other.getEntry())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + ENTRY_ID_FIELD_NUMBER; - hash = (53 * hash) + getEntryId().hashCode(); - if (hasEntry()) { - hash = (37 * hash) + ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getEntry().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.CreateEntryRequest) - com.google.cloud.datacatalog.v1beta1.CreateEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.CreateEntryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetEntryFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - entryId_ = ""; - entry_ = null; - if (entryBuilder_ != null) { - entryBuilder_.dispose(); - entryBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.CreateEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateEntryRequest build() { - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.CreateEntryRequest result = - new com.google.cloud.datacatalog.v1beta1.CreateEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.CreateEntryRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.entryId_ = entryId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.entry_ = entryBuilder_ == null ? entry_ : entryBuilder_.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.datacatalog.v1beta1.CreateEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.CreateEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.CreateEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.CreateEntryRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEntryId().isEmpty()) { - entryId_ = other.entryId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasEntry()) { - mergeEntry(other.getEntry()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage(internalGetEntryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - entryId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the entry group this entry is in. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     *
-     * Note that this Entry and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group this entry is in. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     *
-     * Note that this Entry and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group this entry is in. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     *
-     * Note that this Entry and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group this entry is in. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     *
-     * Note that this Entry and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group this entry is in. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     *
-     * Note that this Entry and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object entryId_ = ""; - - /** - * - * - *
-     * Required. The id of the entry to create.
-     * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryId. - */ - public java.lang.String getEntryId() { - java.lang.Object ref = entryId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - entryId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The id of the entry to create.
-     * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryId. - */ - public com.google.protobuf.ByteString getEntryIdBytes() { - java.lang.Object ref = entryId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - entryId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The id of the entry to create.
-     * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The entryId to set. - * @return This builder for chaining. - */ - public Builder setEntryId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - entryId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The id of the entry to create.
-     * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearEntryId() { - entryId_ = getDefaultInstance().getEntryId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The id of the entry to create.
-     * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for entryId to set. - * @return This builder for chaining. - */ - public Builder setEntryIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - entryId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.Entry entry_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Entry, - com.google.cloud.datacatalog.v1beta1.Entry.Builder, - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> - entryBuilder_; - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - public boolean hasEntry() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - public com.google.cloud.datacatalog.v1beta1.Entry getEntry() { - if (entryBuilder_ == null) { - return entry_ == null - ? com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance() - : entry_; - } else { - return entryBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntry(com.google.cloud.datacatalog.v1beta1.Entry value) { - if (entryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entry_ = value; - } else { - entryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntry(com.google.cloud.datacatalog.v1beta1.Entry.Builder builderForValue) { - if (entryBuilder_ == null) { - entry_ = builderForValue.build(); - } else { - entryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeEntry(com.google.cloud.datacatalog.v1beta1.Entry value) { - if (entryBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && entry_ != null - && entry_ != com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance()) { - getEntryBuilder().mergeFrom(value); - } else { - entry_ = value; - } - } else { - entryBuilder_.mergeFrom(value); - } - if (entry_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearEntry() { - bitField0_ = (bitField0_ & ~0x00000004); - entry_ = null; - if (entryBuilder_ != null) { - entryBuilder_.dispose(); - entryBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.Entry.Builder getEntryBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetEntryFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.EntryOrBuilder getEntryOrBuilder() { - if (entryBuilder_ != null) { - return entryBuilder_.getMessageOrBuilder(); - } else { - return entry_ == null - ? com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance() - : entry_; - } - } - - /** - * - * - *
-     * Required. The entry to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Entry, - com.google.cloud.datacatalog.v1beta1.Entry.Builder, - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> - internalGetEntryFieldBuilder() { - if (entryBuilder_ == null) { - entryBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Entry, - com.google.cloud.datacatalog.v1beta1.Entry.Builder, - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder>( - getEntry(), getParentForChildren(), isClean()); - entry_ = null; - } - return entryBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.CreateEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.CreateEntryRequest) - private static final com.google.cloud.datacatalog.v1beta1.CreateEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.CreateEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequestOrBuilder.java deleted file mode 100644 index ef3440864952..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateEntryRequestOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface CreateEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.CreateEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry group this entry is in. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   *
-   * Note that this Entry and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the entry group this entry is in. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   *
-   * Note that this Entry and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * 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 entry to create.
-   * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The entryId. - */ - java.lang.String getEntryId(); - - /** - * - * - *
-   * Required. The id of the entry to create.
-   * 
- * - * string entry_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for entryId. - */ - com.google.protobuf.ByteString getEntryIdBytes(); - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - boolean hasEntry(); - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - com.google.cloud.datacatalog.v1beta1.Entry getEntry(); - - /** - * - * - *
-   * Required. The entry to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder getEntryOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequest.java deleted file mode 100644 index e5fa42e27577..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequest.java +++ /dev/null @@ -1,906 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [CreatePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.CreatePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest} - */ -@com.google.protobuf.Generated -public final class CreatePolicyTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest) - CreatePolicyTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreatePolicyTagRequest"); - } - - // Use CreatePolicyTagRequest.newBuilder() to construct. - private CreatePolicyTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreatePolicyTagRequest() { - parent_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_CreatePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_CreatePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest.class, - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of the taxonomy that the policy tag will belong to.
-   * 
- * - * - * 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. Resource name of the taxonomy that the policy tag will belong to.
-   * 
- * - * - * 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_TAG_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1beta1.PolicyTag policyTag_; - - /** - * - * - *
-   * The policy tag to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - * - * @return Whether the policyTag field is set. - */ - @java.lang.Override - public boolean hasPolicyTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The policy tag to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - * - * @return The policyTag. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTag() { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance() - : policyTag_; - } - - /** - * - * - *
-   * The policy tag to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder getPolicyTagOrBuilder() { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance() - : policyTag_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getPolicyTag()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPolicyTag()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest other = - (com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasPolicyTag() != other.hasPolicyTag()) return false; - if (hasPolicyTag()) { - if (!getPolicyTag().equals(other.getPolicyTag())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasPolicyTag()) { - hash = (37 * hash) + POLICY_TAG_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTag().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreatePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.CreatePolicyTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest) - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_CreatePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_CreatePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest.class, - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetPolicyTagFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - policyTag_ = null; - if (policyTagBuilder_ != null) { - policyTagBuilder_.dispose(); - policyTagBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_CreatePolicyTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest build() { - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest result = - new com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.policyTag_ = policyTagBuilder_ == null ? policyTag_ : policyTagBuilder_.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.datacatalog.v1beta1.CreatePolicyTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasPolicyTag()) { - mergePolicyTag(other.getPolicyTag()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage( - internalGetPolicyTagFieldBuilder().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 parent_ = ""; - - /** - * - * - *
-     * Required. Resource name of the taxonomy that the policy tag will belong to.
-     * 
- * - * - * 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. Resource name of the taxonomy that the policy tag will belong to.
-     * 
- * - * - * 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. Resource name of the taxonomy that the policy tag will belong to.
-     * 
- * - * - * 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. Resource name of the taxonomy that the policy tag will belong to.
-     * 
- * - * - * 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. Resource name of the taxonomy that the policy tag will belong to.
-     * 
- * - * - * 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 com.google.cloud.datacatalog.v1beta1.PolicyTag policyTag_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.PolicyTag, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> - policyTagBuilder_; - - /** - * - * - *
-     * The policy tag to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - * - * @return Whether the policyTag field is set. - */ - public boolean hasPolicyTag() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * The policy tag to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - * - * @return The policyTag. - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTag() { - if (policyTagBuilder_ == null) { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance() - : policyTag_; - } else { - return policyTagBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The policy tag to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - */ - public Builder setPolicyTag(com.google.cloud.datacatalog.v1beta1.PolicyTag value) { - if (policyTagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policyTag_ = value; - } else { - policyTagBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - */ - public Builder setPolicyTag( - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder builderForValue) { - if (policyTagBuilder_ == null) { - policyTag_ = builderForValue.build(); - } else { - policyTagBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - */ - public Builder mergePolicyTag(com.google.cloud.datacatalog.v1beta1.PolicyTag value) { - if (policyTagBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && policyTag_ != null - && policyTag_ != com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance()) { - getPolicyTagBuilder().mergeFrom(value); - } else { - policyTag_ = value; - } - } else { - policyTagBuilder_.mergeFrom(value); - } - if (policyTag_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The policy tag to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - */ - public Builder clearPolicyTag() { - bitField0_ = (bitField0_ & ~0x00000002); - policyTag_ = null; - if (policyTagBuilder_ != null) { - policyTagBuilder_.dispose(); - policyTagBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder getPolicyTagBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetPolicyTagFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The policy tag to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder getPolicyTagOrBuilder() { - if (policyTagBuilder_ != null) { - return policyTagBuilder_.getMessageOrBuilder(); - } else { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance() - : policyTag_; - } - } - - /** - * - * - *
-     * The policy tag to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.PolicyTag, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> - internalGetPolicyTagFieldBuilder() { - if (policyTagBuilder_ == null) { - policyTagBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.PolicyTag, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder>( - getPolicyTag(), getParentForChildren(), isClean()); - policyTag_ = null; - } - return policyTagBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest) - private static final com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreatePolicyTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequestOrBuilder.java deleted file mode 100644 index f9da45f0f718..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreatePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface CreatePolicyTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the taxonomy that the policy tag will belong to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of the taxonomy that the policy tag will belong to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The policy tag to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - * - * @return Whether the policyTag field is set. - */ - boolean hasPolicyTag(); - - /** - * - * - *
-   * The policy tag to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - * - * @return The policyTag. - */ - com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTag(); - - /** - * - * - *
-   * The policy tag to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 2; - */ - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder getPolicyTagOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java deleted file mode 100644 index fbe83ae60580..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequest.java +++ /dev/null @@ -1,966 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [CreateTag][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagRequest} - */ -@com.google.protobuf.Generated -public final class CreateTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTagRequest) - CreateTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateTagRequest"); - } - - // Use CreateTagRequest.newBuilder() to construct. - private CreateTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateTagRequest() { - parent_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateTagRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateTagRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the resource to attach this tag to. Tags can be
-   * attached to
-   * Entries. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   *
-   * Note that this Tag and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the resource to attach this tag to. Tags can be
-   * attached to
-   * Entries. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   *
-   * Note that this Tag and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1beta1.Tag tag_; - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - @java.lang.Override - public boolean hasTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Tag getTag() { - return tag_ == null ? com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance() : tag_; - } - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagOrBuilder getTagOrBuilder() { - return tag_ == null ? com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance() : tag_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getTag()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTag()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.CreateTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.CreateTagRequest other = - (com.google.cloud.datacatalog.v1beta1.CreateTagRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTag() != other.hasTag()) return false; - if (hasTag()) { - if (!getTag().equals(other.getTag())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasTag()) { - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.CreateTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateTag][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.CreateTagRequest) - com.google.cloud.datacatalog.v1beta1.CreateTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateTagRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.CreateTagRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - tag_ = null; - if (tagBuilder_ != null) { - tagBuilder_.dispose(); - tagBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.CreateTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagRequest build() { - com.google.cloud.datacatalog.v1beta1.CreateTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.CreateTagRequest result = - new com.google.cloud.datacatalog.v1beta1.CreateTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.CreateTagRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tag_ = tagBuilder_ == null ? tag_ : tagBuilder_.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.datacatalog.v1beta1.CreateTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.CreateTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.CreateTagRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.CreateTagRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasTag()) { - mergeTag(other.getTag()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage(internalGetTagFieldBuilder().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 parent_ = ""; - - /** - * - * - *
-     * Required. The name of the resource to attach this tag to. Tags can be
-     * attached to
-     * Entries. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     *
-     * Note that this Tag and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the resource to attach this tag to. Tags can be
-     * attached to
-     * Entries. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     *
-     * Note that this Tag and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the resource to attach this tag to. Tags can be
-     * attached to
-     * Entries. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     *
-     * Note that this Tag and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the resource to attach this tag to. Tags can be
-     * attached to
-     * Entries. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     *
-     * Note that this Tag and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the resource to attach this tag to. Tags can be
-     * attached to
-     * Entries. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     *
-     * Note that this Tag and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.Tag tag_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Tag, - com.google.cloud.datacatalog.v1beta1.Tag.Builder, - com.google.cloud.datacatalog.v1beta1.TagOrBuilder> - tagBuilder_; - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - public boolean hasTag() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - public com.google.cloud.datacatalog.v1beta1.Tag getTag() { - if (tagBuilder_ == null) { - return tag_ == null ? com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance() : tag_; - } else { - return tagBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTag(com.google.cloud.datacatalog.v1beta1.Tag value) { - if (tagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tag_ = value; - } else { - tagBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTag(com.google.cloud.datacatalog.v1beta1.Tag.Builder builderForValue) { - if (tagBuilder_ == null) { - tag_ = builderForValue.build(); - } else { - tagBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTag(com.google.cloud.datacatalog.v1beta1.Tag value) { - if (tagBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && tag_ != null - && tag_ != com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance()) { - getTagBuilder().mergeFrom(value); - } else { - tag_ = value; - } - } else { - tagBuilder_.mergeFrom(value); - } - if (tag_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTag() { - bitField0_ = (bitField0_ & ~0x00000002); - tag_ = null; - if (tagBuilder_ != null) { - tagBuilder_.dispose(); - tagBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.Tag.Builder getTagBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetTagFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagOrBuilder getTagOrBuilder() { - if (tagBuilder_ != null) { - return tagBuilder_.getMessageOrBuilder(); - } else { - return tag_ == null ? com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance() : tag_; - } - } - - /** - * - * - *
-     * Required. The tag to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Tag, - com.google.cloud.datacatalog.v1beta1.Tag.Builder, - com.google.cloud.datacatalog.v1beta1.TagOrBuilder> - internalGetTagFieldBuilder() { - if (tagBuilder_ == null) { - tagBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Tag, - com.google.cloud.datacatalog.v1beta1.Tag.Builder, - com.google.cloud.datacatalog.v1beta1.TagOrBuilder>( - getTag(), getParentForChildren(), isClean()); - tag_ = null; - } - return tagBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.CreateTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.CreateTagRequest) - private static final com.google.cloud.datacatalog.v1beta1.CreateTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.CreateTagRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java deleted file mode 100644 index 25f0870e45c4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagRequestOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface CreateTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.CreateTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the resource to attach this tag to. Tags can be
-   * attached to
-   * Entries. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   *
-   * Note that this Tag and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the resource to attach this tag to. Tags can be
-   * attached to
-   * Entries. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   *
-   * Note that this Tag and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - boolean hasTag(); - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - com.google.cloud.datacatalog.v1beta1.Tag getTag(); - - /** - * - * - *
-   * Required. The tag to create.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.TagOrBuilder getTagOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java deleted file mode 100644 index a472fca2e3cf..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequest.java +++ /dev/null @@ -1,1200 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [CreateTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest} - */ -@com.google.protobuf.Generated -public final class CreateTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest) - CreateTagTemplateFieldRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateTagTemplateFieldRequest"); - } - - // Use CreateTagTemplateFieldRequest.newBuilder() to construct. - private CreateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateTagTemplateFieldRequest() { - parent_ = ""; - tagTemplateFieldId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   *
-   * Example:
-   *
-   * * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
-   * 
- * - * - * 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 project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   *
-   * Example:
-   *
-   * * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
-   * 
- * - * - * 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 TAG_TEMPLATE_FIELD_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object tagTemplateFieldId_ = ""; - - /** - * - * - *
-   * Required. The ID of the tag template field to create.
-   * Field ids can contain letters (both uppercase and lowercase), numbers
-   * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-   * character long and at most 128 characters long. Field IDs must also be
-   * unique within their template.
-   * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateFieldId. - */ - @java.lang.Override - public java.lang.String getTagTemplateFieldId() { - java.lang.Object ref = tagTemplateFieldId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagTemplateFieldId_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The ID of the tag template field to create.
-   * Field ids can contain letters (both uppercase and lowercase), numbers
-   * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-   * character long and at most 128 characters long. Field IDs must also be
-   * unique within their template.
-   * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateFieldId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTagTemplateFieldIdBytes() { - java.lang.Object ref = tagTemplateFieldId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tagTemplateFieldId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_TEMPLATE_FIELD_FIELD_NUMBER = 3; - private com.google.cloud.datacatalog.v1beta1.TagTemplateField tagTemplateField_; - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - @java.lang.Override - public boolean hasTagTemplateField() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateField getTagTemplateField() { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder - getTagTemplateFieldOrBuilder() { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(tagTemplateFieldId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, tagTemplateFieldId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getTagTemplateField()); - } - 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(tagTemplateFieldId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tagTemplateFieldId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTagTemplateField()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest other = - (com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getTagTemplateFieldId().equals(other.getTagTemplateFieldId())) return false; - if (hasTagTemplateField() != other.hasTagTemplateField()) return false; - if (hasTagTemplateField()) { - if (!getTagTemplateField().equals(other.getTagTemplateField())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + TAG_TEMPLATE_FIELD_ID_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplateFieldId().hashCode(); - if (hasTagTemplateField()) { - hash = (37 * hash) + TAG_TEMPLATE_FIELD_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplateField().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplateField].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest) - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest.Builder.class); - } - - // Construct using - // com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagTemplateFieldFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - tagTemplateFieldId_ = ""; - tagTemplateField_ = null; - if (tagTemplateFieldBuilder_ != null) { - tagTemplateFieldBuilder_.dispose(); - tagTemplateFieldBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest build() { - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest result = - new com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagTemplateFieldId_ = tagTemplateFieldId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tagTemplateField_ = - tagTemplateFieldBuilder_ == null ? tagTemplateField_ : tagTemplateFieldBuilder_.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.datacatalog.v1beta1.CreateTagTemplateFieldRequest) { - return mergeFrom( - (com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest - .getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTagTemplateFieldId().isEmpty()) { - tagTemplateFieldId_ = other.tagTemplateFieldId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasTagTemplateField()) { - mergeTagTemplateField(other.getTagTemplateField()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - tagTemplateFieldId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetTagTemplateFieldFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     *
-     * Example:
-     *
-     * * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     *
-     * Example:
-     *
-     * * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     *
-     * Example:
-     *
-     * * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     *
-     * Example:
-     *
-     * * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-     *
-     * Example:
-     *
-     * * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
-     * 
- * - * - * 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 tagTemplateFieldId_ = ""; - - /** - * - * - *
-     * Required. The ID of the tag template field to create.
-     * Field ids can contain letters (both uppercase and lowercase), numbers
-     * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-     * character long and at most 128 characters long. Field IDs must also be
-     * unique within their template.
-     * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateFieldId. - */ - public java.lang.String getTagTemplateFieldId() { - java.lang.Object ref = tagTemplateFieldId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagTemplateFieldId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The ID of the tag template field to create.
-     * Field ids can contain letters (both uppercase and lowercase), numbers
-     * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-     * character long and at most 128 characters long. Field IDs must also be
-     * unique within their template.
-     * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateFieldId. - */ - public com.google.protobuf.ByteString getTagTemplateFieldIdBytes() { - java.lang.Object ref = tagTemplateFieldId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tagTemplateFieldId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The ID of the tag template field to create.
-     * Field ids can contain letters (both uppercase and lowercase), numbers
-     * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-     * character long and at most 128 characters long. Field IDs must also be
-     * unique within their template.
-     * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The tagTemplateFieldId to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateFieldId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplateFieldId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The ID of the tag template field to create.
-     * Field ids can contain letters (both uppercase and lowercase), numbers
-     * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-     * character long and at most 128 characters long. Field IDs must also be
-     * unique within their template.
-     * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearTagTemplateFieldId() { - tagTemplateFieldId_ = getDefaultInstance().getTagTemplateFieldId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The ID of the tag template field to create.
-     * Field ids can contain letters (both uppercase and lowercase), numbers
-     * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-     * character long and at most 128 characters long. Field IDs must also be
-     * unique within their template.
-     * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for tagTemplateFieldId to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateFieldIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tagTemplateFieldId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.TagTemplateField tagTemplateField_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplateField, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> - tagTemplateFieldBuilder_; - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - public boolean hasTagTemplateField() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplateField getTagTemplateField() { - if (tagTemplateFieldBuilder_ == null) { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } else { - return tagTemplateFieldBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplateField( - com.google.cloud.datacatalog.v1beta1.TagTemplateField value) { - if (tagTemplateFieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplateField_ = value; - } else { - tagTemplateFieldBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplateField( - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder builderForValue) { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateField_ = builderForValue.build(); - } else { - tagTemplateFieldBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTagTemplateField( - com.google.cloud.datacatalog.v1beta1.TagTemplateField value) { - if (tagTemplateFieldBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && tagTemplateField_ != null - && tagTemplateField_ - != com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance()) { - getTagTemplateFieldBuilder().mergeFrom(value); - } else { - tagTemplateField_ = value; - } - } else { - tagTemplateFieldBuilder_.mergeFrom(value); - } - if (tagTemplateField_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTagTemplateField() { - bitField0_ = (bitField0_ & ~0x00000004); - tagTemplateField_ = null; - if (tagTemplateFieldBuilder_ != null) { - tagTemplateFieldBuilder_.dispose(); - tagTemplateFieldBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder - getTagTemplateFieldBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetTagTemplateFieldFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder - getTagTemplateFieldOrBuilder() { - if (tagTemplateFieldBuilder_ != null) { - return tagTemplateFieldBuilder_.getMessageOrBuilder(); - } else { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - } - - /** - * - * - *
-     * Required. The tag template field to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplateField, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> - internalGetTagTemplateFieldFieldBuilder() { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateFieldBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplateField, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder>( - getTagTemplateField(), getParentForChildren(), isClean()); - tagTemplateField_ = null; - } - return tagTemplateFieldBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest) - private static final com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTagTemplateFieldRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index 578202105d8a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface CreateTagTemplateFieldRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   *
-   * Example:
-   *
-   * * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions).
-   *
-   * Example:
-   *
-   * * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id}
-   * 
- * - * - * 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 tag template field to create.
-   * Field ids can contain letters (both uppercase and lowercase), numbers
-   * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-   * character long and at most 128 characters long. Field IDs must also be
-   * unique within their template.
-   * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateFieldId. - */ - java.lang.String getTagTemplateFieldId(); - - /** - * - * - *
-   * Required. The ID of the tag template field to create.
-   * Field ids can contain letters (both uppercase and lowercase), numbers
-   * (0-9), underscores (_) and dashes (-). Field IDs must be at least 1
-   * character long and at most 128 characters long. Field IDs must also be
-   * unique within their template.
-   * 
- * - * string tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateFieldId. - */ - com.google.protobuf.ByteString getTagTemplateFieldIdBytes(); - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - boolean hasTagTemplateField(); - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - com.google.cloud.datacatalog.v1beta1.TagTemplateField getTagTemplateField(); - - /** - * - * - *
-   * Required. The tag template field to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder getTagTemplateFieldOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java deleted file mode 100644 index fd272fd2422c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequest.java +++ /dev/null @@ -1,1160 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [CreateTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest} - */ -@com.google.protobuf.Generated -public final class CreateTagTemplateRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest) - CreateTagTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateTagTemplateRequest"); - } - - // Use CreateTagTemplateRequest.newBuilder() to construct. - private CreateTagTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateTagTemplateRequest() { - parent_ = ""; - tagTemplateId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
-   *
-   * Example:
-   *
-   * * projects/{project_id}/locations/us-central1
-   * 
- * - * - * 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 project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
-   *
-   * Example:
-   *
-   * * projects/{project_id}/locations/us-central1
-   * 
- * - * - * 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 TAG_TEMPLATE_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object tagTemplateId_ = ""; - - /** - * - * - *
-   * Required. The id of the tag template to create.
-   * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateId. - */ - @java.lang.Override - public java.lang.String getTagTemplateId() { - java.lang.Object ref = tagTemplateId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagTemplateId_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The id of the tag template to create.
-   * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTagTemplateIdBytes() { - java.lang.Object ref = tagTemplateId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tagTemplateId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_TEMPLATE_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1beta1.TagTemplate tagTemplate_; - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - @java.lang.Override - public boolean hasTagTemplate() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplate getTagTemplate() { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder getTagTemplateOrBuilder() { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getTagTemplate()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tagTemplateId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, tagTemplateId_); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTagTemplate()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tagTemplateId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, tagTemplateId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest other = - (com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getTagTemplateId().equals(other.getTagTemplateId())) return false; - if (hasTagTemplate() != other.hasTagTemplate()) return false; - if (hasTagTemplate()) { - if (!getTagTemplate().equals(other.getTagTemplate())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + TAG_TEMPLATE_ID_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplateId().hashCode(); - if (hasTagTemplate()) { - hash = (37 * hash) + TAG_TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplate().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplate].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest) - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagTemplateFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - tagTemplateId_ = ""; - tagTemplate_ = null; - if (tagTemplateBuilder_ != null) { - tagTemplateBuilder_.dispose(); - tagTemplateBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest build() { - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest result = - new com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagTemplateId_ = tagTemplateId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.tagTemplate_ = - tagTemplateBuilder_ == null ? tagTemplate_ : tagTemplateBuilder_.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.datacatalog.v1beta1.CreateTagTemplateRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTagTemplateId().isEmpty()) { - tagTemplateId_ = other.tagTemplateId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasTagTemplate()) { - mergeTagTemplate(other.getTagTemplate()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage( - internalGetTagTemplateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - tagTemplateId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
-     *
-     * Example:
-     *
-     * * projects/{project_id}/locations/us-central1
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
-     *
-     * Example:
-     *
-     * * projects/{project_id}/locations/us-central1
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
-     *
-     * Example:
-     *
-     * * projects/{project_id}/locations/us-central1
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
-     *
-     * Example:
-     *
-     * * projects/{project_id}/locations/us-central1
-     * 
- * - * - * 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 project and the template location
-     * [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
-     *
-     * Example:
-     *
-     * * projects/{project_id}/locations/us-central1
-     * 
- * - * - * 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 tagTemplateId_ = ""; - - /** - * - * - *
-     * Required. The id of the tag template to create.
-     * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateId. - */ - public java.lang.String getTagTemplateId() { - java.lang.Object ref = tagTemplateId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tagTemplateId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The id of the tag template to create.
-     * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateId. - */ - public com.google.protobuf.ByteString getTagTemplateIdBytes() { - java.lang.Object ref = tagTemplateId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tagTemplateId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The id of the tag template to create.
-     * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The tagTemplateId to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplateId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The id of the tag template to create.
-     * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearTagTemplateId() { - tagTemplateId_ = getDefaultInstance().getTagTemplateId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The id of the tag template to create.
-     * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for tagTemplateId to set. - * @return This builder for chaining. - */ - public Builder setTagTemplateIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tagTemplateId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.TagTemplate tagTemplate_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplate, - com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder> - tagTemplateBuilder_; - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - public boolean hasTagTemplate() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplate getTagTemplate() { - if (tagTemplateBuilder_ == null) { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } else { - return tagTemplateBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplate(com.google.cloud.datacatalog.v1beta1.TagTemplate value) { - if (tagTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplate_ = value; - } else { - tagTemplateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplate( - com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder builderForValue) { - if (tagTemplateBuilder_ == null) { - tagTemplate_ = builderForValue.build(); - } else { - tagTemplateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTagTemplate(com.google.cloud.datacatalog.v1beta1.TagTemplate value) { - if (tagTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && tagTemplate_ != null - && tagTemplate_ - != com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance()) { - getTagTemplateBuilder().mergeFrom(value); - } else { - tagTemplate_ = value; - } - } else { - tagTemplateBuilder_.mergeFrom(value); - } - if (tagTemplate_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTagTemplate() { - bitField0_ = (bitField0_ & ~0x00000004); - tagTemplate_ = null; - if (tagTemplateBuilder_ != null) { - tagTemplateBuilder_.dispose(); - tagTemplateBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder getTagTemplateBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetTagTemplateFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder getTagTemplateOrBuilder() { - if (tagTemplateBuilder_ != null) { - return tagTemplateBuilder_.getMessageOrBuilder(); - } else { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - } - - /** - * - * - *
-     * Required. The tag template to create.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplate, - com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder> - internalGetTagTemplateFieldBuilder() { - if (tagTemplateBuilder_ == null) { - tagTemplateBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplate, - com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder>( - getTagTemplate(), getParentForChildren(), isClean()); - tagTemplate_ = null; - } - return tagTemplateBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest) - private static final com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTagTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java deleted file mode 100644 index b81e8b71be86..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface CreateTagTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
-   *
-   * Example:
-   *
-   * * projects/{project_id}/locations/us-central1
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the project and the template location
-   * [region](https://cloud.google.com/data-catalog/docs/concepts/regions.
-   *
-   * Example:
-   *
-   * * projects/{project_id}/locations/us-central1
-   * 
- * - * - * 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 tag template to create.
-   * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The tagTemplateId. - */ - java.lang.String getTagTemplateId(); - - /** - * - * - *
-   * Required. The id of the tag template to create.
-   * 
- * - * string tag_template_id = 3 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for tagTemplateId. - */ - com.google.protobuf.ByteString getTagTemplateIdBytes(); - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - boolean hasTagTemplate(); - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - com.google.cloud.datacatalog.v1beta1.TagTemplate getTagTemplate(); - - /** - * - * - *
-   * Required. The tag template to create.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder getTagTemplateOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequest.java deleted file mode 100644 index 59bdc979c037..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequest.java +++ /dev/null @@ -1,906 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [CreateTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.CreateTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest} - */ -@com.google.protobuf.Generated -public final class CreateTaxonomyRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest) - CreateTaxonomyRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "CreateTaxonomyRequest"); - } - - // Use CreateTaxonomyRequest.newBuilder() to construct. - private CreateTaxonomyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private CreateTaxonomyRequest() { - parent_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_CreateTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_CreateTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of the project that the taxonomy will belong to.
-   * 
- * - * - * 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. Resource name of the project that the taxonomy will belong to.
-   * 
- * - * - * 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 TAXONOMY_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1beta1.Taxonomy taxonomy_; - - /** - * - * - *
-   * The taxonomy to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - * - * @return Whether the taxonomy field is set. - */ - @java.lang.Override - public boolean hasTaxonomy() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The taxonomy to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - * - * @return The taxonomy. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomy() { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - - /** - * - * - *
-   * The taxonomy to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomyOrBuilder() { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getTaxonomy()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getTaxonomy()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest other = - (com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (hasTaxonomy() != other.hasTaxonomy()) return false; - if (hasTaxonomy()) { - if (!getTaxonomy().equals(other.getTaxonomy())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasTaxonomy()) { - hash = (37 * hash) + TAXONOMY_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomy().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [CreateTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.CreateTaxonomy].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest) - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_CreateTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_CreateTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest.class, - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTaxonomyFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - taxonomy_ = null; - if (taxonomyBuilder_ != null) { - taxonomyBuilder_.dispose(); - taxonomyBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_CreateTaxonomyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest build() { - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest result = - new com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.taxonomy_ = taxonomyBuilder_ == null ? taxonomy_ : taxonomyBuilder_.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.datacatalog.v1beta1.CreateTaxonomyRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasTaxonomy()) { - mergeTaxonomy(other.getTaxonomy()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage( - internalGetTaxonomyFieldBuilder().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 parent_ = ""; - - /** - * - * - *
-     * Required. Resource name of the project that the taxonomy will belong to.
-     * 
- * - * - * 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. Resource name of the project that the taxonomy will belong to.
-     * 
- * - * - * 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. Resource name of the project that the taxonomy will belong to.
-     * 
- * - * - * 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. Resource name of the project that the taxonomy will belong to.
-     * 
- * - * - * 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. Resource name of the project that the taxonomy will belong to.
-     * 
- * - * - * 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 com.google.cloud.datacatalog.v1beta1.Taxonomy taxonomy_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - taxonomyBuilder_; - - /** - * - * - *
-     * The taxonomy to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - * - * @return Whether the taxonomy field is set. - */ - public boolean hasTaxonomy() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * The taxonomy to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - * - * @return The taxonomy. - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomy() { - if (taxonomyBuilder_ == null) { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance() - : taxonomy_; - } else { - return taxonomyBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The taxonomy to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - */ - public Builder setTaxonomy(com.google.cloud.datacatalog.v1beta1.Taxonomy value) { - if (taxonomyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taxonomy_ = value; - } else { - taxonomyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - */ - public Builder setTaxonomy( - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder builderForValue) { - if (taxonomyBuilder_ == null) { - taxonomy_ = builderForValue.build(); - } else { - taxonomyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - */ - public Builder mergeTaxonomy(com.google.cloud.datacatalog.v1beta1.Taxonomy value) { - if (taxonomyBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && taxonomy_ != null - && taxonomy_ != com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance()) { - getTaxonomyBuilder().mergeFrom(value); - } else { - taxonomy_ = value; - } - } else { - taxonomyBuilder_.mergeFrom(value); - } - if (taxonomy_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The taxonomy to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - */ - public Builder clearTaxonomy() { - bitField0_ = (bitField0_ & ~0x00000002); - taxonomy_ = null; - if (taxonomyBuilder_ != null) { - taxonomyBuilder_.dispose(); - taxonomyBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder getTaxonomyBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetTaxonomyFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The taxonomy to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - */ - public com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomyOrBuilder() { - if (taxonomyBuilder_ != null) { - return taxonomyBuilder_.getMessageOrBuilder(); - } else { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - } - - /** - * - * - *
-     * The taxonomy to be created.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - internalGetTaxonomyFieldBuilder() { - if (taxonomyBuilder_ == null) { - taxonomyBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder>( - getTaxonomy(), getParentForChildren(), isClean()); - taxonomy_ = null; - } - return taxonomyBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest) - private static final com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateTaxonomyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequestOrBuilder.java deleted file mode 100644 index 7c2a97eb5d5b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/CreateTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface CreateTaxonomyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the project that the taxonomy will belong to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of the project that the taxonomy will belong to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The taxonomy to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - * - * @return Whether the taxonomy field is set. - */ - boolean hasTaxonomy(); - - /** - * - * - *
-   * The taxonomy to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - * - * @return The taxonomy. - */ - com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomy(); - - /** - * - * - *
-   * The taxonomy to be created.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 2; - */ - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomyOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java deleted file mode 100644 index 7d935c075037..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Datacatalog.java +++ /dev/null @@ -1,841 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public final class Datacatalog extends com.google.protobuf.GeneratedFile { - private Datacatalog() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Datacatalog"); - } - - 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_datacatalog_v1beta1_SearchCatalogRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_Entry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_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" - + "2google/cloud/datacatalog/v1beta1/datacatalog.proto\022 google.cloud.datacatalog.v" - + "1beta1\032\034google/api/annotations.proto\032\027go" - + "ogle/api/client.proto\032\037google/api/field_" - + "behavior.proto\032\031google/api/resource.prot" - + "o\032-google/cloud/datacatalog/v1beta1/common.proto\0327google/cloud/datacatalog/v1bet" - + "a1/gcs_fileset_spec.proto\032-google/cloud/datacatalog/v1beta1/schema.proto\032-google" - + "/cloud/datacatalog/v1beta1/search.proto\0321google/cloud/datacatalog/v1beta1/table_" - + "spec.proto\032+google/cloud/datacatalog/v1beta1/tags.proto\0321google/cloud/datacatalo" - + "g/v1beta1/timestamps.proto\032,google/cloud" - + "/datacatalog/v1beta1/usage.proto\032\036google" - + "/iam/v1/iam_policy.proto\032\032google/iam/v1/" - + "policy.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\"\302\002\n" - + "\024SearchCatalogRequest\022P\n" - + "\005scope\030\006 \001(\0132<.go" - + "ogle.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeB\003\340A\002\022\022\n" - + "\005query\030\001 \001(\tB\003\340A\001\022\021\n" - + "\tpage_size\030\002 \001(\005\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\022\020\n" - + "\010order_by\030\005 \001(\t\032\205\001\n" - + "\005Scope\022\027\n" - + "\017include_org_ids\030\002 \003(\t\022\033\n" - + "\023include_project_ids\030\003 \003(\t\022#\n" - + "\033include_gcp_public_datasets\030\007 \001(\010\022!\n" - + "\024restricted_locations\030\020 \003(\tB\003\340A\001\"\241\001\n" - + "\025SearchCatalogResponse\022F\n" - + "\007results\030\001 " - + "\003(\01325.google.cloud.datacatalog.v1beta1.SearchCatalogResult\022\022\n\n" - + "total_size\030\002 \001(\005\022\027\n" - + "\017next_page_token\030\003 \001(\t\022\023\n" - + "\013unreachable\030\006 \003(\t\"\270\001\n" - + "\027CreateEntryGroupRequest\022=\n" - + "\006parent\030\001 \001(" - + "\tB-\340A\002\372A\'\022%datacatalog.googleapis.com/EntryGroup\022\033\n" - + "\016entry_group_id\030\003 \001(\tB\003\340A\002\022A\n" - + "\013entry_group\030\002" - + " \001(\0132,.google.cloud.datacatalog.v1beta1.EntryGroup\"\222\001\n" - + "\027UpdateEntryGroupRequest\022F\n" - + "\013entry_group\030\001 \001(\013" - + "2,.google.cloud.datacatalog.v1beta1.EntryGroupB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\202\001\n" - + "\024GetEntryGroupRequest\022;\n" - + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%datacatalog.googleapis.com/EntryGroup\022-\n" - + "\tread_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"j\n" - + "\027DeleteEntryGroupRequest\022;\n" - + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%datacatalog.googleapis.com/EntryGroup\022\022\n" - + "\005force\030\002 \001(\010B\003\340A\001\"\210\001\n" - + "\026ListEntryGroupsRequest\022=\n" - + "\006parent\030\001 \001(" - + "\tB-\340A\002\372A\'\022%datacatalog.googleapis.com/EntryGroup\022\026\n" - + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\003 \001(\tB\003\340A\001\"v\n" - + "\027ListEntryGroupsResponse\022B\n" - + "\014entry_groups\030\001" - + " \003(\0132,.google.cloud.datacatalog.v1beta1.EntryGroup\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\247\001\n" - + "\022CreateEntryRequest\022=\n" - + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n" - + "%datacatalog.googleapis.com/EntryGroup\022\025\n" - + "\010entry_id\030\003 \001(\tB\003\340A\002\022;\n" - + "\005entry\030\002" - + " \001(\0132\'.google.cloud.datacatalog.v1beta1.EntryB\003\340A\002\"\202\001\n" - + "\022UpdateEntryRequest\022;\n" - + "\005entry\030\001" - + " \001(\0132\'.google.cloud.datacatalog.v1beta1.EntryB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"L\n" - + "\022DeleteEntryRequest\0226\n" - + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " datacatalog.googleapis.com/Entry\"I\n" - + "\017GetEntryRequest\0226\n" - + "\004name\030\001 \001(\tB(\340A\002\372A\"\n" - + " datacatalog.googleapis.com/Entry\"V\n" - + "\022LookupEntryRequest\022\031\n" - + "\017linked_resource\030\001 \001(\tH\000\022\026\n" - + "\014sql_resource\030\003 \001(\tH\000B\r\n" - + "\013target_name\"\337\007\n" - + "\005Entry\022>\n" - + "\004name\030\001 \001(\tB0\340A\003\340A\010\372A\'\n" - + "%datacatalog.googleapis.com/EntryGroup\022\027\n" - + "\017linked_resource\030\t \001(\t\022;\n" - + "\004type\030\002 \001(\0162+.google.cloud.datacatalog.v1beta1.EntryTypeH\000\022\035\n" - + "\023user_specified_type\030\020 \001(\tH\000\022T\n" - + "\021integrated_system\030\021 \001" - + "(\01622.google.cloud.datacatalog.v1beta1.IntegratedSystemB\003\340A\003H\001\022\037\n" - + "\025user_specified_system\030\022 \001(\tH\001\022L\n" - + "\020gcs_fileset_spec\030\006 \001(\013" - + "20.google.cloud.datacatalog.v1beta1.GcsFilesetSpecH\002\022R\n" - + "\023bigquery_table_spec\030\014 \001(" - + "\01323.google.cloud.datacatalog.v1beta1.BigQueryTableSpecH\002\022_\n" - + "\032bigquery_date_sharded_spec\030\017" - + " \001(\01329.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecH\002\022\024\n" - + "\014display_name\030\003 \001(\t\022\023\n" - + "\013description\030\004 \001(\t\0228\n" - + "\006schema\030\005 \001(\0132(.google.cloud.datacatalog.v1beta1.Schema\022Y\n" - + "\030source_system_timestamps\030\007" - + " \001(\01322.google.cloud.datacatalog.v1beta1.SystemTimestampsB\003\340A\003\022H\n" - + "\014usage_signal\030\r" - + " \001(\0132-.google.cloud.datacatalog.v1beta1.UsageSignalB\003\340A\003:x\352Au\n" - + " datacatalog.googleapis.com/Entry\022Qprojects/{project}/l" - + "ocations/{location}/entryGroups/{entry_group}/entries/{entry}B\014\n\n" - + "entry_typeB\010\n" - + "\006systemB\013\n" - + "\ttype_spec\"\223\002\n\n" - + "EntryGroup\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" - + "\014display_name\030\002 \001(\t\022\023\n" - + "\013description\030\003 \001(\t\022X\n" - + "\027data_catalog_timestamps\030\004" - + " \001(\01322.google.cloud.datacatalog.v1beta1.SystemTimestampsB\003\340A\003:m\352Aj\n" - + "%datacatalog.googleapis.com/EntryGroup\022Aprojects/" - + "{project}/locations/{location}/entryGroups/{entry_group}\"\302\001\n" - + "\030CreateTagTemplateRequest\022>\n" - + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&datacatalog.googleapis.com/TagTemplate\022\034\n" - + "\017tag_template_id\030\003 \001(\tB\003\340A\002\022H\n" - + "\014tag_template\030\002 \001(" - + "\0132-.google.cloud.datacatalog.v1beta1.TagTemplateB\003\340A\002\"U\n" - + "\025GetTagTemplateRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&datacatalog.googleapis.com/TagTemplate\"\225\001\n" - + "\030UpdateTagTemplateRequest\022H\n" - + "\014tag_template\030\001 \001(\0132-.google" - + ".cloud.datacatalog.v1beta1.TagTemplateB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"l\n" - + "\030DeleteTagTemplateRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&datacatalog.googleapis.com/TagTemplate\022\022\n" - + "\005force\030\002 \001(\010B\003\340A\002\"\203\001\n" - + "\020CreateTagRequest\0226\n" - + "\006parent\030\001 \001(\tB&\340A\002\372A" - + " \022\036datacatalog.googleapis.com/Tag\0227\n" - + "\003tag\030\002 \001(\0132%.google.cloud.datacatalog.v1beta1.TagB\003\340A\002\"|\n" - + "\020UpdateTagRequest\0227\n" - + "\003tag\030\001 \001(\0132%.google.cloud.datacatalog.v1beta1.TagB\003\340A\002\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"H\n" - + "\020DeleteTagRequest\0224\n" - + "\004name\030\001 \001(\tB&\340A\002\372A" - + " \022\036datacatalog.googleapis.com/Tag\"\330\001\n" - + "\035CreateTagTemplateFieldRequest\022>\n" - + "\006parent\030\001 \001(\tB.\340A\002\372A(\n" - + "&datacatalog.googleapis.com/TagTemplate\022\"\n" - + "\025tag_template_field_id\030\002 \001(\tB\003\340A\002\022S\n" - + "\022tag_template_field\030\003" - + " \001(\01322.google.cloud.datacatalog.v1beta1.TagTemplateFieldB\003\340A\002\"\355\001\n" - + "\035UpdateTagTemplateFieldRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+datacatalog.googleapis.com/TagTemplateField\022S\n" - + "\022tag_template_field\030\002" - + " \001(\01322.google.cloud.datacatalog.v1beta1.TagTemplateFieldB\003\340A\002\0224\n" - + "\013update_mask\030\003" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\212\001\n" - + "\035RenameTagTemplateFieldRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+datacatalog.googleapis.com/TagTemplateField\022&\n" - + "\031new_tag_template_field_id\030\002 \001(\tB\003\340A\002\"\236\001\n" - + "&RenameTagTemplateFieldEnumValueRequest\022J\n" - + "\004name\030\001 \001(\tB<\340A\002\372A6\n" - + "4datacatalog.googleapis.com/TagTemplateFieldEnumValue\022(\n" - + "\033new_enum_value_display_name\030\002 \001(\tB\003\340A\002\"v\n" - + "\035DeleteTagTemplateFieldRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+datacatalog.googleapis.com/TagTemplateField\022\022\n" - + "\005force\030\002 \001(\010B\003\340A\002\"p\n" - + "\017ListTagsRequest\0226\n" - + "\006parent\030\001 \001(\tB&\340A\002\372A" - + " \022\036datacatalog.googleapis.com/Tag\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"`\n" - + "\020ListTagsResponse\0223\n" - + "\004tags\030\001 \003(\0132%.google.cloud.datacatalog.v1beta1.Tag\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\251\001\n" - + "\022ListEntriesRequest\022=\n" - + "\006parent\030\001 \001(\tB-\340A\002\372A\'\n" - + "%datacatalog.googleapis.com/EntryGroup\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022-\n" - + "\tread_mask\030\004 \001(\0132\032.google.protobuf.FieldMask\"h\n" - + "\023ListEntriesResponse\0228\n" - + "\007entries\030\001 \003(\0132\'.google.cloud.datacatalog.v1beta1.Entry\022\027\n" - + "\017next_page_token\030\002 \001(\t*[\n" - + "\tEntryType\022\032\n" - + "\026ENTRY_TYPE_UNSPECIFIED\020\000\022\t\n" - + "\005TABLE\020\002\022\t\n" - + "\005MODEL\020\005\022\017\n" - + "\013DATA_STREAM\020\003\022\013\n" - + "\007FILESET\020\0042\2715\n" - + "\013DataCatalog\022\265\001\n\r" - + "SearchCatalog\0226.google.cloud.datacatalog.v1beta1.SearchCata" - + "logRequest\0327.google.cloud.datacatalog.v1" - + "beta1.SearchCatalogResponse\"3\210\002\001\332A\013scope" - + ",query\202\323\344\223\002\034\"\027/v1beta1/catalog:search:\001*\022\355\001\n" - + "\020CreateEntryGroup\0229.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest" - + "\032,.google.cloud.datacatalog.v1beta1.Entr" - + "yGroup\"p\210\002\001\332A!parent,entry_group_id,entr" - + "y_group\202\323\344\223\002C\"4/v1beta1/{parent=projects" - + "/*/locations/*}/entryGroups:\013entry_group\022\376\001\n" - + "\020UpdateEntryGroup\0229.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest" - + "\032,.google.cloud.datacatalog.v1beta1.Entr" - + "yGroup\"\200\001\210\002\001\332A\013entry_group\332A\027entry_group" - + ",update_mask\202\323\344\223\002O2@/v1beta1/{entry_grou" - + "p.name=projects/*/locations/*/entryGroups/*}:\013entry_group\022\316\001\n\r" - + "GetEntryGroup\0226.google.cloud.datacatalog.v1beta1.GetEntryG" - + "roupRequest\032,.google.cloud.datacatalog.v" - + "1beta1.EntryGroup\"W\210\002\001\332A\004name\332A\016name,rea" - + "d_mask\202\323\344\223\0026\0224/v1beta1/{name=projects/*/locations/*/entryGroups/*}\022\255\001\n" - + "\020DeleteEntryGroup\0229.google.cloud.datacatalog.v1bet" - + "a1.DeleteEntryGroupRequest\032\026.google.prot" - + "obuf.Empty\"F\210\002\001\332A\004name\202\323\344\223\0026*4/v1beta1/{" - + "name=projects/*/locations/*/entryGroups/*}\022\320\001\n" - + "\017ListEntryGroups\0228.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest" - + "\0329.google.cloud.datacatalog.v1beta1.List" - + "EntryGroupsResponse\"H\210\002\001\332A\006parent\202\323\344\223\0026\022" - + "4/v1beta1/{parent=projects/*/locations/*}/entryGroups\022\326\001\n" - + "\013CreateEntry\0224.google.cloud.datacatalog.v1beta1.CreateEntryRequ" - + "est\032\'.google.cloud.datacatalog.v1beta1.E" - + "ntry\"h\210\002\001\332A\025parent,entry_id,entry\202\323\344\223\002G\"" - + ">/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/entries:\005entry\022\340\001\n" - + "\013UpdateEntry\0224.google.cloud.datacatalog.v1beta" - + "1.UpdateEntryRequest\032\'.google.cloud.data" - + "catalog.v1beta1.Entry\"r\210\002\001\332A\005entry\332A\021ent" - + "ry,update_mask\202\323\344\223\002M2D/v1beta1/{entry.na" - + "me=projects/*/locations/*/entryGroups/*/entries/*}:\005entry\022\255\001\n" - + "\013DeleteEntry\0224.google.cloud.datacatalog.v1beta1.DeleteEntry" - + "Request\032\026.google.protobuf.Empty\"P\210\002\001\332A\004n" - + "ame\202\323\344\223\002@*>/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*}\022\270\001\n" - + "\010GetEntry\0221.google.cloud.datacatalog.v1beta" - + "1.GetEntryRequest\032\'.google.cloud.datacat" - + "alog.v1beta1.Entry\"P\210\002\001\332A\004name\202\323\344\223\002@\022>/v" - + "1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*}\022\220\001\n" - + "\013LookupEntry\0224.google.cloud.datacatalog.v1beta1.LookupEn" - + "tryRequest\032\'.google.cloud.datacatalog.v1" - + "beta1.Entry\"\"\210\002\001\202\323\344\223\002\031\022\027/v1beta1/entries:lookup\022\316\001\n" - + "\013ListEntries\0224.google.cloud.datacatalog.v1beta1.ListEntriesRequest\0325." - + "google.cloud.datacatalog.v1beta1.ListEnt" - + "riesResponse\"R\210\002\001\332A\006parent\202\323\344\223\002@\022>/v1bet" - + "a1/{parent=projects/*/locations/*/entryGroups/*}/entries\022\364\001\n" - + "\021CreateTagTemplate\022:.google.cloud.datacatalog.v1beta1.Create" - + "TagTemplateRequest\032-.google.cloud.dataca" - + "talog.v1beta1.TagTemplate\"t\210\002\001\332A#parent," - + "tag_template_id,tag_template\202\323\344\223\002E\"5/v1b" - + "eta1/{parent=projects/*/locations/*}/tagTemplates:\014tag_template\022\301\001\n" - + "\016GetTagTemplate\0227.google.cloud.datacatalog.v1beta1.Ge" - + "tTagTemplateRequest\032-.google.cloud.datac" - + "atalog.v1beta1.TagTemplate\"G\210\002\001\332A\004name\202\323" - + "\344\223\0027\0225/v1beta1/{name=projects/*/locations/*/tagTemplates/*}\022\206\002\n" - + "\021UpdateTagTemplate\022:.google.cloud.datacatalog.v1beta1.Upd" - + "ateTagTemplateRequest\032-.google.cloud.dat" - + "acatalog.v1beta1.TagTemplate\"\205\001\210\002\001\332A\014tag" - + "_template\332A\030tag_template,update_mask\202\323\344\223" - + "\002R2B/v1beta1/{tag_template.name=projects" - + "/*/locations/*/tagTemplates/*}:\014tag_template\022\266\001\n" - + "\021DeleteTagTemplate\022:.google.clou" - + "d.datacatalog.v1beta1.DeleteTagTemplateRequest\032\026.google.protobuf.Empty\"M\210\002\001\332A\n" - + "name,force\202\323\344\223\0027*5/v1beta1/{name=projects/*/locations/*/tagTemplates/*}\022\237\002\n" - + "\026CreateTagTemplateField\022?.google.cloud.datacata" - + "log.v1beta1.CreateTagTemplateFieldRequest\0322.google.cloud.datacatalog.v1beta1.Tag" - + "TemplateField\"\217\001\210\002\001\332A/parent,tag_templat" - + "e_field_id,tag_template_field\202\323\344\223\002T\">/v1" - + "beta1/{parent=projects/*/locations/*/tag" - + "Templates/*}/fields:\022tag_template_field\022\255\002\n" - + "\026UpdateTagTemplateField\022?.google.cloud.datacatalog.v1beta1.UpdateTagTemplateF" - + "ieldRequest\0322.google.cloud.datacatalog.v" - + "1beta1.TagTemplateField\"\235\001\210\002\001\332A\027name,tag" - + "_template_field\332A#name,tag_template_fiel" - + "d,update_mask\202\323\344\223\002T2>/v1beta1/{name=proj" - + "ects/*/locations/*/tagTemplates/*/fields/*}:\022tag_template_field\022\203\002\n" - + "\026RenameTagTemplateField\022?.google.cloud.datacatalog.v1" - + "beta1.RenameTagTemplateFieldRequest\0322.google.cloud.datacatalog.v1beta1.TagTempla" - + "teField\"t\210\002\001\332A\036name,new_tag_template_fie" - + "ld_id\202\323\344\223\002J\"E/v1beta1/{name=projects/*/l" - + "ocations/*/tagTemplates/*/fields/*}:rename:\001*\022\245\002\n" - + "\037RenameTagTemplateFieldEnumValue\022H.google.cloud.datacatalog.v1beta1.Ren" - + "ameTagTemplateFieldEnumValueRequest\0322.go" - + "ogle.cloud.datacatalog.v1beta1.TagTemplateField\"\203\001\210\002\001\332A" - + " name,new_enum_value_display_name\202\323\344\223\002W\"R/v1beta1/{name=projects/" - + "*/locations/*/tagTemplates/*/fields/*/enumValues/*}:rename:\001*\022\311\001\n" - + "\026DeleteTagTemplateField\022?.google.cloud.datacatalog.v1be" - + "ta1.DeleteTagTemplateFieldRequest\032\026.google.protobuf.Empty\"V\210\002\001\332A\n" - + "name,force\202\323\344\223\002" - + "@*>/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}\022\220\002\n" - + "\tCreateTag\0222.google.cloud.datacatalog.v1beta1.Creat" - + "eTagRequest\032%.google.cloud.datacatalog.v1beta1.Tag\"\247\001\210\002\001\332A\n" - + "parent,tag\202\323\344\223\002\220\001\"E/v1beta1/{parent=projects/*/locations/*/en" - + "tryGroups/*/entries/*}/tags:\003tagZB\";/v1b" - + "eta1/{parent=projects/*/locations/*/entryGroups/*}/tags:\003tag\022\243\002\n" - + "\tUpdateTag\0222.google.cloud.datacatalog.v1beta1.UpdateTagR" - + "equest\032%.google.cloud.datacatalog.v1beta" - + "1.Tag\"\272\001\210\002\001\332A\003tag\332A\017tag,update_mask\202\323\344\223\002" - + "\230\0012I/v1beta1/{tag.name=projects/*/locati" - + "ons/*/entryGroups/*/entries/*/tags/*}:\003t" - + "agZF2?/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/tags/*}:\003tag\022\361\001\n" - + "\tDeleteTag\0222.google.cloud.datacatalog.v1be" - + "ta1.DeleteTagRequest\032\026.google.protobuf.E" - + "mpty\"\227\001\210\002\001\332A\004name\202\323\344\223\002\206\001*E/v1beta1/{name" - + "=projects/*/locations/*/entryGroups/*/entries/*/tags/*}Z=*;/v1beta1/{name=projec" - + "ts/*/locations/*/entryGroups/*/tags/*}\022\215\002\n" - + "\010ListTags\0221.google.cloud.datacatalog.v" - + "1beta1.ListTagsRequest\0322.google.cloud.da" - + "tacatalog.v1beta1.ListTagsResponse\"\231\001\210\002\001" - + "\332A\006parent\202\323\344\223\002\206\001\022E/v1beta1/{parent=proje" - + "cts/*/locations/*/entryGroups/*/entries/" - + "*}/tagsZ=\022;/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/tags\022\377\001\n" - + "\014SetIamPolicy\022\".google.iam.v1.SetIamPolicyRequ" - + "est\032\025.google.iam.v1.Policy\"\263\001\210\002\001\332A\017resou" - + "rce,policy\202\323\344\223\002\227\001\"F/v1beta1/{resource=pr" - + "ojects/*/locations/*/tagTemplates/*}:setIamPolicy:\001*ZJ\"E/v1beta1/{resource=proje" - + "cts/*/locations/*/entryGroups/*}:setIamPolicy:\001*\022\316\002\n" - + "\014GetIamPolicy\022\".google.iam.v1.GetIamPolicyRequest\032\025.google.iam.v1.Po" - + "licy\"\202\002\210\002\001\332A\010resource\202\323\344\223\002\355\001\"F/v1beta1/{" - + "resource=projects/*/locations/*/tagTemplates/*}:getIamPolicy:\001*ZJ\"E/v1beta1/{res" - + "ource=projects/*/locations/*/entryGroups/*}:getIamPolicy:\001*ZT\"O/v1beta1/{resourc" - + "e=projects/*/locations/*/entryGroups/*/entries/*}:getIamPolicy:\001*\022\365\002\n" - + "\022TestIamPermissions\022(.google.iam.v1.TestIamPermissi" - + "onsRequest\032).google.iam.v1.TestIamPermis" - + "sionsResponse\"\211\002\210\002\001\202\323\344\223\002\377\001\"L/v1beta1/{re" - + "source=projects/*/locations/*/tagTemplates/*}:testIamPermissions:\001*ZP\"K/v1beta1/" - + "{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions:\001*ZZ\"U/v1beta" - + "1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:testIamPermissions:\001" - + "*\032Q\210\002\001\312A\032datacatalog.googleapis.com\322A.ht" - + "tps://www.googleapis.com/auth/cloud-platformB\240\003\n" - + "$com.google.cloud.datacatalog.v1beta1P\001ZFcloud.google.com/go/datacatalog" - + "/apiv1beta1/datacatalogpb;datacatalogpb\252\002" - + " Google.Cloud.DataCatalog.V1Beta1\312\002 Goo" - + "gle\\Cloud\\DataCatalog\\V1beta1\352\002#Google::Cloud::DataCatalog::V1beta1\352A\300\001\n" - + "4datacatalog.googleapis.com/TagTemplateFieldEnum" - + "Value\022\207\001projects/{project}/locations/{lo" - + "cation}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{e" - + "num_value_display_name}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.ResourceProto.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.Common.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.SchemaOuterClass.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.Search.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.Tags.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.Timestamps.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.Usage.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_descriptor, - new java.lang.String[] { - "Scope", "Query", "PageSize", "PageToken", "OrderBy", - }); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_descriptor = - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_descriptor - .getNestedType(0); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_descriptor, - new java.lang.String[] { - "IncludeOrgIds", - "IncludeProjectIds", - "IncludeGcpPublicDatasets", - "RestrictedLocations", - }); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_descriptor, - new java.lang.String[] { - "Results", "TotalSize", "NextPageToken", "Unreachable", - }); - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryGroupRequest_descriptor, - new java.lang.String[] { - "Parent", "EntryGroupId", "EntryGroup", - }); - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_descriptor = - getDescriptor().getMessageType(3); - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_descriptor, - new java.lang.String[] { - "EntryGroup", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_descriptor = - getDescriptor().getMessageType(4); - internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_descriptor, - new java.lang.String[] { - "Name", "ReadMask", - }); - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_descriptor = - getDescriptor().getMessageType(5); - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_descriptor, - new java.lang.String[] { - "Name", "Force", - }); - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_descriptor = - getDescriptor().getMessageType(6); - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_descriptor = - getDescriptor().getMessageType(7); - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_descriptor, - new java.lang.String[] { - "EntryGroups", "NextPageToken", - }); - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_descriptor = - getDescriptor().getMessageType(8); - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_CreateEntryRequest_descriptor, - new java.lang.String[] { - "Parent", "EntryId", "Entry", - }); - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_descriptor = - getDescriptor().getMessageType(9); - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_descriptor, - new java.lang.String[] { - "Entry", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_descriptor = - getDescriptor().getMessageType(10); - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_descriptor = - getDescriptor().getMessageType(11); - internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_descriptor = - getDescriptor().getMessageType(12); - internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_descriptor, - new java.lang.String[] { - "LinkedResource", "SqlResource", "TargetName", - }); - internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor = - getDescriptor().getMessageType(13); - internal_static_google_cloud_datacatalog_v1beta1_Entry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor, - new java.lang.String[] { - "Name", - "LinkedResource", - "Type", - "UserSpecifiedType", - "IntegratedSystem", - "UserSpecifiedSystem", - "GcsFilesetSpec", - "BigqueryTableSpec", - "BigqueryDateShardedSpec", - "DisplayName", - "Description", - "Schema", - "SourceSystemTimestamps", - "UsageSignal", - "EntryType", - "System", - "TypeSpec", - }); - internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_descriptor = - getDescriptor().getMessageType(14); - internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Description", "DataCatalogTimestamps", - }); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_descriptor = - getDescriptor().getMessageType(15); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateRequest_descriptor, - new java.lang.String[] { - "Parent", "TagTemplateId", "TagTemplate", - }); - internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_descriptor = - getDescriptor().getMessageType(16); - internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_descriptor = - getDescriptor().getMessageType(17); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_descriptor, - new java.lang.String[] { - "TagTemplate", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_descriptor = - getDescriptor().getMessageType(18); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_descriptor, - new java.lang.String[] { - "Name", "Force", - }); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_descriptor = - getDescriptor().getMessageType(19); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_CreateTagRequest_descriptor, - new java.lang.String[] { - "Parent", "Tag", - }); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_descriptor = - getDescriptor().getMessageType(20); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_descriptor, - new java.lang.String[] { - "Tag", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_descriptor = - getDescriptor().getMessageType(21); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageType(22); - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_CreateTagTemplateFieldRequest_descriptor, - new java.lang.String[] { - "Parent", "TagTemplateFieldId", "TagTemplateField", - }); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageType(23); - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_descriptor, - new java.lang.String[] { - "Name", "TagTemplateField", "UpdateMask", - }); - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageType(24); - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_descriptor, - new java.lang.String[] { - "Name", "NewTagTemplateFieldId", - }); - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_descriptor = - getDescriptor().getMessageType(25); - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_descriptor, - new java.lang.String[] { - "Name", "NewEnumValueDisplayName", - }); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_descriptor = - getDescriptor().getMessageType(26); - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_descriptor, - new java.lang.String[] { - "Name", "Force", - }); - internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_descriptor = - getDescriptor().getMessageType(27); - internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", - }); - internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_descriptor = - getDescriptor().getMessageType(28); - internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_descriptor, - new java.lang.String[] { - "Tags", "NextPageToken", - }); - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_descriptor = - getDescriptor().getMessageType(29); - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_descriptor, - new java.lang.String[] { - "Parent", "PageSize", "PageToken", "ReadMask", - }); - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_descriptor = - getDescriptor().getMessageType(30); - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_descriptor, - new java.lang.String[] { - "Entries", "NextPageToken", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.Common.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.SchemaOuterClass.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.Search.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.Tags.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.Timestamps.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.Usage.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java deleted file mode 100644 index 9c3696d8e09e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequest.java +++ /dev/null @@ -1,721 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [DeleteEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest} - */ -@com.google.protobuf.Generated -public final class DeleteEntryGroupRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest) - DeleteEntryGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteEntryGroupRequest"); - } - - // Use DeleteEntryGroupRequest.newBuilder() to construct. - private DeleteEntryGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteEntryGroupRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the entry group. For example,
-   * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the entry group. For example,
-   * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_ = false; - - /** - * - * - *
-   * Optional. If true, deletes all entries in the entry group.
-   * 
- * - * 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.datacatalog.v1beta1.DeleteEntryGroupRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest other = - (com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest) 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.datacatalog.v1beta1.DeleteEntryGroupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntryGroup].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest) - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest.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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest build() { - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest result = - new com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest 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.datacatalog.v1beta1.DeleteEntryGroupRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest.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 name of the entry group. For example,
-     * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group. For example,
-     * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group. For example,
-     * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group. For example,
-     * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group. For example,
-     * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean force_; - - /** - * - * - *
-     * Optional. If true, deletes all entries in the entry group.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The force. - */ - @java.lang.Override - public boolean getForce() { - return force_; - } - - /** - * - * - *
-     * Optional. If true, deletes all entries in the entry group.
-     * 
- * - * 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 true, deletes all entries in the entry group.
-     * 
- * - * 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.datacatalog.v1beta1.DeleteEntryGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest) - private static final com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEntryGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequestOrBuilder.java deleted file mode 100644 index fadedcd5d516..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface DeleteEntryGroupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry group. For example,
-   * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the entry group. For example,
-   * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Optional. If true, deletes all entries in the entry group.
-   * 
- * - * bool force = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The force. - */ - boolean getForce(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequest.java deleted file mode 100644 index fc3afddfb2b9..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequest.java +++ /dev/null @@ -1,627 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [DeleteEntry][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteEntryRequest} - */ -@com.google.protobuf.Generated -public final class DeleteEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteEntryRequest) - DeleteEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteEntryRequest"); - } - - // Use DeleteEntryRequest.newBuilder() to construct. - private DeleteEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteEntryRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the entry. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the entry. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1beta1.DeleteEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest other = - (com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest) 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.datacatalog.v1beta1.DeleteEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteEntry][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.DeleteEntryRequest) - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest.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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest build() { - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest result = - new com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest 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.datacatalog.v1beta1.DeleteEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest.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 entry. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.DeleteEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.DeleteEntryRequest) - private static final com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequestOrBuilder.java deleted file mode 100644 index 0fb1fb606673..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteEntryRequestOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface DeleteEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.DeleteEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the entry. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequest.java deleted file mode 100644 index 54d23f861e61..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequest.java +++ /dev/null @@ -1,620 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [DeletePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.DeletePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest} - */ -@com.google.protobuf.Generated -public final class DeletePolicyTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest) - DeletePolicyTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeletePolicyTagRequest"); - } - - // Use DeletePolicyTagRequest.newBuilder() to construct. - private DeletePolicyTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeletePolicyTagRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_DeletePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_DeletePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest.class, - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. Resource name of the policy tag to be deleted. All of its
-   * descendant policy tags will also be deleted.
-   * 
- * - * - * 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. Resource name of the policy tag to be deleted. All of its
-   * descendant policy tags will also be deleted.
-   * 
- * - * - * 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.datacatalog.v1beta1.DeletePolicyTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest other = - (com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest) 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.datacatalog.v1beta1.DeletePolicyTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeletePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.DeletePolicyTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest) - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_DeletePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_DeletePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest.class, - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest.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.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_DeletePolicyTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest build() { - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest result = - new com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest 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.datacatalog.v1beta1.DeletePolicyTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest.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. Resource name of the policy tag to be deleted. All of its
-     * descendant policy tags will also be deleted.
-     * 
- * - * - * 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. Resource name of the policy tag to be deleted. All of its
-     * descendant policy tags will also be deleted.
-     * 
- * - * - * 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. Resource name of the policy tag to be deleted. All of its
-     * descendant policy tags will also be deleted.
-     * 
- * - * - * 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. Resource name of the policy tag to be deleted. All of its
-     * descendant policy tags will also be deleted.
-     * 
- * - * - * 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. Resource name of the policy tag to be deleted. All of its
-     * descendant policy tags will also be deleted.
-     * 
- * - * - * 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.datacatalog.v1beta1.DeletePolicyTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest) - private static final com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeletePolicyTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequestOrBuilder.java deleted file mode 100644 index 42119ff18bda..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeletePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface DeletePolicyTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the policy tag to be deleted. All of its
-   * descendant policy tags will also be deleted.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. Resource name of the policy tag to be deleted. All of its
-   * descendant policy tags will also be deleted.
-   * 
- * - * - * 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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequest.java deleted file mode 100644 index 7092cb31777d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequest.java +++ /dev/null @@ -1,627 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [DeleteTag][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagRequest} - */ -@com.google.protobuf.Generated -public final class DeleteTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTagRequest) - DeleteTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteTagRequest"); - } - - // Use DeleteTagRequest.newBuilder() to construct. - private DeleteTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteTagRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the tag to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1beta1.DeleteTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest other = - (com.google.cloud.datacatalog.v1beta1.DeleteTagRequest) 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.datacatalog.v1beta1.DeleteTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteTag][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.DeleteTagRequest) - com.google.cloud.datacatalog.v1beta1.DeleteTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.DeleteTagRequest.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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.DeleteTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagRequest build() { - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.DeleteTagRequest result = - new com.google.cloud.datacatalog.v1beta1.DeleteTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.DeleteTagRequest 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.datacatalog.v1beta1.DeleteTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.DeleteTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.DeleteTagRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.DeleteTagRequest.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 tag to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.DeleteTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.DeleteTagRequest) - private static final com.google.cloud.datacatalog.v1beta1.DeleteTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.DeleteTagRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequestOrBuilder.java deleted file mode 100644 index a7584e6f66a0..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagRequestOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface DeleteTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.DeleteTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequest.java deleted file mode 100644 index 3e7f4e777e17..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequest.java +++ /dev/null @@ -1,743 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [DeleteTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest} - */ -@com.google.protobuf.Generated -public final class DeleteTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) - DeleteTagTemplateFieldRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteTagTemplateFieldRequest"); - } - - // Use DeleteTagTemplateFieldRequest.newBuilder() to construct. - private DeleteTagTemplateFieldRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteTagTemplateFieldRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the tag template field to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag template field to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_ = false; - - /** - * - * - *
-   * Required. Currently, this field must always be set to `true`.
-   * This confirms the deletion of this field from any tags using this field.
-   * `force = false` will be supported in the future.
-   * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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.datacatalog.v1beta1.DeleteTagTemplateFieldRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest other = - (com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) 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.datacatalog.v1beta1.DeleteTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplateField].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest.Builder.class); - } - - // Construct using - // com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest.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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest build() { - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest result = - new com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest 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.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) { - return mergeFrom( - (com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest - .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 name of the tag template field to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template field to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template field to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template field to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template field to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean force_; - - /** - * - * - *
-     * Required. Currently, this field must always be set to `true`.
-     * This confirms the deletion of this field from any tags using this field.
-     * `force = false` will be supported in the future.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The force. - */ - @java.lang.Override - public boolean getForce() { - return force_; - } - - /** - * - * - *
-     * Required. Currently, this field must always be set to `true`.
-     * This confirms the deletion of this field from any tags using this field.
-     * `force = false` will be supported in the future.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The force to set. - * @return This builder for chaining. - */ - public Builder setForce(boolean value) { - - force_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Currently, this field must always be set to `true`.
-     * This confirms the deletion of this field from any tags using this field.
-     * `force = false` will be supported in the future.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearForce() { - bitField0_ = (bitField0_ & ~0x00000002); - force_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) - private static final com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTagTemplateFieldRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index 4679802db7f8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface DeleteTagTemplateFieldRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag template field to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag template field to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Currently, this field must always be set to `true`.
-   * This confirms the deletion of this field from any tags using this field.
-   * `force = false` will be supported in the future.
-   * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The force. - */ - boolean getForce(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequest.java deleted file mode 100644 index f6546ae66879..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequest.java +++ /dev/null @@ -1,736 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [DeleteTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest} - */ -@com.google.protobuf.Generated -public final class DeleteTagTemplateRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest) - DeleteTagTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteTagTemplateRequest"); - } - - // Use DeleteTagTemplateRequest.newBuilder() to construct. - private DeleteTagTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteTagTemplateRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the tag template to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag template to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FORCE_FIELD_NUMBER = 2; - private boolean force_ = false; - - /** - * - * - *
-   * Required. Currently, this field must always be set to `true`.
-   * This confirms the deletion of any possible tags using this template.
-   * `force = false` will be supported in the future.
-   * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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.datacatalog.v1beta1.DeleteTagTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest other = - (com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest) 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.datacatalog.v1beta1.DeleteTagTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplate].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest) - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest.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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTagTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest build() { - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest result = - new com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest 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.datacatalog.v1beta1.DeleteTagTemplateRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest.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 name of the tag template to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template to delete. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private boolean force_; - - /** - * - * - *
-     * Required. Currently, this field must always be set to `true`.
-     * This confirms the deletion of any possible tags using this template.
-     * `force = false` will be supported in the future.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The force. - */ - @java.lang.Override - public boolean getForce() { - return force_; - } - - /** - * - * - *
-     * Required. Currently, this field must always be set to `true`.
-     * This confirms the deletion of any possible tags using this template.
-     * `force = false` will be supported in the future.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The force to set. - * @return This builder for chaining. - */ - public Builder setForce(boolean value) { - - force_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Currently, this field must always be set to `true`.
-     * This confirms the deletion of any possible tags using this template.
-     * `force = false` will be supported in the future.
-     * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearForce() { - bitField0_ = (bitField0_ & ~0x00000002); - force_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest) - private static final com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTagTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequestOrBuilder.java deleted file mode 100644 index cf3ea4673af7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface DeleteTagTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag template to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag template to delete. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. Currently, this field must always be set to `true`.
-   * This confirms the deletion of any possible tags using this template.
-   * `force = false` will be supported in the future.
-   * 
- * - * bool force = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The force. - */ - boolean getForce(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequest.java deleted file mode 100644 index 39b687a4cc05..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequest.java +++ /dev/null @@ -1,620 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [DeleteTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.DeleteTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest} - */ -@com.google.protobuf.Generated -public final class DeleteTaxonomyRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest) - DeleteTaxonomyRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DeleteTaxonomyRequest"); - } - - // Use DeleteTaxonomyRequest.newBuilder() to construct. - private DeleteTaxonomyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private DeleteTaxonomyRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. Resource name of the taxonomy to be deleted. All policy tags in
-   * this taxonomy will also be deleted.
-   * 
- * - * - * 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. Resource name of the taxonomy to be deleted. All policy tags in
-   * this taxonomy will also be deleted.
-   * 
- * - * - * 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.datacatalog.v1beta1.DeleteTaxonomyRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest other = - (com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest) 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.datacatalog.v1beta1.DeleteTaxonomyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [DeleteTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.DeleteTaxonomy].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest) - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest.class, - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest.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.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_DeleteTaxonomyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest build() { - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest result = - new com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest 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.datacatalog.v1beta1.DeleteTaxonomyRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest.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. Resource name of the taxonomy to be deleted. All policy tags in
-     * this taxonomy will also be deleted.
-     * 
- * - * - * 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. Resource name of the taxonomy to be deleted. All policy tags in
-     * this taxonomy will also be deleted.
-     * 
- * - * - * 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. Resource name of the taxonomy to be deleted. All policy tags in
-     * this taxonomy will also be deleted.
-     * 
- * - * - * 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. Resource name of the taxonomy to be deleted. All policy tags in
-     * this taxonomy will also be deleted.
-     * 
- * - * - * 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. Resource name of the taxonomy to be deleted. All policy tags in
-     * this taxonomy will also be deleted.
-     * 
- * - * - * 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.datacatalog.v1beta1.DeleteTaxonomyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest) - private static final com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteTaxonomyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequestOrBuilder.java deleted file mode 100644 index 027d8447efc9..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/DeleteTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface DeleteTaxonomyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the taxonomy to be deleted. All policy tags in
-   * this taxonomy will also be deleted.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. Resource name of the taxonomy to be deleted. All policy tags in
-   * this taxonomy will also be deleted.
-   * 
- * - * - * 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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java deleted file mode 100644 index d06ad234215a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Entry.java +++ /dev/null @@ -1,4586 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Entry Metadata.
- * A Data Catalog Entry resource represents another resource in Google
- * Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic), or
- * outside of Google Cloud Platform. Clients can use the `linked_resource` field
- * in the Entry resource to refer to the original resource ID of the source
- * system.
- *
- * An Entry resource contains resource details, such as its schema. An Entry can
- * also be used to attach flexible metadata, such as a
- * [Tag][google.cloud.datacatalog.v1beta1.Tag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Entry} - */ -@com.google.protobuf.Generated -public final class Entry extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Entry) - EntryOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Entry"); - } - - // Use Entry.newBuilder() to construct. - private Entry(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Entry() { - name_ = ""; - linkedResource_ = ""; - displayName_ = ""; - description_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_Entry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.Entry.class, - com.google.cloud.datacatalog.v1beta1.Entry.Builder.class); - } - - private int bitField0_; - private int entryTypeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object entryType_; - - public enum EntryTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TYPE(2), - USER_SPECIFIED_TYPE(16), - ENTRYTYPE_NOT_SET(0); - private final int value; - - private EntryTypeCase(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 EntryTypeCase valueOf(int value) { - return forNumber(value); - } - - public static EntryTypeCase forNumber(int value) { - switch (value) { - case 2: - return TYPE; - case 16: - return USER_SPECIFIED_TYPE; - case 0: - return ENTRYTYPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public EntryTypeCase getEntryTypeCase() { - return EntryTypeCase.forNumber(entryTypeCase_); - } - - private int systemCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object system_; - - public enum SystemCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - INTEGRATED_SYSTEM(17), - USER_SPECIFIED_SYSTEM(18), - SYSTEM_NOT_SET(0); - private final int value; - - private SystemCase(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 SystemCase valueOf(int value) { - return forNumber(value); - } - - public static SystemCase forNumber(int value) { - switch (value) { - case 17: - return INTEGRATED_SYSTEM; - case 18: - return USER_SPECIFIED_SYSTEM; - case 0: - return SYSTEM_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SystemCase getSystemCase() { - return SystemCase.forNumber(systemCase_); - } - - private int typeSpecCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object typeSpec_; - - public enum TypeSpecCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - GCS_FILESET_SPEC(6), - BIGQUERY_TABLE_SPEC(12), - BIGQUERY_DATE_SHARDED_SPEC(15), - TYPESPEC_NOT_SET(0); - private final int value; - - private TypeSpecCase(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 TypeSpecCase valueOf(int value) { - return forNumber(value); - } - - public static TypeSpecCase forNumber(int value) { - switch (value) { - case 6: - return GCS_FILESET_SPEC; - case 12: - return BIGQUERY_TABLE_SPEC; - case 15: - return BIGQUERY_DATE_SHARDED_SPEC; - case 0: - return TYPESPEC_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TypeSpecCase getTypeSpecCase() { - return TypeSpecCase.forNumber(typeSpecCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Output only. Identifier. The Data Catalog resource name of the entry in URL
-   * format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   *
-   * Note that this Entry and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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; - } - } - - /** - * - * - *
-   * Output only. Identifier. The Data Catalog resource name of the entry in URL
-   * format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   *
-   * Note that this Entry and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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 LINKED_RESOURCE_FIELD_NUMBER = 9; - - @SuppressWarnings("serial") - private volatile java.lang.Object linkedResource_ = ""; - - /** - * - * - *
-   * The resource this metadata entry refers to.
-   *
-   * For Google Cloud Platform resources, `linked_resource` is the [full name of
-   * the
-   * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   * For example, the `linked_resource` for a table resource from BigQuery is:
-   *
-   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-   *
-   * Output only when Entry is of type in the EntryType enum. For entries with
-   * user_specified_type, this field is optional and defaults to an empty
-   * string.
-   * 
- * - * string linked_resource = 9; - * - * @return The linkedResource. - */ - @java.lang.Override - public java.lang.String getLinkedResource() { - java.lang.Object ref = linkedResource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - linkedResource_ = s; - return s; - } - } - - /** - * - * - *
-   * The resource this metadata entry refers to.
-   *
-   * For Google Cloud Platform resources, `linked_resource` is the [full name of
-   * the
-   * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   * For example, the `linked_resource` for a table resource from BigQuery is:
-   *
-   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-   *
-   * Output only when Entry is of type in the EntryType enum. For entries with
-   * user_specified_type, this field is optional and defaults to an empty
-   * string.
-   * 
- * - * string linked_resource = 9; - * - * @return The bytes for linkedResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = linkedResource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - linkedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TYPE_FIELD_NUMBER = 2; - - /** - * - * - *
-   * The type of the entry.
-   * Only used for Entries with types in the EntryType enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @return Whether the type field is set. - */ - public boolean hasType() { - return entryTypeCase_ == 2; - } - - /** - * - * - *
-   * The type of the entry.
-   * Only used for Entries with types in the EntryType enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - public int getTypeValue() { - if (entryTypeCase_ == 2) { - return (java.lang.Integer) entryType_; - } - return 0; - } - - /** - * - * - *
-   * The type of the entry.
-   * Only used for Entries with types in the EntryType enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @return The type. - */ - public com.google.cloud.datacatalog.v1beta1.EntryType getType() { - if (entryTypeCase_ == 2) { - com.google.cloud.datacatalog.v1beta1.EntryType result = - com.google.cloud.datacatalog.v1beta1.EntryType.forNumber((java.lang.Integer) entryType_); - return result == null ? com.google.cloud.datacatalog.v1beta1.EntryType.UNRECOGNIZED : result; - } - return com.google.cloud.datacatalog.v1beta1.EntryType.ENTRY_TYPE_UNSPECIFIED; - } - - public static final int USER_SPECIFIED_TYPE_FIELD_NUMBER = 16; - - /** - * - * - *
-   * Entry type if it does not fit any of the input-allowed values listed in
-   * `EntryType` enum above. When creating an entry, users should check the
-   * enum values first, if nothing matches the entry to be created, then
-   * provide a custom value, for example "my_special_type".
-   * `user_specified_type` strings must begin with a letter or underscore and
-   * can only contain letters, numbers, and underscores; are case insensitive;
-   * must be at least 1 character and at most 64 characters long.
-   *
-   * Currently, only FILESET enum value is allowed. All other entries created
-   * through Data Catalog must use `user_specified_type`.
-   * 
- * - * string user_specified_type = 16; - * - * @return Whether the userSpecifiedType field is set. - */ - public boolean hasUserSpecifiedType() { - return entryTypeCase_ == 16; - } - - /** - * - * - *
-   * Entry type if it does not fit any of the input-allowed values listed in
-   * `EntryType` enum above. When creating an entry, users should check the
-   * enum values first, if nothing matches the entry to be created, then
-   * provide a custom value, for example "my_special_type".
-   * `user_specified_type` strings must begin with a letter or underscore and
-   * can only contain letters, numbers, and underscores; are case insensitive;
-   * must be at least 1 character and at most 64 characters long.
-   *
-   * Currently, only FILESET enum value is allowed. All other entries created
-   * through Data Catalog must use `user_specified_type`.
-   * 
- * - * string user_specified_type = 16; - * - * @return The userSpecifiedType. - */ - public java.lang.String getUserSpecifiedType() { - java.lang.Object ref = ""; - if (entryTypeCase_ == 16) { - ref = entryType_; - } - if (ref instanceof java.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 (entryTypeCase_ == 16) { - entryType_ = s; - } - return s; - } - } - - /** - * - * - *
-   * Entry type if it does not fit any of the input-allowed values listed in
-   * `EntryType` enum above. When creating an entry, users should check the
-   * enum values first, if nothing matches the entry to be created, then
-   * provide a custom value, for example "my_special_type".
-   * `user_specified_type` strings must begin with a letter or underscore and
-   * can only contain letters, numbers, and underscores; are case insensitive;
-   * must be at least 1 character and at most 64 characters long.
-   *
-   * Currently, only FILESET enum value is allowed. All other entries created
-   * through Data Catalog must use `user_specified_type`.
-   * 
- * - * string user_specified_type = 16; - * - * @return The bytes for userSpecifiedType. - */ - public com.google.protobuf.ByteString getUserSpecifiedTypeBytes() { - java.lang.Object ref = ""; - if (entryTypeCase_ == 16) { - ref = entryType_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (entryTypeCase_ == 16) { - entryType_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INTEGRATED_SYSTEM_FIELD_NUMBER = 17; - - /** - * - * - *
-   * Output only. This field indicates the entry's source system that Data
-   * Catalog integrates with, such as BigQuery or Pub/Sub.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the integratedSystem field is set. - */ - public boolean hasIntegratedSystem() { - return systemCase_ == 17; - } - - /** - * - * - *
-   * Output only. This field indicates the entry's source system that Data
-   * Catalog integrates with, such as BigQuery or Pub/Sub.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for integratedSystem. - */ - public int getIntegratedSystemValue() { - if (systemCase_ == 17) { - return (java.lang.Integer) system_; - } - return 0; - } - - /** - * - * - *
-   * Output only. This field indicates the entry's source system that Data
-   * Catalog integrates with, such as BigQuery or Pub/Sub.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The integratedSystem. - */ - public com.google.cloud.datacatalog.v1beta1.IntegratedSystem getIntegratedSystem() { - if (systemCase_ == 17) { - com.google.cloud.datacatalog.v1beta1.IntegratedSystem result = - com.google.cloud.datacatalog.v1beta1.IntegratedSystem.forNumber( - (java.lang.Integer) system_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.IntegratedSystem.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1beta1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED; - } - - public static final int USER_SPECIFIED_SYSTEM_FIELD_NUMBER = 18; - - /** - * - * - *
-   * This field indicates the entry's source system that Data Catalog does not
-   * integrate with. `user_specified_system` strings must begin with a letter
-   * or underscore and can only contain letters, numbers, and underscores; are
-   * case insensitive; must be at least 1 character and at most 64 characters
-   * long.
-   * 
- * - * string user_specified_system = 18; - * - * @return Whether the userSpecifiedSystem field is set. - */ - public boolean hasUserSpecifiedSystem() { - return systemCase_ == 18; - } - - /** - * - * - *
-   * This field indicates the entry's source system that Data Catalog does not
-   * integrate with. `user_specified_system` strings must begin with a letter
-   * or underscore and can only contain letters, numbers, and underscores; are
-   * case insensitive; must be at least 1 character and at most 64 characters
-   * long.
-   * 
- * - * string user_specified_system = 18; - * - * @return The userSpecifiedSystem. - */ - public java.lang.String getUserSpecifiedSystem() { - java.lang.Object ref = ""; - if (systemCase_ == 18) { - ref = system_; - } - if (ref instanceof java.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 (systemCase_ == 18) { - system_ = s; - } - return s; - } - } - - /** - * - * - *
-   * This field indicates the entry's source system that Data Catalog does not
-   * integrate with. `user_specified_system` strings must begin with a letter
-   * or underscore and can only contain letters, numbers, and underscores; are
-   * case insensitive; must be at least 1 character and at most 64 characters
-   * long.
-   * 
- * - * string user_specified_system = 18; - * - * @return The bytes for userSpecifiedSystem. - */ - public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() { - java.lang.Object ref = ""; - if (systemCase_ == 18) { - ref = system_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (systemCase_ == 18) { - system_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GCS_FILESET_SPEC_FIELD_NUMBER = 6; - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. This is only valid
-   * on entries of type FILESET.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return Whether the gcsFilesetSpec field is set. - */ - @java.lang.Override - public boolean hasGcsFilesetSpec() { - return typeSpecCase_ == 6; - } - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. This is only valid
-   * on entries of type FILESET.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return The gcsFilesetSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec getGcsFilesetSpec() { - if (typeSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. This is only valid
-   * on entries of type FILESET.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder getGcsFilesetSpecOrBuilder() { - if (typeSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance(); - } - - public static final int BIGQUERY_TABLE_SPEC_FIELD_NUMBER = 12; - - /** - * - * - *
-   * Specification that applies to a BigQuery table. This is only valid on
-   * entries of type `TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - * - * @return Whether the bigqueryTableSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryTableSpec() { - return typeSpecCase_ == 12; - } - - /** - * - * - *
-   * Specification that applies to a BigQuery table. This is only valid on
-   * entries of type `TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - * - * @return The bigqueryTableSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec getBigqueryTableSpec() { - if (typeSpecCase_ == 12) { - return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification that applies to a BigQuery table. This is only valid on
-   * entries of type `TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder - getBigqueryTableSpecOrBuilder() { - if (typeSpecCase_ == 12) { - return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance(); - } - - public static final int BIGQUERY_DATE_SHARDED_SPEC_FIELD_NUMBER = 15; - - /** - * - * - *
-   * Specification for a group of BigQuery tables with name pattern
-   * `[prefix]YYYYMMDD`. Context:
-   * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - * - * @return Whether the bigqueryDateShardedSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryDateShardedSpec() { - return typeSpecCase_ == 15; - } - - /** - * - * - *
-   * Specification for a group of BigQuery tables with name pattern
-   * `[prefix]YYYYMMDD`. Context:
-   * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - * - * @return The bigqueryDateShardedSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec getBigqueryDateShardedSpec() { - if (typeSpecCase_ == 15) { - return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance(); - } - - /** - * - * - *
-   * Specification for a group of BigQuery tables with name pattern
-   * `[prefix]YYYYMMDD`. Context:
-   * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder - getBigqueryDateShardedSpecOrBuilder() { - if (typeSpecCase_ == 15) { - return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance(); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-   * Display information such as title and description. A short name to identify
-   * the entry, for example, "Analytics Data - Jan 2011". Default value is an
-   * empty string.
-   * 
- * - * string display_name = 3; - * - * @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; - } - } - - /** - * - * - *
-   * Display information such as title and description. A short name to identify
-   * the entry, for example, "Analytics Data - Jan 2011". Default value is an
-   * empty string.
-   * 
- * - * string display_name = 3; - * - * @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_ = ""; - - /** - * - * - *
-   * Entry description, which can consist of several sentences or paragraphs
-   * that describe entry contents. Default value is an empty string.
-   * 
- * - * string description = 4; - * - * @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; - } - } - - /** - * - * - *
-   * Entry description, which can consist of several sentences or paragraphs
-   * that describe entry contents. Default value is an empty string.
-   * 
- * - * string description = 4; - * - * @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 SCHEMA_FIELD_NUMBER = 5; - private com.google.cloud.datacatalog.v1beta1.Schema schema_; - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - * - * @return Whether the schema field is set. - */ - @java.lang.Override - public boolean hasSchema() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - * - * @return The schema. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Schema getSchema() { - return schema_ == null - ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance() - : schema_; - } - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder getSchemaOrBuilder() { - return schema_ == null - ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance() - : schema_; - } - - public static final int SOURCE_SYSTEM_TIMESTAMPS_FIELD_NUMBER = 7; - private com.google.cloud.datacatalog.v1beta1.SystemTimestamps sourceSystemTimestamps_; - - /** - * - * - *
-   * Output only. Timestamps about the underlying resource, not about this Data
-   * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-   * entries with user_specified_type, this field is optional and defaults to an
-   * empty timestamp.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the sourceSystemTimestamps field is set. - */ - @java.lang.Override - public boolean hasSourceSystemTimestamps() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Output only. Timestamps about the underlying resource, not about this Data
-   * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-   * entries with user_specified_type, this field is optional and defaults to an
-   * empty timestamp.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The sourceSystemTimestamps. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getSourceSystemTimestamps() { - return sourceSystemTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : sourceSystemTimestamps_; - } - - /** - * - * - *
-   * Output only. Timestamps about the underlying resource, not about this Data
-   * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-   * entries with user_specified_type, this field is optional and defaults to an
-   * empty timestamp.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder - getSourceSystemTimestampsOrBuilder() { - return sourceSystemTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : sourceSystemTimestamps_; - } - - public static final int USAGE_SIGNAL_FIELD_NUMBER = 13; - private com.google.cloud.datacatalog.v1beta1.UsageSignal usageSignal_; - - /** - * - * - *
-   * Output only. Statistics on the usage level of the resource.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the usageSignal field is set. - */ - @java.lang.Override - public boolean hasUsageSignal() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-   * Output only. Statistics on the usage level of the resource.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The usageSignal. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageSignal getUsageSignal() { - return usageSignal_ == null - ? com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance() - : usageSignal_; - } - - /** - * - * - *
-   * Output only. Statistics on the usage level of the resource.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder getUsageSignalOrBuilder() { - return usageSignal_ == null - ? com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance() - : usageSignal_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (entryTypeCase_ == 2) { - output.writeEnum(2, ((java.lang.Integer) entryType_)); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getSchema()); - } - if (typeSpecCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(7, getSourceSystemTimestamps()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(linkedResource_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 9, linkedResource_); - } - if (typeSpecCase_ == 12) { - output.writeMessage(12, (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(13, getUsageSignal()); - } - if (typeSpecCase_ == 15) { - output.writeMessage( - 15, (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_); - } - if (entryTypeCase_ == 16) { - com.google.protobuf.GeneratedMessage.writeString(output, 16, entryType_); - } - if (systemCase_ == 17) { - output.writeEnum(17, ((java.lang.Integer) system_)); - } - if (systemCase_ == 18) { - com.google.protobuf.GeneratedMessage.writeString(output, 18, system_); - } - 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 (entryTypeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize( - 2, ((java.lang.Integer) entryType_)); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSchema()); - } - if (typeSpecCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(7, getSourceSystemTimestamps()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(linkedResource_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(9, linkedResource_); - } - if (typeSpecCase_ == 12) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 12, (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getUsageSignal()); - } - if (typeSpecCase_ == 15) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_); - } - if (entryTypeCase_ == 16) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(16, entryType_); - } - if (systemCase_ == 17) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(17, ((java.lang.Integer) system_)); - } - if (systemCase_ == 18) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(18, system_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.Entry)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.Entry other = - (com.google.cloud.datacatalog.v1beta1.Entry) obj; - - if (!getName().equals(other.getName())) return false; - if (!getLinkedResource().equals(other.getLinkedResource())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (hasSchema() != other.hasSchema()) return false; - if (hasSchema()) { - if (!getSchema().equals(other.getSchema())) return false; - } - if (hasSourceSystemTimestamps() != other.hasSourceSystemTimestamps()) return false; - if (hasSourceSystemTimestamps()) { - if (!getSourceSystemTimestamps().equals(other.getSourceSystemTimestamps())) return false; - } - if (hasUsageSignal() != other.hasUsageSignal()) return false; - if (hasUsageSignal()) { - if (!getUsageSignal().equals(other.getUsageSignal())) return false; - } - if (!getEntryTypeCase().equals(other.getEntryTypeCase())) return false; - switch (entryTypeCase_) { - case 2: - if (getTypeValue() != other.getTypeValue()) return false; - break; - case 16: - if (!getUserSpecifiedType().equals(other.getUserSpecifiedType())) return false; - break; - case 0: - default: - } - if (!getSystemCase().equals(other.getSystemCase())) return false; - switch (systemCase_) { - case 17: - if (getIntegratedSystemValue() != other.getIntegratedSystemValue()) return false; - break; - case 18: - if (!getUserSpecifiedSystem().equals(other.getUserSpecifiedSystem())) return false; - break; - case 0: - default: - } - if (!getTypeSpecCase().equals(other.getTypeSpecCase())) return false; - switch (typeSpecCase_) { - case 6: - if (!getGcsFilesetSpec().equals(other.getGcsFilesetSpec())) return false; - break; - case 12: - if (!getBigqueryTableSpec().equals(other.getBigqueryTableSpec())) return false; - break; - case 15: - if (!getBigqueryDateShardedSpec().equals(other.getBigqueryDateShardedSpec())) 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) + LINKED_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getLinkedResource().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 (hasSchema()) { - hash = (37 * hash) + SCHEMA_FIELD_NUMBER; - hash = (53 * hash) + getSchema().hashCode(); - } - if (hasSourceSystemTimestamps()) { - hash = (37 * hash) + SOURCE_SYSTEM_TIMESTAMPS_FIELD_NUMBER; - hash = (53 * hash) + getSourceSystemTimestamps().hashCode(); - } - if (hasUsageSignal()) { - hash = (37 * hash) + USAGE_SIGNAL_FIELD_NUMBER; - hash = (53 * hash) + getUsageSignal().hashCode(); - } - switch (entryTypeCase_) { - case 2: - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getTypeValue(); - break; - case 16: - hash = (37 * hash) + USER_SPECIFIED_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getUserSpecifiedType().hashCode(); - break; - case 0: - default: - } - switch (systemCase_) { - case 17: - hash = (37 * hash) + INTEGRATED_SYSTEM_FIELD_NUMBER; - hash = (53 * hash) + getIntegratedSystemValue(); - break; - case 18: - hash = (37 * hash) + USER_SPECIFIED_SYSTEM_FIELD_NUMBER; - hash = (53 * hash) + getUserSpecifiedSystem().hashCode(); - break; - case 0: - default: - } - switch (typeSpecCase_) { - case 6: - hash = (37 * hash) + GCS_FILESET_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getGcsFilesetSpec().hashCode(); - break; - case 12: - hash = (37 * hash) + BIGQUERY_TABLE_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryTableSpec().hashCode(); - break; - case 15: - hash = (37 * hash) + BIGQUERY_DATE_SHARDED_SPEC_FIELD_NUMBER; - hash = (53 * hash) + getBigqueryDateShardedSpec().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.Entry prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Entry Metadata.
-   * A Data Catalog Entry resource represents another resource in Google
-   * Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic), or
-   * outside of Google Cloud Platform. Clients can use the `linked_resource` field
-   * in the Entry resource to refer to the original resource ID of the source
-   * system.
-   *
-   * An Entry resource contains resource details, such as its schema. An Entry can
-   * also be used to attach flexible metadata, such as a
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Entry} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.Entry) - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_Entry_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.Entry.class, - com.google.cloud.datacatalog.v1beta1.Entry.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.Entry.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetSchemaFieldBuilder(); - internalGetSourceSystemTimestampsFieldBuilder(); - internalGetUsageSignalFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - linkedResource_ = ""; - if (gcsFilesetSpecBuilder_ != null) { - gcsFilesetSpecBuilder_.clear(); - } - if (bigqueryTableSpecBuilder_ != null) { - bigqueryTableSpecBuilder_.clear(); - } - if (bigqueryDateShardedSpecBuilder_ != null) { - bigqueryDateShardedSpecBuilder_.clear(); - } - displayName_ = ""; - description_ = ""; - schema_ = null; - if (schemaBuilder_ != null) { - schemaBuilder_.dispose(); - schemaBuilder_ = null; - } - sourceSystemTimestamps_ = null; - if (sourceSystemTimestampsBuilder_ != null) { - sourceSystemTimestampsBuilder_.dispose(); - sourceSystemTimestampsBuilder_ = null; - } - usageSignal_ = null; - if (usageSignalBuilder_ != null) { - usageSignalBuilder_.dispose(); - usageSignalBuilder_ = null; - } - entryTypeCase_ = 0; - entryType_ = null; - systemCase_ = 0; - system_ = null; - typeSpecCase_ = 0; - typeSpec_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_Entry_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Entry getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Entry build() { - com.google.cloud.datacatalog.v1beta1.Entry result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Entry buildPartial() { - com.google.cloud.datacatalog.v1beta1.Entry result = - new com.google.cloud.datacatalog.v1beta1.Entry(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.Entry result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.linkedResource_ = linkedResource_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.description_ = description_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000800) != 0)) { - result.schema_ = schemaBuilder_ == null ? schema_ : schemaBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00001000) != 0)) { - result.sourceSystemTimestamps_ = - sourceSystemTimestampsBuilder_ == null - ? sourceSystemTimestamps_ - : sourceSystemTimestampsBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - result.usageSignal_ = - usageSignalBuilder_ == null ? usageSignal_ : usageSignalBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1beta1.Entry result) { - result.entryTypeCase_ = entryTypeCase_; - result.entryType_ = this.entryType_; - result.systemCase_ = systemCase_; - result.system_ = this.system_; - result.typeSpecCase_ = typeSpecCase_; - result.typeSpec_ = this.typeSpec_; - if (typeSpecCase_ == 6 && gcsFilesetSpecBuilder_ != null) { - result.typeSpec_ = gcsFilesetSpecBuilder_.build(); - } - if (typeSpecCase_ == 12 && bigqueryTableSpecBuilder_ != null) { - result.typeSpec_ = bigqueryTableSpecBuilder_.build(); - } - if (typeSpecCase_ == 15 && bigqueryDateShardedSpecBuilder_ != null) { - result.typeSpec_ = bigqueryDateShardedSpecBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.Entry) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.Entry) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.Entry other) { - if (other == com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getLinkedResource().isEmpty()) { - linkedResource_ = other.linkedResource_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000200; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000400; - onChanged(); - } - if (other.hasSchema()) { - mergeSchema(other.getSchema()); - } - if (other.hasSourceSystemTimestamps()) { - mergeSourceSystemTimestamps(other.getSourceSystemTimestamps()); - } - if (other.hasUsageSignal()) { - mergeUsageSignal(other.getUsageSignal()); - } - switch (other.getEntryTypeCase()) { - case TYPE: - { - setTypeValue(other.getTypeValue()); - break; - } - case USER_SPECIFIED_TYPE: - { - entryTypeCase_ = 16; - entryType_ = other.entryType_; - onChanged(); - break; - } - case ENTRYTYPE_NOT_SET: - { - break; - } - } - switch (other.getSystemCase()) { - case INTEGRATED_SYSTEM: - { - setIntegratedSystemValue(other.getIntegratedSystemValue()); - break; - } - case USER_SPECIFIED_SYSTEM: - { - systemCase_ = 18; - system_ = other.system_; - onChanged(); - break; - } - case SYSTEM_NOT_SET: - { - break; - } - } - switch (other.getTypeSpecCase()) { - case GCS_FILESET_SPEC: - { - mergeGcsFilesetSpec(other.getGcsFilesetSpec()); - break; - } - case BIGQUERY_TABLE_SPEC: - { - mergeBigqueryTableSpec(other.getBigqueryTableSpec()); - break; - } - case BIGQUERY_DATE_SHARDED_SPEC: - { - mergeBigqueryDateShardedSpec(other.getBigqueryDateShardedSpec()); - break; - } - case TYPESPEC_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_ |= 0x00000001; - break; - } // case 10 - case 16: - { - int rawValue = input.readEnum(); - entryTypeCase_ = 2; - entryType_ = rawValue; - break; - } // case 16 - case 26: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; - break; - } // case 26 - case 34: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000400; - break; - } // case 34 - case 42: - { - input.readMessage(internalGetSchemaFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetGcsFilesetSpecFieldBuilder().getBuilder(), extensionRegistry); - typeSpecCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage( - internalGetSourceSystemTimestampsFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00001000; - break; - } // case 58 - case 74: - { - linkedResource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 74 - case 98: - { - input.readMessage( - internalGetBigqueryTableSpecFieldBuilder().getBuilder(), extensionRegistry); - typeSpecCase_ = 12; - break; - } // case 98 - case 106: - { - input.readMessage( - internalGetUsageSignalFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; - break; - } // case 106 - case 122: - { - input.readMessage( - internalGetBigqueryDateShardedSpecFieldBuilder().getBuilder(), - extensionRegistry); - typeSpecCase_ = 15; - break; - } // case 122 - case 130: - { - java.lang.String s = input.readStringRequireUtf8(); - entryTypeCase_ = 16; - entryType_ = s; - break; - } // case 130 - case 136: - { - int rawValue = input.readEnum(); - systemCase_ = 17; - system_ = rawValue; - break; - } // case 136 - case 146: - { - java.lang.String s = input.readStringRequireUtf8(); - systemCase_ = 18; - system_ = s; - break; - } // case 146 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int entryTypeCase_ = 0; - private java.lang.Object entryType_; - - public EntryTypeCase getEntryTypeCase() { - return EntryTypeCase.forNumber(entryTypeCase_); - } - - public Builder clearEntryType() { - entryTypeCase_ = 0; - entryType_ = null; - onChanged(); - return this; - } - - private int systemCase_ = 0; - private java.lang.Object system_; - - public SystemCase getSystemCase() { - return SystemCase.forNumber(systemCase_); - } - - public Builder clearSystem() { - systemCase_ = 0; - system_ = null; - onChanged(); - return this; - } - - private int typeSpecCase_ = 0; - private java.lang.Object typeSpec_; - - public TypeSpecCase getTypeSpecCase() { - return TypeSpecCase.forNumber(typeSpecCase_); - } - - public Builder clearTypeSpec() { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - - /** - * - * - *
-     * Output only. Identifier. The Data Catalog resource name of the entry in URL
-     * format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     *
-     * Note that this Entry and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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; - } - } - - /** - * - * - *
-     * Output only. Identifier. The Data Catalog resource name of the entry in URL
-     * format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     *
-     * Note that this Entry and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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; - } - } - - /** - * - * - *
-     * Output only. Identifier. The Data Catalog resource name of the entry in URL
-     * format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     *
-     * Note that this Entry and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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; - } - - /** - * - * - *
-     * Output only. Identifier. The Data Catalog resource name of the entry in URL
-     * format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     *
-     * Note that this Entry and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Identifier. The Data Catalog resource name of the entry in URL
-     * format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     *
-     * Note that this Entry and its child resources may not actually be stored in
-     * the location in this name.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.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 linkedResource_ = ""; - - /** - * - * - *
-     * The resource this metadata entry refers to.
-     *
-     * For Google Cloud Platform resources, `linked_resource` is the [full name of
-     * the
-     * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     * For example, the `linked_resource` for a table resource from BigQuery is:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     *
-     * Output only when Entry is of type in the EntryType enum. For entries with
-     * user_specified_type, this field is optional and defaults to an empty
-     * string.
-     * 
- * - * string linked_resource = 9; - * - * @return The linkedResource. - */ - public java.lang.String getLinkedResource() { - java.lang.Object ref = linkedResource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - linkedResource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The resource this metadata entry refers to.
-     *
-     * For Google Cloud Platform resources, `linked_resource` is the [full name of
-     * the
-     * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     * For example, the `linked_resource` for a table resource from BigQuery is:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     *
-     * Output only when Entry is of type in the EntryType enum. For entries with
-     * user_specified_type, this field is optional and defaults to an empty
-     * string.
-     * 
- * - * string linked_resource = 9; - * - * @return The bytes for linkedResource. - */ - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = linkedResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - linkedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The resource this metadata entry refers to.
-     *
-     * For Google Cloud Platform resources, `linked_resource` is the [full name of
-     * the
-     * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     * For example, the `linked_resource` for a table resource from BigQuery is:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     *
-     * Output only when Entry is of type in the EntryType enum. For entries with
-     * user_specified_type, this field is optional and defaults to an empty
-     * string.
-     * 
- * - * string linked_resource = 9; - * - * @param value The linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - linkedResource_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The resource this metadata entry refers to.
-     *
-     * For Google Cloud Platform resources, `linked_resource` is the [full name of
-     * the
-     * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     * For example, the `linked_resource` for a table resource from BigQuery is:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     *
-     * Output only when Entry is of type in the EntryType enum. For entries with
-     * user_specified_type, this field is optional and defaults to an empty
-     * string.
-     * 
- * - * string linked_resource = 9; - * - * @return This builder for chaining. - */ - public Builder clearLinkedResource() { - linkedResource_ = getDefaultInstance().getLinkedResource(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * The resource this metadata entry refers to.
-     *
-     * For Google Cloud Platform resources, `linked_resource` is the [full name of
-     * the
-     * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
-     * For example, the `linked_resource` for a table resource from BigQuery is:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     *
-     * Output only when Entry is of type in the EntryType enum. For entries with
-     * user_specified_type, this field is optional and defaults to an empty
-     * string.
-     * 
- * - * string linked_resource = 9; - * - * @param value The bytes for linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - linkedResource_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The type of the entry.
-     * Only used for Entries with types in the EntryType enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @return Whether the type field is set. - */ - @java.lang.Override - public boolean hasType() { - return entryTypeCase_ == 2; - } - - /** - * - * - *
-     * The type of the entry.
-     * Only used for Entries with types in the EntryType enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - @java.lang.Override - public int getTypeValue() { - if (entryTypeCase_ == 2) { - return ((java.lang.Integer) entryType_).intValue(); - } - return 0; - } - - /** - * - * - *
-     * The type of the entry.
-     * Only used for Entries with types in the EntryType enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @param value The enum numeric value on the wire for type to set. - * @return This builder for chaining. - */ - public Builder setTypeValue(int value) { - entryTypeCase_ = 2; - entryType_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The type of the entry.
-     * Only used for Entries with types in the EntryType enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryType getType() { - if (entryTypeCase_ == 2) { - com.google.cloud.datacatalog.v1beta1.EntryType result = - com.google.cloud.datacatalog.v1beta1.EntryType.forNumber( - (java.lang.Integer) entryType_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.EntryType.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1beta1.EntryType.ENTRY_TYPE_UNSPECIFIED; - } - - /** - * - * - *
-     * The type of the entry.
-     * Only used for Entries with types in the EntryType enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.cloud.datacatalog.v1beta1.EntryType value) { - if (value == null) { - throw new NullPointerException(); - } - entryTypeCase_ = 2; - entryType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * The type of the entry.
-     * Only used for Entries with types in the EntryType enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @return This builder for chaining. - */ - public Builder clearType() { - if (entryTypeCase_ == 2) { - entryTypeCase_ = 0; - entryType_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Entry type if it does not fit any of the input-allowed values listed in
-     * `EntryType` enum above. When creating an entry, users should check the
-     * enum values first, if nothing matches the entry to be created, then
-     * provide a custom value, for example "my_special_type".
-     * `user_specified_type` strings must begin with a letter or underscore and
-     * can only contain letters, numbers, and underscores; are case insensitive;
-     * must be at least 1 character and at most 64 characters long.
-     *
-     * Currently, only FILESET enum value is allowed. All other entries created
-     * through Data Catalog must use `user_specified_type`.
-     * 
- * - * string user_specified_type = 16; - * - * @return Whether the userSpecifiedType field is set. - */ - @java.lang.Override - public boolean hasUserSpecifiedType() { - return entryTypeCase_ == 16; - } - - /** - * - * - *
-     * Entry type if it does not fit any of the input-allowed values listed in
-     * `EntryType` enum above. When creating an entry, users should check the
-     * enum values first, if nothing matches the entry to be created, then
-     * provide a custom value, for example "my_special_type".
-     * `user_specified_type` strings must begin with a letter or underscore and
-     * can only contain letters, numbers, and underscores; are case insensitive;
-     * must be at least 1 character and at most 64 characters long.
-     *
-     * Currently, only FILESET enum value is allowed. All other entries created
-     * through Data Catalog must use `user_specified_type`.
-     * 
- * - * string user_specified_type = 16; - * - * @return The userSpecifiedType. - */ - @java.lang.Override - public java.lang.String getUserSpecifiedType() { - java.lang.Object ref = ""; - if (entryTypeCase_ == 16) { - ref = entryType_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (entryTypeCase_ == 16) { - entryType_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Entry type if it does not fit any of the input-allowed values listed in
-     * `EntryType` enum above. When creating an entry, users should check the
-     * enum values first, if nothing matches the entry to be created, then
-     * provide a custom value, for example "my_special_type".
-     * `user_specified_type` strings must begin with a letter or underscore and
-     * can only contain letters, numbers, and underscores; are case insensitive;
-     * must be at least 1 character and at most 64 characters long.
-     *
-     * Currently, only FILESET enum value is allowed. All other entries created
-     * through Data Catalog must use `user_specified_type`.
-     * 
- * - * string user_specified_type = 16; - * - * @return The bytes for userSpecifiedType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUserSpecifiedTypeBytes() { - java.lang.Object ref = ""; - if (entryTypeCase_ == 16) { - ref = entryType_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (entryTypeCase_ == 16) { - entryType_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Entry type if it does not fit any of the input-allowed values listed in
-     * `EntryType` enum above. When creating an entry, users should check the
-     * enum values first, if nothing matches the entry to be created, then
-     * provide a custom value, for example "my_special_type".
-     * `user_specified_type` strings must begin with a letter or underscore and
-     * can only contain letters, numbers, and underscores; are case insensitive;
-     * must be at least 1 character and at most 64 characters long.
-     *
-     * Currently, only FILESET enum value is allowed. All other entries created
-     * through Data Catalog must use `user_specified_type`.
-     * 
- * - * string user_specified_type = 16; - * - * @param value The userSpecifiedType to set. - * @return This builder for chaining. - */ - public Builder setUserSpecifiedType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - entryTypeCase_ = 16; - entryType_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry type if it does not fit any of the input-allowed values listed in
-     * `EntryType` enum above. When creating an entry, users should check the
-     * enum values first, if nothing matches the entry to be created, then
-     * provide a custom value, for example "my_special_type".
-     * `user_specified_type` strings must begin with a letter or underscore and
-     * can only contain letters, numbers, and underscores; are case insensitive;
-     * must be at least 1 character and at most 64 characters long.
-     *
-     * Currently, only FILESET enum value is allowed. All other entries created
-     * through Data Catalog must use `user_specified_type`.
-     * 
- * - * string user_specified_type = 16; - * - * @return This builder for chaining. - */ - public Builder clearUserSpecifiedType() { - if (entryTypeCase_ == 16) { - entryTypeCase_ = 0; - entryType_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Entry type if it does not fit any of the input-allowed values listed in
-     * `EntryType` enum above. When creating an entry, users should check the
-     * enum values first, if nothing matches the entry to be created, then
-     * provide a custom value, for example "my_special_type".
-     * `user_specified_type` strings must begin with a letter or underscore and
-     * can only contain letters, numbers, and underscores; are case insensitive;
-     * must be at least 1 character and at most 64 characters long.
-     *
-     * Currently, only FILESET enum value is allowed. All other entries created
-     * through Data Catalog must use `user_specified_type`.
-     * 
- * - * string user_specified_type = 16; - * - * @param value The bytes for userSpecifiedType to set. - * @return This builder for chaining. - */ - public Builder setUserSpecifiedTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - entryTypeCase_ = 16; - entryType_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. This field indicates the entry's source system that Data
-     * Catalog integrates with, such as BigQuery or Pub/Sub.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the integratedSystem field is set. - */ - @java.lang.Override - public boolean hasIntegratedSystem() { - return systemCase_ == 17; - } - - /** - * - * - *
-     * Output only. This field indicates the entry's source system that Data
-     * Catalog integrates with, such as BigQuery or Pub/Sub.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for integratedSystem. - */ - @java.lang.Override - public int getIntegratedSystemValue() { - if (systemCase_ == 17) { - return ((java.lang.Integer) system_).intValue(); - } - return 0; - } - - /** - * - * - *
-     * Output only. This field indicates the entry's source system that Data
-     * Catalog integrates with, such as BigQuery or Pub/Sub.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for integratedSystem to set. - * @return This builder for chaining. - */ - public Builder setIntegratedSystemValue(int value) { - systemCase_ = 17; - system_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. This field indicates the entry's source system that Data
-     * Catalog integrates with, such as BigQuery or Pub/Sub.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The integratedSystem. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.IntegratedSystem getIntegratedSystem() { - if (systemCase_ == 17) { - com.google.cloud.datacatalog.v1beta1.IntegratedSystem result = - com.google.cloud.datacatalog.v1beta1.IntegratedSystem.forNumber( - (java.lang.Integer) system_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.IntegratedSystem.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1beta1.IntegratedSystem.INTEGRATED_SYSTEM_UNSPECIFIED; - } - - /** - * - * - *
-     * Output only. This field indicates the entry's source system that Data
-     * Catalog integrates with, such as BigQuery or Pub/Sub.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The integratedSystem to set. - * @return This builder for chaining. - */ - public Builder setIntegratedSystem( - com.google.cloud.datacatalog.v1beta1.IntegratedSystem value) { - if (value == null) { - throw new NullPointerException(); - } - systemCase_ = 17; - system_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. This field indicates the entry's source system that Data
-     * Catalog integrates with, such as BigQuery or Pub/Sub.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearIntegratedSystem() { - if (systemCase_ == 17) { - systemCase_ = 0; - system_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * This field indicates the entry's source system that Data Catalog does not
-     * integrate with. `user_specified_system` strings must begin with a letter
-     * or underscore and can only contain letters, numbers, and underscores; are
-     * case insensitive; must be at least 1 character and at most 64 characters
-     * long.
-     * 
- * - * string user_specified_system = 18; - * - * @return Whether the userSpecifiedSystem field is set. - */ - @java.lang.Override - public boolean hasUserSpecifiedSystem() { - return systemCase_ == 18; - } - - /** - * - * - *
-     * This field indicates the entry's source system that Data Catalog does not
-     * integrate with. `user_specified_system` strings must begin with a letter
-     * or underscore and can only contain letters, numbers, and underscores; are
-     * case insensitive; must be at least 1 character and at most 64 characters
-     * long.
-     * 
- * - * string user_specified_system = 18; - * - * @return The userSpecifiedSystem. - */ - @java.lang.Override - public java.lang.String getUserSpecifiedSystem() { - java.lang.Object ref = ""; - if (systemCase_ == 18) { - ref = system_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (systemCase_ == 18) { - system_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * This field indicates the entry's source system that Data Catalog does not
-     * integrate with. `user_specified_system` strings must begin with a letter
-     * or underscore and can only contain letters, numbers, and underscores; are
-     * case insensitive; must be at least 1 character and at most 64 characters
-     * long.
-     * 
- * - * string user_specified_system = 18; - * - * @return The bytes for userSpecifiedSystem. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUserSpecifiedSystemBytes() { - java.lang.Object ref = ""; - if (systemCase_ == 18) { - ref = system_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (systemCase_ == 18) { - system_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * This field indicates the entry's source system that Data Catalog does not
-     * integrate with. `user_specified_system` strings must begin with a letter
-     * or underscore and can only contain letters, numbers, and underscores; are
-     * case insensitive; must be at least 1 character and at most 64 characters
-     * long.
-     * 
- * - * string user_specified_system = 18; - * - * @param value The userSpecifiedSystem to set. - * @return This builder for chaining. - */ - public Builder setUserSpecifiedSystem(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - systemCase_ = 18; - system_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * This field indicates the entry's source system that Data Catalog does not
-     * integrate with. `user_specified_system` strings must begin with a letter
-     * or underscore and can only contain letters, numbers, and underscores; are
-     * case insensitive; must be at least 1 character and at most 64 characters
-     * long.
-     * 
- * - * string user_specified_system = 18; - * - * @return This builder for chaining. - */ - public Builder clearUserSpecifiedSystem() { - if (systemCase_ == 18) { - systemCase_ = 0; - system_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * This field indicates the entry's source system that Data Catalog does not
-     * integrate with. `user_specified_system` strings must begin with a letter
-     * or underscore and can only contain letters, numbers, and underscores; are
-     * case insensitive; must be at least 1 character and at most 64 characters
-     * long.
-     * 
- * - * string user_specified_system = 18; - * - * @param value The bytes for userSpecifiedSystem to set. - * @return This builder for chaining. - */ - public Builder setUserSpecifiedSystemBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - systemCase_ = 18; - system_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec, - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder, - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder> - gcsFilesetSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. This is only valid
-     * on entries of type FILESET.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return Whether the gcsFilesetSpec field is set. - */ - @java.lang.Override - public boolean hasGcsFilesetSpec() { - return typeSpecCase_ == 6; - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. This is only valid
-     * on entries of type FILESET.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return The gcsFilesetSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec getGcsFilesetSpec() { - if (gcsFilesetSpecBuilder_ == null) { - if (typeSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance(); - } else { - if (typeSpecCase_ == 6) { - return gcsFilesetSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. This is only valid
-     * on entries of type FILESET.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - public Builder setGcsFilesetSpec(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec value) { - if (gcsFilesetSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpec_ = value; - onChanged(); - } else { - gcsFilesetSpecBuilder_.setMessage(value); - } - typeSpecCase_ = 6; - return this; - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. This is only valid
-     * on entries of type FILESET.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - public Builder setGcsFilesetSpec( - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder builderForValue) { - if (gcsFilesetSpecBuilder_ == null) { - typeSpec_ = builderForValue.build(); - onChanged(); - } else { - gcsFilesetSpecBuilder_.setMessage(builderForValue.build()); - } - typeSpecCase_ = 6; - return this; - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. This is only valid
-     * on entries of type FILESET.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - public Builder mergeGcsFilesetSpec(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec value) { - if (gcsFilesetSpecBuilder_ == null) { - if (typeSpecCase_ == 6 - && typeSpec_ - != com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance()) { - typeSpec_ = - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.newBuilder( - (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - typeSpec_ = value; - } - onChanged(); - } else { - if (typeSpecCase_ == 6) { - gcsFilesetSpecBuilder_.mergeFrom(value); - } else { - gcsFilesetSpecBuilder_.setMessage(value); - } - } - typeSpecCase_ = 6; - return this; - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. This is only valid
-     * on entries of type FILESET.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - public Builder clearGcsFilesetSpec() { - if (gcsFilesetSpecBuilder_ == null) { - if (typeSpecCase_ == 6) { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - } - } else { - if (typeSpecCase_ == 6) { - typeSpecCase_ = 0; - typeSpec_ = null; - } - gcsFilesetSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. This is only valid
-     * on entries of type FILESET.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder getGcsFilesetSpecBuilder() { - return internalGetGcsFilesetSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. This is only valid
-     * on entries of type FILESET.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder - getGcsFilesetSpecOrBuilder() { - if ((typeSpecCase_ == 6) && (gcsFilesetSpecBuilder_ != null)) { - return gcsFilesetSpecBuilder_.getMessageOrBuilder(); - } else { - if (typeSpecCase_ == 6) { - return (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a Cloud Storage fileset. This is only valid
-     * on entries of type FILESET.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec, - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder, - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder> - internalGetGcsFilesetSpecFieldBuilder() { - if (gcsFilesetSpecBuilder_ == null) { - if (!(typeSpecCase_ == 6)) { - typeSpec_ = com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance(); - } - gcsFilesetSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec, - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder, - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder>( - (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) typeSpec_, - getParentForChildren(), - isClean()); - typeSpec_ = null; - } - typeSpecCase_ = 6; - onChanged(); - return gcsFilesetSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec, - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder, - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder> - bigqueryTableSpecBuilder_; - - /** - * - * - *
-     * Specification that applies to a BigQuery table. This is only valid on
-     * entries of type `TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - * - * @return Whether the bigqueryTableSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryTableSpec() { - return typeSpecCase_ == 12; - } - - /** - * - * - *
-     * Specification that applies to a BigQuery table. This is only valid on
-     * entries of type `TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - * - * @return The bigqueryTableSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec getBigqueryTableSpec() { - if (bigqueryTableSpecBuilder_ == null) { - if (typeSpecCase_ == 12) { - return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance(); - } else { - if (typeSpecCase_ == 12) { - return bigqueryTableSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a BigQuery table. This is only valid on
-     * entries of type `TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - */ - public Builder setBigqueryTableSpec( - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec value) { - if (bigqueryTableSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpec_ = value; - onChanged(); - } else { - bigqueryTableSpecBuilder_.setMessage(value); - } - typeSpecCase_ = 12; - return this; - } - - /** - * - * - *
-     * Specification that applies to a BigQuery table. This is only valid on
-     * entries of type `TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - */ - public Builder setBigqueryTableSpec( - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder builderForValue) { - if (bigqueryTableSpecBuilder_ == null) { - typeSpec_ = builderForValue.build(); - onChanged(); - } else { - bigqueryTableSpecBuilder_.setMessage(builderForValue.build()); - } - typeSpecCase_ = 12; - return this; - } - - /** - * - * - *
-     * Specification that applies to a BigQuery table. This is only valid on
-     * entries of type `TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - */ - public Builder mergeBigqueryTableSpec( - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec value) { - if (bigqueryTableSpecBuilder_ == null) { - if (typeSpecCase_ == 12 - && typeSpec_ - != com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance()) { - typeSpec_ = - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.newBuilder( - (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - typeSpec_ = value; - } - onChanged(); - } else { - if (typeSpecCase_ == 12) { - bigqueryTableSpecBuilder_.mergeFrom(value); - } else { - bigqueryTableSpecBuilder_.setMessage(value); - } - } - typeSpecCase_ = 12; - return this; - } - - /** - * - * - *
-     * Specification that applies to a BigQuery table. This is only valid on
-     * entries of type `TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - */ - public Builder clearBigqueryTableSpec() { - if (bigqueryTableSpecBuilder_ == null) { - if (typeSpecCase_ == 12) { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - } - } else { - if (typeSpecCase_ == 12) { - typeSpecCase_ = 0; - typeSpec_ = null; - } - bigqueryTableSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification that applies to a BigQuery table. This is only valid on
-     * entries of type `TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - */ - public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder - getBigqueryTableSpecBuilder() { - return internalGetBigqueryTableSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification that applies to a BigQuery table. This is only valid on
-     * entries of type `TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder - getBigqueryTableSpecOrBuilder() { - if ((typeSpecCase_ == 12) && (bigqueryTableSpecBuilder_ != null)) { - return bigqueryTableSpecBuilder_.getMessageOrBuilder(); - } else { - if (typeSpecCase_ == 12) { - return (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification that applies to a BigQuery table. This is only valid on
-     * entries of type `TABLE`.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec, - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder, - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder> - internalGetBigqueryTableSpecFieldBuilder() { - if (bigqueryTableSpecBuilder_ == null) { - if (!(typeSpecCase_ == 12)) { - typeSpec_ = com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.getDefaultInstance(); - } - bigqueryTableSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec, - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec.Builder, - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder>( - (com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec) typeSpec_, - getParentForChildren(), - isClean()); - typeSpec_ = null; - } - typeSpecCase_ = 12; - onChanged(); - return bigqueryTableSpecBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec, - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder, - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder> - bigqueryDateShardedSpecBuilder_; - - /** - * - * - *
-     * Specification for a group of BigQuery tables with name pattern
-     * `[prefix]YYYYMMDD`. Context:
-     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - * - * @return Whether the bigqueryDateShardedSpec field is set. - */ - @java.lang.Override - public boolean hasBigqueryDateShardedSpec() { - return typeSpecCase_ == 15; - } - - /** - * - * - *
-     * Specification for a group of BigQuery tables with name pattern
-     * `[prefix]YYYYMMDD`. Context:
-     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - * - * @return The bigqueryDateShardedSpec. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec - getBigqueryDateShardedSpec() { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (typeSpecCase_ == 15) { - return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance(); - } else { - if (typeSpecCase_ == 15) { - return bigqueryDateShardedSpecBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification for a group of BigQuery tables with name pattern
-     * `[prefix]YYYYMMDD`. Context:
-     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - */ - public Builder setBigqueryDateShardedSpec( - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec value) { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeSpec_ = value; - onChanged(); - } else { - bigqueryDateShardedSpecBuilder_.setMessage(value); - } - typeSpecCase_ = 15; - return this; - } - - /** - * - * - *
-     * Specification for a group of BigQuery tables with name pattern
-     * `[prefix]YYYYMMDD`. Context:
-     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - */ - public Builder setBigqueryDateShardedSpec( - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder builderForValue) { - if (bigqueryDateShardedSpecBuilder_ == null) { - typeSpec_ = builderForValue.build(); - onChanged(); - } else { - bigqueryDateShardedSpecBuilder_.setMessage(builderForValue.build()); - } - typeSpecCase_ = 15; - return this; - } - - /** - * - * - *
-     * Specification for a group of BigQuery tables with name pattern
-     * `[prefix]YYYYMMDD`. Context:
-     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - */ - public Builder mergeBigqueryDateShardedSpec( - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec value) { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (typeSpecCase_ == 15 - && typeSpec_ - != com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec - .getDefaultInstance()) { - typeSpec_ = - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.newBuilder( - (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_) - .mergeFrom(value) - .buildPartial(); - } else { - typeSpec_ = value; - } - onChanged(); - } else { - if (typeSpecCase_ == 15) { - bigqueryDateShardedSpecBuilder_.mergeFrom(value); - } else { - bigqueryDateShardedSpecBuilder_.setMessage(value); - } - } - typeSpecCase_ = 15; - return this; - } - - /** - * - * - *
-     * Specification for a group of BigQuery tables with name pattern
-     * `[prefix]YYYYMMDD`. Context:
-     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - */ - public Builder clearBigqueryDateShardedSpec() { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (typeSpecCase_ == 15) { - typeSpecCase_ = 0; - typeSpec_ = null; - onChanged(); - } - } else { - if (typeSpecCase_ == 15) { - typeSpecCase_ = 0; - typeSpec_ = null; - } - bigqueryDateShardedSpecBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Specification for a group of BigQuery tables with name pattern
-     * `[prefix]YYYYMMDD`. Context:
-     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - */ - public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder - getBigqueryDateShardedSpecBuilder() { - return internalGetBigqueryDateShardedSpecFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Specification for a group of BigQuery tables with name pattern
-     * `[prefix]YYYYMMDD`. Context:
-     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder - getBigqueryDateShardedSpecOrBuilder() { - if ((typeSpecCase_ == 15) && (bigqueryDateShardedSpecBuilder_ != null)) { - return bigqueryDateShardedSpecBuilder_.getMessageOrBuilder(); - } else { - if (typeSpecCase_ == 15) { - return (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_; - } - return com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Specification for a group of BigQuery tables with name pattern
-     * `[prefix]YYYYMMDD`. Context:
-     * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec, - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder, - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder> - internalGetBigqueryDateShardedSpecFieldBuilder() { - if (bigqueryDateShardedSpecBuilder_ == null) { - if (!(typeSpecCase_ == 15)) { - typeSpec_ = - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.getDefaultInstance(); - } - bigqueryDateShardedSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec, - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec.Builder, - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder>( - (com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec) typeSpec_, - getParentForChildren(), - isClean()); - typeSpec_ = null; - } - typeSpecCase_ = 15; - onChanged(); - return bigqueryDateShardedSpecBuilder_; - } - - private java.lang.Object displayName_ = ""; - - /** - * - * - *
-     * Display information such as title and description. A short name to identify
-     * the entry, for example, "Analytics Data - Jan 2011". Default value is an
-     * empty string.
-     * 
- * - * string display_name = 3; - * - * @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; - } - } - - /** - * - * - *
-     * Display information such as title and description. A short name to identify
-     * the entry, for example, "Analytics Data - Jan 2011". Default value is an
-     * empty string.
-     * 
- * - * string display_name = 3; - * - * @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; - } - } - - /** - * - * - *
-     * Display information such as title and description. A short name to identify
-     * the entry, for example, "Analytics Data - Jan 2011". Default value is an
-     * empty string.
-     * 
- * - * string display_name = 3; - * - * @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_ |= 0x00000200; - onChanged(); - return this; - } - - /** - * - * - *
-     * Display information such as title and description. A short name to identify
-     * the entry, for example, "Analytics Data - Jan 2011". Default value is an
-     * empty string.
-     * 
- * - * string display_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000200); - onChanged(); - return this; - } - - /** - * - * - *
-     * Display information such as title and description. A short name to identify
-     * the entry, for example, "Analytics Data - Jan 2011". Default value is an
-     * empty string.
-     * 
- * - * string display_name = 3; - * - * @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_ |= 0x00000200; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - - /** - * - * - *
-     * Entry description, which can consist of several sentences or paragraphs
-     * that describe entry contents. Default value is an empty string.
-     * 
- * - * string description = 4; - * - * @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; - } - } - - /** - * - * - *
-     * Entry description, which can consist of several sentences or paragraphs
-     * that describe entry contents. Default value is an empty string.
-     * 
- * - * string description = 4; - * - * @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; - } - } - - /** - * - * - *
-     * Entry description, which can consist of several sentences or paragraphs
-     * that describe entry contents. Default value is an empty string.
-     * 
- * - * string description = 4; - * - * @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_ |= 0x00000400; - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry description, which can consist of several sentences or paragraphs
-     * that describe entry contents. Default value is an empty string.
-     * 
- * - * string description = 4; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000400); - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry description, which can consist of several sentences or paragraphs
-     * that describe entry contents. Default value is an empty string.
-     * 
- * - * string description = 4; - * - * @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_ |= 0x00000400; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.Schema schema_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Schema, - com.google.cloud.datacatalog.v1beta1.Schema.Builder, - com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder> - schemaBuilder_; - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - * - * @return Whether the schema field is set. - */ - public boolean hasSchema() { - return ((bitField0_ & 0x00000800) != 0); - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - * - * @return The schema. - */ - public com.google.cloud.datacatalog.v1beta1.Schema getSchema() { - if (schemaBuilder_ == null) { - return schema_ == null - ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance() - : schema_; - } else { - return schemaBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - */ - public Builder setSchema(com.google.cloud.datacatalog.v1beta1.Schema value) { - if (schemaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - schema_ = value; - } else { - schemaBuilder_.setMessage(value); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - */ - public Builder setSchema(com.google.cloud.datacatalog.v1beta1.Schema.Builder builderForValue) { - if (schemaBuilder_ == null) { - schema_ = builderForValue.build(); - } else { - schemaBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000800; - onChanged(); - return this; - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - */ - public Builder mergeSchema(com.google.cloud.datacatalog.v1beta1.Schema value) { - if (schemaBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) - && schema_ != null - && schema_ != com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()) { - getSchemaBuilder().mergeFrom(value); - } else { - schema_ = value; - } - } else { - schemaBuilder_.mergeFrom(value); - } - if (schema_ != null) { - bitField0_ |= 0x00000800; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - */ - public Builder clearSchema() { - bitField0_ = (bitField0_ & ~0x00000800); - schema_ = null; - if (schemaBuilder_ != null) { - schemaBuilder_.dispose(); - schemaBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - */ - public com.google.cloud.datacatalog.v1beta1.Schema.Builder getSchemaBuilder() { - bitField0_ |= 0x00000800; - onChanged(); - return internalGetSchemaFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - */ - public com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder getSchemaOrBuilder() { - if (schemaBuilder_ != null) { - return schemaBuilder_.getMessageOrBuilder(); - } else { - return schema_ == null - ? com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance() - : schema_; - } - } - - /** - * - * - *
-     * Schema of the entry. An entry might not have any schema attached to it.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Schema, - com.google.cloud.datacatalog.v1beta1.Schema.Builder, - com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder> - internalGetSchemaFieldBuilder() { - if (schemaBuilder_ == null) { - schemaBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Schema, - com.google.cloud.datacatalog.v1beta1.Schema.Builder, - com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder>( - getSchema(), getParentForChildren(), isClean()); - schema_ = null; - } - return schemaBuilder_; - } - - private com.google.cloud.datacatalog.v1beta1.SystemTimestamps sourceSystemTimestamps_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - sourceSystemTimestampsBuilder_; - - /** - * - * - *
-     * Output only. Timestamps about the underlying resource, not about this Data
-     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-     * entries with user_specified_type, this field is optional and defaults to an
-     * empty timestamp.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the sourceSystemTimestamps field is set. - */ - public boolean hasSourceSystemTimestamps() { - return ((bitField0_ & 0x00001000) != 0); - } - - /** - * - * - *
-     * Output only. Timestamps about the underlying resource, not about this Data
-     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-     * entries with user_specified_type, this field is optional and defaults to an
-     * empty timestamp.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The sourceSystemTimestamps. - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getSourceSystemTimestamps() { - if (sourceSystemTimestampsBuilder_ == null) { - return sourceSystemTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : sourceSystemTimestamps_; - } else { - return sourceSystemTimestampsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Timestamps about the underlying resource, not about this Data
-     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-     * entries with user_specified_type, this field is optional and defaults to an
-     * empty timestamp.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setSourceSystemTimestamps( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) { - if (sourceSystemTimestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sourceSystemTimestamps_ = value; - } else { - sourceSystemTimestampsBuilder_.setMessage(value); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about the underlying resource, not about this Data
-     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-     * entries with user_specified_type, this field is optional and defaults to an
-     * empty timestamp.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setSourceSystemTimestamps( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder builderForValue) { - if (sourceSystemTimestampsBuilder_ == null) { - sourceSystemTimestamps_ = builderForValue.build(); - } else { - sourceSystemTimestampsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about the underlying resource, not about this Data
-     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-     * entries with user_specified_type, this field is optional and defaults to an
-     * empty timestamp.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeSourceSystemTimestamps( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) { - if (sourceSystemTimestampsBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) - && sourceSystemTimestamps_ != null - && sourceSystemTimestamps_ - != com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()) { - getSourceSystemTimestampsBuilder().mergeFrom(value); - } else { - sourceSystemTimestamps_ = value; - } - } else { - sourceSystemTimestampsBuilder_.mergeFrom(value); - } - if (sourceSystemTimestamps_ != null) { - bitField0_ |= 0x00001000; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about the underlying resource, not about this Data
-     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-     * entries with user_specified_type, this field is optional and defaults to an
-     * empty timestamp.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearSourceSystemTimestamps() { - bitField0_ = (bitField0_ & ~0x00001000); - sourceSystemTimestamps_ = null; - if (sourceSystemTimestampsBuilder_ != null) { - sourceSystemTimestampsBuilder_.dispose(); - sourceSystemTimestampsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about the underlying resource, not about this Data
-     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-     * entries with user_specified_type, this field is optional and defaults to an
-     * empty timestamp.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder - getSourceSystemTimestampsBuilder() { - bitField0_ |= 0x00001000; - onChanged(); - return internalGetSourceSystemTimestampsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Timestamps about the underlying resource, not about this Data
-     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-     * entries with user_specified_type, this field is optional and defaults to an
-     * empty timestamp.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder - getSourceSystemTimestampsOrBuilder() { - if (sourceSystemTimestampsBuilder_ != null) { - return sourceSystemTimestampsBuilder_.getMessageOrBuilder(); - } else { - return sourceSystemTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : sourceSystemTimestamps_; - } - } - - /** - * - * - *
-     * Output only. Timestamps about the underlying resource, not about this Data
-     * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-     * entries with user_specified_type, this field is optional and defaults to an
-     * empty timestamp.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - internalGetSourceSystemTimestampsFieldBuilder() { - if (sourceSystemTimestampsBuilder_ == null) { - sourceSystemTimestampsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder>( - getSourceSystemTimestamps(), getParentForChildren(), isClean()); - sourceSystemTimestamps_ = null; - } - return sourceSystemTimestampsBuilder_; - } - - private com.google.cloud.datacatalog.v1beta1.UsageSignal usageSignal_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.UsageSignal, - com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder, - com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder> - usageSignalBuilder_; - - /** - * - * - *
-     * Output only. Statistics on the usage level of the resource.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the usageSignal field is set. - */ - public boolean hasUsageSignal() { - return ((bitField0_ & 0x00002000) != 0); - } - - /** - * - * - *
-     * Output only. Statistics on the usage level of the resource.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The usageSignal. - */ - public com.google.cloud.datacatalog.v1beta1.UsageSignal getUsageSignal() { - if (usageSignalBuilder_ == null) { - return usageSignal_ == null - ? com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance() - : usageSignal_; - } else { - return usageSignalBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Statistics on the usage level of the resource.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUsageSignal(com.google.cloud.datacatalog.v1beta1.UsageSignal value) { - if (usageSignalBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - usageSignal_ = value; - } else { - usageSignalBuilder_.setMessage(value); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Statistics on the usage level of the resource.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setUsageSignal( - com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder builderForValue) { - if (usageSignalBuilder_ == null) { - usageSignal_ = builderForValue.build(); - } else { - usageSignalBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Statistics on the usage level of the resource.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeUsageSignal(com.google.cloud.datacatalog.v1beta1.UsageSignal value) { - if (usageSignalBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) - && usageSignal_ != null - && usageSignal_ - != com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance()) { - getUsageSignalBuilder().mergeFrom(value); - } else { - usageSignal_ = value; - } - } else { - usageSignalBuilder_.mergeFrom(value); - } - if (usageSignal_ != null) { - bitField0_ |= 0x00002000; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Statistics on the usage level of the resource.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearUsageSignal() { - bitField0_ = (bitField0_ & ~0x00002000); - usageSignal_ = null; - if (usageSignalBuilder_ != null) { - usageSignalBuilder_.dispose(); - usageSignalBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Statistics on the usage level of the resource.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder getUsageSignalBuilder() { - bitField0_ |= 0x00002000; - onChanged(); - return internalGetUsageSignalFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Statistics on the usage level of the resource.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder getUsageSignalOrBuilder() { - if (usageSignalBuilder_ != null) { - return usageSignalBuilder_.getMessageOrBuilder(); - } else { - return usageSignal_ == null - ? com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance() - : usageSignal_; - } - } - - /** - * - * - *
-     * Output only. Statistics on the usage level of the resource.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.UsageSignal, - com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder, - com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder> - internalGetUsageSignalFieldBuilder() { - if (usageSignalBuilder_ == null) { - usageSignalBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.UsageSignal, - com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder, - com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder>( - getUsageSignal(), getParentForChildren(), isClean()); - usageSignal_ = null; - } - return usageSignalBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.Entry) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.Entry) - private static final com.google.cloud.datacatalog.v1beta1.Entry DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.Entry(); - } - - public static com.google.cloud.datacatalog.v1beta1.Entry getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Entry parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Entry getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java deleted file mode 100644 index 19360ae3ca14..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroup.java +++ /dev/null @@ -1,1373 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * EntryGroup Metadata.
- * An EntryGroup resource represents a logical grouping of zero or more
- * Data Catalog [Entry][google.cloud.datacatalog.v1beta1.Entry] resources.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.EntryGroup} - */ -@com.google.protobuf.Generated -public final class EntryGroup extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.EntryGroup) - EntryGroupOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EntryGroup"); - } - - // Use EntryGroup.newBuilder() to construct. - private EntryGroup(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private EntryGroup() { - name_ = ""; - displayName_ = ""; - description_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.EntryGroup.class, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. The resource name of the entry group in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   *
-   * Note that this EntryGroup and its child resources may not actually be
-   * stored in the location in this 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 resource name of the entry group in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   *
-   * Note that this EntryGroup and its child resources may not actually be
-   * stored in the location in this 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_ = ""; - - /** - * - * - *
-   * A short name to identify the entry group, for example,
-   * "analytics data - jan 2011". Default value is an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - - /** - * - * - *
-   * A short name to identify the entry group, for example,
-   * "analytics data - jan 2011". Default value is an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
-   * Entry group description, which can consist of several sentences or
-   * paragraphs that describe entry group contents. Default value is an empty
-   * string.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - - /** - * - * - *
-   * Entry group description, which can consist of several sentences or
-   * paragraphs that describe entry group contents. Default value is an empty
-   * string.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DATA_CATALOG_TIMESTAMPS_FIELD_NUMBER = 4; - private com.google.cloud.datacatalog.v1beta1.SystemTimestamps dataCatalogTimestamps_; - - /** - * - * - *
-   * Output only. Timestamps about this EntryGroup. Default value is empty
-   * timestamps.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataCatalogTimestamps field is set. - */ - @java.lang.Override - public boolean hasDataCatalogTimestamps() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Output only. Timestamps about this EntryGroup. Default value is empty
-   * timestamps.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataCatalogTimestamps. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getDataCatalogTimestamps() { - return dataCatalogTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : dataCatalogTimestamps_; - } - - /** - * - * - *
-   * Output only. Timestamps about this EntryGroup. Default value is empty
-   * timestamps.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder - getDataCatalogTimestampsOrBuilder() { - return dataCatalogTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : dataCatalogTimestamps_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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, getDataCatalogTimestamps()); - } - 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, getDataCatalogTimestamps()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.EntryGroup)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.EntryGroup other = - (com.google.cloud.datacatalog.v1beta1.EntryGroup) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (hasDataCatalogTimestamps() != other.hasDataCatalogTimestamps()) return false; - if (hasDataCatalogTimestamps()) { - if (!getDataCatalogTimestamps().equals(other.getDataCatalogTimestamps())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasDataCatalogTimestamps()) { - hash = (37 * hash) + DATA_CATALOG_TIMESTAMPS_FIELD_NUMBER; - hash = (53 * hash) + getDataCatalogTimestamps().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.EntryGroup prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * EntryGroup Metadata.
-   * An EntryGroup resource represents a logical grouping of zero or more
-   * Data Catalog [Entry][google.cloud.datacatalog.v1beta1.Entry] resources.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.EntryGroup} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.EntryGroup) - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.EntryGroup.class, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.EntryGroup.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetDataCatalogTimestampsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - description_ = ""; - dataCatalogTimestamps_ = null; - if (dataCatalogTimestampsBuilder_ != null) { - dataCatalogTimestampsBuilder_.dispose(); - dataCatalogTimestampsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_EntryGroup_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryGroup getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryGroup build() { - com.google.cloud.datacatalog.v1beta1.EntryGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryGroup buildPartial() { - com.google.cloud.datacatalog.v1beta1.EntryGroup result = - new com.google.cloud.datacatalog.v1beta1.EntryGroup(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.EntryGroup 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.dataCatalogTimestamps_ = - dataCatalogTimestampsBuilder_ == null - ? dataCatalogTimestamps_ - : dataCatalogTimestampsBuilder_.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.datacatalog.v1beta1.EntryGroup) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.EntryGroup) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.EntryGroup other) { - if (other == com.google.cloud.datacatalog.v1beta1.EntryGroup.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.hasDataCatalogTimestamps()) { - mergeDataCatalogTimestamps(other.getDataCatalogTimestamps()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetDataCatalogTimestampsFieldBuilder().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 resource name of the entry group in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     *
-     * Note that this EntryGroup and its child resources may not actually be
-     * stored in the location in this 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 resource name of the entry group in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     *
-     * Note that this EntryGroup and its child resources may not actually be
-     * stored in the location in this 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 resource name of the entry group in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     *
-     * Note that this EntryGroup and its child resources may not actually be
-     * stored in the location in this 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 resource name of the entry group in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     *
-     * Note that this EntryGroup and its child resources may not actually be
-     * stored in the location in this 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 resource name of the entry group in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     *
-     * Note that this EntryGroup and its child resources may not actually be
-     * stored in the location in this 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_ = ""; - - /** - * - * - *
-     * A short name to identify the entry group, for example,
-     * "analytics data - jan 2011". Default value is an empty string.
-     * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * A short name to identify the entry group, for example,
-     * "analytics data - jan 2011". Default value is an empty string.
-     * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * A short name to identify the entry group, for example,
-     * "analytics data - jan 2011". Default value is an empty string.
-     * 
- * - * string display_name = 2; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * A short name to identify the entry group, for example,
-     * "analytics data - jan 2011". Default value is an empty string.
-     * 
- * - * string display_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * A short name to identify the entry group, for example,
-     * "analytics data - jan 2011". Default value is an empty string.
-     * 
- * - * string display_name = 2; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - - /** - * - * - *
-     * Entry group description, which can consist of several sentences or
-     * paragraphs that describe entry group contents. Default value is an empty
-     * string.
-     * 
- * - * string description = 3; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Entry group description, which can consist of several sentences or
-     * paragraphs that describe entry group contents. Default value is an empty
-     * string.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Entry group description, which can consist of several sentences or
-     * paragraphs that describe entry group contents. Default value is an empty
-     * string.
-     * 
- * - * string description = 3; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry group description, which can consist of several sentences or
-     * paragraphs that describe entry group contents. Default value is an empty
-     * string.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Entry group description, which can consist of several sentences or
-     * paragraphs that describe entry group contents. Default value is an empty
-     * string.
-     * 
- * - * string description = 3; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.SystemTimestamps dataCatalogTimestamps_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - dataCatalogTimestampsBuilder_; - - /** - * - * - *
-     * Output only. Timestamps about this EntryGroup. Default value is empty
-     * timestamps.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataCatalogTimestamps field is set. - */ - public boolean hasDataCatalogTimestamps() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-     * Output only. Timestamps about this EntryGroup. Default value is empty
-     * timestamps.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataCatalogTimestamps. - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getDataCatalogTimestamps() { - if (dataCatalogTimestampsBuilder_ == null) { - return dataCatalogTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : dataCatalogTimestamps_; - } else { - return dataCatalogTimestampsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Timestamps about this EntryGroup. Default value is empty
-     * timestamps.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDataCatalogTimestamps( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) { - if (dataCatalogTimestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - dataCatalogTimestamps_ = value; - } else { - dataCatalogTimestampsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about this EntryGroup. Default value is empty
-     * timestamps.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setDataCatalogTimestamps( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder builderForValue) { - if (dataCatalogTimestampsBuilder_ == null) { - dataCatalogTimestamps_ = builderForValue.build(); - } else { - dataCatalogTimestampsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about this EntryGroup. Default value is empty
-     * timestamps.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeDataCatalogTimestamps( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) { - if (dataCatalogTimestampsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && dataCatalogTimestamps_ != null - && dataCatalogTimestamps_ - != com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()) { - getDataCatalogTimestampsBuilder().mergeFrom(value); - } else { - dataCatalogTimestamps_ = value; - } - } else { - dataCatalogTimestampsBuilder_.mergeFrom(value); - } - if (dataCatalogTimestamps_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about this EntryGroup. Default value is empty
-     * timestamps.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearDataCatalogTimestamps() { - bitField0_ = (bitField0_ & ~0x00000008); - dataCatalogTimestamps_ = null; - if (dataCatalogTimestampsBuilder_ != null) { - dataCatalogTimestampsBuilder_.dispose(); - dataCatalogTimestampsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about this EntryGroup. Default value is empty
-     * timestamps.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder - getDataCatalogTimestampsBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetDataCatalogTimestampsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Timestamps about this EntryGroup. Default value is empty
-     * timestamps.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder - getDataCatalogTimestampsOrBuilder() { - if (dataCatalogTimestampsBuilder_ != null) { - return dataCatalogTimestampsBuilder_.getMessageOrBuilder(); - } else { - return dataCatalogTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : dataCatalogTimestamps_; - } - } - - /** - * - * - *
-     * Output only. Timestamps about this EntryGroup. Default value is empty
-     * timestamps.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - internalGetDataCatalogTimestampsFieldBuilder() { - if (dataCatalogTimestampsBuilder_ == null) { - dataCatalogTimestampsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder>( - getDataCatalogTimestamps(), getParentForChildren(), isClean()); - dataCatalogTimestamps_ = null; - } - return dataCatalogTimestampsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.EntryGroup) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.EntryGroup) - private static final com.google.cloud.datacatalog.v1beta1.EntryGroup DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.EntryGroup(); - } - - public static com.google.cloud.datacatalog.v1beta1.EntryGroup getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EntryGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryGroup getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java deleted file mode 100644 index 59c7618aa02f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupName.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 EntryGroupName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_ENTRY_GROUP = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/entryGroups/{entry_group}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String entryGroup; - - @Deprecated - protected EntryGroupName() { - project = null; - location = null; - entryGroup = null; - } - - private EntryGroupName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - entryGroup = Preconditions.checkNotNull(builder.getEntryGroup()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static EntryGroupName of(String project, String location, String entryGroup) { - return newBuilder().setProject(project).setLocation(location).setEntryGroup(entryGroup).build(); - } - - public static String format(String project, String location, String entryGroup) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setEntryGroup(entryGroup) - .build() - .toString(); - } - - public static @Nullable EntryGroupName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_ENTRY_GROUP.validatedMatch( - formattedString, "EntryGroupName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("entry_group")); - } - - 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 EntryGroupName> values) { - List list = new ArrayList<>(values.size()); - for (EntryGroupName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_ENTRY_GROUP.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 (entryGroup != null) { - fieldMapBuilder.put("entry_group", entryGroup); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_ENTRY_GROUP.instantiate( - "project", project, "location", location, "entry_group", entryGroup); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - EntryGroupName that = ((EntryGroupName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.entryGroup, that.entryGroup); - } - 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(entryGroup); - return h; - } - - /** Builder for projects/{project}/locations/{location}/entryGroups/{entry_group}. */ - public static class Builder { - private String project; - private String location; - private String entryGroup; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setEntryGroup(String entryGroup) { - this.entryGroup = entryGroup; - return this; - } - - private Builder(EntryGroupName entryGroupName) { - this.project = entryGroupName.project; - this.location = entryGroupName.location; - this.entryGroup = entryGroupName.entryGroup; - } - - public EntryGroupName build() { - return new EntryGroupName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java deleted file mode 100644 index 200ebad4d9a5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryGroupOrBuilder.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface EntryGroupOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.EntryGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. The resource name of the entry group in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   *
-   * Note that this EntryGroup and its child resources may not actually be
-   * stored in the location in this name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. The resource name of the entry group in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   *
-   * Note that this EntryGroup and its child resources may not actually be
-   * stored in the location in this name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * A short name to identify the entry group, for example,
-   * "analytics data - jan 2011". Default value is an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * A short name to identify the entry group, for example,
-   * "analytics data - jan 2011". Default value is an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Entry group description, which can consist of several sentences or
-   * paragraphs that describe entry group contents. Default value is an empty
-   * string.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Entry group description, which can consist of several sentences or
-   * paragraphs that describe entry group contents. Default value is an empty
-   * string.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Output only. Timestamps about this EntryGroup. Default value is empty
-   * timestamps.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the dataCatalogTimestamps field is set. - */ - boolean hasDataCatalogTimestamps(); - - /** - * - * - *
-   * Output only. Timestamps about this EntryGroup. Default value is empty
-   * timestamps.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataCatalogTimestamps. - */ - com.google.cloud.datacatalog.v1beta1.SystemTimestamps getDataCatalogTimestamps(); - - /** - * - * - *
-   * Output only. Timestamps about this EntryGroup. Default value is empty
-   * timestamps.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps data_catalog_timestamps = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder - getDataCatalogTimestampsOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java deleted file mode 100644 index 6c2231bea3b8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryName.java +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 EntryName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_ENTRY_GROUP_ENTRY = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String entryGroup; - private final String entry; - - @Deprecated - protected EntryName() { - project = null; - location = null; - entryGroup = null; - entry = null; - } - - private EntryName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - entryGroup = Preconditions.checkNotNull(builder.getEntryGroup()); - entry = Preconditions.checkNotNull(builder.getEntry()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public String getEntry() { - return entry; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static EntryName of(String project, String location, String entryGroup, String entry) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setEntryGroup(entryGroup) - .setEntry(entry) - .build(); - } - - public static String format(String project, String location, String entryGroup, String entry) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setEntryGroup(entryGroup) - .setEntry(entry) - .build() - .toString(); - } - - public static @Nullable EntryName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_ENTRY_GROUP_ENTRY.validatedMatch( - formattedString, "EntryName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("entry_group"), - matchMap.get("entry")); - } - - 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 EntryName> values) { - List list = new ArrayList<>(values.size()); - for (EntryName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_ENTRY_GROUP_ENTRY.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 (entryGroup != null) { - fieldMapBuilder.put("entry_group", entryGroup); - } - if (entry != null) { - fieldMapBuilder.put("entry", entry); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_ENTRY_GROUP_ENTRY.instantiate( - "project", project, "location", location, "entry_group", entryGroup, "entry", entry); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - EntryName that = ((EntryName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.entryGroup, that.entryGroup) - && Objects.equals(this.entry, that.entry); - } - 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(entryGroup); - h *= 1000003; - h ^= Objects.hashCode(entry); - return h; - } - - /** - * Builder for projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}. - */ - public static class Builder { - private String project; - private String location; - private String entryGroup; - private String entry; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public String getEntry() { - return entry; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setEntryGroup(String entryGroup) { - this.entryGroup = entryGroup; - return this; - } - - public Builder setEntry(String entry) { - this.entry = entry; - return this; - } - - private Builder(EntryName entryName) { - this.project = entryName.project; - this.location = entryName.location; - this.entryGroup = entryName.entryGroup; - this.entry = entryName.entry; - } - - public EntryName build() { - return new EntryName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java deleted file mode 100644 index 3bc4690b0497..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryOrBuilder.java +++ /dev/null @@ -1,652 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface EntryOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.Entry) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Identifier. The Data Catalog resource name of the entry in URL
-   * format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   *
-   * Note that this Entry and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Output only. Identifier. The Data Catalog resource name of the entry in URL
-   * format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   *
-   * Note that this Entry and its child resources may not actually be stored in
-   * the location in this name.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The resource this metadata entry refers to.
-   *
-   * For Google Cloud Platform resources, `linked_resource` is the [full name of
-   * the
-   * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   * For example, the `linked_resource` for a table resource from BigQuery is:
-   *
-   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-   *
-   * Output only when Entry is of type in the EntryType enum. For entries with
-   * user_specified_type, this field is optional and defaults to an empty
-   * string.
-   * 
- * - * string linked_resource = 9; - * - * @return The linkedResource. - */ - java.lang.String getLinkedResource(); - - /** - * - * - *
-   * The resource this metadata entry refers to.
-   *
-   * For Google Cloud Platform resources, `linked_resource` is the [full name of
-   * the
-   * resource](https://cloud.google.com/apis/design/resource_names#full_resource_name).
-   * For example, the `linked_resource` for a table resource from BigQuery is:
-   *
-   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-   *
-   * Output only when Entry is of type in the EntryType enum. For entries with
-   * user_specified_type, this field is optional and defaults to an empty
-   * string.
-   * 
- * - * string linked_resource = 9; - * - * @return The bytes for linkedResource. - */ - com.google.protobuf.ByteString getLinkedResourceBytes(); - - /** - * - * - *
-   * The type of the entry.
-   * Only used for Entries with types in the EntryType enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @return Whether the type field is set. - */ - boolean hasType(); - - /** - * - * - *
-   * The type of the entry.
-   * Only used for Entries with types in the EntryType enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - - /** - * - * - *
-   * The type of the entry.
-   * Only used for Entries with types in the EntryType enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.EntryType type = 2; - * - * @return The type. - */ - com.google.cloud.datacatalog.v1beta1.EntryType getType(); - - /** - * - * - *
-   * Entry type if it does not fit any of the input-allowed values listed in
-   * `EntryType` enum above. When creating an entry, users should check the
-   * enum values first, if nothing matches the entry to be created, then
-   * provide a custom value, for example "my_special_type".
-   * `user_specified_type` strings must begin with a letter or underscore and
-   * can only contain letters, numbers, and underscores; are case insensitive;
-   * must be at least 1 character and at most 64 characters long.
-   *
-   * Currently, only FILESET enum value is allowed. All other entries created
-   * through Data Catalog must use `user_specified_type`.
-   * 
- * - * string user_specified_type = 16; - * - * @return Whether the userSpecifiedType field is set. - */ - boolean hasUserSpecifiedType(); - - /** - * - * - *
-   * Entry type if it does not fit any of the input-allowed values listed in
-   * `EntryType` enum above. When creating an entry, users should check the
-   * enum values first, if nothing matches the entry to be created, then
-   * provide a custom value, for example "my_special_type".
-   * `user_specified_type` strings must begin with a letter or underscore and
-   * can only contain letters, numbers, and underscores; are case insensitive;
-   * must be at least 1 character and at most 64 characters long.
-   *
-   * Currently, only FILESET enum value is allowed. All other entries created
-   * through Data Catalog must use `user_specified_type`.
-   * 
- * - * string user_specified_type = 16; - * - * @return The userSpecifiedType. - */ - java.lang.String getUserSpecifiedType(); - - /** - * - * - *
-   * Entry type if it does not fit any of the input-allowed values listed in
-   * `EntryType` enum above. When creating an entry, users should check the
-   * enum values first, if nothing matches the entry to be created, then
-   * provide a custom value, for example "my_special_type".
-   * `user_specified_type` strings must begin with a letter or underscore and
-   * can only contain letters, numbers, and underscores; are case insensitive;
-   * must be at least 1 character and at most 64 characters long.
-   *
-   * Currently, only FILESET enum value is allowed. All other entries created
-   * through Data Catalog must use `user_specified_type`.
-   * 
- * - * string user_specified_type = 16; - * - * @return The bytes for userSpecifiedType. - */ - com.google.protobuf.ByteString getUserSpecifiedTypeBytes(); - - /** - * - * - *
-   * Output only. This field indicates the entry's source system that Data
-   * Catalog integrates with, such as BigQuery or Pub/Sub.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the integratedSystem field is set. - */ - boolean hasIntegratedSystem(); - - /** - * - * - *
-   * Output only. This field indicates the entry's source system that Data
-   * Catalog integrates with, such as BigQuery or Pub/Sub.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for integratedSystem. - */ - int getIntegratedSystemValue(); - - /** - * - * - *
-   * Output only. This field indicates the entry's source system that Data
-   * Catalog integrates with, such as BigQuery or Pub/Sub.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.IntegratedSystem integrated_system = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The integratedSystem. - */ - com.google.cloud.datacatalog.v1beta1.IntegratedSystem getIntegratedSystem(); - - /** - * - * - *
-   * This field indicates the entry's source system that Data Catalog does not
-   * integrate with. `user_specified_system` strings must begin with a letter
-   * or underscore and can only contain letters, numbers, and underscores; are
-   * case insensitive; must be at least 1 character and at most 64 characters
-   * long.
-   * 
- * - * string user_specified_system = 18; - * - * @return Whether the userSpecifiedSystem field is set. - */ - boolean hasUserSpecifiedSystem(); - - /** - * - * - *
-   * This field indicates the entry's source system that Data Catalog does not
-   * integrate with. `user_specified_system` strings must begin with a letter
-   * or underscore and can only contain letters, numbers, and underscores; are
-   * case insensitive; must be at least 1 character and at most 64 characters
-   * long.
-   * 
- * - * string user_specified_system = 18; - * - * @return The userSpecifiedSystem. - */ - java.lang.String getUserSpecifiedSystem(); - - /** - * - * - *
-   * This field indicates the entry's source system that Data Catalog does not
-   * integrate with. `user_specified_system` strings must begin with a letter
-   * or underscore and can only contain letters, numbers, and underscores; are
-   * case insensitive; must be at least 1 character and at most 64 characters
-   * long.
-   * 
- * - * string user_specified_system = 18; - * - * @return The bytes for userSpecifiedSystem. - */ - com.google.protobuf.ByteString getUserSpecifiedSystemBytes(); - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. This is only valid
-   * on entries of type FILESET.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return Whether the gcsFilesetSpec field is set. - */ - boolean hasGcsFilesetSpec(); - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. This is only valid
-   * on entries of type FILESET.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - * - * @return The gcsFilesetSpec. - */ - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec getGcsFilesetSpec(); - - /** - * - * - *
-   * Specification that applies to a Cloud Storage fileset. This is only valid
-   * on entries of type FILESET.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.GcsFilesetSpec gcs_fileset_spec = 6; - */ - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder getGcsFilesetSpecOrBuilder(); - - /** - * - * - *
-   * Specification that applies to a BigQuery table. This is only valid on
-   * entries of type `TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - * - * @return Whether the bigqueryTableSpec field is set. - */ - boolean hasBigqueryTableSpec(); - - /** - * - * - *
-   * Specification that applies to a BigQuery table. This is only valid on
-   * entries of type `TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - * - * @return The bigqueryTableSpec. - */ - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpec getBigqueryTableSpec(); - - /** - * - * - *
-   * Specification that applies to a BigQuery table. This is only valid on
-   * entries of type `TABLE`.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.BigQueryTableSpec bigquery_table_spec = 12; - */ - com.google.cloud.datacatalog.v1beta1.BigQueryTableSpecOrBuilder getBigqueryTableSpecOrBuilder(); - - /** - * - * - *
-   * Specification for a group of BigQuery tables with name pattern
-   * `[prefix]YYYYMMDD`. Context:
-   * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - * - * @return Whether the bigqueryDateShardedSpec field is set. - */ - boolean hasBigqueryDateShardedSpec(); - - /** - * - * - *
-   * Specification for a group of BigQuery tables with name pattern
-   * `[prefix]YYYYMMDD`. Context:
-   * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - * - * @return The bigqueryDateShardedSpec. - */ - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec getBigqueryDateShardedSpec(); - - /** - * - * - *
-   * Specification for a group of BigQuery tables with name pattern
-   * `[prefix]YYYYMMDD`. Context:
-   * https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - * - */ - com.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecOrBuilder - getBigqueryDateShardedSpecOrBuilder(); - - /** - * - * - *
-   * Display information such as title and description. A short name to identify
-   * the entry, for example, "Analytics Data - Jan 2011". Default value is an
-   * empty string.
-   * 
- * - * string display_name = 3; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Display information such as title and description. A short name to identify
-   * the entry, for example, "Analytics Data - Jan 2011". Default value is an
-   * empty string.
-   * 
- * - * string display_name = 3; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Entry description, which can consist of several sentences or paragraphs
-   * that describe entry contents. Default value is an empty string.
-   * 
- * - * string description = 4; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Entry description, which can consist of several sentences or paragraphs
-   * that describe entry contents. Default value is an empty string.
-   * 
- * - * string description = 4; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - * - * @return Whether the schema field is set. - */ - boolean hasSchema(); - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - * - * @return The schema. - */ - com.google.cloud.datacatalog.v1beta1.Schema getSchema(); - - /** - * - * - *
-   * Schema of the entry. An entry might not have any schema attached to it.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Schema schema = 5; - */ - com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder getSchemaOrBuilder(); - - /** - * - * - *
-   * Output only. Timestamps about the underlying resource, not about this Data
-   * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-   * entries with user_specified_type, this field is optional and defaults to an
-   * empty timestamp.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the sourceSystemTimestamps field is set. - */ - boolean hasSourceSystemTimestamps(); - - /** - * - * - *
-   * Output only. Timestamps about the underlying resource, not about this Data
-   * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-   * entries with user_specified_type, this field is optional and defaults to an
-   * empty timestamp.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The sourceSystemTimestamps. - */ - com.google.cloud.datacatalog.v1beta1.SystemTimestamps getSourceSystemTimestamps(); - - /** - * - * - *
-   * Output only. Timestamps about the underlying resource, not about this Data
-   * Catalog entry. Output only when Entry is of type in the EntryType enum. For
-   * entries with user_specified_type, this field is optional and defaults to an
-   * empty timestamp.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps source_system_timestamps = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder - getSourceSystemTimestampsOrBuilder(); - - /** - * - * - *
-   * Output only. Statistics on the usage level of the resource.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the usageSignal field is set. - */ - boolean hasUsageSignal(); - - /** - * - * - *
-   * Output only. Statistics on the usage level of the resource.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The usageSignal. - */ - com.google.cloud.datacatalog.v1beta1.UsageSignal getUsageSignal(); - - /** - * - * - *
-   * Output only. Statistics on the usage level of the resource.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.UsageSignal usage_signal = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder getUsageSignalOrBuilder(); - - com.google.cloud.datacatalog.v1beta1.Entry.EntryTypeCase getEntryTypeCase(); - - com.google.cloud.datacatalog.v1beta1.Entry.SystemCase getSystemCase(); - - com.google.cloud.datacatalog.v1beta1.Entry.TypeSpecCase getTypeSpecCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java deleted file mode 100644 index 1a32efe095d4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/EntryType.java +++ /dev/null @@ -1,247 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Entry resources in Data Catalog can be of different types e.g. a BigQuery
- * Table entry is of type `TABLE`. This enum describes all the possible types
- * Data Catalog contains.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1beta1.EntryType} - */ -@com.google.protobuf.Generated -public enum EntryType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * ENTRY_TYPE_UNSPECIFIED = 0; - */ - ENTRY_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * Output only. The type of entry that has a GoogleSQL schema, including
-   * logical views.
-   * 
- * - * TABLE = 2; - */ - TABLE(2), - /** - * - * - *
-   * Output only. The type of models.
-   * https://cloud.google.com/bigquery-ml/docs/bigqueryml-intro
-   * 
- * - * MODEL = 5; - */ - MODEL(5), - /** - * - * - *
-   * Output only. An entry type which is used for streaming entries. Example:
-   * Pub/Sub topic.
-   * 
- * - * DATA_STREAM = 3; - */ - DATA_STREAM(3), - /** - * - * - *
-   * An entry type which is a set of files or objects. Example:
-   * Cloud Storage fileset.
-   * 
- * - * FILESET = 4; - */ - FILESET(4), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EntryType"); - } - - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * ENTRY_TYPE_UNSPECIFIED = 0; - */ - public static final int ENTRY_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * Output only. The type of entry that has a GoogleSQL schema, including
-   * logical views.
-   * 
- * - * TABLE = 2; - */ - public static final int TABLE_VALUE = 2; - - /** - * - * - *
-   * Output only. The type of models.
-   * https://cloud.google.com/bigquery-ml/docs/bigqueryml-intro
-   * 
- * - * MODEL = 5; - */ - public static final int MODEL_VALUE = 5; - - /** - * - * - *
-   * Output only. An entry type which is used for streaming entries. Example:
-   * Pub/Sub topic.
-   * 
- * - * DATA_STREAM = 3; - */ - public static final int DATA_STREAM_VALUE = 3; - - /** - * - * - *
-   * An entry type which is a set of files or objects. Example:
-   * Cloud Storage fileset.
-   * 
- * - * FILESET = 4; - */ - public static final int FILESET_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 EntryType 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 EntryType forNumber(int value) { - switch (value) { - case 0: - return ENTRY_TYPE_UNSPECIFIED; - case 2: - return TABLE; - case 5: - return MODEL; - case 3: - return DATA_STREAM; - case 4: - return FILESET; - 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 EntryType findValueByNumber(int number) { - return EntryType.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.datacatalog.v1beta1.Datacatalog.getDescriptor().getEnumTypes().get(0); - } - - private static final EntryType[] VALUES = values(); - - public static EntryType 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 EntryType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1beta1.EntryType) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequest.java deleted file mode 100644 index 7c82ded8c59e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequest.java +++ /dev/null @@ -1,1161 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [ExportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest} - */ -@com.google.protobuf.Generated -public final class ExportTaxonomiesRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) - ExportTaxonomiesRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ExportTaxonomiesRequest"); - } - - // Use ExportTaxonomiesRequest.newBuilder() to construct. - private ExportTaxonomiesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ExportTaxonomiesRequest() { - parent_ = ""; - taxonomies_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest.Builder.class); - } - - private int destinationCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object destination_; - - public enum DestinationCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - SERIALIZED_TAXONOMIES(3), - DESTINATION_NOT_SET(0); - private final int value; - - private DestinationCase(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 DestinationCase valueOf(int value) { - return forNumber(value); - } - - public static DestinationCase forNumber(int value) { - switch (value) { - case 3: - return SERIALIZED_TAXONOMIES; - case 0: - return DESTINATION_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of the project that taxonomies to be exported
-   * will share.
-   * 
- * - * - * 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. Resource name of the project that taxonomies to be exported
-   * will share.
-   * 
- * - * - * 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 TAXONOMIES_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList taxonomies_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * Required. Resource names of the taxonomies to be exported.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return A list containing the taxonomies. - */ - public com.google.protobuf.ProtocolStringList getTaxonomiesList() { - return taxonomies_; - } - - /** - * - * - *
-   * Required. Resource names of the taxonomies to be exported.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The count of taxonomies. - */ - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-   * Required. Resource names of the taxonomies to be exported.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the element to return. - * @return The taxonomies at the given index. - */ - public java.lang.String getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-   * Required. Resource names of the taxonomies to be exported.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the value to return. - * @return The bytes of the taxonomies at the given index. - */ - public com.google.protobuf.ByteString getTaxonomiesBytes(int index) { - return taxonomies_.getByteString(index); - } - - public static final int SERIALIZED_TAXONOMIES_FIELD_NUMBER = 3; - - /** - * - * - *
-   * Export taxonomies as serialized taxonomies.
-   * 
- * - * bool serialized_taxonomies = 3; - * - * @return Whether the serializedTaxonomies field is set. - */ - @java.lang.Override - public boolean hasSerializedTaxonomies() { - return destinationCase_ == 3; - } - - /** - * - * - *
-   * Export taxonomies as serialized taxonomies.
-   * 
- * - * bool serialized_taxonomies = 3; - * - * @return The serializedTaxonomies. - */ - @java.lang.Override - public boolean getSerializedTaxonomies() { - if (destinationCase_ == 3) { - return (java.lang.Boolean) destination_; - } - 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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); - } - for (int i = 0; i < taxonomies_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, taxonomies_.getRaw(i)); - } - if (destinationCase_ == 3) { - output.writeBool(3, (boolean) ((java.lang.Boolean) destination_)); - } - 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 < taxonomies_.size(); i++) { - dataSize += computeStringSizeNoTag(taxonomies_.getRaw(i)); - } - size += dataSize; - size += 1 * getTaxonomiesList().size(); - } - if (destinationCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 3, (boolean) ((java.lang.Boolean) destination_)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest other = - (com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getTaxonomiesList().equals(other.getTaxonomiesList())) return false; - if (!getDestinationCase().equals(other.getDestinationCase())) return false; - switch (destinationCase_) { - case 3: - if (getSerializedTaxonomies() != other.getSerializedTaxonomies()) 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(); - if (getTaxonomiesCount() > 0) { - hash = (37 * hash) + TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomiesList().hashCode(); - } - switch (destinationCase_) { - case 3: - hash = (37 * hash) + SERIALIZED_TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSerializedTaxonomies()); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ExportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - taxonomies_ = com.google.protobuf.LazyStringArrayList.emptyList(); - destinationCase_ = 0; - destination_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest build() { - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest result = - new com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - taxonomies_.makeImmutable(); - result.taxonomies_ = taxonomies_; - } - } - - private void buildPartialOneofs( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest result) { - result.destinationCase_ = destinationCase_; - result.destination_ = this.destination_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.taxonomies_.isEmpty()) { - if (taxonomies_.isEmpty()) { - taxonomies_ = other.taxonomies_; - bitField0_ |= 0x00000002; - } else { - ensureTaxonomiesIsMutable(); - taxonomies_.addAll(other.taxonomies_); - } - onChanged(); - } - switch (other.getDestinationCase()) { - case SERIALIZED_TAXONOMIES: - { - setSerializedTaxonomies(other.getSerializedTaxonomies()); - break; - } - case DESTINATION_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_ |= 0x00000001; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTaxonomiesIsMutable(); - taxonomies_.add(s); - break; - } // case 18 - case 24: - { - destination_ = input.readBool(); - destinationCase_ = 3; - 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 destinationCase_ = 0; - private java.lang.Object destination_; - - public DestinationCase getDestinationCase() { - return DestinationCase.forNumber(destinationCase_); - } - - public Builder clearDestination() { - destinationCase_ = 0; - destination_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. Resource name of the project that taxonomies to be exported
-     * will share.
-     * 
- * - * - * 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. Resource name of the project that taxonomies to be exported
-     * will share.
-     * 
- * - * - * 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. Resource name of the project that taxonomies to be exported
-     * will share.
-     * 
- * - * - * 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. Resource name of the project that taxonomies to be exported
-     * will share.
-     * 
- * - * - * 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. Resource name of the project that taxonomies to be exported
-     * will share.
-     * 
- * - * - * 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 com.google.protobuf.LazyStringArrayList taxonomies_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTaxonomiesIsMutable() { - if (!taxonomies_.isModifiable()) { - taxonomies_ = new com.google.protobuf.LazyStringArrayList(taxonomies_); - } - bitField0_ |= 0x00000002; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to be exported.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return A list containing the taxonomies. - */ - public com.google.protobuf.ProtocolStringList getTaxonomiesList() { - taxonomies_.makeImmutable(); - return taxonomies_; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to be exported.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The count of taxonomies. - */ - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to be exported.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the element to return. - * @return The taxonomies at the given index. - */ - public java.lang.String getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to be exported.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the value to return. - * @return The bytes of the taxonomies at the given index. - */ - public com.google.protobuf.ByteString getTaxonomiesBytes(int index) { - return taxonomies_.getByteString(index); - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to be exported.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index to set the value at. - * @param value The taxonomies to set. - * @return This builder for chaining. - */ - public Builder setTaxonomies(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to be exported.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The taxonomies to add. - * @return This builder for chaining. - */ - public Builder addTaxonomies(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to be exported.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param values The taxonomies to add. - * @return This builder for chaining. - */ - public Builder addAllTaxonomies(java.lang.Iterable values) { - ensureTaxonomiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taxonomies_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to be exported.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearTaxonomies() { - taxonomies_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Resource names of the taxonomies to be exported.
-     * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes of the taxonomies to add. - * @return This builder for chaining. - */ - public Builder addTaxonomiesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Export taxonomies as serialized taxonomies.
-     * 
- * - * bool serialized_taxonomies = 3; - * - * @return Whether the serializedTaxonomies field is set. - */ - public boolean hasSerializedTaxonomies() { - return destinationCase_ == 3; - } - - /** - * - * - *
-     * Export taxonomies as serialized taxonomies.
-     * 
- * - * bool serialized_taxonomies = 3; - * - * @return The serializedTaxonomies. - */ - public boolean getSerializedTaxonomies() { - if (destinationCase_ == 3) { - return (java.lang.Boolean) destination_; - } - return false; - } - - /** - * - * - *
-     * Export taxonomies as serialized taxonomies.
-     * 
- * - * bool serialized_taxonomies = 3; - * - * @param value The serializedTaxonomies to set. - * @return This builder for chaining. - */ - public Builder setSerializedTaxonomies(boolean value) { - - destinationCase_ = 3; - destination_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Export taxonomies as serialized taxonomies.
-     * 
- * - * bool serialized_taxonomies = 3; - * - * @return This builder for chaining. - */ - public Builder clearSerializedTaxonomies() { - if (destinationCase_ == 3) { - destinationCase_ = 0; - destination_ = null; - onChanged(); - } - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) - private static final com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportTaxonomiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequestOrBuilder.java deleted file mode 100644 index ca15c6a08d4a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ExportTaxonomiesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the project that taxonomies to be exported
-   * will share.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of the project that taxonomies to be exported
-   * will share.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Required. Resource names of the taxonomies to be exported.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return A list containing the taxonomies. - */ - java.util.List getTaxonomiesList(); - - /** - * - * - *
-   * Required. Resource names of the taxonomies to be exported.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The count of taxonomies. - */ - int getTaxonomiesCount(); - - /** - * - * - *
-   * Required. Resource names of the taxonomies to be exported.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the element to return. - * @return The taxonomies at the given index. - */ - java.lang.String getTaxonomies(int index); - - /** - * - * - *
-   * Required. Resource names of the taxonomies to be exported.
-   * 
- * - * - * repeated string taxonomies = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param index The index of the value to return. - * @return The bytes of the taxonomies at the given index. - */ - com.google.protobuf.ByteString getTaxonomiesBytes(int index); - - /** - * - * - *
-   * Export taxonomies as serialized taxonomies.
-   * 
- * - * bool serialized_taxonomies = 3; - * - * @return Whether the serializedTaxonomies field is set. - */ - boolean hasSerializedTaxonomies(); - - /** - * - * - *
-   * Export taxonomies as serialized taxonomies.
-   * 
- * - * bool serialized_taxonomies = 3; - * - * @return The serializedTaxonomies. - */ - boolean getSerializedTaxonomies(); - - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest.DestinationCase getDestinationCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponse.java deleted file mode 100644 index 11e56e6cea47..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponse.java +++ /dev/null @@ -1,946 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Response message for
- * [ExportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse} - */ -@com.google.protobuf.Generated -public final class ExportTaxonomiesResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse) - ExportTaxonomiesResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ExportTaxonomiesResponse"); - } - - // Use ExportTaxonomiesResponse.newBuilder() to construct. - private ExportTaxonomiesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ExportTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse.Builder.class); - } - - public static final int TAXONOMIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List taxonomies_; - - /** - * - * - *
-   * List of taxonomies and policy tags in a tree structure.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List - getTaxonomiesList() { - return taxonomies_; - } - - /** - * - * - *
-   * List of taxonomies and policy tags in a tree structure.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List - getTaxonomiesOrBuilderList() { - return taxonomies_; - } - - /** - * - * - *
-   * List of taxonomies and policy tags in a tree structure.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - @java.lang.Override - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-   * List of taxonomies and policy tags in a tree structure.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-   * List of taxonomies and policy tags in a tree structure.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder( - int index) { - return taxonomies_.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 < taxonomies_.size(); i++) { - output.writeMessage(1, taxonomies_.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 < taxonomies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taxonomies_.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.datacatalog.v1beta1.ExportTaxonomiesResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse other = - (com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse) obj; - - if (!getTaxonomiesList().equals(other.getTaxonomiesList())) return false; - if (!getUnknownFields().equals(other.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 (getTaxonomiesCount() > 0) { - hash = (37 * hash) + TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomiesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ExportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse) - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - } else { - taxonomies_ = null; - taxonomiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse build() { - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse buildPartial() { - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse result = - new com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse result) { - if (taxonomiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = java.util.Collections.unmodifiableList(taxonomies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taxonomies_ = taxonomies_; - } else { - result.taxonomies_ = taxonomiesBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse other) { - if (other - == com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse.getDefaultInstance()) - return this; - if (taxonomiesBuilder_ == null) { - if (!other.taxonomies_.isEmpty()) { - if (taxonomies_.isEmpty()) { - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaxonomiesIsMutable(); - taxonomies_.addAll(other.taxonomies_); - } - onChanged(); - } - } else { - if (!other.taxonomies_.isEmpty()) { - if (taxonomiesBuilder_.isEmpty()) { - taxonomiesBuilder_.dispose(); - taxonomiesBuilder_ = null; - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - taxonomiesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTaxonomiesFieldBuilder() - : null; - } else { - taxonomiesBuilder_.addAllMessages(other.taxonomies_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1beta1.SerializedTaxonomy m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.parser(), - extensionRegistry); - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(m); - } else { - taxonomiesBuilder_.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 taxonomies_ = - java.util.Collections.emptyList(); - - private void ensureTaxonomiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = - new java.util.ArrayList( - taxonomies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder> - taxonomiesBuilder_; - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesList() { - if (taxonomiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(taxonomies_); - } else { - return taxonomiesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public int getTaxonomiesCount() { - if (taxonomiesBuilder_ == null) { - return taxonomies_.size(); - } else { - return taxonomiesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy getTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public Builder setTaxonomies( - int index, com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, value); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public Builder setTaxonomies( - int index, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public Builder addTaxonomies(com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - int index, com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - int index, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public Builder addAllTaxonomies( - java.lang.Iterable - values) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taxonomies_); - onChanged(); - } else { - taxonomiesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public Builder clearTaxonomies() { - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taxonomiesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public Builder removeTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.remove(index); - onChanged(); - } else { - taxonomiesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder getTaxonomiesBuilder( - int index) { - return internalGetTaxonomiesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder( - int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public java.util.List< - ? extends com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder> - getTaxonomiesOrBuilderList() { - if (taxonomiesBuilder_ != null) { - return taxonomiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taxonomies_); - } - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder addTaxonomiesBuilder() { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder addTaxonomiesBuilder( - int index) { - return internalGetTaxonomiesFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * List of taxonomies and policy tags in a tree structure.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesBuilderList() { - return internalGetTaxonomiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder> - internalGetTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder>( - taxonomies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - taxonomies_ = null; - } - return taxonomiesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse) - private static final com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse(); - } - - public static com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ExportTaxonomiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponseOrBuilder.java deleted file mode 100644 index 96f4a14aaba2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ExportTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ExportTaxonomiesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * List of taxonomies and policy tags in a tree structure.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - java.util.List getTaxonomiesList(); - - /** - * - * - *
-   * List of taxonomies and policy tags in a tree structure.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy getTaxonomies(int index); - - /** - * - * - *
-   * List of taxonomies and policy tags in a tree structure.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - int getTaxonomiesCount(); - - /** - * - * - *
-   * List of taxonomies and policy tags in a tree structure.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - java.util.List - getTaxonomiesOrBuilderList(); - - /** - * - * - *
-   * List of taxonomies and policy tags in a tree structure.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder( - int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java deleted file mode 100644 index 3f5e0b0edd1e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java +++ /dev/null @@ -1,242 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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; - -/** AUTO-GENERATED DOCUMENTATION AND CLASS */ -@javax.annotation.Generated("by GAPIC protoc plugin") -public class FieldName implements ResourceName { - - private static final PathTemplate PATH_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}"); - - private volatile Map fieldValuesMap; - - private final String project; - private final String location; - private final String tagTemplate; - private final String field; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public String getField() { - return field; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - private FieldName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - tagTemplate = Preconditions.checkNotNull(builder.getTagTemplate()); - field = Preconditions.checkNotNull(builder.getField()); - } - - public static FieldName of(String project, String location, String tagTemplate, String field) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .setField(field) - .build(); - } - - public static String format(String project, String location, String tagTemplate, String field) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .setField(field) - .build() - .toString(); - } - - public static FieldName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PATH_TEMPLATE.validatedMatch( - formattedString, "FieldName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("tag_template"), - matchMap.get("field")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList(values.size()); - for (FieldName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PATH_TEMPLATE.matches(formattedString); - } - - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - fieldMapBuilder.put("project", project); - fieldMapBuilder.put("location", location); - fieldMapBuilder.put("tagTemplate", tagTemplate); - fieldMapBuilder.put("field", field); - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PATH_TEMPLATE.instantiate( - "project", project, "location", location, "tag_template", tagTemplate, "field", field); - } - - /** Builder for FieldName. */ - public static class Builder { - - private String project; - private String location; - private String tagTemplate; - private String field; - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public String getField() { - return field; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTagTemplate(String tagTemplate) { - this.tagTemplate = tagTemplate; - return this; - } - - public Builder setField(String field) { - this.field = field; - return this; - } - - private Builder() {} - - private Builder(FieldName fieldName) { - project = fieldName.project; - location = fieldName.location; - tagTemplate = fieldName.tagTemplate; - field = fieldName.field; - } - - public FieldName build() { - return new FieldName(this); - } - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o instanceof FieldName) { - FieldName that = (FieldName) o; - return (this.project.equals(that.project)) - && (this.location.equals(that.location)) - && (this.tagTemplate.equals(that.tagTemplate)) - && (this.field.equals(that.field)); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= project.hashCode(); - h *= 1000003; - h ^= location.hashCode(); - h *= 1000003; - h ^= tagTemplate.hashCode(); - h *= 1000003; - h ^= field.hashCode(); - return h; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java deleted file mode 100644 index 5063c24fa654..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldType.java +++ /dev/null @@ -1,2686 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** Protobuf type {@code google.cloud.datacatalog.v1beta1.FieldType} */ -@com.google.protobuf.Generated -public final class FieldType extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.FieldType) - FieldTypeOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "FieldType"); - } - - // Use FieldType.newBuilder() to construct. - private FieldType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private FieldType() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.FieldType.class, - com.google.cloud.datacatalog.v1beta1.FieldType.Builder.class); - } - - /** Protobuf enum {@code google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType} */ - public enum PrimitiveType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * This is the default invalid value for a type.
-     * 
- * - * PRIMITIVE_TYPE_UNSPECIFIED = 0; - */ - PRIMITIVE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * A double precision number.
-     * 
- * - * DOUBLE = 1; - */ - DOUBLE(1), - /** - * - * - *
-     * An UTF-8 string.
-     * 
- * - * STRING = 2; - */ - STRING(2), - /** - * - * - *
-     * A boolean value.
-     * 
- * - * BOOL = 3; - */ - BOOL(3), - /** - * - * - *
-     * A timestamp.
-     * 
- * - * TIMESTAMP = 4; - */ - TIMESTAMP(4), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PrimitiveType"); - } - - /** - * - * - *
-     * This is the default invalid value for a type.
-     * 
- * - * PRIMITIVE_TYPE_UNSPECIFIED = 0; - */ - public static final int PRIMITIVE_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * A double precision number.
-     * 
- * - * DOUBLE = 1; - */ - public static final int DOUBLE_VALUE = 1; - - /** - * - * - *
-     * An UTF-8 string.
-     * 
- * - * STRING = 2; - */ - public static final int STRING_VALUE = 2; - - /** - * - * - *
-     * A boolean value.
-     * 
- * - * BOOL = 3; - */ - public static final int BOOL_VALUE = 3; - - /** - * - * - *
-     * A timestamp.
-     * 
- * - * TIMESTAMP = 4; - */ - public static final int TIMESTAMP_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 PrimitiveType 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 PrimitiveType forNumber(int value) { - switch (value) { - case 0: - return PRIMITIVE_TYPE_UNSPECIFIED; - case 1: - return DOUBLE; - case 2: - return STRING; - case 3: - return BOOL; - case 4: - return TIMESTAMP; - 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 PrimitiveType findValueByNumber(int number) { - return PrimitiveType.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.datacatalog.v1beta1.FieldType.getDescriptor().getEnumTypes().get(0); - } - - private static final PrimitiveType[] VALUES = values(); - - public static PrimitiveType 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 PrimitiveType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType) - } - - public interface EnumTypeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.FieldType.EnumType) - com.google.protobuf.MessageOrBuilder { - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - java.util.List - getAllowedValuesList(); - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue getAllowedValues(int index); - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - int getAllowedValuesCount(); - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - java.util.List< - ? extends com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValueOrBuilder> - getAllowedValuesOrBuilderList(); - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValueOrBuilder - getAllowedValuesOrBuilder(int index); - } - - /** Protobuf type {@code google.cloud.datacatalog.v1beta1.FieldType.EnumType} */ - public static final class EnumType extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.FieldType.EnumType) - EnumTypeOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EnumType"); - } - - // Use EnumType.newBuilder() to construct. - private EnumType(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private EnumType() { - allowedValues_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.class, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.Builder.class); - } - - public interface EnumValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-       * Required. The display name of the enum value. Must not be an empty
-       * string.
-       * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-       * Required. The display name of the enum value. Must not be an empty
-       * string.
-       * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - } - - /** Protobuf type {@code google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue} */ - public static final class EnumValue extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue) - EnumValueOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EnumValue"); - } - - // Use EnumValue.newBuilder() to construct. - private EnumValue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private EnumValue() { - displayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.class, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-       * Required. The display name of the enum value. Must not be an empty
-       * string.
-       * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-       * Required. The display name of the enum value. Must not be an empty
-       * string.
-       * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue other = - (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** Protobuf type {@code google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue} */ - public static final class Builder - extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue) - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.class, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder.class); - } - - // Construct using - // com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue build() { - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue buildPartial() { - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue result = - new com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue) { - return mergeFrom( - (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue other) { - if (other - == com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - .getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - 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: - { - displayName_ = 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 displayName_ = ""; - - /** - * - * - *
-         * Required. The display name of the enum value. Must not be an empty
-         * string.
-         * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-         * Required. The display name of the enum value. Must not be an empty
-         * string.
-         * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-         * Required. The display name of the enum value. Must not be an empty
-         * string.
-         * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-         * Required. The display name of the enum value. Must not be an empty
-         * string.
-         * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-         * Required. The display name of the enum value. Must not be an empty
-         * string.
-         * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue) - private static final com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue(); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public static final int ALLOWED_VALUES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List - allowedValues_; - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - @java.lang.Override - public java.util.List - getAllowedValuesList() { - return allowedValues_; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValueOrBuilder> - getAllowedValuesOrBuilderList() { - return allowedValues_; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - @java.lang.Override - public int getAllowedValuesCount() { - return allowedValues_.size(); - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue getAllowedValues( - int index) { - return allowedValues_.get(index); - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValueOrBuilder - getAllowedValuesOrBuilder(int index) { - return allowedValues_.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 < allowedValues_.size(); i++) { - output.writeMessage(1, allowedValues_.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 < allowedValues_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, allowedValues_.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.datacatalog.v1beta1.FieldType.EnumType)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType other = - (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) obj; - - if (!getAllowedValuesList().equals(other.getAllowedValuesList())) return false; - if (!getUnknownFields().equals(other.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 (getAllowedValuesCount() > 0) { - hash = (37 * hash) + ALLOWED_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getAllowedValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** Protobuf type {@code google.cloud.datacatalog.v1beta1.FieldType.EnumType} */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.FieldType.EnumType) - com.google.cloud.datacatalog.v1beta1.FieldType.EnumTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.class, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (allowedValuesBuilder_ == null) { - allowedValues_ = java.util.Collections.emptyList(); - } else { - allowedValues_ = null; - allowedValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType build() { - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType buildPartial() { - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType result = - new com.google.cloud.datacatalog.v1beta1.FieldType.EnumType(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType result) { - if (allowedValuesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - allowedValues_ = java.util.Collections.unmodifiableList(allowedValues_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.allowedValues_ = allowedValues_; - } else { - result.allowedValues_ = allowedValuesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.FieldType.EnumType result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.FieldType.EnumType other) { - if (other == com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.getDefaultInstance()) - return this; - if (allowedValuesBuilder_ == null) { - if (!other.allowedValues_.isEmpty()) { - if (allowedValues_.isEmpty()) { - allowedValues_ = other.allowedValues_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAllowedValuesIsMutable(); - allowedValues_.addAll(other.allowedValues_); - } - onChanged(); - } - } else { - if (!other.allowedValues_.isEmpty()) { - if (allowedValuesBuilder_.isEmpty()) { - allowedValuesBuilder_.dispose(); - allowedValuesBuilder_ = null; - allowedValues_ = other.allowedValues_; - bitField0_ = (bitField0_ & ~0x00000001); - allowedValuesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetAllowedValuesFieldBuilder() - : null; - } else { - allowedValuesBuilder_.addAllMessages(other.allowedValues_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1beta1.FieldType.EnumType.EnumValue m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - .parser(), - extensionRegistry); - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - allowedValues_.add(m); - } else { - allowedValuesBuilder_.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 - allowedValues_ = java.util.Collections.emptyList(); - - private void ensureAllowedValuesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - allowedValues_ = - new java.util.ArrayList< - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue>( - allowedValues_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValueOrBuilder> - allowedValuesBuilder_; - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public java.util.List - getAllowedValuesList() { - if (allowedValuesBuilder_ == null) { - return java.util.Collections.unmodifiableList(allowedValues_); - } else { - return allowedValuesBuilder_.getMessageList(); - } - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public int getAllowedValuesCount() { - if (allowedValuesBuilder_ == null) { - return allowedValues_.size(); - } else { - return allowedValuesBuilder_.getCount(); - } - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue getAllowedValues( - int index) { - if (allowedValuesBuilder_ == null) { - return allowedValues_.get(index); - } else { - return allowedValuesBuilder_.getMessage(index); - } - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder setAllowedValues( - int index, com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue value) { - if (allowedValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllowedValuesIsMutable(); - allowedValues_.set(index, value); - onChanged(); - } else { - allowedValuesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder setAllowedValues( - int index, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder - builderForValue) { - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - allowedValues_.set(index, builderForValue.build()); - onChanged(); - } else { - allowedValuesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder addAllowedValues( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue value) { - if (allowedValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllowedValuesIsMutable(); - allowedValues_.add(value); - onChanged(); - } else { - allowedValuesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder addAllowedValues( - int index, com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue value) { - if (allowedValuesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAllowedValuesIsMutable(); - allowedValues_.add(index, value); - onChanged(); - } else { - allowedValuesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder addAllowedValues( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder - builderForValue) { - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - allowedValues_.add(builderForValue.build()); - onChanged(); - } else { - allowedValuesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder addAllowedValues( - int index, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder - builderForValue) { - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - allowedValues_.add(index, builderForValue.build()); - onChanged(); - } else { - allowedValuesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder addAllAllowedValues( - java.lang.Iterable< - ? extends com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue> - values) { - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedValues_); - onChanged(); - } else { - allowedValuesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder clearAllowedValues() { - if (allowedValuesBuilder_ == null) { - allowedValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - allowedValuesBuilder_.clear(); - } - return this; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public Builder removeAllowedValues(int index) { - if (allowedValuesBuilder_ == null) { - ensureAllowedValuesIsMutable(); - allowedValues_.remove(index); - onChanged(); - } else { - allowedValuesBuilder_.remove(index); - } - return this; - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder - getAllowedValuesBuilder(int index) { - return internalGetAllowedValuesFieldBuilder().getBuilder(index); - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValueOrBuilder - getAllowedValuesOrBuilder(int index) { - if (allowedValuesBuilder_ == null) { - return allowedValues_.get(index); - } else { - return allowedValuesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public java.util.List< - ? extends com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValueOrBuilder> - getAllowedValuesOrBuilderList() { - if (allowedValuesBuilder_ != null) { - return allowedValuesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(allowedValues_); - } - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder - addAllowedValuesBuilder() { - return internalGetAllowedValuesFieldBuilder() - .addBuilder( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - .getDefaultInstance()); - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder - addAllowedValuesBuilder(int index) { - return internalGetAllowedValuesFieldBuilder() - .addBuilder( - index, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue - .getDefaultInstance()); - } - - /** - * - * repeated .google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue allowed_values = 1; - * - */ - public java.util.List< - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder> - getAllowedValuesBuilderList() { - return internalGetAllowedValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValueOrBuilder> - internalGetAllowedValuesFieldBuilder() { - if (allowedValuesBuilder_ == null) { - allowedValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue.Builder, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValueOrBuilder>( - allowedValues_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - allowedValues_ = null; - } - return allowedValuesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.FieldType.EnumType) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.FieldType.EnumType) - private static final com.google.cloud.datacatalog.v1beta1.FieldType.EnumType DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.FieldType.EnumType(); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType.EnumType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int typeDeclCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object typeDecl_; - - public enum TypeDeclCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - PRIMITIVE_TYPE(1), - ENUM_TYPE(2), - TYPEDECL_NOT_SET(0); - private final int value; - - private TypeDeclCase(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 TypeDeclCase valueOf(int value) { - return forNumber(value); - } - - public static TypeDeclCase forNumber(int value) { - switch (value) { - case 1: - return PRIMITIVE_TYPE; - case 2: - return ENUM_TYPE; - case 0: - return TYPEDECL_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TypeDeclCase getTypeDeclCase() { - return TypeDeclCase.forNumber(typeDeclCase_); - } - - public static final int PRIMITIVE_TYPE_FIELD_NUMBER = 1; - - /** - * - * - *
-   * Represents primitive types - string, bool etc.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @return Whether the primitiveType field is set. - */ - public boolean hasPrimitiveType() { - return typeDeclCase_ == 1; - } - - /** - * - * - *
-   * Represents primitive types - string, bool etc.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The enum numeric value on the wire for primitiveType. - */ - public int getPrimitiveTypeValue() { - if (typeDeclCase_ == 1) { - return (java.lang.Integer) typeDecl_; - } - return 0; - } - - /** - * - * - *
-   * Represents primitive types - string, bool etc.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The primitiveType. - */ - public com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType getPrimitiveType() { - if (typeDeclCase_ == 1) { - com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType result = - com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType.forNumber( - (java.lang.Integer) typeDecl_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType.PRIMITIVE_TYPE_UNSPECIFIED; - } - - public static final int ENUM_TYPE_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Represents an enum type.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - * - * @return Whether the enumType field is set. - */ - @java.lang.Override - public boolean hasEnumType() { - return typeDeclCase_ == 2; - } - - /** - * - * - *
-   * Represents an enum type.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - * - * @return The enumType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType getEnumType() { - if (typeDeclCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) typeDecl_; - } - return com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.getDefaultInstance(); - } - - /** - * - * - *
-   * Represents an enum type.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumTypeOrBuilder getEnumTypeOrBuilder() { - if (typeDeclCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) typeDecl_; - } - return com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.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 (typeDeclCase_ == 1) { - output.writeEnum(1, ((java.lang.Integer) typeDecl_)); - } - if (typeDeclCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) typeDecl_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (typeDeclCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeEnumSize(1, ((java.lang.Integer) typeDecl_)); - } - if (typeDeclCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) typeDecl_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.FieldType)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.FieldType other = - (com.google.cloud.datacatalog.v1beta1.FieldType) obj; - - if (!getTypeDeclCase().equals(other.getTypeDeclCase())) return false; - switch (typeDeclCase_) { - case 1: - if (getPrimitiveTypeValue() != other.getPrimitiveTypeValue()) return false; - break; - case 2: - if (!getEnumType().equals(other.getEnumType())) 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 (typeDeclCase_) { - case 1: - hash = (37 * hash) + PRIMITIVE_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getPrimitiveTypeValue(); - break; - case 2: - hash = (37 * hash) + ENUM_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getEnumType().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.FieldType prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** Protobuf type {@code google.cloud.datacatalog.v1beta1.FieldType} */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.FieldType) - com.google.cloud.datacatalog.v1beta1.FieldTypeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.FieldType.class, - com.google.cloud.datacatalog.v1beta1.FieldType.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.FieldType.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (enumTypeBuilder_ != null) { - enumTypeBuilder_.clear(); - } - typeDeclCase_ = 0; - typeDecl_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_FieldType_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.FieldType.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType build() { - com.google.cloud.datacatalog.v1beta1.FieldType result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType buildPartial() { - com.google.cloud.datacatalog.v1beta1.FieldType result = - new com.google.cloud.datacatalog.v1beta1.FieldType(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.FieldType result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1beta1.FieldType result) { - result.typeDeclCase_ = typeDeclCase_; - result.typeDecl_ = this.typeDecl_; - if (typeDeclCase_ == 2 && enumTypeBuilder_ != null) { - result.typeDecl_ = enumTypeBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.FieldType) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.FieldType) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.FieldType other) { - if (other == com.google.cloud.datacatalog.v1beta1.FieldType.getDefaultInstance()) return this; - switch (other.getTypeDeclCase()) { - case PRIMITIVE_TYPE: - { - setPrimitiveTypeValue(other.getPrimitiveTypeValue()); - break; - } - case ENUM_TYPE: - { - mergeEnumType(other.getEnumType()); - break; - } - case TYPEDECL_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: - { - int rawValue = input.readEnum(); - typeDeclCase_ = 1; - typeDecl_ = rawValue; - break; - } // case 8 - case 18: - { - input.readMessage( - internalGetEnumTypeFieldBuilder().getBuilder(), extensionRegistry); - typeDeclCase_ = 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 typeDeclCase_ = 0; - private java.lang.Object typeDecl_; - - public TypeDeclCase getTypeDeclCase() { - return TypeDeclCase.forNumber(typeDeclCase_); - } - - public Builder clearTypeDecl() { - typeDeclCase_ = 0; - typeDecl_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * Represents primitive types - string, bool etc.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @return Whether the primitiveType field is set. - */ - @java.lang.Override - public boolean hasPrimitiveType() { - return typeDeclCase_ == 1; - } - - /** - * - * - *
-     * Represents primitive types - string, bool etc.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The enum numeric value on the wire for primitiveType. - */ - @java.lang.Override - public int getPrimitiveTypeValue() { - if (typeDeclCase_ == 1) { - return ((java.lang.Integer) typeDecl_).intValue(); - } - return 0; - } - - /** - * - * - *
-     * Represents primitive types - string, bool etc.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @param value The enum numeric value on the wire for primitiveType to set. - * @return This builder for chaining. - */ - public Builder setPrimitiveTypeValue(int value) { - typeDeclCase_ = 1; - typeDecl_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Represents primitive types - string, bool etc.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The primitiveType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType getPrimitiveType() { - if (typeDeclCase_ == 1) { - com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType result = - com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType.forNumber( - (java.lang.Integer) typeDecl_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType.UNRECOGNIZED - : result; - } - return com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType - .PRIMITIVE_TYPE_UNSPECIFIED; - } - - /** - * - * - *
-     * Represents primitive types - string, bool etc.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @param value The primitiveType to set. - * @return This builder for chaining. - */ - public Builder setPrimitiveType( - com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType value) { - if (value == null) { - throw new NullPointerException(); - } - typeDeclCase_ = 1; - typeDecl_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Represents primitive types - string, bool etc.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearPrimitiveType() { - if (typeDeclCase_ == 1) { - typeDeclCase_ = 0; - typeDecl_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.Builder, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumTypeOrBuilder> - enumTypeBuilder_; - - /** - * - * - *
-     * Represents an enum type.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - * - * @return Whether the enumType field is set. - */ - @java.lang.Override - public boolean hasEnumType() { - return typeDeclCase_ == 2; - } - - /** - * - * - *
-     * Represents an enum type.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - * - * @return The enumType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType getEnumType() { - if (enumTypeBuilder_ == null) { - if (typeDeclCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) typeDecl_; - } - return com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.getDefaultInstance(); - } else { - if (typeDeclCase_ == 2) { - return enumTypeBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Represents an enum type.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - */ - public Builder setEnumType(com.google.cloud.datacatalog.v1beta1.FieldType.EnumType value) { - if (enumTypeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - typeDecl_ = value; - onChanged(); - } else { - enumTypeBuilder_.setMessage(value); - } - typeDeclCase_ = 2; - return this; - } - - /** - * - * - *
-     * Represents an enum type.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - */ - public Builder setEnumType( - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.Builder builderForValue) { - if (enumTypeBuilder_ == null) { - typeDecl_ = builderForValue.build(); - onChanged(); - } else { - enumTypeBuilder_.setMessage(builderForValue.build()); - } - typeDeclCase_ = 2; - return this; - } - - /** - * - * - *
-     * Represents an enum type.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - */ - public Builder mergeEnumType(com.google.cloud.datacatalog.v1beta1.FieldType.EnumType value) { - if (enumTypeBuilder_ == null) { - if (typeDeclCase_ == 2 - && typeDecl_ - != com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.getDefaultInstance()) { - typeDecl_ = - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.newBuilder( - (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) typeDecl_) - .mergeFrom(value) - .buildPartial(); - } else { - typeDecl_ = value; - } - onChanged(); - } else { - if (typeDeclCase_ == 2) { - enumTypeBuilder_.mergeFrom(value); - } else { - enumTypeBuilder_.setMessage(value); - } - } - typeDeclCase_ = 2; - return this; - } - - /** - * - * - *
-     * Represents an enum type.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - */ - public Builder clearEnumType() { - if (enumTypeBuilder_ == null) { - if (typeDeclCase_ == 2) { - typeDeclCase_ = 0; - typeDecl_ = null; - onChanged(); - } - } else { - if (typeDeclCase_ == 2) { - typeDeclCase_ = 0; - typeDecl_ = null; - } - enumTypeBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Represents an enum type.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - */ - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.Builder getEnumTypeBuilder() { - return internalGetEnumTypeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Represents an enum type.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType.EnumTypeOrBuilder getEnumTypeOrBuilder() { - if ((typeDeclCase_ == 2) && (enumTypeBuilder_ != null)) { - return enumTypeBuilder_.getMessageOrBuilder(); - } else { - if (typeDeclCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) typeDecl_; - } - return com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Represents an enum type.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.Builder, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumTypeOrBuilder> - internalGetEnumTypeFieldBuilder() { - if (enumTypeBuilder_ == null) { - if (!(typeDeclCase_ == 2)) { - typeDecl_ = com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.getDefaultInstance(); - } - enumTypeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType.Builder, - com.google.cloud.datacatalog.v1beta1.FieldType.EnumTypeOrBuilder>( - (com.google.cloud.datacatalog.v1beta1.FieldType.EnumType) typeDecl_, - getParentForChildren(), - isClean()); - typeDecl_ = null; - } - typeDeclCase_ = 2; - onChanged(); - return enumTypeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.FieldType) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.FieldType) - private static final com.google.cloud.datacatalog.v1beta1.FieldType DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.FieldType(); - } - - public static com.google.cloud.datacatalog.v1beta1.FieldType getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FieldType parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldTypeOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldTypeOrBuilder.java deleted file mode 100644 index c48cfca97b81..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldTypeOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface FieldTypeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.FieldType) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Represents primitive types - string, bool etc.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @return Whether the primitiveType field is set. - */ - boolean hasPrimitiveType(); - - /** - * - * - *
-   * Represents primitive types - string, bool etc.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The enum numeric value on the wire for primitiveType. - */ - int getPrimitiveTypeValue(); - - /** - * - * - *
-   * Represents primitive types - string, bool etc.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType primitive_type = 1; - * - * @return The primitiveType. - */ - com.google.cloud.datacatalog.v1beta1.FieldType.PrimitiveType getPrimitiveType(); - - /** - * - * - *
-   * Represents an enum type.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - * - * @return Whether the enumType field is set. - */ - boolean hasEnumType(); - - /** - * - * - *
-   * Represents an enum type.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - * - * @return The enumType. - */ - com.google.cloud.datacatalog.v1beta1.FieldType.EnumType getEnumType(); - - /** - * - * - *
-   * Represents an enum type.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.FieldType.EnumType enum_type = 2; - */ - com.google.cloud.datacatalog.v1beta1.FieldType.EnumTypeOrBuilder getEnumTypeOrBuilder(); - - com.google.cloud.datacatalog.v1beta1.FieldType.TypeDeclCase getTypeDeclCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpec.java deleted file mode 100644 index a6501eb97e55..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpec.java +++ /dev/null @@ -1,1014 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Specifications of a single file in Cloud Storage.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GcsFileSpec} - */ -@com.google.protobuf.Generated -public final class GcsFileSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GcsFileSpec) - GcsFileSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GcsFileSpec"); - } - - // Use GcsFileSpec.newBuilder() to construct. - private GcsFileSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GcsFileSpec() { - filePath_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GcsFileSpec.class, - com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder.class); - } - - private int bitField0_; - public static final int FILE_PATH_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object filePath_ = ""; - - /** - * - * - *
-   * Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
-   * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filePath. - */ - @java.lang.Override - public java.lang.String getFilePath() { - java.lang.Object ref = filePath_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filePath_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
-   * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filePath. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilePathBytes() { - java.lang.Object ref = filePath_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filePath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int GCS_TIMESTAMPS_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1beta1.SystemTimestamps gcsTimestamps_; - - /** - * - * - *
-   * Output only. Timestamps about the Cloud Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the gcsTimestamps field is set. - */ - @java.lang.Override - public boolean hasGcsTimestamps() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Output only. Timestamps about the Cloud Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The gcsTimestamps. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getGcsTimestamps() { - return gcsTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : gcsTimestamps_; - } - - /** - * - * - *
-   * Output only. Timestamps about the Cloud Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder - getGcsTimestampsOrBuilder() { - return gcsTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : gcsTimestamps_; - } - - public static final int SIZE_BYTES_FIELD_NUMBER = 4; - private long sizeBytes_ = 0L; - - /** - * - * - *
-   * Output only. The size of the file, in bytes.
-   * 
- * - * int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sizeBytes. - */ - @java.lang.Override - public long getSizeBytes() { - return sizeBytes_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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(filePath_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, filePath_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getGcsTimestamps()); - } - if (sizeBytes_ != 0L) { - output.writeInt64(4, sizeBytes_); - } - 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(filePath_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, filePath_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getGcsTimestamps()); - } - if (sizeBytes_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, sizeBytes_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.GcsFileSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.GcsFileSpec other = - (com.google.cloud.datacatalog.v1beta1.GcsFileSpec) obj; - - if (!getFilePath().equals(other.getFilePath())) return false; - if (hasGcsTimestamps() != other.hasGcsTimestamps()) return false; - if (hasGcsTimestamps()) { - if (!getGcsTimestamps().equals(other.getGcsTimestamps())) return false; - } - if (getSizeBytes() != other.getSizeBytes()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FILE_PATH_FIELD_NUMBER; - hash = (53 * hash) + getFilePath().hashCode(); - if (hasGcsTimestamps()) { - hash = (37 * hash) + GCS_TIMESTAMPS_FIELD_NUMBER; - hash = (53 * hash) + getGcsTimestamps().hashCode(); - } - hash = (37 * hash) + SIZE_BYTES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSizeBytes()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.GcsFileSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 of a single file in Cloud Storage.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GcsFileSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.GcsFileSpec) - com.google.cloud.datacatalog.v1beta1.GcsFileSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GcsFileSpec.class, - com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.GcsFileSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetGcsTimestampsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filePath_ = ""; - gcsTimestamps_ = null; - if (gcsTimestampsBuilder_ != null) { - gcsTimestampsBuilder_.dispose(); - gcsTimestampsBuilder_ = null; - } - sizeBytes_ = 0L; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFileSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.GcsFileSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFileSpec build() { - com.google.cloud.datacatalog.v1beta1.GcsFileSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFileSpec buildPartial() { - com.google.cloud.datacatalog.v1beta1.GcsFileSpec result = - new com.google.cloud.datacatalog.v1beta1.GcsFileSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.GcsFileSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.filePath_ = filePath_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.gcsTimestamps_ = - gcsTimestampsBuilder_ == null ? gcsTimestamps_ : gcsTimestampsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.sizeBytes_ = sizeBytes_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.GcsFileSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.GcsFileSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.GcsFileSpec other) { - if (other == com.google.cloud.datacatalog.v1beta1.GcsFileSpec.getDefaultInstance()) - return this; - if (!other.getFilePath().isEmpty()) { - filePath_ = other.filePath_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasGcsTimestamps()) { - mergeGcsTimestamps(other.getGcsTimestamps()); - } - if (other.getSizeBytes() != 0L) { - setSizeBytes(other.getSizeBytes()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - filePath_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetGcsTimestampsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 32: - { - sizeBytes_ = input.readInt64(); - 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 filePath_ = ""; - - /** - * - * - *
-     * Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
-     * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filePath. - */ - public java.lang.String getFilePath() { - java.lang.Object ref = filePath_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filePath_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
-     * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filePath. - */ - public com.google.protobuf.ByteString getFilePathBytes() { - java.lang.Object ref = filePath_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filePath_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
-     * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The filePath to set. - * @return This builder for chaining. - */ - public Builder setFilePath(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - filePath_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
-     * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearFilePath() { - filePath_ = getDefaultInstance().getFilePath(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
-     * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for filePath to set. - * @return This builder for chaining. - */ - public Builder setFilePathBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - filePath_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.SystemTimestamps gcsTimestamps_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - gcsTimestampsBuilder_; - - /** - * - * - *
-     * Output only. Timestamps about the Cloud Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the gcsTimestamps field is set. - */ - public boolean hasGcsTimestamps() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Output only. Timestamps about the Cloud Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The gcsTimestamps. - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getGcsTimestamps() { - if (gcsTimestampsBuilder_ == null) { - return gcsTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : gcsTimestamps_; - } else { - return gcsTimestampsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Timestamps about the Cloud Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setGcsTimestamps(com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) { - if (gcsTimestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - gcsTimestamps_ = value; - } else { - gcsTimestampsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about the Cloud Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setGcsTimestamps( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder builderForValue) { - if (gcsTimestampsBuilder_ == null) { - gcsTimestamps_ = builderForValue.build(); - } else { - gcsTimestampsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about the Cloud Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeGcsTimestamps(com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) { - if (gcsTimestampsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && gcsTimestamps_ != null - && gcsTimestamps_ - != com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()) { - getGcsTimestampsBuilder().mergeFrom(value); - } else { - gcsTimestamps_ = value; - } - } else { - gcsTimestampsBuilder_.mergeFrom(value); - } - if (gcsTimestamps_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about the Cloud Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearGcsTimestamps() { - bitField0_ = (bitField0_ & ~0x00000002); - gcsTimestamps_ = null; - if (gcsTimestampsBuilder_ != null) { - gcsTimestampsBuilder_.dispose(); - gcsTimestampsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about the Cloud Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder getGcsTimestampsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetGcsTimestampsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Timestamps about the Cloud Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder - getGcsTimestampsOrBuilder() { - if (gcsTimestampsBuilder_ != null) { - return gcsTimestampsBuilder_.getMessageOrBuilder(); - } else { - return gcsTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : gcsTimestamps_; - } - } - - /** - * - * - *
-     * Output only. Timestamps about the Cloud Storage file.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - internalGetGcsTimestampsFieldBuilder() { - if (gcsTimestampsBuilder_ == null) { - gcsTimestampsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder>( - getGcsTimestamps(), getParentForChildren(), isClean()); - gcsTimestamps_ = null; - } - return gcsTimestampsBuilder_; - } - - private long sizeBytes_; - - /** - * - * - *
-     * Output only. The size of the file, in bytes.
-     * 
- * - * int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sizeBytes. - */ - @java.lang.Override - public long getSizeBytes() { - return sizeBytes_; - } - - /** - * - * - *
-     * Output only. The size of the file, in bytes.
-     * 
- * - * int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The sizeBytes to set. - * @return This builder for chaining. - */ - public Builder setSizeBytes(long value) { - - sizeBytes_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The size of the file, in bytes.
-     * 
- * - * int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearSizeBytes() { - bitField0_ = (bitField0_ & ~0x00000004); - sizeBytes_ = 0L; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.GcsFileSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.GcsFileSpec) - private static final com.google.cloud.datacatalog.v1beta1.GcsFileSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.GcsFileSpec(); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFileSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsFileSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFileSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpecOrBuilder.java deleted file mode 100644 index cfdc8eff7c54..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFileSpecOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface GcsFileSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.GcsFileSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
-   * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The filePath. - */ - java.lang.String getFilePath(); - - /** - * - * - *
-   * Required. The full file path. Example: `gs://bucket_name/a/b.txt`.
-   * 
- * - * string file_path = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for filePath. - */ - com.google.protobuf.ByteString getFilePathBytes(); - - /** - * - * - *
-   * Output only. Timestamps about the Cloud Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the gcsTimestamps field is set. - */ - boolean hasGcsTimestamps(); - - /** - * - * - *
-   * Output only. Timestamps about the Cloud Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The gcsTimestamps. - */ - com.google.cloud.datacatalog.v1beta1.SystemTimestamps getGcsTimestamps(); - - /** - * - * - *
-   * Output only. Timestamps about the Cloud Storage file.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps gcs_timestamps = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder getGcsTimestampsOrBuilder(); - - /** - * - * - *
-   * Output only. The size of the file, in bytes.
-   * 
- * - * int64 size_bytes = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The sizeBytes. - */ - long getSizeBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java deleted file mode 100644 index 7363687ea645..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpec.java +++ /dev/null @@ -1,1648 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Describes a Cloud Storage fileset entry.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GcsFilesetSpec} - */ -@com.google.protobuf.Generated -public final class GcsFilesetSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GcsFilesetSpec) - GcsFilesetSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GcsFilesetSpec"); - } - - // Use GcsFilesetSpec.newBuilder() to construct. - private GcsFilesetSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GcsFilesetSpec() { - filePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - sampleGcsFileSpecs_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.class, - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder.class); - } - - public static final int FILE_PATTERNS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList filePatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   * See [Cloud Storage
-   * documentation](https://cloud.google.com/storage/docs/wildcards)
-   * for more information. Note that bucket wildcards are currently not
-   * supported.
-   *
-   * Examples of valid file_patterns:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-   * directory.
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * spanning all subdirectories.
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to provide more powerful matches, for example:
-   *
-   * * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the filePatterns. - */ - public com.google.protobuf.ProtocolStringList getFilePatternsList() { - return filePatterns_; - } - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   * See [Cloud Storage
-   * documentation](https://cloud.google.com/storage/docs/wildcards)
-   * for more information. Note that bucket wildcards are currently not
-   * supported.
-   *
-   * Examples of valid file_patterns:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-   * directory.
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * spanning all subdirectories.
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to provide more powerful matches, for example:
-   *
-   * * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of filePatterns. - */ - public int getFilePatternsCount() { - return filePatterns_.size(); - } - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   * See [Cloud Storage
-   * documentation](https://cloud.google.com/storage/docs/wildcards)
-   * for more information. Note that bucket wildcards are currently not
-   * supported.
-   *
-   * Examples of valid file_patterns:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-   * directory.
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * spanning all subdirectories.
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to provide more powerful matches, for example:
-   *
-   * * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The filePatterns at the given index. - */ - public java.lang.String getFilePatterns(int index) { - return filePatterns_.get(index); - } - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   * See [Cloud Storage
-   * documentation](https://cloud.google.com/storage/docs/wildcards)
-   * for more information. Note that bucket wildcards are currently not
-   * supported.
-   *
-   * Examples of valid file_patterns:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-   * directory.
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * spanning all subdirectories.
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to provide more powerful matches, for example:
-   *
-   * * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the filePatterns at the given index. - */ - public com.google.protobuf.ByteString getFilePatternsBytes(int index) { - return filePatterns_.getByteString(index); - } - - public static final int SAMPLE_GCS_FILE_SPECS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List sampleGcsFileSpecs_; - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getSampleGcsFileSpecsList() { - return sampleGcsFileSpecs_; - } - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public java.util.List - getSampleGcsFileSpecsOrBuilderList() { - return sampleGcsFileSpecs_; - } - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public int getSampleGcsFileSpecsCount() { - return sampleGcsFileSpecs_.size(); - } - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFileSpec getSampleGcsFileSpecs(int index) { - return sampleGcsFileSpecs_.get(index); - } - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFileSpecOrBuilder getSampleGcsFileSpecsOrBuilder( - int index) { - return sampleGcsFileSpecs_.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 < filePatterns_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, filePatterns_.getRaw(i)); - } - for (int i = 0; i < sampleGcsFileSpecs_.size(); i++) { - output.writeMessage(2, sampleGcsFileSpecs_.get(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 < filePatterns_.size(); i++) { - dataSize += computeStringSizeNoTag(filePatterns_.getRaw(i)); - } - size += dataSize; - size += 1 * getFilePatternsList().size(); - } - for (int i = 0; i < sampleGcsFileSpecs_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, sampleGcsFileSpecs_.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.datacatalog.v1beta1.GcsFilesetSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec other = - (com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) obj; - - if (!getFilePatternsList().equals(other.getFilePatternsList())) return false; - if (!getSampleGcsFileSpecsList().equals(other.getSampleGcsFileSpecsList())) return false; - if (!getUnknownFields().equals(other.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 (getFilePatternsCount() > 0) { - hash = (37 * hash) + FILE_PATTERNS_FIELD_NUMBER; - hash = (53 * hash) + getFilePatternsList().hashCode(); - } - if (getSampleGcsFileSpecsCount() > 0) { - hash = (37 * hash) + SAMPLE_GCS_FILE_SPECS_FIELD_NUMBER; - hash = (53 * hash) + getSampleGcsFileSpecsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Describes a Cloud Storage fileset entry.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GcsFilesetSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.GcsFilesetSpec) - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.class, - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - filePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (sampleGcsFileSpecsBuilder_ == null) { - sampleGcsFileSpecs_ = java.util.Collections.emptyList(); - } else { - sampleGcsFileSpecs_ = null; - sampleGcsFileSpecsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec build() { - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec buildPartial() { - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec result = - new com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec result) { - if (sampleGcsFileSpecsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - sampleGcsFileSpecs_ = java.util.Collections.unmodifiableList(sampleGcsFileSpecs_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.sampleGcsFileSpecs_ = sampleGcsFileSpecs_; - } else { - result.sampleGcsFileSpecs_ = sampleGcsFileSpecsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - filePatterns_.makeImmutable(); - result.filePatterns_ = filePatterns_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec other) { - if (other == com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec.getDefaultInstance()) - return this; - if (!other.filePatterns_.isEmpty()) { - if (filePatterns_.isEmpty()) { - filePatterns_ = other.filePatterns_; - bitField0_ |= 0x00000001; - } else { - ensureFilePatternsIsMutable(); - filePatterns_.addAll(other.filePatterns_); - } - onChanged(); - } - if (sampleGcsFileSpecsBuilder_ == null) { - if (!other.sampleGcsFileSpecs_.isEmpty()) { - if (sampleGcsFileSpecs_.isEmpty()) { - sampleGcsFileSpecs_ = other.sampleGcsFileSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.addAll(other.sampleGcsFileSpecs_); - } - onChanged(); - } - } else { - if (!other.sampleGcsFileSpecs_.isEmpty()) { - if (sampleGcsFileSpecsBuilder_.isEmpty()) { - sampleGcsFileSpecsBuilder_.dispose(); - sampleGcsFileSpecsBuilder_ = null; - sampleGcsFileSpecs_ = other.sampleGcsFileSpecs_; - bitField0_ = (bitField0_ & ~0x00000002); - sampleGcsFileSpecsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSampleGcsFileSpecsFieldBuilder() - : null; - } else { - sampleGcsFileSpecsBuilder_.addAllMessages(other.sampleGcsFileSpecs_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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(); - ensureFilePatternsIsMutable(); - filePatterns_.add(s); - break; - } // case 10 - case 18: - { - com.google.cloud.datacatalog.v1beta1.GcsFileSpec m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.GcsFileSpec.parser(), - extensionRegistry); - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.add(m); - } else { - sampleGcsFileSpecsBuilder_.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.protobuf.LazyStringArrayList filePatterns_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureFilePatternsIsMutable() { - if (!filePatterns_.isModifiable()) { - filePatterns_ = new com.google.protobuf.LazyStringArrayList(filePatterns_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     * See [Cloud Storage
-     * documentation](https://cloud.google.com/storage/docs/wildcards)
-     * for more information. Note that bucket wildcards are currently not
-     * supported.
-     *
-     * Examples of valid file_patterns:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-     * directory.
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * spanning all subdirectories.
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to provide more powerful matches, for example:
-     *
-     * * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the filePatterns. - */ - public com.google.protobuf.ProtocolStringList getFilePatternsList() { - filePatterns_.makeImmutable(); - return filePatterns_; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     * See [Cloud Storage
-     * documentation](https://cloud.google.com/storage/docs/wildcards)
-     * for more information. Note that bucket wildcards are currently not
-     * supported.
-     *
-     * Examples of valid file_patterns:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-     * directory.
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * spanning all subdirectories.
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to provide more powerful matches, for example:
-     *
-     * * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of filePatterns. - */ - public int getFilePatternsCount() { - return filePatterns_.size(); - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     * See [Cloud Storage
-     * documentation](https://cloud.google.com/storage/docs/wildcards)
-     * for more information. Note that bucket wildcards are currently not
-     * supported.
-     *
-     * Examples of valid file_patterns:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-     * directory.
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * spanning all subdirectories.
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to provide more powerful matches, for example:
-     *
-     * * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The filePatterns at the given index. - */ - public java.lang.String getFilePatterns(int index) { - return filePatterns_.get(index); - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     * See [Cloud Storage
-     * documentation](https://cloud.google.com/storage/docs/wildcards)
-     * for more information. Note that bucket wildcards are currently not
-     * supported.
-     *
-     * Examples of valid file_patterns:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-     * directory.
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * spanning all subdirectories.
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to provide more powerful matches, for example:
-     *
-     * * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the filePatterns at the given index. - */ - public com.google.protobuf.ByteString getFilePatternsBytes(int index) { - return filePatterns_.getByteString(index); - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     * See [Cloud Storage
-     * documentation](https://cloud.google.com/storage/docs/wildcards)
-     * for more information. Note that bucket wildcards are currently not
-     * supported.
-     *
-     * Examples of valid file_patterns:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-     * directory.
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * spanning all subdirectories.
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to provide more powerful matches, for example:
-     *
-     * * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index to set the value at. - * @param value The filePatterns to set. - * @return This builder for chaining. - */ - public Builder setFilePatterns(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilePatternsIsMutable(); - filePatterns_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     * See [Cloud Storage
-     * documentation](https://cloud.google.com/storage/docs/wildcards)
-     * for more information. Note that bucket wildcards are currently not
-     * supported.
-     *
-     * Examples of valid file_patterns:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-     * directory.
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * spanning all subdirectories.
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to provide more powerful matches, for example:
-     *
-     * * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The filePatterns to add. - * @return This builder for chaining. - */ - public Builder addFilePatterns(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureFilePatternsIsMutable(); - filePatterns_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     * See [Cloud Storage
-     * documentation](https://cloud.google.com/storage/docs/wildcards)
-     * for more information. Note that bucket wildcards are currently not
-     * supported.
-     *
-     * Examples of valid file_patterns:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-     * directory.
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * spanning all subdirectories.
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to provide more powerful matches, for example:
-     *
-     * * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param values The filePatterns to add. - * @return This builder for chaining. - */ - public Builder addAllFilePatterns(java.lang.Iterable values) { - ensureFilePatternsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filePatterns_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     * See [Cloud Storage
-     * documentation](https://cloud.google.com/storage/docs/wildcards)
-     * for more information. Note that bucket wildcards are currently not
-     * supported.
-     *
-     * Examples of valid file_patterns:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-     * directory.
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * spanning all subdirectories.
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to provide more powerful matches, for example:
-     *
-     * * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearFilePatterns() { - filePatterns_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Patterns to identify a set of files in Google Cloud Storage.
-     * See [Cloud Storage
-     * documentation](https://cloud.google.com/storage/docs/wildcards)
-     * for more information. Note that bucket wildcards are currently not
-     * supported.
-     *
-     * Examples of valid file_patterns:
-     *
-     * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-     * directory.
-     * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-     * spanning all subdirectories.
-     * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-     * `bucket_name`
-     * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-     * `.txt` in `bucket_name`
-     * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-     * vowel character followed by `.txt` in
-     * `bucket_name`
-     * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-     * or `m` followed by `.txt` in `bucket_name`
-     * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-     * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-     * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-     *
-     * You can combine wildcards to provide more powerful matches, for example:
-     *
-     * * `gs://bucket_name/[a-m]??.j*g`
-     * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes of the filePatterns to add. - * @return This builder for chaining. - */ - public Builder addFilePatternsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureFilePatternsIsMutable(); - filePatterns_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.util.List sampleGcsFileSpecs_ = - java.util.Collections.emptyList(); - - private void ensureSampleGcsFileSpecsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - sampleGcsFileSpecs_ = - new java.util.ArrayList( - sampleGcsFileSpecs_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.GcsFileSpec, - com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder, - com.google.cloud.datacatalog.v1beta1.GcsFileSpecOrBuilder> - sampleGcsFileSpecsBuilder_; - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getSampleGcsFileSpecsList() { - if (sampleGcsFileSpecsBuilder_ == null) { - return java.util.Collections.unmodifiableList(sampleGcsFileSpecs_); - } else { - return sampleGcsFileSpecsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public int getSampleGcsFileSpecsCount() { - if (sampleGcsFileSpecsBuilder_ == null) { - return sampleGcsFileSpecs_.size(); - } else { - return sampleGcsFileSpecsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.GcsFileSpec getSampleGcsFileSpecs(int index) { - if (sampleGcsFileSpecsBuilder_ == null) { - return sampleGcsFileSpecs_.get(index); - } else { - return sampleGcsFileSpecsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setSampleGcsFileSpecs( - int index, com.google.cloud.datacatalog.v1beta1.GcsFileSpec value) { - if (sampleGcsFileSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.set(index, value); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setSampleGcsFileSpecs( - int index, com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder builderForValue) { - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.set(index, builderForValue.build()); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addSampleGcsFileSpecs(com.google.cloud.datacatalog.v1beta1.GcsFileSpec value) { - if (sampleGcsFileSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.add(value); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addSampleGcsFileSpecs( - int index, com.google.cloud.datacatalog.v1beta1.GcsFileSpec value) { - if (sampleGcsFileSpecsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.add(index, value); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addSampleGcsFileSpecs( - com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder builderForValue) { - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.add(builderForValue.build()); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addSampleGcsFileSpecs( - int index, com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder builderForValue) { - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.add(index, builderForValue.build()); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder addAllSampleGcsFileSpecs( - java.lang.Iterable values) { - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sampleGcsFileSpecs_); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearSampleGcsFileSpecs() { - if (sampleGcsFileSpecsBuilder_ == null) { - sampleGcsFileSpecs_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder removeSampleGcsFileSpecs(int index) { - if (sampleGcsFileSpecsBuilder_ == null) { - ensureSampleGcsFileSpecsIsMutable(); - sampleGcsFileSpecs_.remove(index); - onChanged(); - } else { - sampleGcsFileSpecsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder getSampleGcsFileSpecsBuilder( - int index) { - return internalGetSampleGcsFileSpecsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.GcsFileSpecOrBuilder getSampleGcsFileSpecsOrBuilder( - int index) { - if (sampleGcsFileSpecsBuilder_ == null) { - return sampleGcsFileSpecs_.get(index); - } else { - return sampleGcsFileSpecsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getSampleGcsFileSpecsOrBuilderList() { - if (sampleGcsFileSpecsBuilder_ != null) { - return sampleGcsFileSpecsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(sampleGcsFileSpecs_); - } - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder addSampleGcsFileSpecsBuilder() { - return internalGetSampleGcsFileSpecsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.GcsFileSpec.getDefaultInstance()); - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder addSampleGcsFileSpecsBuilder( - int index) { - return internalGetSampleGcsFileSpecsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1beta1.GcsFileSpec.getDefaultInstance()); - } - - /** - * - * - *
-     * Output only. Sample files contained in this fileset, not all files
-     * contained in this fileset are represented here.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public java.util.List - getSampleGcsFileSpecsBuilderList() { - return internalGetSampleGcsFileSpecsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.GcsFileSpec, - com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder, - com.google.cloud.datacatalog.v1beta1.GcsFileSpecOrBuilder> - internalGetSampleGcsFileSpecsFieldBuilder() { - if (sampleGcsFileSpecsBuilder_ == null) { - sampleGcsFileSpecsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.GcsFileSpec, - com.google.cloud.datacatalog.v1beta1.GcsFileSpec.Builder, - com.google.cloud.datacatalog.v1beta1.GcsFileSpecOrBuilder>( - sampleGcsFileSpecs_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - sampleGcsFileSpecs_ = null; - } - return sampleGcsFileSpecsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.GcsFilesetSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.GcsFilesetSpec) - private static final com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec(); - } - - public static com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GcsFilesetSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GcsFilesetSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOrBuilder.java deleted file mode 100644 index 46b872c59a3f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOrBuilder.java +++ /dev/null @@ -1,262 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface GcsFilesetSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.GcsFilesetSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   * See [Cloud Storage
-   * documentation](https://cloud.google.com/storage/docs/wildcards)
-   * for more information. Note that bucket wildcards are currently not
-   * supported.
-   *
-   * Examples of valid file_patterns:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-   * directory.
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * spanning all subdirectories.
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to provide more powerful matches, for example:
-   *
-   * * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return A list containing the filePatterns. - */ - java.util.List getFilePatternsList(); - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   * See [Cloud Storage
-   * documentation](https://cloud.google.com/storage/docs/wildcards)
-   * for more information. Note that bucket wildcards are currently not
-   * supported.
-   *
-   * Examples of valid file_patterns:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-   * directory.
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * spanning all subdirectories.
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to provide more powerful matches, for example:
-   *
-   * * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The count of filePatterns. - */ - int getFilePatternsCount(); - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   * See [Cloud Storage
-   * documentation](https://cloud.google.com/storage/docs/wildcards)
-   * for more information. Note that bucket wildcards are currently not
-   * supported.
-   *
-   * Examples of valid file_patterns:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-   * directory.
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * spanning all subdirectories.
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to provide more powerful matches, for example:
-   *
-   * * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the element to return. - * @return The filePatterns at the given index. - */ - java.lang.String getFilePatterns(int index); - - /** - * - * - *
-   * Required. Patterns to identify a set of files in Google Cloud Storage.
-   * See [Cloud Storage
-   * documentation](https://cloud.google.com/storage/docs/wildcards)
-   * for more information. Note that bucket wildcards are currently not
-   * supported.
-   *
-   * Examples of valid file_patterns:
-   *
-   * * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir`
-   * directory.
-   * * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir`
-   * spanning all subdirectories.
-   * * `gs://bucket_name/file*`: matches files prefixed by `file` in
-   * `bucket_name`
-   * * `gs://bucket_name/??.txt`: matches files with two characters followed by
-   * `.txt` in `bucket_name`
-   * * `gs://bucket_name/[aeiou].txt`: matches files that contain a single
-   * vowel character followed by `.txt` in
-   * `bucket_name`
-   * * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ...
-   * or `m` followed by `.txt` in `bucket_name`
-   * * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match
-   * `a/*/b` pattern, such as `a/c/b`, `a/d/b`
-   * * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt`
-   *
-   * You can combine wildcards to provide more powerful matches, for example:
-   *
-   * * `gs://bucket_name/[a-m]??.j*g`
-   * 
- * - * repeated string file_patterns = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param index The index of the value to return. - * @return The bytes of the filePatterns at the given index. - */ - com.google.protobuf.ByteString getFilePatternsBytes(int index); - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List getSampleGcsFileSpecsList(); - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1beta1.GcsFileSpec getSampleGcsFileSpecs(int index); - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - int getSampleGcsFileSpecsCount(); - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - java.util.List - getSampleGcsFileSpecsOrBuilderList(); - - /** - * - * - *
-   * Output only. Sample files contained in this fileset, not all files
-   * contained in this fileset are represented here.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.GcsFileSpec sample_gcs_file_specs = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1beta1.GcsFileSpecOrBuilder getSampleGcsFileSpecsOrBuilder( - int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOuterClass.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOuterClass.java deleted file mode 100644 index 6f2531bddbb3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GcsFilesetSpecOuterClass.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public final class GcsFilesetSpecOuterClass extends com.google.protobuf.GeneratedFile { - private GcsFilesetSpecOuterClass() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GcsFilesetSpecOuterClass"); - } - - 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_datacatalog_v1beta1_GcsFilesetSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n7google/cloud/datacatalog/v1beta1/gcs_f" - + "ileset_spec.proto\022 google.cloud.datacata" - + "log.v1beta1\032\037google/api/field_behavior.p" - + "roto\0321google/cloud/datacatalog/v1beta1/t" - + "imestamps.proto\"\177\n\016GcsFilesetSpec\022\032\n\rfil" - + "e_patterns\030\001 \003(\tB\003\340A\002\022Q\n\025sample_gcs_file" - + "_specs\030\002 \003(\0132-.google.cloud.datacatalog." - + "v1beta1.GcsFileSpecB\003\340A\003\"\217\001\n\013GcsFileSpec" - + "\022\026\n\tfile_path\030\001 \001(\tB\003\340A\002\022O\n\016gcs_timestam" - + "ps\030\002 \001(\01322.google.cloud.datacatalog.v1be" - + "ta1.SystemTimestampsB\003\340A\003\022\027\n\nsize_bytes\030" - + "\004 \001(\003B\003\340A\003B\334\001\n$com.google.cloud.datacata" - + "log.v1beta1P\001ZFcloud.google.com/go/datac" - + "atalog/apiv1beta1/datacatalogpb;datacata" - + "logpb\252\002 Google.Cloud.DataCatalog.V1Beta1" - + "\312\002 Google\\Cloud\\DataCatalog\\V1beta1\352\002#Go" - + "ogle::Cloud::DataCatalog::V1beta1b\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.Timestamps.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_GcsFilesetSpec_descriptor, - new java.lang.String[] { - "FilePatterns", "SampleGcsFileSpecs", - }); - internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_GcsFileSpec_descriptor, - new java.lang.String[] { - "FilePath", "GcsTimestamps", "SizeBytes", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.Timestamps.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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java deleted file mode 100644 index 7a8d1f984de5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequest.java +++ /dev/null @@ -1,904 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [GetEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.GetEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetEntryGroupRequest} - */ -@com.google.protobuf.Generated -public final class GetEntryGroupRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetEntryGroupRequest) - GetEntryGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GetEntryGroupRequest"); - } - - // Use GetEntryGroupRequest.newBuilder() to construct. - private GetEntryGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GetEntryGroupRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest.class, - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest.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 entry group. For example,
-   * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the entry group. For example,
-   * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int READ_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask readMask_; - - /** - * - * - *
-   * The fields to return. If not set or empty, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return Whether the readMask field is set. - */ - @java.lang.Override - public boolean hasReadMask() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The fields to return. If not set or empty, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return The readMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getReadMask() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - - /** - * - * - *
-   * The fields to return. If not set or empty, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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, getReadMask()); - } - 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, getReadMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest other = - (com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasReadMask() != other.hasReadMask()) return false; - if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 (hasReadMask()) { - hash = (37 * hash) + READ_MASK_FIELD_NUMBER; - hash = (53 * hash) + getReadMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [GetEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.GetEntryGroup].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetEntryGroupRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.GetEntryGroupRequest) - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest.class, - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetReadMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - readMask_ = null; - if (readMaskBuilder_ != null) { - readMaskBuilder_.dispose(); - readMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetEntryGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest build() { - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest result = - new com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.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.datacatalog.v1beta1.GetEntryGroupRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasReadMask()) { - mergeReadMask(other.getReadMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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( - internalGetReadMaskFieldBuilder().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 entry group. For example,
-     * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group. For example,
-     * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry group. For example,
-     * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group. For example,
-     * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry group. For example,
-     * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.FieldMask readMask_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; - - /** - * - * - *
-     * The fields to return. If not set or empty, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return Whether the readMask field is set. - */ - public boolean hasReadMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * The fields to return. If not set or empty, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return The readMask. - */ - public com.google.protobuf.FieldMask getReadMask() { - if (readMaskBuilder_ == null) { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } else { - return readMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The fields to return. If not set or empty, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public Builder setReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - readMask_ = value; - } else { - readMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return. If not set or empty, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (readMaskBuilder_ == null) { - readMask_ = builderForValue.build(); - } else { - readMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return. If not set or empty, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public Builder mergeReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && readMask_ != null - && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getReadMaskBuilder().mergeFrom(value); - } else { - readMask_ = value; - } - } else { - readMaskBuilder_.mergeFrom(value); - } - if (readMask_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The fields to return. If not set or empty, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public Builder clearReadMask() { - bitField0_ = (bitField0_ & ~0x00000002); - readMask_ = null; - if (readMaskBuilder_ != null) { - readMaskBuilder_.dispose(); - readMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return. If not set or empty, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetReadMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The fields to return. If not set or empty, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - if (readMaskBuilder_ != null) { - return readMaskBuilder_.getMessageOrBuilder(); - } else { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - } - - /** - * - * - *
-     * The fields to return. If not set or empty, all fields are returned.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - internalGetReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), getParentForChildren(), isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.GetEntryGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.GetEntryGroupRequest) - private static final com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEntryGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequestOrBuilder.java deleted file mode 100644 index 639ac6cdc838..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface GetEntryGroupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.GetEntryGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry group. For example,
-   * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the entry group. For example,
-   * `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The fields to return. If not set or empty, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return Whether the readMask field is set. - */ - boolean hasReadMask(); - - /** - * - * - *
-   * The fields to return. If not set or empty, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - * - * @return The readMask. - */ - com.google.protobuf.FieldMask getReadMask(); - - /** - * - * - *
-   * The fields to return. If not set or empty, all fields are returned.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java deleted file mode 100644 index c3e22c5c7e19..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequest.java +++ /dev/null @@ -1,626 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [GetEntry][google.cloud.datacatalog.v1beta1.DataCatalog.GetEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetEntryRequest} - */ -@com.google.protobuf.Generated -public final class GetEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetEntryRequest) - GetEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GetEntryRequest"); - } - - // Use GetEntryRequest.newBuilder() to construct. - private GetEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GetEntryRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GetEntryRequest.class, - com.google.cloud.datacatalog.v1beta1.GetEntryRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the entry. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the entry. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1beta1.GetEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.GetEntryRequest other = - (com.google.cloud.datacatalog.v1beta1.GetEntryRequest) 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.datacatalog.v1beta1.GetEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.GetEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [GetEntry][google.cloud.datacatalog.v1beta1.DataCatalog.GetEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.GetEntryRequest) - com.google.cloud.datacatalog.v1beta1.GetEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GetEntryRequest.class, - com.google.cloud.datacatalog.v1beta1.GetEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.GetEntryRequest.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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.GetEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetEntryRequest build() { - com.google.cloud.datacatalog.v1beta1.GetEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.GetEntryRequest result = - new com.google.cloud.datacatalog.v1beta1.GetEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.GetEntryRequest 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.datacatalog.v1beta1.GetEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.GetEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.GetEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.GetEntryRequest.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 entry. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the entry. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the entry. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.GetEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.GetEntryRequest) - private static final com.google.cloud.datacatalog.v1beta1.GetEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.GetEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.GetEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequestOrBuilder.java deleted file mode 100644 index dafe15321de8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetEntryRequestOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface GetEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.GetEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the entry. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequest.java deleted file mode 100644 index 8a7bdfbb4c04..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequest.java +++ /dev/null @@ -1,613 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [GetPolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.GetPolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetPolicyTagRequest} - */ -@com.google.protobuf.Generated -public final class GetPolicyTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetPolicyTagRequest) - GetPolicyTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GetPolicyTagRequest"); - } - - // Use GetPolicyTagRequest.newBuilder() to construct. - private GetPolicyTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GetPolicyTagRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_GetPolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_GetPolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest.class, - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. Resource name of the requested policy tag.
-   * 
- * - * - * 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. Resource name of the requested policy tag.
-   * 
- * - * - * 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.datacatalog.v1beta1.GetPolicyTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest other = - (com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest) 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.datacatalog.v1beta1.GetPolicyTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [GetPolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.GetPolicyTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetPolicyTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.GetPolicyTagRequest) - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_GetPolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_GetPolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest.class, - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest.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.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_GetPolicyTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest build() { - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest result = - new com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest 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.datacatalog.v1beta1.GetPolicyTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest.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. Resource name of the requested policy tag.
-     * 
- * - * - * 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. Resource name of the requested policy tag.
-     * 
- * - * - * 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. Resource name of the requested policy tag.
-     * 
- * - * - * 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. Resource name of the requested policy tag.
-     * 
- * - * - * 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. Resource name of the requested policy tag.
-     * 
- * - * - * 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.datacatalog.v1beta1.GetPolicyTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.GetPolicyTagRequest) - private static final com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetPolicyTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequestOrBuilder.java deleted file mode 100644 index 1ef18c63b668..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetPolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface GetPolicyTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.GetPolicyTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the requested policy tag.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. Resource name of the requested policy tag.
-   * 
- * - * - * 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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequest.java deleted file mode 100644 index 7f68994c7809..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequest.java +++ /dev/null @@ -1,627 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [GetTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.GetTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetTagTemplateRequest} - */ -@com.google.protobuf.Generated -public final class GetTagTemplateRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetTagTemplateRequest) - GetTagTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GetTagTemplateRequest"); - } - - // Use GetTagTemplateRequest.newBuilder() to construct. - private GetTagTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GetTagTemplateRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest.class, - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the tag template. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag template. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1beta1.GetTagTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest other = - (com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest) 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.datacatalog.v1beta1.GetTagTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [GetTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.GetTagTemplate].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetTagTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.GetTagTemplateRequest) - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest.class, - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest.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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_GetTagTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest build() { - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest result = - new com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest 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.datacatalog.v1beta1.GetTagTemplateRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest.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 tag template. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.GetTagTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.GetTagTemplateRequest) - private static final com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTagTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequestOrBuilder.java deleted file mode 100644 index e0c77f24b743..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface GetTagTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.GetTagTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag template. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag template. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequest.java deleted file mode 100644 index 2e71a35d3253..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequest.java +++ /dev/null @@ -1,613 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [GetTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.GetTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetTaxonomyRequest} - */ -@com.google.protobuf.Generated -public final class GetTaxonomyRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.GetTaxonomyRequest) - GetTaxonomyRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "GetTaxonomyRequest"); - } - - // Use GetTaxonomyRequest.newBuilder() to construct. - private GetTaxonomyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private GetTaxonomyRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_GetTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_GetTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest.class, - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. Resource name of the requested taxonomy.
-   * 
- * - * - * 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. Resource name of the requested taxonomy.
-   * 
- * - * - * 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.datacatalog.v1beta1.GetTaxonomyRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest other = - (com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest) 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.datacatalog.v1beta1.GetTaxonomyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [GetTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.GetTaxonomy].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.GetTaxonomyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.GetTaxonomyRequest) - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_GetTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_GetTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest.class, - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest.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.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_GetTaxonomyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest build() { - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest result = - new com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest 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.datacatalog.v1beta1.GetTaxonomyRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest.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. Resource name of the requested taxonomy.
-     * 
- * - * - * 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. Resource name of the requested taxonomy.
-     * 
- * - * - * 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. Resource name of the requested taxonomy.
-     * 
- * - * - * 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. Resource name of the requested taxonomy.
-     * 
- * - * - * 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. Resource name of the requested taxonomy.
-     * 
- * - * - * 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.datacatalog.v1beta1.GetTaxonomyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.GetTaxonomyRequest) - private static final com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetTaxonomyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequestOrBuilder.java deleted file mode 100644 index 844d3431a198..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/GetTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface GetTaxonomyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.GetTaxonomyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the requested taxonomy.
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. Resource name of the requested taxonomy.
-   * 
- * - * - * 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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequest.java deleted file mode 100644 index 90de4b132e39..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequest.java +++ /dev/null @@ -1,1014 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [ImportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest} - */ -@com.google.protobuf.Generated -public final class ImportTaxonomiesRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) - ImportTaxonomiesRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ImportTaxonomiesRequest"); - } - - // Use ImportTaxonomiesRequest.newBuilder() to construct. - private ImportTaxonomiesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ImportTaxonomiesRequest() { - parent_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest.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 { - INLINE_SOURCE(2), - 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 INLINE_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 PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of project that the imported taxonomies will belong
-   * to.
-   * 
- * - * - * 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. Resource name of project that the imported taxonomies will belong
-   * to.
-   * 
- * - * - * 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 INLINE_SOURCE_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Inline source used for taxonomies to be imported.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - * - * @return Whether the inlineSource field is set. - */ - @java.lang.Override - public boolean hasInlineSource() { - return sourceCase_ == 2; - } - - /** - * - * - *
-   * Inline source used for taxonomies to be imported.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - * - * @return The inlineSource. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.InlineSource getInlineSource() { - if (sourceCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.InlineSource) source_; - } - return com.google.cloud.datacatalog.v1beta1.InlineSource.getDefaultInstance(); - } - - /** - * - * - *
-   * Inline source used for taxonomies to be imported.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.InlineSourceOrBuilder getInlineSourceOrBuilder() { - if (sourceCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.InlineSource) source_; - } - return com.google.cloud.datacatalog.v1beta1.InlineSource.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); - } - if (sourceCase_ == 2) { - output.writeMessage(2, (com.google.cloud.datacatalog.v1beta1.InlineSource) 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(parent_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); - } - if (sourceCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.datacatalog.v1beta1.InlineSource) 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.datacatalog.v1beta1.ImportTaxonomiesRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest other = - (com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (!getSourceCase().equals(other.getSourceCase())) return false; - switch (sourceCase_) { - case 2: - if (!getInlineSource().equals(other.getInlineSource())) 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(); - switch (sourceCase_) { - case 2: - hash = (37 * hash) + INLINE_SOURCE_FIELD_NUMBER; - hash = (53 * hash) + getInlineSource().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ImportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - if (inlineSourceBuilder_ != null) { - inlineSourceBuilder_.clear(); - } - sourceCase_ = 0; - source_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest build() { - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest result = - new com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - } - - private void buildPartialOneofs( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest result) { - result.sourceCase_ = sourceCase_; - result.source_ = this.source_; - if (sourceCase_ == 2 && inlineSourceBuilder_ != null) { - result.source_ = inlineSourceBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - switch (other.getSourceCase()) { - case INLINE_SOURCE: - { - mergeInlineSource(other.getInlineSource()); - 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: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetInlineSourceFieldBuilder().getBuilder(), extensionRegistry); - sourceCase_ = 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 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_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. Resource name of project that the imported taxonomies will belong
-     * to.
-     * 
- * - * - * 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. Resource name of project that the imported taxonomies will belong
-     * to.
-     * 
- * - * - * 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. Resource name of project that the imported taxonomies will belong
-     * to.
-     * 
- * - * - * 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. Resource name of project that the imported taxonomies will belong
-     * to.
-     * 
- * - * - * 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. Resource name of project that the imported taxonomies will belong
-     * to.
-     * 
- * - * - * 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 com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.InlineSource, - com.google.cloud.datacatalog.v1beta1.InlineSource.Builder, - com.google.cloud.datacatalog.v1beta1.InlineSourceOrBuilder> - inlineSourceBuilder_; - - /** - * - * - *
-     * Inline source used for taxonomies to be imported.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - * - * @return Whether the inlineSource field is set. - */ - @java.lang.Override - public boolean hasInlineSource() { - return sourceCase_ == 2; - } - - /** - * - * - *
-     * Inline source used for taxonomies to be imported.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - * - * @return The inlineSource. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.InlineSource getInlineSource() { - if (inlineSourceBuilder_ == null) { - if (sourceCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.InlineSource) source_; - } - return com.google.cloud.datacatalog.v1beta1.InlineSource.getDefaultInstance(); - } else { - if (sourceCase_ == 2) { - return inlineSourceBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1beta1.InlineSource.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Inline source used for taxonomies to be imported.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - */ - public Builder setInlineSource(com.google.cloud.datacatalog.v1beta1.InlineSource value) { - if (inlineSourceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - source_ = value; - onChanged(); - } else { - inlineSourceBuilder_.setMessage(value); - } - sourceCase_ = 2; - return this; - } - - /** - * - * - *
-     * Inline source used for taxonomies to be imported.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - */ - public Builder setInlineSource( - com.google.cloud.datacatalog.v1beta1.InlineSource.Builder builderForValue) { - if (inlineSourceBuilder_ == null) { - source_ = builderForValue.build(); - onChanged(); - } else { - inlineSourceBuilder_.setMessage(builderForValue.build()); - } - sourceCase_ = 2; - return this; - } - - /** - * - * - *
-     * Inline source used for taxonomies to be imported.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - */ - public Builder mergeInlineSource(com.google.cloud.datacatalog.v1beta1.InlineSource value) { - if (inlineSourceBuilder_ == null) { - if (sourceCase_ == 2 - && source_ != com.google.cloud.datacatalog.v1beta1.InlineSource.getDefaultInstance()) { - source_ = - com.google.cloud.datacatalog.v1beta1.InlineSource.newBuilder( - (com.google.cloud.datacatalog.v1beta1.InlineSource) source_) - .mergeFrom(value) - .buildPartial(); - } else { - source_ = value; - } - onChanged(); - } else { - if (sourceCase_ == 2) { - inlineSourceBuilder_.mergeFrom(value); - } else { - inlineSourceBuilder_.setMessage(value); - } - } - sourceCase_ = 2; - return this; - } - - /** - * - * - *
-     * Inline source used for taxonomies to be imported.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - */ - public Builder clearInlineSource() { - if (inlineSourceBuilder_ == null) { - if (sourceCase_ == 2) { - sourceCase_ = 0; - source_ = null; - onChanged(); - } - } else { - if (sourceCase_ == 2) { - sourceCase_ = 0; - source_ = null; - } - inlineSourceBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Inline source used for taxonomies to be imported.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - */ - public com.google.cloud.datacatalog.v1beta1.InlineSource.Builder getInlineSourceBuilder() { - return internalGetInlineSourceFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Inline source used for taxonomies to be imported.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.InlineSourceOrBuilder getInlineSourceOrBuilder() { - if ((sourceCase_ == 2) && (inlineSourceBuilder_ != null)) { - return inlineSourceBuilder_.getMessageOrBuilder(); - } else { - if (sourceCase_ == 2) { - return (com.google.cloud.datacatalog.v1beta1.InlineSource) source_; - } - return com.google.cloud.datacatalog.v1beta1.InlineSource.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Inline source used for taxonomies to be imported.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.InlineSource, - com.google.cloud.datacatalog.v1beta1.InlineSource.Builder, - com.google.cloud.datacatalog.v1beta1.InlineSourceOrBuilder> - internalGetInlineSourceFieldBuilder() { - if (inlineSourceBuilder_ == null) { - if (!(sourceCase_ == 2)) { - source_ = com.google.cloud.datacatalog.v1beta1.InlineSource.getDefaultInstance(); - } - inlineSourceBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.InlineSource, - com.google.cloud.datacatalog.v1beta1.InlineSource.Builder, - com.google.cloud.datacatalog.v1beta1.InlineSourceOrBuilder>( - (com.google.cloud.datacatalog.v1beta1.InlineSource) source_, - getParentForChildren(), - isClean()); - source_ = null; - } - sourceCase_ = 2; - onChanged(); - return inlineSourceBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) - private static final com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportTaxonomiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequestOrBuilder.java deleted file mode 100644 index 40ba4169e202..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ImportTaxonomiesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of project that the imported taxonomies will belong
-   * to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of project that the imported taxonomies will belong
-   * to.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * Inline source used for taxonomies to be imported.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - * - * @return Whether the inlineSource field is set. - */ - boolean hasInlineSource(); - - /** - * - * - *
-   * Inline source used for taxonomies to be imported.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - * - * @return The inlineSource. - */ - com.google.cloud.datacatalog.v1beta1.InlineSource getInlineSource(); - - /** - * - * - *
-   * Inline source used for taxonomies to be imported.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.InlineSource inline_source = 2; - */ - com.google.cloud.datacatalog.v1beta1.InlineSourceOrBuilder getInlineSourceOrBuilder(); - - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest.SourceCase getSourceCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponse.java deleted file mode 100644 index aa415e1f4aab..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponse.java +++ /dev/null @@ -1,932 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Response message for
- * [ImportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse} - */ -@com.google.protobuf.Generated -public final class ImportTaxonomiesResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse) - ImportTaxonomiesResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ImportTaxonomiesResponse"); - } - - // Use ImportTaxonomiesResponse.newBuilder() to construct. - private ImportTaxonomiesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ImportTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse.Builder.class); - } - - public static final int TAXONOMIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List taxonomies_; - - /** - * - * - *
-   * Taxonomies that were imported.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List getTaxonomiesList() { - return taxonomies_; - } - - /** - * - * - *
-   * Taxonomies that were imported.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List - getTaxonomiesOrBuilderList() { - return taxonomies_; - } - - /** - * - * - *
-   * Taxonomies that were imported.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-   * Taxonomies that were imported.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-   * Taxonomies that were imported.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomiesOrBuilder(int index) { - return taxonomies_.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 < taxonomies_.size(); i++) { - output.writeMessage(1, taxonomies_.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 < taxonomies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taxonomies_.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.datacatalog.v1beta1.ImportTaxonomiesResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse other = - (com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse) obj; - - if (!getTaxonomiesList().equals(other.getTaxonomiesList())) return false; - if (!getUnknownFields().equals(other.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 (getTaxonomiesCount() > 0) { - hash = (37 * hash) + TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomiesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ImportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse) - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - } else { - taxonomies_ = null; - taxonomiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse build() { - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse buildPartial() { - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse result = - new com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse result) { - if (taxonomiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = java.util.Collections.unmodifiableList(taxonomies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taxonomies_ = taxonomies_; - } else { - result.taxonomies_ = taxonomiesBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse other) { - if (other - == com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse.getDefaultInstance()) - return this; - if (taxonomiesBuilder_ == null) { - if (!other.taxonomies_.isEmpty()) { - if (taxonomies_.isEmpty()) { - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaxonomiesIsMutable(); - taxonomies_.addAll(other.taxonomies_); - } - onChanged(); - } - } else { - if (!other.taxonomies_.isEmpty()) { - if (taxonomiesBuilder_.isEmpty()) { - taxonomiesBuilder_.dispose(); - taxonomiesBuilder_ = null; - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - taxonomiesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTaxonomiesFieldBuilder() - : null; - } else { - taxonomiesBuilder_.addAllMessages(other.taxonomies_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1beta1.Taxonomy m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.Taxonomy.parser(), extensionRegistry); - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(m); - } else { - taxonomiesBuilder_.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 taxonomies_ = - java.util.Collections.emptyList(); - - private void ensureTaxonomiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = - new java.util.ArrayList(taxonomies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - taxonomiesBuilder_; - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public java.util.List getTaxonomiesList() { - if (taxonomiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(taxonomies_); - } else { - return taxonomiesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public int getTaxonomiesCount() { - if (taxonomiesBuilder_ == null) { - return taxonomies_.size(); - } else { - return taxonomiesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder setTaxonomies(int index, com.google.cloud.datacatalog.v1beta1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, value); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder setTaxonomies( - int index, com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies(com.google.cloud.datacatalog.v1beta1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies(int index, com.google.cloud.datacatalog.v1beta1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - int index, com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder addAllTaxonomies( - java.lang.Iterable values) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taxonomies_); - onChanged(); - } else { - taxonomiesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder clearTaxonomies() { - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taxonomiesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder removeTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.remove(index); - onChanged(); - } else { - taxonomiesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder getTaxonomiesBuilder(int index) { - return internalGetTaxonomiesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomiesOrBuilder( - int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesOrBuilderList() { - if (taxonomiesBuilder_ != null) { - return taxonomiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taxonomies_); - } - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder addTaxonomiesBuilder() { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder addTaxonomiesBuilder(int index) { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Taxonomies that were imported.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesBuilderList() { - return internalGetTaxonomiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - internalGetTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder>( - taxonomies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - taxonomies_ = null; - } - return taxonomiesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse) - private static final com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse(); - } - - public static com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImportTaxonomiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponseOrBuilder.java deleted file mode 100644 index 4b20fe56bc15..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ImportTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ImportTaxonomiesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Taxonomies that were imported.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - java.util.List getTaxonomiesList(); - - /** - * - * - *
-   * Taxonomies that were imported.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomies(int index); - - /** - * - * - *
-   * Taxonomies that were imported.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - int getTaxonomiesCount(); - - /** - * - * - *
-   * Taxonomies that were imported.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - java.util.List - getTaxonomiesOrBuilderList(); - - /** - * - * - *
-   * Taxonomies that were imported.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomiesOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSource.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSource.java deleted file mode 100644 index d7d3129658d0..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSource.java +++ /dev/null @@ -1,985 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Inline source used for taxonomies import.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.InlineSource} - */ -@com.google.protobuf.Generated -public final class InlineSource extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.InlineSource) - InlineSourceOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "InlineSource"); - } - - // Use InlineSource.newBuilder() to construct. - private InlineSource(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private InlineSource() { - taxonomies_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_InlineSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_InlineSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.InlineSource.class, - com.google.cloud.datacatalog.v1beta1.InlineSource.Builder.class); - } - - public static final int TAXONOMIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List taxonomies_; - - /** - * - * - *
-   * Required. Taxonomies to be imported.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getTaxonomiesList() { - return taxonomies_; - } - - /** - * - * - *
-   * Required. Taxonomies to be imported.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getTaxonomiesOrBuilderList() { - return taxonomies_; - } - - /** - * - * - *
-   * Required. Taxonomies to be imported.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-   * Required. Taxonomies to be imported.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-   * Required. Taxonomies to be imported.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder( - int index) { - return taxonomies_.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 < taxonomies_.size(); i++) { - output.writeMessage(1, taxonomies_.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 < taxonomies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taxonomies_.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.datacatalog.v1beta1.InlineSource)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.InlineSource other = - (com.google.cloud.datacatalog.v1beta1.InlineSource) obj; - - if (!getTaxonomiesList().equals(other.getTaxonomiesList())) return false; - if (!getUnknownFields().equals(other.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 (getTaxonomiesCount() > 0) { - hash = (37 * hash) + TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomiesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.InlineSource prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Inline source used for taxonomies import.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.InlineSource} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.InlineSource) - com.google.cloud.datacatalog.v1beta1.InlineSourceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_InlineSource_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_InlineSource_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.InlineSource.class, - com.google.cloud.datacatalog.v1beta1.InlineSource.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.InlineSource.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - } else { - taxonomies_ = null; - taxonomiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_InlineSource_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.InlineSource getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.InlineSource.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.InlineSource build() { - com.google.cloud.datacatalog.v1beta1.InlineSource result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.InlineSource buildPartial() { - com.google.cloud.datacatalog.v1beta1.InlineSource result = - new com.google.cloud.datacatalog.v1beta1.InlineSource(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.InlineSource result) { - if (taxonomiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = java.util.Collections.unmodifiableList(taxonomies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taxonomies_ = taxonomies_; - } else { - result.taxonomies_ = taxonomiesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.InlineSource result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.InlineSource) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.InlineSource) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.InlineSource other) { - if (other == com.google.cloud.datacatalog.v1beta1.InlineSource.getDefaultInstance()) - return this; - if (taxonomiesBuilder_ == null) { - if (!other.taxonomies_.isEmpty()) { - if (taxonomies_.isEmpty()) { - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaxonomiesIsMutable(); - taxonomies_.addAll(other.taxonomies_); - } - onChanged(); - } - } else { - if (!other.taxonomies_.isEmpty()) { - if (taxonomiesBuilder_.isEmpty()) { - taxonomiesBuilder_.dispose(); - taxonomiesBuilder_ = null; - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - taxonomiesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTaxonomiesFieldBuilder() - : null; - } else { - taxonomiesBuilder_.addAllMessages(other.taxonomies_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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.datacatalog.v1beta1.SerializedTaxonomy m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.parser(), - extensionRegistry); - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(m); - } else { - taxonomiesBuilder_.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 taxonomies_ = - java.util.Collections.emptyList(); - - private void ensureTaxonomiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = - new java.util.ArrayList( - taxonomies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder> - taxonomiesBuilder_; - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getTaxonomiesList() { - if (taxonomiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(taxonomies_); - } else { - return taxonomiesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getTaxonomiesCount() { - if (taxonomiesBuilder_ == null) { - return taxonomies_.size(); - } else { - return taxonomiesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy getTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTaxonomies( - int index, com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, value); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTaxonomies( - int index, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addTaxonomies(com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addTaxonomies( - int index, com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addTaxonomies( - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addTaxonomies( - int index, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllTaxonomies( - java.lang.Iterable - values) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taxonomies_); - onChanged(); - } else { - taxonomiesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTaxonomies() { - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taxonomiesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.remove(index); - onChanged(); - } else { - taxonomiesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder getTaxonomiesBuilder( - int index) { - return internalGetTaxonomiesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder( - int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List< - ? extends com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder> - getTaxonomiesOrBuilderList() { - if (taxonomiesBuilder_ != null) { - return taxonomiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taxonomies_); - } - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder addTaxonomiesBuilder() { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder addTaxonomiesBuilder( - int index) { - return internalGetTaxonomiesFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Required. Taxonomies to be imported.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getTaxonomiesBuilderList() { - return internalGetTaxonomiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder> - internalGetTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder>( - taxonomies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - taxonomies_ = null; - } - return taxonomiesBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.InlineSource) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.InlineSource) - private static final com.google.cloud.datacatalog.v1beta1.InlineSource DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.InlineSource(); - } - - public static com.google.cloud.datacatalog.v1beta1.InlineSource getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public InlineSource parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.InlineSource getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSourceOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSourceOrBuilder.java deleted file mode 100644 index 4e8dfa7e4f45..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/InlineSourceOrBuilder.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface InlineSourceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.InlineSource) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Taxonomies to be imported.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getTaxonomiesList(); - - /** - * - * - *
-   * Required. Taxonomies to be imported.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy getTaxonomies(int index); - - /** - * - * - *
-   * Required. Taxonomies to be imported.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getTaxonomiesCount(); - - /** - * - * - *
-   * Required. Taxonomies to be imported.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getTaxonomiesOrBuilderList(); - - /** - * - * - *
-   * Required. Taxonomies to be imported.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.SerializedTaxonomy taxonomies = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder getTaxonomiesOrBuilder( - int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java deleted file mode 100644 index d0a484ced4a8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/IntegratedSystem.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/common.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * This enum describes all the possible systems that Data Catalog integrates
- * with.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1beta1.IntegratedSystem} - */ -@com.google.protobuf.Generated -public enum IntegratedSystem implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default unknown system.
-   * 
- * - * INTEGRATED_SYSTEM_UNSPECIFIED = 0; - */ - INTEGRATED_SYSTEM_UNSPECIFIED(0), - /** - * - * - *
-   * BigQuery.
-   * 
- * - * BIGQUERY = 1; - */ - BIGQUERY(1), - /** - * - * - *
-   * Cloud Pub/Sub.
-   * 
- * - * CLOUD_PUBSUB = 2; - */ - CLOUD_PUBSUB(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "IntegratedSystem"); - } - - /** - * - * - *
-   * Default unknown system.
-   * 
- * - * INTEGRATED_SYSTEM_UNSPECIFIED = 0; - */ - public static final int INTEGRATED_SYSTEM_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * BigQuery.
-   * 
- * - * BIGQUERY = 1; - */ - public static final int BIGQUERY_VALUE = 1; - - /** - * - * - *
-   * Cloud Pub/Sub.
-   * 
- * - * CLOUD_PUBSUB = 2; - */ - public static final int CLOUD_PUBSUB_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 IntegratedSystem 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 IntegratedSystem forNumber(int value) { - switch (value) { - case 0: - return INTEGRATED_SYSTEM_UNSPECIFIED; - case 1: - return BIGQUERY; - case 2: - return CLOUD_PUBSUB; - 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 IntegratedSystem findValueByNumber(int number) { - return IntegratedSystem.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.datacatalog.v1beta1.Common.getDescriptor().getEnumTypes().get(0); - } - - private static final IntegratedSystem[] VALUES = values(); - - public static IntegratedSystem 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 IntegratedSystem(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1beta1.IntegratedSystem) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java deleted file mode 100644 index f99a10f2e95f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequest.java +++ /dev/null @@ -1,1251 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntriesRequest} - */ -@com.google.protobuf.Generated -public final class ListEntriesRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntriesRequest) - ListEntriesRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListEntriesRequest"); - } - - // Use ListEntriesRequest.newBuilder() to construct. - private ListEntriesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListEntriesRequest() { - parent_ = ""; - pageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest.class, - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest.Builder.class); - } - - private int bitField0_; - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the entry group that contains the entries, which can
-   * be provided in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   * 
- * - * - * 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 entry group that contains the entries, which can
-   * be provided in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * The maximum number of items to return. Default is 10. Max limit is 1000.
-   * Throws an invalid argument for `page_size > 1000`.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - - /** - * - * - *
-   * Token that specifies which page is requested. If empty, the first page is
-   * returned.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Token that specifies which page is requested. If empty, the first page is
-   * returned.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int READ_MASK_FIELD_NUMBER = 4; - private com.google.protobuf.FieldMask readMask_; - - /** - * - * - *
-   * The fields to return for each Entry. If not set or empty, all
-   * fields are returned.
-   * For example, setting read_mask to contain only one path "name" will cause
-   * ListEntries to return a list of Entries with only "name" field.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return Whether the readMask field is set. - */ - @java.lang.Override - public boolean hasReadMask() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The fields to return for each Entry. If not set or empty, all
-   * fields are returned.
-   * For example, setting read_mask to contain only one path "name" will cause
-   * ListEntries to return a list of Entries with only "name" field.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return The readMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getReadMask() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - - /** - * - * - *
-   * The fields to return for each Entry. If not set or empty, all
-   * fields are returned.
-   * For example, setting read_mask to contain only one path "name" will cause
-   * ListEntries to return a list of Entries with only "name" field.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getReadMask()); - } - 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 (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReadMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.ListEntriesRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest other = - (com.google.cloud.datacatalog.v1beta1.ListEntriesRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (hasReadMask() != other.hasReadMask()) return false; - if (hasReadMask()) { - if (!getReadMask().equals(other.getReadMask())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - if (hasReadMask()) { - hash = (37 * hash) + READ_MASK_FIELD_NUMBER; - hash = (53 * hash) + getReadMask().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntriesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ListEntriesRequest) - com.google.cloud.datacatalog.v1beta1.ListEntriesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest.class, - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ListEntriesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetReadMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - parent_ = ""; - pageSize_ = 0; - pageToken_ = ""; - readMask_ = null; - if (readMaskBuilder_ != null) { - readMaskBuilder_.dispose(); - readMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntriesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntriesRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ListEntriesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntriesRequest build() { - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntriesRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.ListEntriesRequest result = - new com.google.cloud.datacatalog.v1beta1.ListEntriesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ListEntriesRequest 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_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.readMask_ = readMaskBuilder_ == null ? readMask_ : readMaskBuilder_.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.datacatalog.v1beta1.ListEntriesRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ListEntriesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ListEntriesRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.ListEntriesRequest.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.hasReadMask()) { - mergeReadMask(other.getReadMask()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - input.readMessage( - internalGetReadMaskFieldBuilder().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 parent_ = ""; - - /** - * - * - *
-     * Required. The name of the entry group that contains the entries, which can
-     * be provided in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     * 
- * - * - * 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 entry group that contains the entries, which can
-     * be provided in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     * 
- * - * - * 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 entry group that contains the entries, which can
-     * be provided in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     * 
- * - * - * 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 entry group that contains the entries, which can
-     * be provided in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     * 
- * - * - * 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 entry group that contains the entries, which can
-     * be provided in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_; - - /** - * - * - *
-     * The maximum number of items to return. Default is 10. Max limit is 1000.
-     * Throws an invalid argument for `page_size > 1000`.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
-     * The maximum number of items to return. Default is 10. Max limit is 1000.
-     * Throws an invalid argument for `page_size > 1000`.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The maximum number of items to return. Default is 10. Max limit is 1000.
-     * Throws an invalid argument for `page_size > 1000`.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - - /** - * - * - *
-     * Token that specifies which page is requested. If empty, the first page is
-     * returned.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Token that specifies which page is requested. If empty, the first page is
-     * returned.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Token that specifies which page is requested. If empty, the first page is
-     * returned.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Token that specifies which page is requested. If empty, the first page is
-     * returned.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Token that specifies which page is requested. If empty, the first page is
-     * returned.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.FieldMask readMask_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - readMaskBuilder_; - - /** - * - * - *
-     * The fields to return for each Entry. If not set or empty, all
-     * fields are returned.
-     * For example, setting read_mask to contain only one path "name" will cause
-     * ListEntries to return a list of Entries with only "name" field.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return Whether the readMask field is set. - */ - public boolean hasReadMask() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
-     * The fields to return for each Entry. If not set or empty, all
-     * fields are returned.
-     * For example, setting read_mask to contain only one path "name" will cause
-     * ListEntries to return a list of Entries with only "name" field.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return The readMask. - */ - public com.google.protobuf.FieldMask getReadMask() { - if (readMaskBuilder_ == null) { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } else { - return readMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The fields to return for each Entry. If not set or empty, all
-     * fields are returned.
-     * For example, setting read_mask to contain only one path "name" will cause
-     * ListEntries to return a list of Entries with only "name" field.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder setReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - readMask_ = value; - } else { - readMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return for each Entry. If not set or empty, all
-     * fields are returned.
-     * For example, setting read_mask to contain only one path "name" will cause
-     * ListEntries to return a list of Entries with only "name" field.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder setReadMask(com.google.protobuf.FieldMask.Builder builderForValue) { - if (readMaskBuilder_ == null) { - readMask_ = builderForValue.build(); - } else { - readMaskBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return for each Entry. If not set or empty, all
-     * fields are returned.
-     * For example, setting read_mask to contain only one path "name" will cause
-     * ListEntries to return a list of Entries with only "name" field.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder mergeReadMask(com.google.protobuf.FieldMask value) { - if (readMaskBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && readMask_ != null - && readMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getReadMaskBuilder().mergeFrom(value); - } else { - readMask_ = value; - } - } else { - readMaskBuilder_.mergeFrom(value); - } - if (readMask_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The fields to return for each Entry. If not set or empty, all
-     * fields are returned.
-     * For example, setting read_mask to contain only one path "name" will cause
-     * ListEntries to return a list of Entries with only "name" field.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public Builder clearReadMask() { - bitField0_ = (bitField0_ & ~0x00000008); - readMask_ = null; - if (readMaskBuilder_ != null) { - readMaskBuilder_.dispose(); - readMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The fields to return for each Entry. If not set or empty, all
-     * fields are returned.
-     * For example, setting read_mask to contain only one path "name" will cause
-     * ListEntries to return a list of Entries with only "name" field.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public com.google.protobuf.FieldMask.Builder getReadMaskBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetReadMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The fields to return for each Entry. If not set or empty, all
-     * fields are returned.
-     * For example, setting read_mask to contain only one path "name" will cause
-     * ListEntries to return a list of Entries with only "name" field.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - public com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder() { - if (readMaskBuilder_ != null) { - return readMaskBuilder_.getMessageOrBuilder(); - } else { - return readMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : readMask_; - } - } - - /** - * - * - *
-     * The fields to return for each Entry. If not set or empty, all
-     * fields are returned.
-     * For example, setting read_mask to contain only one path "name" will cause
-     * ListEntries to return a list of Entries with only "name" field.
-     * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder> - internalGetReadMaskFieldBuilder() { - if (readMaskBuilder_ == null) { - readMaskBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.FieldMask, - com.google.protobuf.FieldMask.Builder, - com.google.protobuf.FieldMaskOrBuilder>( - getReadMask(), getParentForChildren(), isClean()); - readMask_ = null; - } - return readMaskBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ListEntriesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListEntriesRequest) - private static final com.google.cloud.datacatalog.v1beta1.ListEntriesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ListEntriesRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntriesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntriesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequestOrBuilder.java deleted file mode 100644 index 3df8ed311848..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesRequestOrBuilder.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ListEntriesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ListEntriesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the entry group that contains the entries, which can
-   * be provided in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the entry group that contains the entries, which can
-   * be provided in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of items to return. Default is 10. Max limit is 1000.
-   * Throws an invalid argument for `page_size > 1000`.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Token that specifies which page is requested. If empty, the first page is
-   * returned.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * Token that specifies which page is requested. If empty, the first page is
-   * returned.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * The fields to return for each Entry. If not set or empty, all
-   * fields are returned.
-   * For example, setting read_mask to contain only one path "name" will cause
-   * ListEntries to return a list of Entries with only "name" field.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return Whether the readMask field is set. - */ - boolean hasReadMask(); - - /** - * - * - *
-   * The fields to return for each Entry. If not set or empty, all
-   * fields are returned.
-   * For example, setting read_mask to contain only one path "name" will cause
-   * ListEntries to return a list of Entries with only "name" field.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - * - * @return The readMask. - */ - com.google.protobuf.FieldMask getReadMask(); - - /** - * - * - *
-   * The fields to return for each Entry. If not set or empty, all
-   * fields are returned.
-   * For example, setting read_mask to contain only one path "name" will cause
-   * ListEntries to return a list of Entries with only "name" field.
-   * 
- * - * .google.protobuf.FieldMask read_mask = 4; - */ - com.google.protobuf.FieldMaskOrBuilder getReadMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java deleted file mode 100644 index faef3fdda60a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponse.java +++ /dev/null @@ -1,1121 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Response message for
- * [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntriesResponse} - */ -@com.google.protobuf.Generated -public final class ListEntriesResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntriesResponse) - ListEntriesResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListEntriesResponse"); - } - - // Use ListEntriesResponse.newBuilder() to construct. - private ListEntriesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListEntriesResponse() { - entries_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse.class, - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse.Builder.class); - } - - public static final int ENTRIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List entries_; - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - @java.lang.Override - public java.util.List getEntriesList() { - return entries_; - } - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - @java.lang.Override - public java.util.List - getEntriesOrBuilderList() { - return entries_; - } - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - @java.lang.Override - public int getEntriesCount() { - return entries_.size(); - } - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Entry getEntries(int index) { - return entries_.get(index); - } - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryOrBuilder getEntriesOrBuilder(int index) { - return entries_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * 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 < entries_.size(); i++) { - output.writeMessage(1, entries_.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 < entries_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.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.datacatalog.v1beta1.ListEntriesResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse other = - (com.google.cloud.datacatalog.v1beta1.ListEntriesResponse) obj; - - if (!getEntriesList().equals(other.getEntriesList())) 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 (getEntriesCount() > 0) { - hash = (37 * hash) + ENTRIES_FIELD_NUMBER; - hash = (53 * hash) + getEntriesList().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.datacatalog.v1beta1.ListEntriesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntriesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ListEntriesResponse) - com.google.cloud.datacatalog.v1beta1.ListEntriesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse.class, - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ListEntriesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - } else { - entries_ = null; - entriesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntriesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntriesResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ListEntriesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntriesResponse build() { - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntriesResponse buildPartial() { - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse result = - new com.google.cloud.datacatalog.v1beta1.ListEntriesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.ListEntriesResponse result) { - if (entriesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entries_ = java.util.Collections.unmodifiableList(entries_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entries_ = entries_; - } else { - result.entries_ = entriesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ListEntriesResponse 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.datacatalog.v1beta1.ListEntriesResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ListEntriesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ListEntriesResponse other) { - if (other == com.google.cloud.datacatalog.v1beta1.ListEntriesResponse.getDefaultInstance()) - return this; - if (entriesBuilder_ == null) { - if (!other.entries_.isEmpty()) { - if (entries_.isEmpty()) { - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntriesIsMutable(); - entries_.addAll(other.entries_); - } - onChanged(); - } - } else { - if (!other.entries_.isEmpty()) { - if (entriesBuilder_.isEmpty()) { - entriesBuilder_.dispose(); - entriesBuilder_ = null; - entries_ = other.entries_; - bitField0_ = (bitField0_ & ~0x00000001); - entriesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetEntriesFieldBuilder() - : null; - } else { - entriesBuilder_.addAllMessages(other.entries_); - } - } - } - 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.datacatalog.v1beta1.Entry m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.Entry.parser(), extensionRegistry); - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(m); - } else { - entriesBuilder_.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 entries_ = - java.util.Collections.emptyList(); - - private void ensureEntriesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entries_ = new java.util.ArrayList(entries_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Entry, - com.google.cloud.datacatalog.v1beta1.Entry.Builder, - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> - entriesBuilder_; - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public java.util.List getEntriesList() { - if (entriesBuilder_ == null) { - return java.util.Collections.unmodifiableList(entries_); - } else { - return entriesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public int getEntriesCount() { - if (entriesBuilder_ == null) { - return entries_.size(); - } else { - return entriesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Entry getEntries(int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); - } else { - return entriesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public Builder setEntries(int index, com.google.cloud.datacatalog.v1beta1.Entry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.set(index, value); - onChanged(); - } else { - entriesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public Builder setEntries( - int index, com.google.cloud.datacatalog.v1beta1.Entry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.set(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public Builder addEntries(com.google.cloud.datacatalog.v1beta1.Entry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(value); - onChanged(); - } else { - entriesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public Builder addEntries(int index, com.google.cloud.datacatalog.v1beta1.Entry value) { - if (entriesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntriesIsMutable(); - entries_.add(index, value); - onChanged(); - } else { - entriesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public Builder addEntries(com.google.cloud.datacatalog.v1beta1.Entry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public Builder addEntries( - int index, com.google.cloud.datacatalog.v1beta1.Entry.Builder builderForValue) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.add(index, builderForValue.build()); - onChanged(); - } else { - entriesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public Builder addAllEntries( - java.lang.Iterable values) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_); - onChanged(); - } else { - entriesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public Builder clearEntries() { - if (entriesBuilder_ == null) { - entries_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entriesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public Builder removeEntries(int index) { - if (entriesBuilder_ == null) { - ensureEntriesIsMutable(); - entries_.remove(index); - onChanged(); - } else { - entriesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Entry.Builder getEntriesBuilder(int index) { - return internalGetEntriesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public com.google.cloud.datacatalog.v1beta1.EntryOrBuilder getEntriesOrBuilder(int index) { - if (entriesBuilder_ == null) { - return entries_.get(index); - } else { - return entriesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public java.util.List - getEntriesOrBuilderList() { - if (entriesBuilder_ != null) { - return entriesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entries_); - } - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Entry.Builder addEntriesBuilder() { - return internalGetEntriesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance()); - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Entry.Builder addEntriesBuilder(int index) { - return internalGetEntriesFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance()); - } - - /** - * - * - *
-     * Entry details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - public java.util.List - getEntriesBuilderList() { - return internalGetEntriesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Entry, - com.google.cloud.datacatalog.v1beta1.Entry.Builder, - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> - internalGetEntriesFieldBuilder() { - if (entriesBuilder_ == null) { - entriesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Entry, - com.google.cloud.datacatalog.v1beta1.Entry.Builder, - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder>( - entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - entries_ = null; - } - return entriesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * 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; - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * 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.datacatalog.v1beta1.ListEntriesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListEntriesResponse) - private static final com.google.cloud.datacatalog.v1beta1.ListEntriesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ListEntriesResponse(); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntriesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntriesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntriesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponseOrBuilder.java deleted file mode 100644 index 8c9d16334484..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntriesResponseOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ListEntriesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ListEntriesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - java.util.List getEntriesList(); - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - com.google.cloud.datacatalog.v1beta1.Entry getEntries(int index); - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - int getEntriesCount(); - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - java.util.List - getEntriesOrBuilderList(); - - /** - * - * - *
-   * Entry details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Entry entries = 1; - */ - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder getEntriesOrBuilder(int index); - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java deleted file mode 100644 index d1629cf30a8c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequest.java +++ /dev/null @@ -1,931 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest} - */ -@com.google.protobuf.Generated -public final class ListEntryGroupsRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) - ListEntryGroupsRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListEntryGroupsRequest"); - } - - // Use ListEntryGroupsRequest.newBuilder() to construct. - private ListEntryGroupsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListEntryGroupsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.class, - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the location that contains the entry groups, which
-   * can be provided in URL format. Example:
-   *
-   * * projects/{project_id}/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 name of the location that contains the entry groups, which
-   * can be provided in URL format. Example:
-   *
-   * * projects/{project_id}/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 PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * Optional. The maximum number of items to return. Default is 10. Max limit
-   * is 1000. Throws an invalid argument for `page_size > 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. Token that specifies which page is requested. If empty, the first
-   * page is returned.
-   * 
- * - * 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. Token that specifies which page is requested. If empty, the first
-   * page is returned.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest other = - (com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.class, - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.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_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest build() { - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest result = - new com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the location that contains the entry groups, which
-     * can be provided in URL format. Example:
-     *
-     * * projects/{project_id}/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 name of the location that contains the entry groups, which
-     * can be provided in URL format. Example:
-     *
-     * * projects/{project_id}/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 name of the location that contains the entry groups, which
-     * can be provided in URL format. Example:
-     *
-     * * projects/{project_id}/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 name of the location that contains the entry groups, which
-     * can be provided in URL format. Example:
-     *
-     * * projects/{project_id}/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 name of the location that contains the entry groups, which
-     * can be provided in URL format. Example:
-     *
-     * * projects/{project_id}/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 int pageSize_; - - /** - * - * - *
-     * Optional. The maximum number of items to return. Default is 10. Max limit
-     * is 1000. Throws an invalid argument for `page_size > 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 items to return. Default is 10. Max limit
-     * is 1000. Throws an invalid argument for `page_size > 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 items to return. Default is 10. Max limit
-     * is 1000. Throws an invalid argument for `page_size > 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. Token that specifies which page is requested. If empty, the first
-     * page is returned.
-     * 
- * - * 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. Token that specifies which page is requested. If empty, the first
-     * page is returned.
-     * 
- * - * 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. Token that specifies which page is requested. If empty, the first
-     * page is returned.
-     * 
- * - * 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. Token that specifies which page is requested. If empty, the first
-     * page is returned.
-     * 
- * - * 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. Token that specifies which page is requested. If empty, the first
-     * page is returned.
-     * 
- * - * 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; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) - private static final com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntryGroupsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java deleted file mode 100644 index aae83a5a02de..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsRequestOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ListEntryGroupsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the location that contains the entry groups, which
-   * can be provided in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the location that contains the entry groups, which
-   * can be provided in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}
-   * 
- * - * - * 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 items to return. Default is 10. Max limit
-   * is 1000. Throws an invalid argument for `page_size > 1000`.
-   * 
- * - * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. Token that specifies which page is requested. If empty, the first
-   * page is returned.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * Optional. Token that specifies which page is requested. If empty, the first
-   * page is returned.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java deleted file mode 100644 index 689c23149237..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponse.java +++ /dev/null @@ -1,1134 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Response message for
- * [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse} - */ -@com.google.protobuf.Generated -public final class ListEntryGroupsResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse) - ListEntryGroupsResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListEntryGroupsResponse"); - } - - // Use ListEntryGroupsResponse.newBuilder() to construct. - private ListEntryGroupsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListEntryGroupsResponse() { - entryGroups_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse.class, - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse.Builder.class); - } - - public static final int ENTRY_GROUPS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List entryGroups_; - - /** - * - * - *
-   * EntryGroup details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - @java.lang.Override - public java.util.List getEntryGroupsList() { - return entryGroups_; - } - - /** - * - * - *
-   * EntryGroup details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - @java.lang.Override - public java.util.List - getEntryGroupsOrBuilderList() { - return entryGroups_; - } - - /** - * - * - *
-   * EntryGroup details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - @java.lang.Override - public int getEntryGroupsCount() { - return entryGroups_.size(); - } - - /** - * - * - *
-   * EntryGroup details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroups(int index) { - return entryGroups_.get(index); - } - - /** - * - * - *
-   * EntryGroup details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder getEntryGroupsOrBuilder( - int index) { - return entryGroups_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * 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 < entryGroups_.size(); i++) { - output.writeMessage(1, entryGroups_.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 < entryGroups_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entryGroups_.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.datacatalog.v1beta1.ListEntryGroupsResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse other = - (com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse) obj; - - if (!getEntryGroupsList().equals(other.getEntryGroupsList())) 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 (getEntryGroupsCount() > 0) { - hash = (37 * hash) + ENTRY_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + getEntryGroupsList().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.datacatalog.v1beta1.ListEntryGroupsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse) - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse.class, - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (entryGroupsBuilder_ == null) { - entryGroups_ = java.util.Collections.emptyList(); - } else { - entryGroups_ = null; - entryGroupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListEntryGroupsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse build() { - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse buildPartial() { - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse result = - new com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse result) { - if (entryGroupsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - entryGroups_ = java.util.Collections.unmodifiableList(entryGroups_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.entryGroups_ = entryGroups_; - } else { - result.entryGroups_ = entryGroupsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse 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.datacatalog.v1beta1.ListEntryGroupsResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse other) { - if (other - == com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse.getDefaultInstance()) - return this; - if (entryGroupsBuilder_ == null) { - if (!other.entryGroups_.isEmpty()) { - if (entryGroups_.isEmpty()) { - entryGroups_ = other.entryGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureEntryGroupsIsMutable(); - entryGroups_.addAll(other.entryGroups_); - } - onChanged(); - } - } else { - if (!other.entryGroups_.isEmpty()) { - if (entryGroupsBuilder_.isEmpty()) { - entryGroupsBuilder_.dispose(); - entryGroupsBuilder_ = null; - entryGroups_ = other.entryGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - entryGroupsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetEntryGroupsFieldBuilder() - : null; - } else { - entryGroupsBuilder_.addAllMessages(other.entryGroups_); - } - } - } - 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.datacatalog.v1beta1.EntryGroup m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.EntryGroup.parser(), - extensionRegistry); - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - entryGroups_.add(m); - } else { - entryGroupsBuilder_.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 entryGroups_ = - java.util.Collections.emptyList(); - - private void ensureEntryGroupsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - entryGroups_ = - new java.util.ArrayList(entryGroups_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.EntryGroup, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> - entryGroupsBuilder_; - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public java.util.List getEntryGroupsList() { - if (entryGroupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(entryGroups_); - } else { - return entryGroupsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public int getEntryGroupsCount() { - if (entryGroupsBuilder_ == null) { - return entryGroups_.size(); - } else { - return entryGroupsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroups(int index) { - if (entryGroupsBuilder_ == null) { - return entryGroups_.get(index); - } else { - return entryGroupsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public Builder setEntryGroups( - int index, com.google.cloud.datacatalog.v1beta1.EntryGroup value) { - if (entryGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntryGroupsIsMutable(); - entryGroups_.set(index, value); - onChanged(); - } else { - entryGroupsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public Builder setEntryGroups( - int index, com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder builderForValue) { - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - entryGroups_.set(index, builderForValue.build()); - onChanged(); - } else { - entryGroupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public Builder addEntryGroups(com.google.cloud.datacatalog.v1beta1.EntryGroup value) { - if (entryGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntryGroupsIsMutable(); - entryGroups_.add(value); - onChanged(); - } else { - entryGroupsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public Builder addEntryGroups( - int index, com.google.cloud.datacatalog.v1beta1.EntryGroup value) { - if (entryGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureEntryGroupsIsMutable(); - entryGroups_.add(index, value); - onChanged(); - } else { - entryGroupsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public Builder addEntryGroups( - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder builderForValue) { - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - entryGroups_.add(builderForValue.build()); - onChanged(); - } else { - entryGroupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public Builder addEntryGroups( - int index, com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder builderForValue) { - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - entryGroups_.add(index, builderForValue.build()); - onChanged(); - } else { - entryGroupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public Builder addAllEntryGroups( - java.lang.Iterable values) { - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entryGroups_); - onChanged(); - } else { - entryGroupsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public Builder clearEntryGroups() { - if (entryGroupsBuilder_ == null) { - entryGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - entryGroupsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public Builder removeEntryGroups(int index) { - if (entryGroupsBuilder_ == null) { - ensureEntryGroupsIsMutable(); - entryGroups_.remove(index); - onChanged(); - } else { - entryGroupsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder getEntryGroupsBuilder( - int index) { - return internalGetEntryGroupsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder getEntryGroupsOrBuilder( - int index) { - if (entryGroupsBuilder_ == null) { - return entryGroups_.get(index); - } else { - return entryGroupsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public java.util.List - getEntryGroupsOrBuilderList() { - if (entryGroupsBuilder_ != null) { - return entryGroupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(entryGroups_); - } - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder addEntryGroupsBuilder() { - return internalGetEntryGroupsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance()); - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder addEntryGroupsBuilder( - int index) { - return internalGetEntryGroupsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance()); - } - - /** - * - * - *
-     * EntryGroup details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - public java.util.List - getEntryGroupsBuilderList() { - return internalGetEntryGroupsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.EntryGroup, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> - internalGetEntryGroupsFieldBuilder() { - if (entryGroupsBuilder_ == null) { - entryGroupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.EntryGroup, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder>( - entryGroups_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - entryGroups_ = null; - } - return entryGroupsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * 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; - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * 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.datacatalog.v1beta1.ListEntryGroupsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse) - private static final com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse(); - } - - public static com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListEntryGroupsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponseOrBuilder.java deleted file mode 100644 index e73e4c39d49b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListEntryGroupsResponseOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ListEntryGroupsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * EntryGroup details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - java.util.List getEntryGroupsList(); - - /** - * - * - *
-   * EntryGroup details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroups(int index); - - /** - * - * - *
-   * EntryGroup details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - int getEntryGroupsCount(); - - /** - * - * - *
-   * EntryGroup details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - java.util.List - getEntryGroupsOrBuilderList(); - - /** - * - * - *
-   * EntryGroup details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.EntryGroup entry_groups = 1; - */ - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder getEntryGroupsOrBuilder(int index); - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequest.java deleted file mode 100644 index 6700f8febdb3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequest.java +++ /dev/null @@ -1,910 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [ListPolicyTags][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest} - */ -@com.google.protobuf.Generated -public final class ListPolicyTagsRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) - ListPolicyTagsRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListPolicyTagsRequest"); - } - - // Use ListPolicyTagsRequest.newBuilder() to construct. - private ListPolicyTagsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListPolicyTagsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest.class, - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of the taxonomy to list the policy tags of.
-   * 
- * - * - * 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. Resource name of the taxonomy to list the policy tags of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * The maximum number of items to return. Must be a value between 1 and 1000.
-   * If not set, defaults to 50.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - - /** - * - * - *
-   * The next_page_token value returned from a previous List request, if any. If
-   * not set, defaults to an empty string.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * The next_page_token value returned from a previous List request, if any. If
-   * not set, defaults to an empty string.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest other = - (com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListPolicyTags][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest.class, - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest.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_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest build() { - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest result = - new com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. Resource name of the taxonomy to list the policy tags of.
-     * 
- * - * - * 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. Resource name of the taxonomy to list the policy tags of.
-     * 
- * - * - * 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. Resource name of the taxonomy to list the policy tags of.
-     * 
- * - * - * 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. Resource name of the taxonomy to list the policy tags of.
-     * 
- * - * - * 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. Resource name of the taxonomy to list the policy tags of.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_; - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000.
-     * If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000.
-     * If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000.
-     * If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - - /** - * - * - *
-     * The next_page_token value returned from a previous List request, if any. If
-     * not set, defaults to an empty string.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The next_page_token value returned from a previous List request, if any. If
-     * not set, defaults to an empty string.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The next_page_token value returned from a previous List request, if any. If
-     * not set, defaults to an empty string.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The next_page_token value returned from a previous List request, if any. If
-     * not set, defaults to an empty string.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * The next_page_token value returned from a previous List request, if any. If
-     * not set, defaults to an empty string.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) - private static final com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPolicyTagsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequestOrBuilder.java deleted file mode 100644 index c241b0d1c25e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsRequestOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ListPolicyTagsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the taxonomy to list the policy tags of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of the taxonomy to list the policy tags of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of items to return. Must be a value between 1 and 1000.
-   * If not set, defaults to 50.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * The next_page_token value returned from a previous List request, if any. If
-   * not set, defaults to an empty string.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * The next_page_token value returned from a previous List request, if any. If
-   * not set, defaults to an empty string.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponse.java deleted file mode 100644 index db67325f318f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponse.java +++ /dev/null @@ -1,1124 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Response message for
- * [ListPolicyTags][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse} - */ -@com.google.protobuf.Generated -public final class ListPolicyTagsResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse) - ListPolicyTagsResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListPolicyTagsResponse"); - } - - // Use ListPolicyTagsResponse.newBuilder() to construct. - private ListPolicyTagsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListPolicyTagsResponse() { - policyTags_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse.class, - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse.Builder.class); - } - - public static final int POLICY_TAGS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List policyTags_; - - /** - * - * - *
-   * The policy tags that are in the requested taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - @java.lang.Override - public java.util.List getPolicyTagsList() { - return policyTags_; - } - - /** - * - * - *
-   * The policy tags that are in the requested taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - @java.lang.Override - public java.util.List - getPolicyTagsOrBuilderList() { - return policyTags_; - } - - /** - * - * - *
-   * The policy tags that are in the requested taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - @java.lang.Override - public int getPolicyTagsCount() { - return policyTags_.size(); - } - - /** - * - * - *
-   * The policy tags that are in the requested taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTags(int index) { - return policyTags_.get(index); - } - - /** - * - * - *
-   * The policy tags that are in the requested taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder getPolicyTagsOrBuilder(int index) { - return policyTags_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Token used to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Token used to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < policyTags_.size(); i++) { - output.writeMessage(1, policyTags_.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 < policyTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policyTags_.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.datacatalog.v1beta1.ListPolicyTagsResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse other = - (com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse) obj; - - if (!getPolicyTagsList().equals(other.getPolicyTagsList())) 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 (getPolicyTagsCount() > 0) { - hash = (37 * hash) + POLICY_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTagsList().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.datacatalog.v1beta1.ListPolicyTagsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListPolicyTags][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse) - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse.class, - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (policyTagsBuilder_ == null) { - policyTags_ = java.util.Collections.emptyList(); - } else { - policyTags_ = null; - policyTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse build() { - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse buildPartial() { - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse result = - new com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse result) { - if (policyTagsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - policyTags_ = java.util.Collections.unmodifiableList(policyTags_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.policyTags_ = policyTags_; - } else { - result.policyTags_ = policyTagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse 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.datacatalog.v1beta1.ListPolicyTagsResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse other) { - if (other == com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse.getDefaultInstance()) - return this; - if (policyTagsBuilder_ == null) { - if (!other.policyTags_.isEmpty()) { - if (policyTags_.isEmpty()) { - policyTags_ = other.policyTags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePolicyTagsIsMutable(); - policyTags_.addAll(other.policyTags_); - } - onChanged(); - } - } else { - if (!other.policyTags_.isEmpty()) { - if (policyTagsBuilder_.isEmpty()) { - policyTagsBuilder_.dispose(); - policyTagsBuilder_ = null; - policyTags_ = other.policyTags_; - bitField0_ = (bitField0_ & ~0x00000001); - policyTagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetPolicyTagsFieldBuilder() - : null; - } else { - policyTagsBuilder_.addAllMessages(other.policyTags_); - } - } - } - 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.datacatalog.v1beta1.PolicyTag m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.PolicyTag.parser(), extensionRegistry); - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(m); - } else { - policyTagsBuilder_.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 policyTags_ = - java.util.Collections.emptyList(); - - private void ensurePolicyTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - policyTags_ = - new java.util.ArrayList(policyTags_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.PolicyTag, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> - policyTagsBuilder_; - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public java.util.List getPolicyTagsList() { - if (policyTagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(policyTags_); - } else { - return policyTagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public int getPolicyTagsCount() { - if (policyTagsBuilder_ == null) { - return policyTags_.size(); - } else { - return policyTagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTags(int index) { - if (policyTagsBuilder_ == null) { - return policyTags_.get(index); - } else { - return policyTagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public Builder setPolicyTags(int index, com.google.cloud.datacatalog.v1beta1.PolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.set(index, value); - onChanged(); - } else { - policyTagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public Builder setPolicyTags( - int index, com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.set(index, builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public Builder addPolicyTags(com.google.cloud.datacatalog.v1beta1.PolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.add(value); - onChanged(); - } else { - policyTagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public Builder addPolicyTags(int index, com.google.cloud.datacatalog.v1beta1.PolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.add(index, value); - onChanged(); - } else { - policyTagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public Builder addPolicyTags( - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public Builder addPolicyTags( - int index, com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(index, builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public Builder addAllPolicyTags( - java.lang.Iterable values) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyTags_); - onChanged(); - } else { - policyTagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public Builder clearPolicyTags() { - if (policyTagsBuilder_ == null) { - policyTags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - policyTagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public Builder removePolicyTags(int index) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.remove(index); - onChanged(); - } else { - policyTagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder getPolicyTagsBuilder(int index) { - return internalGetPolicyTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder getPolicyTagsOrBuilder( - int index) { - if (policyTagsBuilder_ == null) { - return policyTags_.get(index); - } else { - return policyTagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public java.util.List - getPolicyTagsOrBuilderList() { - if (policyTagsBuilder_ != null) { - return policyTagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policyTags_); - } - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder addPolicyTagsBuilder() { - return internalGetPolicyTagsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder addPolicyTagsBuilder(int index) { - return internalGetPolicyTagsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * The policy tags that are in the requested taxonomy.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - public java.util.List - getPolicyTagsBuilderList() { - return internalGetPolicyTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.PolicyTag, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> - internalGetPolicyTagsFieldBuilder() { - if (policyTagsBuilder_ == null) { - policyTagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.PolicyTag, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder>( - policyTags_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - policyTags_ = null; - } - return policyTagsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Token used to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Token used to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Token used to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Token used to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Token used to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse) - private static final com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse(); - } - - public static com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListPolicyTagsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponseOrBuilder.java deleted file mode 100644 index b0af5eea5bfd..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListPolicyTagsResponseOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ListPolicyTagsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The policy tags that are in the requested taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - java.util.List getPolicyTagsList(); - - /** - * - * - *
-   * The policy tags that are in the requested taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTags(int index); - - /** - * - * - *
-   * The policy tags that are in the requested taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - int getPolicyTagsCount(); - - /** - * - * - *
-   * The policy tags that are in the requested taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - java.util.List - getPolicyTagsOrBuilderList(); - - /** - * - * - *
-   * The policy tags that are in the requested taxonomy.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.PolicyTag policy_tags = 1; - */ - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder getPolicyTagsOrBuilder(int index); - - /** - * - * - *
-   * Token used to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Token used to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java deleted file mode 100644 index 2cedeb629b19..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequest.java +++ /dev/null @@ -1,954 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [ListTags][google.cloud.datacatalog.v1beta1.DataCatalog.ListTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTagsRequest} - */ -@com.google.protobuf.Generated -public final class ListTagsRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTagsRequest) - ListTagsRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListTagsRequest"); - } - - // Use ListTagsRequest.newBuilder() to construct. - private ListTagsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListTagsRequest() { - parent_ = ""; - pageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListTagsRequest.class, - com.google.cloud.datacatalog.v1beta1.ListTagsRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. The name of the Data Catalog resource to list the tags of. The
-   * resource could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an
-   * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-   *
-   * Examples:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * 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 Data Catalog resource to list the tags of. The
-   * resource could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an
-   * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-   *
-   * Examples:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * The maximum number of tags to return. Default is 10. Max limit is 1000.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - - /** - * - * - *
-   * Token that specifies which page is requested. If empty, the first page is
-   * returned.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Token that specifies which page is requested. If empty, the first page is
-   * returned.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.ListTagsRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ListTagsRequest other = - (com.google.cloud.datacatalog.v1beta1.ListTagsRequest) obj; - - if (!getParent().equals(other.getParent())) return false; - if (getPageSize() != other.getPageSize()) return false; - if (!getPageToken().equals(other.getPageToken())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.ListTagsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListTags][google.cloud.datacatalog.v1beta1.DataCatalog.ListTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTagsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ListTagsRequest) - com.google.cloud.datacatalog.v1beta1.ListTagsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListTagsRequest.class, - com.google.cloud.datacatalog.v1beta1.ListTagsRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ListTagsRequest.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_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListTagsRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTagsRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ListTagsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTagsRequest build() { - com.google.cloud.datacatalog.v1beta1.ListTagsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTagsRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.ListTagsRequest result = - new com.google.cloud.datacatalog.v1beta1.ListTagsRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ListTagsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.parent_ = parent_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageToken_ = pageToken_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.ListTagsRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ListTagsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ListTagsRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.ListTagsRequest.getDefaultInstance()) - return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object parent_ = ""; - - /** - * - * - *
-     * Required. The name of the Data Catalog resource to list the tags of. The
-     * resource could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an
-     * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-     *
-     * Examples:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * 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 Data Catalog resource to list the tags of. The
-     * resource could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an
-     * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-     *
-     * Examples:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * 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 Data Catalog resource to list the tags of. The
-     * resource could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an
-     * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-     *
-     * Examples:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * 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 Data Catalog resource to list the tags of. The
-     * resource could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an
-     * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-     *
-     * Examples:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * 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 Data Catalog resource to list the tags of. The
-     * resource could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an
-     * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-     *
-     * Examples:
-     *
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-     * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_; - - /** - * - * - *
-     * The maximum number of tags to return. Default is 10. Max limit is 1000.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
-     * The maximum number of tags to return. Default is 10. Max limit is 1000.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The maximum number of tags to return. Default is 10. Max limit is 1000.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - - /** - * - * - *
-     * Token that specifies which page is requested. If empty, the first page is
-     * returned.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Token that specifies which page is requested. If empty, the first page is
-     * returned.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Token that specifies which page is requested. If empty, the first page is
-     * returned.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Token that specifies which page is requested. If empty, the first page is
-     * returned.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Token that specifies which page is requested. If empty, the first page is
-     * returned.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ListTagsRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListTagsRequest) - private static final com.google.cloud.datacatalog.v1beta1.ListTagsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ListTagsRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTagsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTagsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java deleted file mode 100644 index edbc456a2b56..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsRequestOrBuilder.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ListTagsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ListTagsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the Data Catalog resource to list the tags of. The
-   * resource could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an
-   * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-   *
-   * Examples:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. The name of the Data Catalog resource to list the tags of. The
-   * resource could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an
-   * [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-   *
-   * Examples:
-   *
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
-   * * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of tags to return. Default is 10. Max limit is 1000.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Token that specifies which page is requested. If empty, the first page is
-   * returned.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * Token that specifies which page is requested. If empty, the first page is
-   * returned.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponse.java deleted file mode 100644 index 47ee5ce68682..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponse.java +++ /dev/null @@ -1,1120 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Response message for
- * [ListTags][google.cloud.datacatalog.v1beta1.DataCatalog.ListTags].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTagsResponse} - */ -@com.google.protobuf.Generated -public final class ListTagsResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTagsResponse) - ListTagsResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListTagsResponse"); - } - - // Use ListTagsResponse.newBuilder() to construct. - private ListTagsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListTagsResponse() { - tags_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListTagsResponse.class, - com.google.cloud.datacatalog.v1beta1.ListTagsResponse.Builder.class); - } - - public static final int TAGS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List tags_; - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - @java.lang.Override - public java.util.List getTagsList() { - return tags_; - } - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - @java.lang.Override - public java.util.List - getTagsOrBuilderList() { - return tags_; - } - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - @java.lang.Override - public int getTagsCount() { - return tags_.size(); - } - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Tag getTags(int index) { - return tags_.get(index); - } - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagOrBuilder getTagsOrBuilder(int index) { - return tags_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * 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 < tags_.size(); i++) { - output.writeMessage(1, tags_.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 < tags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tags_.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.datacatalog.v1beta1.ListTagsResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ListTagsResponse other = - (com.google.cloud.datacatalog.v1beta1.ListTagsResponse) obj; - - if (!getTagsList().equals(other.getTagsList())) 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 (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().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.datacatalog.v1beta1.ListTagsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ListTagsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListTags][google.cloud.datacatalog.v1beta1.DataCatalog.ListTags].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTagsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ListTagsResponse) - com.google.cloud.datacatalog.v1beta1.ListTagsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListTagsResponse.class, - com.google.cloud.datacatalog.v1beta1.ListTagsResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ListTagsResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (tagsBuilder_ == null) { - tags_ = java.util.Collections.emptyList(); - } else { - tags_ = null; - tagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_ListTagsResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTagsResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ListTagsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTagsResponse build() { - com.google.cloud.datacatalog.v1beta1.ListTagsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTagsResponse buildPartial() { - com.google.cloud.datacatalog.v1beta1.ListTagsResponse result = - new com.google.cloud.datacatalog.v1beta1.ListTagsResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.ListTagsResponse result) { - if (tagsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - tags_ = java.util.Collections.unmodifiableList(tags_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.tags_ = tags_; - } else { - result.tags_ = tagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ListTagsResponse 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.datacatalog.v1beta1.ListTagsResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ListTagsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ListTagsResponse other) { - if (other == com.google.cloud.datacatalog.v1beta1.ListTagsResponse.getDefaultInstance()) - return this; - if (tagsBuilder_ == null) { - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - } else { - if (!other.tags_.isEmpty()) { - if (tagsBuilder_.isEmpty()) { - tagsBuilder_.dispose(); - tagsBuilder_ = null; - tags_ = other.tags_; - bitField0_ = (bitField0_ & ~0x00000001); - tagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTagsFieldBuilder() - : null; - } else { - tagsBuilder_.addAllMessages(other.tags_); - } - } - } - 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.datacatalog.v1beta1.Tag m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.Tag.parser(), extensionRegistry); - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(m); - } else { - tagsBuilder_.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 tags_ = - java.util.Collections.emptyList(); - - private void ensureTagsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - tags_ = new java.util.ArrayList(tags_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Tag, - com.google.cloud.datacatalog.v1beta1.Tag.Builder, - com.google.cloud.datacatalog.v1beta1.TagOrBuilder> - tagsBuilder_; - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public java.util.List getTagsList() { - if (tagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(tags_); - } else { - return tagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public int getTagsCount() { - if (tagsBuilder_ == null) { - return tags_.size(); - } else { - return tagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Tag getTags(int index) { - if (tagsBuilder_ == null) { - return tags_.get(index); - } else { - return tagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public Builder setTags(int index, com.google.cloud.datacatalog.v1beta1.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - onChanged(); - } else { - tagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public Builder setTags( - int index, com.google.cloud.datacatalog.v1beta1.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.set(index, builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public Builder addTags(com.google.cloud.datacatalog.v1beta1.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - onChanged(); - } else { - tagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public Builder addTags(int index, com.google.cloud.datacatalog.v1beta1.Tag value) { - if (tagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(index, value); - onChanged(); - } else { - tagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public Builder addTags(com.google.cloud.datacatalog.v1beta1.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public Builder addTags( - int index, com.google.cloud.datacatalog.v1beta1.Tag.Builder builderForValue) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.add(index, builderForValue.build()); - onChanged(); - } else { - tagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public Builder addAllTags( - java.lang.Iterable values) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - onChanged(); - } else { - tagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public Builder clearTags() { - if (tagsBuilder_ == null) { - tags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - tagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public Builder removeTags(int index) { - if (tagsBuilder_ == null) { - ensureTagsIsMutable(); - tags_.remove(index); - onChanged(); - } else { - tagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Tag.Builder getTagsBuilder(int index) { - return internalGetTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public com.google.cloud.datacatalog.v1beta1.TagOrBuilder getTagsOrBuilder(int index) { - if (tagsBuilder_ == null) { - return tags_.get(index); - } else { - return tagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public java.util.List - getTagsOrBuilderList() { - if (tagsBuilder_ != null) { - return tagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(tags_); - } - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Tag.Builder addTagsBuilder() { - return internalGetTagsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance()); - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Tag.Builder addTagsBuilder(int index) { - return internalGetTagsFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance()); - } - - /** - * - * - *
-     * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - public java.util.List getTagsBuilderList() { - return internalGetTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Tag, - com.google.cloud.datacatalog.v1beta1.Tag.Builder, - com.google.cloud.datacatalog.v1beta1.TagOrBuilder> - internalGetTagsFieldBuilder() { - if (tagsBuilder_ == null) { - tagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Tag, - com.google.cloud.datacatalog.v1beta1.Tag.Builder, - com.google.cloud.datacatalog.v1beta1.TagOrBuilder>( - tags_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - tags_ = null; - } - return tagsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * 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; - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Token to retrieve the next page of results. It is set to empty if no items
-     * remain in results.
-     * 
- * - * 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.datacatalog.v1beta1.ListTagsResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListTagsResponse) - private static final com.google.cloud.datacatalog.v1beta1.ListTagsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ListTagsResponse(); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTagsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTagsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTagsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponseOrBuilder.java deleted file mode 100644 index 68b6cf412263..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTagsResponseOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ListTagsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ListTagsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - java.util.List getTagsList(); - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - com.google.cloud.datacatalog.v1beta1.Tag getTags(int index); - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - int getTagsCount(); - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - java.util.List - getTagsOrBuilderList(); - - /** - * - * - *
-   * [Tag][google.cloud.datacatalog.v1beta1.Tag] details.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Tag tags = 1; - */ - com.google.cloud.datacatalog.v1beta1.TagOrBuilder getTagsOrBuilder(int index); - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Token to retrieve the next page of results. It is set to empty if no items
-   * remain in results.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequest.java deleted file mode 100644 index 5e7f1138418f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequest.java +++ /dev/null @@ -1,1106 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [ListTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest} - */ -@com.google.protobuf.Generated -public final class ListTaxonomiesRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest) - ListTaxonomiesRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListTaxonomiesRequest"); - } - - // Use ListTaxonomiesRequest.newBuilder() to construct. - private ListTaxonomiesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListTaxonomiesRequest() { - parent_ = ""; - pageToken_ = ""; - filter_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object parent_ = ""; - - /** - * - * - *
-   * Required. Resource name of the project to list the taxonomies of.
-   * 
- * - * - * 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. Resource name of the project to list the taxonomies of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * The maximum number of items to return. Must be a value between 1 and 1000.
-   * If not set, defaults to 50.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - - /** - * - * - *
-   * The next_page_token value returned from a previous list request, if any. If
-   * not set, defaults to an empty string.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * The next_page_token value returned from a previous list request, if any. If
-   * not set, defaults to an empty string.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILTER_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object filter_ = ""; - - /** - * - * - *
-   * Supported field for filter is 'service' and value is 'dataplex'.
-   * Eg: service=dataplex.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } - } - - /** - * - * - *
-   * Supported field for filter is 'service' and value is 'dataplex'.
-   * Eg: service=dataplex.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.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.datacatalog.v1beta1.ListTaxonomiesRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest other = - (com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest) 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.datacatalog.v1beta1.ListTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest) - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest.class, - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest.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.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest build() { - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest result = - new com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest 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.datacatalog.v1beta1.ListTaxonomiesRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest.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. Resource name of the project to list the taxonomies of.
-     * 
- * - * - * 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. Resource name of the project to list the taxonomies of.
-     * 
- * - * - * 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. Resource name of the project to list the taxonomies of.
-     * 
- * - * - * 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. Resource name of the project to list the taxonomies of.
-     * 
- * - * - * 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. Resource name of the project to list the taxonomies of.
-     * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parent_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private int pageSize_; - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000.
-     * If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000.
-     * If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The maximum number of items to return. Must be a value between 1 and 1000.
-     * If not set, defaults to 50.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000002); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - - /** - * - * - *
-     * The next_page_token value returned from a previous list request, if any. If
-     * not set, defaults to an empty string.
-     * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The next_page_token value returned from a previous list request, if any. If
-     * not set, defaults to an empty string.
-     * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The next_page_token value returned from a previous list request, if any. If
-     * not set, defaults to an empty string.
-     * 
- * - * string page_token = 3; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The next_page_token value returned from a previous list request, if any. If
-     * not set, defaults to an empty string.
-     * 
- * - * string page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * The next_page_token value returned from a previous list request, if any. If
-     * not set, defaults to an empty string.
-     * 
- * - * string page_token = 3; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object filter_ = ""; - - /** - * - * - *
-     * Supported field for filter is 'service' and value is 'dataplex'.
-     * Eg: service=dataplex.
-     * 
- * - * string filter = 4; - * - * @return The filter. - */ - public java.lang.String getFilter() { - java.lang.Object ref = filter_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - filter_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Supported field for filter is 'service' and value is 'dataplex'.
-     * Eg: service=dataplex.
-     * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - public com.google.protobuf.ByteString getFilterBytes() { - java.lang.Object ref = filter_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - filter_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Supported field for filter is 'service' and value is 'dataplex'.
-     * Eg: service=dataplex.
-     * 
- * - * string filter = 4; - * - * @param value The filter to set. - * @return This builder for chaining. - */ - public Builder setFilter(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - filter_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Supported field for filter is 'service' and value is 'dataplex'.
-     * Eg: service=dataplex.
-     * 
- * - * string filter = 4; - * - * @return This builder for chaining. - */ - public Builder clearFilter() { - filter_ = getDefaultInstance().getFilter(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Supported field for filter is 'service' and value is 'dataplex'.
-     * Eg: service=dataplex.
-     * 
- * - * string filter = 4; - * - * @param value The bytes for filter to set. - * @return This builder for chaining. - */ - public Builder setFilterBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - filter_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest) - private static final com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTaxonomiesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequestOrBuilder.java deleted file mode 100644 index d333977c268e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesRequestOrBuilder.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ListTaxonomiesRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Resource name of the project to list the taxonomies of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - - /** - * - * - *
-   * Required. Resource name of the project to list the taxonomies of.
-   * 
- * - * - * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); - - /** - * - * - *
-   * The maximum number of items to return. Must be a value between 1 and 1000.
-   * If not set, defaults to 50.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * The next_page_token value returned from a previous list request, if any. If
-   * not set, defaults to an empty string.
-   * 
- * - * string page_token = 3; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * The next_page_token value returned from a previous list request, if any. If
-   * not set, defaults to an empty string.
-   * 
- * - * string page_token = 3; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Supported field for filter is 'service' and value is 'dataplex'.
-   * Eg: service=dataplex.
-   * 
- * - * string filter = 4; - * - * @return The filter. - */ - java.lang.String getFilter(); - - /** - * - * - *
-   * Supported field for filter is 'service' and value is 'dataplex'.
-   * Eg: service=dataplex.
-   * 
- * - * string filter = 4; - * - * @return The bytes for filter. - */ - com.google.protobuf.ByteString getFilterBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponse.java deleted file mode 100644 index d2a3b42ce417..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponse.java +++ /dev/null @@ -1,1124 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Response message for
- * [ListTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse} - */ -@com.google.protobuf.Generated -public final class ListTaxonomiesResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse) - ListTaxonomiesResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ListTaxonomiesResponse"); - } - - // Use ListTaxonomiesResponse.newBuilder() to construct. - private ListTaxonomiesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ListTaxonomiesResponse() { - taxonomies_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse.Builder.class); - } - - public static final int TAXONOMIES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List taxonomies_; - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List getTaxonomiesList() { - return taxonomies_; - } - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public java.util.List - getTaxonomiesOrBuilderList() { - return taxonomies_; - } - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public int getTaxonomiesCount() { - return taxonomies_.size(); - } - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomies(int index) { - return taxonomies_.get(index); - } - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomiesOrBuilder(int index) { - return taxonomies_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * Token used to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * Token used to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < taxonomies_.size(); i++) { - output.writeMessage(1, taxonomies_.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 < taxonomies_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, taxonomies_.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.datacatalog.v1beta1.ListTaxonomiesResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse other = - (com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse) obj; - - if (!getTaxonomiesList().equals(other.getTaxonomiesList())) 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 (getTaxonomiesCount() > 0) { - hash = (37 * hash) + TAXONOMIES_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomiesList().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.datacatalog.v1beta1.ListTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [ListTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse) - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse.class, - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - } else { - taxonomies_ = null; - taxonomiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - nextPageToken_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse build() { - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse buildPartial() { - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse result = - new com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse result) { - if (taxonomiesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = java.util.Collections.unmodifiableList(taxonomies_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.taxonomies_ = taxonomies_; - } else { - result.taxonomies_ = taxonomiesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse 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.datacatalog.v1beta1.ListTaxonomiesResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse other) { - if (other == com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse.getDefaultInstance()) - return this; - if (taxonomiesBuilder_ == null) { - if (!other.taxonomies_.isEmpty()) { - if (taxonomies_.isEmpty()) { - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureTaxonomiesIsMutable(); - taxonomies_.addAll(other.taxonomies_); - } - onChanged(); - } - } else { - if (!other.taxonomies_.isEmpty()) { - if (taxonomiesBuilder_.isEmpty()) { - taxonomiesBuilder_.dispose(); - taxonomiesBuilder_ = null; - taxonomies_ = other.taxonomies_; - bitField0_ = (bitField0_ & ~0x00000001); - taxonomiesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetTaxonomiesFieldBuilder() - : null; - } else { - taxonomiesBuilder_.addAllMessages(other.taxonomies_); - } - } - } - 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.datacatalog.v1beta1.Taxonomy m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.Taxonomy.parser(), extensionRegistry); - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(m); - } else { - taxonomiesBuilder_.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 taxonomies_ = - java.util.Collections.emptyList(); - - private void ensureTaxonomiesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - taxonomies_ = - new java.util.ArrayList(taxonomies_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - taxonomiesBuilder_; - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public java.util.List getTaxonomiesList() { - if (taxonomiesBuilder_ == null) { - return java.util.Collections.unmodifiableList(taxonomies_); - } else { - return taxonomiesBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public int getTaxonomiesCount() { - if (taxonomiesBuilder_ == null) { - return taxonomies_.size(); - } else { - return taxonomiesBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder setTaxonomies(int index, com.google.cloud.datacatalog.v1beta1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, value); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder setTaxonomies( - int index, com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.set(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies(com.google.cloud.datacatalog.v1beta1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies(int index, com.google.cloud.datacatalog.v1beta1.Taxonomy value) { - if (taxonomiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, value); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder addTaxonomies( - int index, com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder builderForValue) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.add(index, builderForValue.build()); - onChanged(); - } else { - taxonomiesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder addAllTaxonomies( - java.lang.Iterable values) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, taxonomies_); - onChanged(); - } else { - taxonomiesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder clearTaxonomies() { - if (taxonomiesBuilder_ == null) { - taxonomies_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - taxonomiesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public Builder removeTaxonomies(int index) { - if (taxonomiesBuilder_ == null) { - ensureTaxonomiesIsMutable(); - taxonomies_.remove(index); - onChanged(); - } else { - taxonomiesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder getTaxonomiesBuilder(int index) { - return internalGetTaxonomiesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomiesOrBuilder( - int index) { - if (taxonomiesBuilder_ == null) { - return taxonomies_.get(index); - } else { - return taxonomiesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesOrBuilderList() { - if (taxonomiesBuilder_ != null) { - return taxonomiesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(taxonomies_); - } - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder addTaxonomiesBuilder() { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder addTaxonomiesBuilder(int index) { - return internalGetTaxonomiesFieldBuilder() - .addBuilder(index, com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance()); - } - - /** - * - * - *
-     * Taxonomies that the project contains.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - public java.util.List - getTaxonomiesBuilderList() { - return internalGetTaxonomiesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - internalGetTaxonomiesFieldBuilder() { - if (taxonomiesBuilder_ == null) { - taxonomiesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder>( - taxonomies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - taxonomies_ = null; - } - return taxonomiesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * Token used to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Token used to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Token used to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Token used to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Token used to retrieve the next page of results, or empty if there are no
-     * more results in the list.
-     * 
- * - * string next_page_token = 2; - * - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - nextPageToken_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse) - private static final com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse(); - } - - public static com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListTaxonomiesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponseOrBuilder.java deleted file mode 100644 index ac8f9b4ffdec..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ListTaxonomiesResponseOrBuilder.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ListTaxonomiesResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - java.util.List getTaxonomiesList(); - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomies(int index); - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - int getTaxonomiesCount(); - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - java.util.List - getTaxonomiesOrBuilderList(); - - /** - * - * - *
-   * Taxonomies that the project contains.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy taxonomies = 1; - */ - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomiesOrBuilder(int index); - - /** - * - * - *
-   * Token used to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * Token used to retrieve the next page of results, or empty if there are no
-   * more results in the list.
-   * 
- * - * string next_page_token = 2; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java deleted file mode 100644 index 1e1ad02f1e1d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LocationName.java +++ /dev/null @@ -1,195 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java deleted file mode 100644 index bfae8ad630aa..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequest.java +++ /dev/null @@ -1,1146 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [LookupEntry][google.cloud.datacatalog.v1beta1.DataCatalog.LookupEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.LookupEntryRequest} - */ -@com.google.protobuf.Generated -public final class LookupEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.LookupEntryRequest) - LookupEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "LookupEntryRequest"); - } - - // Use LookupEntryRequest.newBuilder() to construct. - private LookupEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private LookupEntryRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest.class, - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest.Builder.class); - } - - private int targetNameCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object targetName_; - - public enum TargetNameCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - LINKED_RESOURCE(1), - SQL_RESOURCE(3), - TARGETNAME_NOT_SET(0); - private final int value; - - private TargetNameCase(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 TargetNameCase valueOf(int value) { - return forNumber(value); - } - - public static TargetNameCase forNumber(int value) { - switch (value) { - case 1: - return LINKED_RESOURCE; - case 3: - return SQL_RESOURCE; - case 0: - return TARGETNAME_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public TargetNameCase getTargetNameCase() { - return TargetNameCase.forNumber(targetNameCase_); - } - - public static final int LINKED_RESOURCE_FIELD_NUMBER = 1; - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. See:
-   * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-   * Full names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-   * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-   * 
- * - * string linked_resource = 1; - * - * @return Whether the linkedResource field is set. - */ - public boolean hasLinkedResource() { - return targetNameCase_ == 1; - } - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. See:
-   * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-   * Full names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-   * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-   * 
- * - * string linked_resource = 1; - * - * @return The linkedResource. - */ - public java.lang.String getLinkedResource() { - java.lang.Object ref = ""; - if (targetNameCase_ == 1) { - ref = targetName_; - } - if (ref instanceof java.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 (targetNameCase_ == 1) { - targetName_ = s; - } - return s; - } - } - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. See:
-   * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-   * Full names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-   * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-   * 
- * - * string linked_resource = 1; - * - * @return The bytes for linkedResource. - */ - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = ""; - if (targetNameCase_ == 1) { - ref = targetName_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetNameCase_ == 1) { - targetName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SQL_RESOURCE_FIELD_NUMBER = 3; - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.project_id.topic_id`
-   * * ``pubsub.project_id.`topic.id.with.dots` ``
-   * * `bigquery.table.project_id.dataset_id.table_id`
-   * * `bigquery.dataset.project_id.dataset_id`
-   * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-   *
-   * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-   * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-   * 
- * - * string sql_resource = 3; - * - * @return Whether the sqlResource field is set. - */ - public boolean hasSqlResource() { - return targetNameCase_ == 3; - } - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.project_id.topic_id`
-   * * ``pubsub.project_id.`topic.id.with.dots` ``
-   * * `bigquery.table.project_id.dataset_id.table_id`
-   * * `bigquery.dataset.project_id.dataset_id`
-   * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-   *
-   * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-   * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-   * 
- * - * string sql_resource = 3; - * - * @return The sqlResource. - */ - public java.lang.String getSqlResource() { - java.lang.Object ref = ""; - if (targetNameCase_ == 3) { - ref = targetName_; - } - if (ref instanceof java.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 (targetNameCase_ == 3) { - targetName_ = s; - } - return s; - } - } - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.project_id.topic_id`
-   * * ``pubsub.project_id.`topic.id.with.dots` ``
-   * * `bigquery.table.project_id.dataset_id.table_id`
-   * * `bigquery.dataset.project_id.dataset_id`
-   * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-   *
-   * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-   * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-   * 
- * - * string sql_resource = 3; - * - * @return The bytes for sqlResource. - */ - public com.google.protobuf.ByteString getSqlResourceBytes() { - java.lang.Object ref = ""; - if (targetNameCase_ == 3) { - ref = targetName_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetNameCase_ == 3) { - targetName_ = 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 (targetNameCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, targetName_); - } - if (targetNameCase_ == 3) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, targetName_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (targetNameCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, targetName_); - } - if (targetNameCase_ == 3) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, targetName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.LookupEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest other = - (com.google.cloud.datacatalog.v1beta1.LookupEntryRequest) obj; - - if (!getTargetNameCase().equals(other.getTargetNameCase())) return false; - switch (targetNameCase_) { - case 1: - if (!getLinkedResource().equals(other.getLinkedResource())) return false; - break; - case 3: - if (!getSqlResource().equals(other.getSqlResource())) 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 (targetNameCase_) { - case 1: - hash = (37 * hash) + LINKED_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getLinkedResource().hashCode(); - break; - case 3: - hash = (37 * hash) + SQL_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getSqlResource().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [LookupEntry][google.cloud.datacatalog.v1beta1.DataCatalog.LookupEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.LookupEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.LookupEntryRequest) - com.google.cloud.datacatalog.v1beta1.LookupEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest.class, - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.LookupEntryRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - targetNameCase_ = 0; - targetName_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_LookupEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.LookupEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.LookupEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.LookupEntryRequest build() { - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.LookupEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest result = - new com.google.cloud.datacatalog.v1beta1.LookupEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.LookupEntryRequest result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs( - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest result) { - result.targetNameCase_ = targetNameCase_; - result.targetName_ = this.targetName_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.LookupEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.LookupEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.LookupEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.LookupEntryRequest.getDefaultInstance()) - return this; - switch (other.getTargetNameCase()) { - case LINKED_RESOURCE: - { - targetNameCase_ = 1; - targetName_ = other.targetName_; - onChanged(); - break; - } - case SQL_RESOURCE: - { - targetNameCase_ = 3; - targetName_ = other.targetName_; - onChanged(); - break; - } - case TARGETNAME_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(); - targetNameCase_ = 1; - targetName_ = s; - break; - } // case 10 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - targetNameCase_ = 3; - targetName_ = 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 targetNameCase_ = 0; - private java.lang.Object targetName_; - - public TargetNameCase getTargetNameCase() { - return TargetNameCase.forNumber(targetNameCase_); - } - - public Builder clearTargetName() { - targetNameCase_ = 0; - targetName_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Full names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-     * 
- * - * string linked_resource = 1; - * - * @return Whether the linkedResource field is set. - */ - @java.lang.Override - public boolean hasLinkedResource() { - return targetNameCase_ == 1; - } - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Full names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-     * 
- * - * string linked_resource = 1; - * - * @return The linkedResource. - */ - @java.lang.Override - public java.lang.String getLinkedResource() { - java.lang.Object ref = ""; - if (targetNameCase_ == 1) { - ref = targetName_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (targetNameCase_ == 1) { - targetName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Full names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-     * 
- * - * string linked_resource = 1; - * - * @return The bytes for linkedResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = ""; - if (targetNameCase_ == 1) { - ref = targetName_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetNameCase_ == 1) { - targetName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Full names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-     * 
- * - * string linked_resource = 1; - * - * @param value The linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - targetNameCase_ = 1; - targetName_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Full names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-     * 
- * - * string linked_resource = 1; - * - * @return This builder for chaining. - */ - public Builder clearLinkedResource() { - if (targetNameCase_ == 1) { - targetNameCase_ = 0; - targetName_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The full name of the Google Cloud Platform resource the Data Catalog
-     * entry represents. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Full names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-     * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-     * 
- * - * string linked_resource = 1; - * - * @param value The bytes for linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - targetNameCase_ = 1; - targetName_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.project_id.topic_id`
-     * * ``pubsub.project_id.`topic.id.with.dots` ``
-     * * `bigquery.table.project_id.dataset_id.table_id`
-     * * `bigquery.dataset.project_id.dataset_id`
-     * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-     *
-     * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-     * 
- * - * string sql_resource = 3; - * - * @return Whether the sqlResource field is set. - */ - @java.lang.Override - public boolean hasSqlResource() { - return targetNameCase_ == 3; - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.project_id.topic_id`
-     * * ``pubsub.project_id.`topic.id.with.dots` ``
-     * * `bigquery.table.project_id.dataset_id.table_id`
-     * * `bigquery.dataset.project_id.dataset_id`
-     * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-     *
-     * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-     * 
- * - * string sql_resource = 3; - * - * @return The sqlResource. - */ - @java.lang.Override - public java.lang.String getSqlResource() { - java.lang.Object ref = ""; - if (targetNameCase_ == 3) { - ref = targetName_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (targetNameCase_ == 3) { - targetName_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.project_id.topic_id`
-     * * ``pubsub.project_id.`topic.id.with.dots` ``
-     * * `bigquery.table.project_id.dataset_id.table_id`
-     * * `bigquery.dataset.project_id.dataset_id`
-     * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-     *
-     * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-     * 
- * - * string sql_resource = 3; - * - * @return The bytes for sqlResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSqlResourceBytes() { - java.lang.Object ref = ""; - if (targetNameCase_ == 3) { - ref = targetName_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (targetNameCase_ == 3) { - targetName_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.project_id.topic_id`
-     * * ``pubsub.project_id.`topic.id.with.dots` ``
-     * * `bigquery.table.project_id.dataset_id.table_id`
-     * * `bigquery.dataset.project_id.dataset_id`
-     * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-     *
-     * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-     * 
- * - * string sql_resource = 3; - * - * @param value The sqlResource to set. - * @return This builder for chaining. - */ - public Builder setSqlResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - targetNameCase_ = 3; - targetName_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.project_id.topic_id`
-     * * ``pubsub.project_id.`topic.id.with.dots` ``
-     * * `bigquery.table.project_id.dataset_id.table_id`
-     * * `bigquery.dataset.project_id.dataset_id`
-     * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-     *
-     * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-     * 
- * - * string sql_resource = 3; - * - * @return This builder for chaining. - */ - public Builder clearSqlResource() { - if (targetNameCase_ == 3) { - targetNameCase_ = 0; - targetName_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The SQL name of the entry. SQL names are case-sensitive.
-     *
-     * Examples:
-     *
-     * * `pubsub.project_id.topic_id`
-     * * ``pubsub.project_id.`topic.id.with.dots` ``
-     * * `bigquery.table.project_id.dataset_id.table_id`
-     * * `bigquery.dataset.project_id.dataset_id`
-     * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-     *
-     * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-     * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-     * 
- * - * string sql_resource = 3; - * - * @param value The bytes for sqlResource to set. - * @return This builder for chaining. - */ - public Builder setSqlResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - targetNameCase_ = 3; - targetName_ = value; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.LookupEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.LookupEntryRequest) - private static final com.google.cloud.datacatalog.v1beta1.LookupEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.LookupEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.LookupEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LookupEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.LookupEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java deleted file mode 100644 index 9b1d6da808c4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/LookupEntryRequestOrBuilder.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface LookupEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.LookupEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. See:
-   * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-   * Full names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-   * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-   * 
- * - * string linked_resource = 1; - * - * @return Whether the linkedResource field is set. - */ - boolean hasLinkedResource(); - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. See:
-   * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-   * Full names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-   * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-   * 
- * - * string linked_resource = 1; - * - * @return The linkedResource. - */ - java.lang.String getLinkedResource(); - - /** - * - * - *
-   * The full name of the Google Cloud Platform resource the Data Catalog
-   * entry represents. See:
-   * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-   * Full names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId
-   * * //pubsub.googleapis.com/projects/projectId/topics/topicId
-   * 
- * - * string linked_resource = 1; - * - * @return The bytes for linkedResource. - */ - com.google.protobuf.ByteString getLinkedResourceBytes(); - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.project_id.topic_id`
-   * * ``pubsub.project_id.`topic.id.with.dots` ``
-   * * `bigquery.table.project_id.dataset_id.table_id`
-   * * `bigquery.dataset.project_id.dataset_id`
-   * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-   *
-   * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-   * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-   * 
- * - * string sql_resource = 3; - * - * @return Whether the sqlResource field is set. - */ - boolean hasSqlResource(); - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.project_id.topic_id`
-   * * ``pubsub.project_id.`topic.id.with.dots` ``
-   * * `bigquery.table.project_id.dataset_id.table_id`
-   * * `bigquery.dataset.project_id.dataset_id`
-   * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-   *
-   * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-   * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-   * 
- * - * string sql_resource = 3; - * - * @return The sqlResource. - */ - java.lang.String getSqlResource(); - - /** - * - * - *
-   * The SQL name of the entry. SQL names are case-sensitive.
-   *
-   * Examples:
-   *
-   * * `pubsub.project_id.topic_id`
-   * * ``pubsub.project_id.`topic.id.with.dots` ``
-   * * `bigquery.table.project_id.dataset_id.table_id`
-   * * `bigquery.dataset.project_id.dataset_id`
-   * * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id`
-   *
-   * `*_id`s should satisfy the GoogleSQL rules for identifiers.
-   * https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical.
-   * 
- * - * string sql_resource = 3; - * - * @return The bytes for sqlResource. - */ - com.google.protobuf.ByteString getSqlResourceBytes(); - - com.google.cloud.datacatalog.v1beta1.LookupEntryRequest.TargetNameCase getTargetNameCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ManagingSystem.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ManagingSystem.java deleted file mode 100644 index 28d0a013bcec..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ManagingSystem.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/common.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * This enum describes all the systems that manage
- * Taxonomy and PolicyTag resources in DataCatalog.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1beta1.ManagingSystem} - */ -@com.google.protobuf.Generated -public enum ManagingSystem implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default value
-   * 
- * - * MANAGING_SYSTEM_UNSPECIFIED = 0; - */ - MANAGING_SYSTEM_UNSPECIFIED(0), - /** - * - * - *
-   * Dataplex.
-   * 
- * - * MANAGING_SYSTEM_DATAPLEX = 1; - */ - MANAGING_SYSTEM_DATAPLEX(1), - /** - * - * - *
-   * Other
-   * 
- * - * MANAGING_SYSTEM_OTHER = 2; - */ - MANAGING_SYSTEM_OTHER(2), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ManagingSystem"); - } - - /** - * - * - *
-   * Default value
-   * 
- * - * MANAGING_SYSTEM_UNSPECIFIED = 0; - */ - public static final int MANAGING_SYSTEM_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * Dataplex.
-   * 
- * - * MANAGING_SYSTEM_DATAPLEX = 1; - */ - public static final int MANAGING_SYSTEM_DATAPLEX_VALUE = 1; - - /** - * - * - *
-   * Other
-   * 
- * - * MANAGING_SYSTEM_OTHER = 2; - */ - public static final int MANAGING_SYSTEM_OTHER_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 ManagingSystem 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 ManagingSystem forNumber(int value) { - switch (value) { - case 0: - return MANAGING_SYSTEM_UNSPECIFIED; - case 1: - return MANAGING_SYSTEM_DATAPLEX; - case 2: - return MANAGING_SYSTEM_OTHER; - 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 ManagingSystem findValueByNumber(int number) { - return ManagingSystem.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.datacatalog.v1beta1.Common.getDescriptor().getEnumTypes().get(1); - } - - private static final ManagingSystem[] VALUES = values(); - - public static ManagingSystem 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 ManagingSystem(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1beta1.ManagingSystem) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java deleted file mode 100644 index da66b4261d1a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTag.java +++ /dev/null @@ -1,1555 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined
- * in a hierarchy. For example, consider the following hierarchy:
- * Geolocation -&gt; (LatLong, City, ZipCode). PolicyTag "Geolocation"
- * contains three child policy tags: "LatLong", "City", and "ZipCode".
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.PolicyTag} - */ -@com.google.protobuf.Generated -public final class PolicyTag extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.PolicyTag) - PolicyTagOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PolicyTag"); - } - - // Use PolicyTag.newBuilder() to construct. - private PolicyTag(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private PolicyTag() { - name_ = ""; - displayName_ = ""; - description_ = ""; - parentPolicyTag_ = ""; - childPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_PolicyTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_PolicyTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.PolicyTag.class, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. Resource name of this policy tag, whose format is:
-   * "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
-   * 
- * - * 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. Resource name of this policy tag, whose format is:
-   * "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
-   * 
- * - * 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_ = ""; - - /** - * - * - *
-   * Required. User defined name of this policy tag. It must: be unique within
-   * the parent taxonomy; contain only unicode letters, numbers, underscores,
-   * dashes and spaces; not start or end with spaces; and be at most 200 bytes
-   * long when encoded in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-   * Required. User defined name of this policy tag. It must: be unique within
-   * the parent taxonomy; contain only unicode letters, numbers, underscores,
-   * dashes and spaces; not start or end with spaces; and be at most 200 bytes
-   * long when encoded in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ = ""; - - /** - * - * - *
-   * Description of this policy tag. It must: contain only unicode characters,
-   * tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes
-   * long when encoded in UTF-8. If not set, defaults to an empty description.
-   * If not set, defaults to an empty description.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - - /** - * - * - *
-   * Description of this policy tag. It must: contain only unicode characters,
-   * tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes
-   * long when encoded in UTF-8. If not set, defaults to an empty description.
-   * If not set, defaults to an empty description.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PARENT_POLICY_TAG_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object parentPolicyTag_ = ""; - - /** - * - * - *
-   * Resource name of this policy tag's parent policy tag (e.g. for the
-   * "LatLong" policy tag in the example above, this field contains the
-   * resource name of the "Geolocation" policy tag). If empty, it means this
-   * policy tag is a top level policy tag (e.g. this field is empty for the
-   * "Geolocation" policy tag in the example above). If not set, defaults to an
-   * empty string.
-   * 
- * - * string parent_policy_tag = 4; - * - * @return The parentPolicyTag. - */ - @java.lang.Override - public java.lang.String getParentPolicyTag() { - java.lang.Object ref = parentPolicyTag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentPolicyTag_ = s; - return s; - } - } - - /** - * - * - *
-   * Resource name of this policy tag's parent policy tag (e.g. for the
-   * "LatLong" policy tag in the example above, this field contains the
-   * resource name of the "Geolocation" policy tag). If empty, it means this
-   * policy tag is a top level policy tag (e.g. this field is empty for the
-   * "Geolocation" policy tag in the example above). If not set, defaults to an
-   * empty string.
-   * 
- * - * string parent_policy_tag = 4; - * - * @return The bytes for parentPolicyTag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getParentPolicyTagBytes() { - java.lang.Object ref = parentPolicyTag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentPolicyTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHILD_POLICY_TAGS_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList childPolicyTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the childPolicyTags. - */ - public com.google.protobuf.ProtocolStringList getChildPolicyTagsList() { - return childPolicyTags_; - } - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of childPolicyTags. - */ - public int getChildPolicyTagsCount() { - return childPolicyTags_.size(); - } - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The childPolicyTags at the given index. - */ - public java.lang.String getChildPolicyTags(int index) { - return childPolicyTags_.get(index); - } - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the childPolicyTags at the given index. - */ - public com.google.protobuf.ByteString getChildPolicyTagsBytes(int index) { - return childPolicyTags_.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 (!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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentPolicyTag_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, parentPolicyTag_); - } - for (int i = 0; i < childPolicyTags_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, childPolicyTags_.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 (!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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(parentPolicyTag_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, parentPolicyTag_); - } - { - int dataSize = 0; - for (int i = 0; i < childPolicyTags_.size(); i++) { - dataSize += computeStringSizeNoTag(childPolicyTags_.getRaw(i)); - } - size += dataSize; - size += 1 * getChildPolicyTagsList().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.datacatalog.v1beta1.PolicyTag)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.PolicyTag other = - (com.google.cloud.datacatalog.v1beta1.PolicyTag) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getParentPolicyTag().equals(other.getParentPolicyTag())) return false; - if (!getChildPolicyTagsList().equals(other.getChildPolicyTagsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + PARENT_POLICY_TAG_FIELD_NUMBER; - hash = (53 * hash) + getParentPolicyTag().hashCode(); - if (getChildPolicyTagsCount() > 0) { - hash = (37 * hash) + CHILD_POLICY_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getChildPolicyTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.PolicyTag prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined
-   * in a hierarchy. For example, consider the following hierarchy:
-   * Geolocation -&gt; (LatLong, City, ZipCode). PolicyTag "Geolocation"
-   * contains three child policy tags: "LatLong", "City", and "ZipCode".
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.PolicyTag} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.PolicyTag) - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_PolicyTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_PolicyTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.PolicyTag.class, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.PolicyTag.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - description_ = ""; - parentPolicyTag_ = ""; - childPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_PolicyTag_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.PolicyTag getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.PolicyTag build() { - com.google.cloud.datacatalog.v1beta1.PolicyTag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.PolicyTag buildPartial() { - com.google.cloud.datacatalog.v1beta1.PolicyTag result = - new com.google.cloud.datacatalog.v1beta1.PolicyTag(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.PolicyTag 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.parentPolicyTag_ = parentPolicyTag_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - childPolicyTags_.makeImmutable(); - result.childPolicyTags_ = childPolicyTags_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.PolicyTag) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.PolicyTag) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.PolicyTag other) { - if (other == com.google.cloud.datacatalog.v1beta1.PolicyTag.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.getParentPolicyTag().isEmpty()) { - parentPolicyTag_ = other.parentPolicyTag_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.childPolicyTags_.isEmpty()) { - if (childPolicyTags_.isEmpty()) { - childPolicyTags_ = other.childPolicyTags_; - bitField0_ |= 0x00000010; - } else { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.addAll(other.childPolicyTags_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - parentPolicyTag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(s); - 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. Resource name of this policy tag, whose format is:
-     * "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
-     * 
- * - * 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. Resource name of this policy tag, whose format is:
-     * "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
-     * 
- * - * 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. Resource name of this policy tag, whose format is:
-     * "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
-     * 
- * - * 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. Resource name of this policy tag, whose format is:
-     * "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
-     * 
- * - * 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. Resource name of this policy tag, whose format is:
-     * "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
-     * 
- * - * 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_ = ""; - - /** - * - * - *
-     * Required. User defined name of this policy tag. It must: be unique within
-     * the parent taxonomy; contain only unicode letters, numbers, underscores,
-     * dashes and spaces; not start or end with spaces; and be at most 200 bytes
-     * long when encoded in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. User defined name of this policy tag. It must: be unique within
-     * the parent taxonomy; contain only unicode letters, numbers, underscores,
-     * dashes and spaces; not start or end with spaces; and be at most 200 bytes
-     * long when encoded in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. User defined name of this policy tag. It must: be unique within
-     * the parent taxonomy; contain only unicode letters, numbers, underscores,
-     * dashes and spaces; not start or end with spaces; and be at most 200 bytes
-     * long when encoded in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-     * Required. User defined name of this policy tag. It must: be unique within
-     * the parent taxonomy; contain only unicode letters, numbers, underscores,
-     * dashes and spaces; not start or end with spaces; and be at most 200 bytes
-     * long when encoded in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. User defined name of this policy tag. It must: be unique within
-     * the parent taxonomy; contain only unicode letters, numbers, underscores,
-     * dashes and spaces; not start or end with spaces; and be at most 200 bytes
-     * long when encoded in UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ = ""; - - /** - * - * - *
-     * Description of this policy tag. It must: contain only unicode characters,
-     * tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes
-     * long when encoded in UTF-8. If not set, defaults to an empty description.
-     * If not set, defaults to an empty description.
-     * 
- * - * string description = 3; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Description of this policy tag. It must: contain only unicode characters,
-     * tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes
-     * long when encoded in UTF-8. If not set, defaults to an empty description.
-     * If not set, defaults to an empty description.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Description of this policy tag. It must: contain only unicode characters,
-     * tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes
-     * long when encoded in UTF-8. If not set, defaults to an empty description.
-     * If not set, defaults to an empty description.
-     * 
- * - * string description = 3; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of this policy tag. It must: contain only unicode characters,
-     * tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes
-     * long when encoded in UTF-8. If not set, defaults to an empty description.
-     * If not set, defaults to an empty description.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of this policy tag. It must: contain only unicode characters,
-     * tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes
-     * long when encoded in UTF-8. If not set, defaults to an empty description.
-     * If not set, defaults to an empty description.
-     * 
- * - * string description = 3; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object parentPolicyTag_ = ""; - - /** - * - * - *
-     * Resource name of this policy tag's parent policy tag (e.g. for the
-     * "LatLong" policy tag in the example above, this field contains the
-     * resource name of the "Geolocation" policy tag). If empty, it means this
-     * policy tag is a top level policy tag (e.g. this field is empty for the
-     * "Geolocation" policy tag in the example above). If not set, defaults to an
-     * empty string.
-     * 
- * - * string parent_policy_tag = 4; - * - * @return The parentPolicyTag. - */ - public java.lang.String getParentPolicyTag() { - java.lang.Object ref = parentPolicyTag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parentPolicyTag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Resource name of this policy tag's parent policy tag (e.g. for the
-     * "LatLong" policy tag in the example above, this field contains the
-     * resource name of the "Geolocation" policy tag). If empty, it means this
-     * policy tag is a top level policy tag (e.g. this field is empty for the
-     * "Geolocation" policy tag in the example above). If not set, defaults to an
-     * empty string.
-     * 
- * - * string parent_policy_tag = 4; - * - * @return The bytes for parentPolicyTag. - */ - public com.google.protobuf.ByteString getParentPolicyTagBytes() { - java.lang.Object ref = parentPolicyTag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parentPolicyTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Resource name of this policy tag's parent policy tag (e.g. for the
-     * "LatLong" policy tag in the example above, this field contains the
-     * resource name of the "Geolocation" policy tag). If empty, it means this
-     * policy tag is a top level policy tag (e.g. this field is empty for the
-     * "Geolocation" policy tag in the example above). If not set, defaults to an
-     * empty string.
-     * 
- * - * string parent_policy_tag = 4; - * - * @param value The parentPolicyTag to set. - * @return This builder for chaining. - */ - public Builder setParentPolicyTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - parentPolicyTag_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource name of this policy tag's parent policy tag (e.g. for the
-     * "LatLong" policy tag in the example above, this field contains the
-     * resource name of the "Geolocation" policy tag). If empty, it means this
-     * policy tag is a top level policy tag (e.g. this field is empty for the
-     * "Geolocation" policy tag in the example above). If not set, defaults to an
-     * empty string.
-     * 
- * - * string parent_policy_tag = 4; - * - * @return This builder for chaining. - */ - public Builder clearParentPolicyTag() { - parentPolicyTag_ = getDefaultInstance().getParentPolicyTag(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource name of this policy tag's parent policy tag (e.g. for the
-     * "LatLong" policy tag in the example above, this field contains the
-     * resource name of the "Geolocation" policy tag). If empty, it means this
-     * policy tag is a top level policy tag (e.g. this field is empty for the
-     * "Geolocation" policy tag in the example above). If not set, defaults to an
-     * empty string.
-     * 
- * - * string parent_policy_tag = 4; - * - * @param value The bytes for parentPolicyTag to set. - * @return This builder for chaining. - */ - public Builder setParentPolicyTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - parentPolicyTag_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList childPolicyTags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureChildPolicyTagsIsMutable() { - if (!childPolicyTags_.isModifiable()) { - childPolicyTags_ = new com.google.protobuf.LazyStringArrayList(childPolicyTags_); - } - bitField0_ |= 0x00000010; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the childPolicyTags. - */ - public com.google.protobuf.ProtocolStringList getChildPolicyTagsList() { - childPolicyTags_.makeImmutable(); - return childPolicyTags_; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of childPolicyTags. - */ - public int getChildPolicyTagsCount() { - return childPolicyTags_.size(); - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The childPolicyTags at the given index. - */ - public java.lang.String getChildPolicyTags(int index) { - return childPolicyTags_.get(index); - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the childPolicyTags at the given index. - */ - public com.google.protobuf.ByteString getChildPolicyTagsBytes(int index) { - return childPolicyTags_.getByteString(index); - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index to set the value at. - * @param value The childPolicyTags to set. - * @return This builder for chaining. - */ - public Builder setChildPolicyTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.set(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The childPolicyTags to add. - * @return This builder for chaining. - */ - public Builder addChildPolicyTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param values The childPolicyTags to add. - * @return This builder for chaining. - */ - public Builder addAllChildPolicyTags(java.lang.Iterable values) { - ensureChildPolicyTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childPolicyTags_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearChildPolicyTags() { - childPolicyTags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Resource names of child policy tags of this policy tag.
-     * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The bytes of the childPolicyTags to add. - * @return This builder for chaining. - */ - public Builder addChildPolicyTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.PolicyTag) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.PolicyTag) - private static final com.google.cloud.datacatalog.v1beta1.PolicyTag DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.PolicyTag(); - } - - public static com.google.cloud.datacatalog.v1beta1.PolicyTag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PolicyTag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.PolicyTag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerProto.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerProto.java deleted file mode 100644 index 0208833e7c93..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerProto.java +++ /dev/null @@ -1,422 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public final class PolicyTagManagerProto extends com.google.protobuf.GeneratedFile { - private PolicyTagManagerProto() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PolicyTagManagerProto"); - } - - 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_datacatalog_v1beta1_Taxonomy_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_Service_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_Service_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_PolicyTag_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_PolicyTag_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_CreateTaxonomyRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_CreateTaxonomyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_DeleteTaxonomyRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_DeleteTaxonomyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_UpdateTaxonomyRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_UpdateTaxonomyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ListTaxonomiesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_GetTaxonomyRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_GetTaxonomyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_CreatePolicyTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_CreatePolicyTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_DeletePolicyTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_DeletePolicyTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_UpdatePolicyTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_UpdatePolicyTagRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ListPolicyTagsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_GetPolicyTagRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_GetPolicyTagRequest_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/datacatalog/v1beta1/policytagmanager.proto\022 google.cloud.datacata" - + "log.v1beta1\032\034google/api/annotations.prot" - + "o\032\027google/api/client.proto\032\037google/api/f" - + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032-google/cloud/datacatalog/v1beta1/common.proto\0321google/cloud/datacatalog/" - + "v1beta1/timestamps.proto\032\036google/iam/v1/" - + "iam_policy.proto\032\032google/iam/v1/policy.proto\032\033google/protobuf/empty.proto\032" - + " google/protobuf/field_mask.proto\"\377\004\n" - + "\010Taxonomy\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\022\030\n" - + "\013description\030\003 \001(\tB\003\340A\001\022\035\n" - + "\020policy_tag_count\030\004 \001(\005B\003\340A\003\022T\n" - + "\023taxonomy_timestamps\030\005" - + " \001(\01322.google.cloud.datacatalog.v1beta1.SystemTimestampsB\003\340A\003\022Z\n" - + "\026activated_policy_types\030\006 \003(\01625.google.cloud.dat" - + "acatalog.v1beta1.Taxonomy.PolicyTypeB\003\340A\001\022H\n" - + "\007service\030\007" - + " \001(\01322.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceB\003\340A\003\032[\n" - + "\007Service\022>\n" - + "\004name\030\001 \001(\01620.google.cloud.datacatalog.v1beta1.ManagingSystem\022\020\n" - + "\010identity\030\002 \001(\t\"J\n\n" - + "PolicyType\022\033\n" - + "\027POLICY_TYPE_UNSPECIFIED\020\000\022\037\n" - + "\033FINE_GRAINED_ACCESS_CONTROL\020\001:g\352Ad\n" - + "#datacatalog.googleapis.com/Ta" - + "xonomy\022=projects/{project}/locations/{location}/taxonomies/{taxonomy}\"\214\002\n" - + "\tPolicyTag\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" - + "\014display_name\030\002 \001(\tB\003\340A\002\022\023\n" - + "\013description\030\003 \001(\t\022\031\n" - + "\021parent_policy_tag\030\004 \001(\t\022\036\n" - + "\021child_policy_tags\030\005 \003(\tB\003\340A\003:\200\001\352A}\n" - + "$datacatalog.googleapis.com/PolicyTag\022Uprojects/{project}/locati" - + "ons/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}\"\222\001\n" - + "\025CreateTaxonomyRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\022#datacatalog.googleapis.com/Taxonomy\022<\n" - + "\010taxonomy\030\002 \001(\0132*.google.cloud.datacatalog.v1beta1.Taxonomy\"R\n" - + "\025DeleteTaxonomyRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#datacatalog.googleapis.com/Taxonomy\"\206\001\n" - + "\025UpdateTaxonomyRequest\022<\n" - + "\010taxonomy\030\001 \001(\0132*.google.cloud.datacatalog.v1beta1.Taxonomy\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"\213\001\n" - + "\025ListTaxonomiesRequest\022;\n" - + "\006parent\030\001 \001(" - + "\tB+\340A\002\372A%\022#datacatalog.googleapis.com/Taxonomy\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\016\n" - + "\006filter\030\004 \001(\t\"q\n" - + "\026ListTaxonomiesResponse\022>\n\n" - + "taxonomies\030\001 \003(\0132*.google.cloud.datacatalog.v1beta1.Taxonomy\022\027\n" - + "\017next_page_token\030\002 \001(\t\"O\n" - + "\022GetTaxonomyRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n" - + "#datacatalog.googleapis.com/Taxonomy\"\227\001\n" - + "\026CreatePolicyTagRequest\022<\n" - + "\006parent\030\001 \001(" - + "\tB,\340A\002\372A&\022$datacatalog.googleapis.com/PolicyTag\022?\n\n" - + "policy_tag\030\002 \001(\0132+.google.cloud.datacatalog.v1beta1.PolicyTag\"T\n" - + "\026DeletePolicyTagRequest\022:\n" - + "\004name\030\001 \001(\tB,\340A\002\372A&\n" - + "$datacatalog.googleapis.com/PolicyTag\"\212\001\n" - + "\026UpdatePolicyTagRequest\022?\n\n" - + "policy_tag\030\001 \001(\0132+.google.cloud.datacatalog.v1beta1.PolicyTag\022/\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"|\n" - + "\025ListPolicyTagsRequest\022<\n" - + "\006parent\030\001 \001(" - + "\tB,\340A\002\372A&\022$datacatalog.googleapis.com/PolicyTag\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"s\n" - + "\026ListPolicyTagsResponse\022@\n" - + "\013policy_tags\030\001 \003" - + "(\0132+.google.cloud.datacatalog.v1beta1.PolicyTag\022\027\n" - + "\017next_page_token\030\002 \001(\t\"Q\n" - + "\023GetPolicyTagRequest\022:\n" - + "\004name\030\001 \001(\tB,\340A\002\372A&\n" - + "$datacatalog.googleapis.com/PolicyTag2\345\026\n" - + "\020PolicyTagManager\022\316\001\n" - + "\016CreateTaxonomy\0227.google.cloud.datacatalog.v1beta1.CreateTax" - + "onomyRequest\032*.google.cloud.datacatalog." - + "v1beta1.Taxonomy\"W\332A\017parent,taxonomy\202\323\344\223" - + "\002?\"3/v1beta1/{parent=projects/*/locations/*}/taxonomies:\010taxonomy\022\245\001\n" - + "\016DeleteTaxonomy\0227.google.cloud.datacatalog.v1beta1." - + "DeleteTaxonomyRequest\032\026.google.protobuf." - + "Empty\"B\332A\004name\202\323\344\223\0025*3/v1beta1/{name=projects/*/locations/*/taxonomies/*}\022\320\001\n" - + "\016UpdateTaxonomy\0227.google.cloud.datacatalog." - + "v1beta1.UpdateTaxonomyRequest\032*.google.c" - + "loud.datacatalog.v1beta1.Taxonomy\"Y\332A\010ta" - + "xonomy\202\323\344\223\002H2\n\ntaxonomies\030\001 \003(\0132" - + "*.google.cloud.datacatalog.v1beta1.Taxon" - + "omy\"\307\001\n\027ExportTaxonomiesRequest\022;\n\006paren" - + "t\030\001 \001(\tB+\340A\002\372A%\022#datacatalog.googleapis." - + "com/Taxonomy\022?\n\ntaxonomies\030\002 \003(\tB+\340A\002\372A%" - + "\n#datacatalog.googleapis.com/Taxonomy\022\037\n" - + "\025serialized_taxonomies\030\003 \001(\010H\000B\r\n\013destin" - + "ation\"d\n\030ExportTaxonomiesResponse\022H\n\ntax" - + "onomies\030\001 \003(\01324.google.cloud.datacatalog" - + ".v1beta1.SerializedTaxonomy2\222\004\n\035PolicyTa" - + "gManagerSerialization\022\320\001\n\020ImportTaxonomi" - + "es\0229.google.cloud.datacatalog.v1beta1.Im" - + "portTaxonomiesRequest\032:.google.cloud.dat" - + "acatalog.v1beta1.ImportTaxonomiesRespons" - + "e\"E\202\323\344\223\002?\":/v1beta1/{parent=projects/*/l" - + "ocations/*}/taxonomies:import:\001*\022\315\001\n\020Exp" - + "ortTaxonomies\0229.google.cloud.datacatalog" - + ".v1beta1.ExportTaxonomiesRequest\032:.googl" - + "e.cloud.datacatalog.v1beta1.ExportTaxono" - + "miesResponse\"B\202\323\344\223\002<\022:/v1beta1/{parent=p" - + "rojects/*/locations/*}/taxonomies:export" - + "\032N\312A\032datacatalog.googleapis.com\322A.https:" - + "//www.googleapis.com/auth/cloud-platform" - + "B\200\002\n$com.google.cloud.datacatalog.v1beta" - + "1B\"PolicyTagManagerSerializationProtoP\001Z" - + "Fcloud.google.com/go/datacatalog/apiv1be" - + "ta1/datacatalogpb;datacatalogpb\252\002 Google" - + ".Cloud.DataCatalog.V1Beta1\312\002 Google\\Clou" - + "d\\DataCatalog\\V1beta1\352\002#Google::Cloud::D" - + "ataCatalog::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_SerializedTaxonomy_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1beta1_SerializedTaxonomy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_SerializedTaxonomy_descriptor, - new java.lang.String[] { - "DisplayName", "Description", "PolicyTags", "ActivatedPolicyTypes", - }); - internal_static_google_cloud_datacatalog_v1beta1_SerializedPolicyTag_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1beta1_SerializedPolicyTag_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_SerializedPolicyTag_descriptor, - new java.lang.String[] { - "PolicyTag", "DisplayName", "Description", "ChildPolicyTags", - }); - internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesRequest_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesRequest_descriptor, - new java.lang.String[] { - "Parent", "InlineSource", "Source", - }); - internal_static_google_cloud_datacatalog_v1beta1_InlineSource_descriptor = - getDescriptor().getMessageType(3); - internal_static_google_cloud_datacatalog_v1beta1_InlineSource_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_InlineSource_descriptor, - new java.lang.String[] { - "Taxonomies", - }); - internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_descriptor = - getDescriptor().getMessageType(4); - internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ImportTaxonomiesResponse_descriptor, - new java.lang.String[] { - "Taxonomies", - }); - internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_descriptor = - getDescriptor().getMessageType(5); - internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesRequest_descriptor, - new java.lang.String[] { - "Parent", "Taxonomies", "SerializedTaxonomies", "Destination", - }); - internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_descriptor = - getDescriptor().getMessageType(6); - internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ExportTaxonomiesResponse_descriptor, - new java.lang.String[] { - "Taxonomies", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto.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.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - 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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java deleted file mode 100644 index 49b3788c2285..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagName.java +++ /dev/null @@ -1,264 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 PolicyTagName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_TAXONOMY_POLICY_TAG = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String taxonomy; - private final String policyTag; - - @Deprecated - protected PolicyTagName() { - project = null; - location = null; - taxonomy = null; - policyTag = null; - } - - private PolicyTagName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - taxonomy = Preconditions.checkNotNull(builder.getTaxonomy()); - policyTag = Preconditions.checkNotNull(builder.getPolicyTag()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTaxonomy() { - return taxonomy; - } - - public String getPolicyTag() { - return policyTag; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static PolicyTagName of( - String project, String location, String taxonomy, String policyTag) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTaxonomy(taxonomy) - .setPolicyTag(policyTag) - .build(); - } - - public static String format(String project, String location, String taxonomy, String policyTag) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTaxonomy(taxonomy) - .setPolicyTag(policyTag) - .build() - .toString(); - } - - public static @Nullable PolicyTagName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TAXONOMY_POLICY_TAG.validatedMatch( - formattedString, "PolicyTagName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("taxonomy"), - matchMap.get("policy_tag")); - } - - 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 PolicyTagName> values) { - List list = new ArrayList<>(values.size()); - for (PolicyTagName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TAXONOMY_POLICY_TAG.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 (taxonomy != null) { - fieldMapBuilder.put("taxonomy", taxonomy); - } - if (policyTag != null) { - fieldMapBuilder.put("policy_tag", policyTag); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TAXONOMY_POLICY_TAG.instantiate( - "project", project, "location", location, "taxonomy", taxonomy, "policy_tag", policyTag); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - PolicyTagName that = ((PolicyTagName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.taxonomy, that.taxonomy) - && Objects.equals(this.policyTag, that.policyTag); - } - 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(taxonomy); - h *= 1000003; - h ^= Objects.hashCode(policyTag); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}. - */ - public static class Builder { - private String project; - private String location; - private String taxonomy; - private String policyTag; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTaxonomy() { - return taxonomy; - } - - public String getPolicyTag() { - return policyTag; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTaxonomy(String taxonomy) { - this.taxonomy = taxonomy; - return this; - } - - public Builder setPolicyTag(String policyTag) { - this.policyTag = policyTag; - return this; - } - - private Builder(PolicyTagName policyTagName) { - this.project = policyTagName.project; - this.location = policyTagName.location; - this.taxonomy = policyTagName.taxonomy; - this.policyTag = policyTagName.policyTag; - } - - public PolicyTagName build() { - return new PolicyTagName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagOrBuilder.java deleted file mode 100644 index 607dfa343580..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagOrBuilder.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface PolicyTagOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.PolicyTag) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. Resource name of this policy tag, whose format is:
-   * "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. Resource name of this policy tag, whose format is:
-   * "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. User defined name of this policy tag. It must: be unique within
-   * the parent taxonomy; contain only unicode letters, numbers, underscores,
-   * dashes and spaces; not start or end with spaces; and be at most 200 bytes
-   * long when encoded in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Required. User defined name of this policy tag. It must: be unique within
-   * the parent taxonomy; contain only unicode letters, numbers, underscores,
-   * dashes and spaces; not start or end with spaces; and be at most 200 bytes
-   * long when encoded in UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Description of this policy tag. It must: contain only unicode characters,
-   * tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes
-   * long when encoded in UTF-8. If not set, defaults to an empty description.
-   * If not set, defaults to an empty description.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Description of this policy tag. It must: contain only unicode characters,
-   * tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes
-   * long when encoded in UTF-8. If not set, defaults to an empty description.
-   * If not set, defaults to an empty description.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Resource name of this policy tag's parent policy tag (e.g. for the
-   * "LatLong" policy tag in the example above, this field contains the
-   * resource name of the "Geolocation" policy tag). If empty, it means this
-   * policy tag is a top level policy tag (e.g. this field is empty for the
-   * "Geolocation" policy tag in the example above). If not set, defaults to an
-   * empty string.
-   * 
- * - * string parent_policy_tag = 4; - * - * @return The parentPolicyTag. - */ - java.lang.String getParentPolicyTag(); - - /** - * - * - *
-   * Resource name of this policy tag's parent policy tag (e.g. for the
-   * "LatLong" policy tag in the example above, this field contains the
-   * resource name of the "Geolocation" policy tag). If empty, it means this
-   * policy tag is a top level policy tag (e.g. this field is empty for the
-   * "Geolocation" policy tag in the example above). If not set, defaults to an
-   * empty string.
-   * 
- * - * string parent_policy_tag = 4; - * - * @return The bytes for parentPolicyTag. - */ - com.google.protobuf.ByteString getParentPolicyTagBytes(); - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return A list containing the childPolicyTags. - */ - java.util.List getChildPolicyTagsList(); - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The count of childPolicyTags. - */ - int getChildPolicyTagsCount(); - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the element to return. - * @return The childPolicyTags at the given index. - */ - java.lang.String getChildPolicyTags(int index); - - /** - * - * - *
-   * Output only. Resource names of child policy tags of this policy tag.
-   * 
- * - * repeated string child_policy_tags = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param index The index of the value to return. - * @return The bytes of the childPolicyTags at the given index. - */ - com.google.protobuf.ByteString getChildPolicyTagsBytes(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequest.java deleted file mode 100644 index ae6eedcb4b1b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequest.java +++ /dev/null @@ -1,853 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [RenameTagTemplateFieldEnumValue][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest} - */ -@com.google.protobuf.Generated -public final class RenameTagTemplateFieldEnumValueRequest - extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) - RenameTagTemplateFieldEnumValueRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "RenameTagTemplateFieldEnumValueRequest"); - } - - // Use RenameTagTemplateFieldEnumValueRequest.newBuilder() to construct. - private RenameTagTemplateFieldEnumValueRequest( - com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private RenameTagTemplateFieldEnumValueRequest() { - name_ = ""; - newEnumValueDisplayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest.class, - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest.Builder - .class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the enum field value. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_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 name of the enum field value. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_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 NEW_ENUM_VALUE_DISPLAY_NAME_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object newEnumValueDisplayName_ = ""; - - /** - * - * - *
-   * Required. The new display name of the enum value. For example,
-   * `my_new_enum_value`.
-   * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newEnumValueDisplayName. - */ - @java.lang.Override - public java.lang.String getNewEnumValueDisplayName() { - java.lang.Object ref = newEnumValueDisplayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newEnumValueDisplayName_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The new display name of the enum value. For example,
-   * `my_new_enum_value`.
-   * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newEnumValueDisplayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNewEnumValueDisplayNameBytes() { - java.lang.Object ref = newEnumValueDisplayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newEnumValueDisplayName_ = 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(newEnumValueDisplayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, newEnumValueDisplayName_); - } - 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(newEnumValueDisplayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, newEnumValueDisplayName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest other = - (com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getNewEnumValueDisplayName().equals(other.getNewEnumValueDisplayName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + NEW_ENUM_VALUE_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getNewEnumValueDisplayName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [RenameTagTemplateFieldEnumValue][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest.class, - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest.Builder - .class); - } - - // Construct using - // com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - newEnumValueDisplayName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldEnumValueRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest build() { - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - buildPartial() { - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest result = - new com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.newEnumValueDisplayName_ = newEnumValueDisplayName_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) { - return mergeFrom( - (com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getNewEnumValueDisplayName().isEmpty()) { - newEnumValueDisplayName_ = other.newEnumValueDisplayName_; - 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: - { - newEnumValueDisplayName_ = 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 enum field value. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_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 name of the enum field value. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_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 name of the enum field value. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_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 name of the enum field value. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_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 name of the enum field value. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_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 java.lang.Object newEnumValueDisplayName_ = ""; - - /** - * - * - *
-     * Required. The new display name of the enum value. For example,
-     * `my_new_enum_value`.
-     * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The newEnumValueDisplayName. - */ - public java.lang.String getNewEnumValueDisplayName() { - java.lang.Object ref = newEnumValueDisplayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newEnumValueDisplayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The new display name of the enum value. For example,
-     * `my_new_enum_value`.
-     * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The bytes for newEnumValueDisplayName. - */ - public com.google.protobuf.ByteString getNewEnumValueDisplayNameBytes() { - java.lang.Object ref = newEnumValueDisplayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newEnumValueDisplayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The new display name of the enum value. For example,
-     * `my_new_enum_value`.
-     * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The newEnumValueDisplayName to set. - * @return This builder for chaining. - */ - public Builder setNewEnumValueDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - newEnumValueDisplayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new display name of the enum value. For example,
-     * `my_new_enum_value`.
-     * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return This builder for chaining. - */ - public Builder clearNewEnumValueDisplayName() { - newEnumValueDisplayName_ = getDefaultInstance().getNewEnumValueDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new display name of the enum value. For example,
-     * `my_new_enum_value`.
-     * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @param value The bytes for newEnumValueDisplayName to set. - * @return This builder for chaining. - */ - public Builder setNewEnumValueDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - newEnumValueDisplayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) - private static final com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenameTagTemplateFieldEnumValueRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java deleted file mode 100644 index 8899e5b2de7e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldEnumValueRequestOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface RenameTagTemplateFieldEnumValueRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the enum field value. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the enum field value. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The new display name of the enum value. For example,
-   * `my_new_enum_value`.
-   * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newEnumValueDisplayName. - */ - java.lang.String getNewEnumValueDisplayName(); - - /** - * - * - *
-   * Required. The new display name of the enum value. For example,
-   * `my_new_enum_value`.
-   * 
- * - * string new_enum_value_display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newEnumValueDisplayName. - */ - com.google.protobuf.ByteString getNewEnumValueDisplayNameBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java deleted file mode 100644 index 9aa7e51f7752..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequest.java +++ /dev/null @@ -1,834 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [RenameTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.RenameTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest} - */ -@com.google.protobuf.Generated -public final class RenameTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) - RenameTagTemplateFieldRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "RenameTagTemplateFieldRequest"); - } - - // Use RenameTagTemplateFieldRequest.newBuilder() to construct. - private RenameTagTemplateFieldRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private RenameTagTemplateFieldRequest() { - name_ = ""; - newTagTemplateFieldId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Required. The name of the tag template. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag template. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NEW_TAG_TEMPLATE_FIELD_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object newTagTemplateFieldId_ = ""; - - /** - * - * - *
-   * Required. The new ID of this tag template field. For example,
-   * `my_new_field`.
-   * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newTagTemplateFieldId. - */ - @java.lang.Override - public java.lang.String getNewTagTemplateFieldId() { - java.lang.Object ref = newTagTemplateFieldId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newTagTemplateFieldId_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The new ID of this tag template field. For example,
-   * `my_new_field`.
-   * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newTagTemplateFieldId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNewTagTemplateFieldIdBytes() { - java.lang.Object ref = newTagTemplateFieldId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newTagTemplateFieldId_ = 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(newTagTemplateFieldId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, newTagTemplateFieldId_); - } - 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(newTagTemplateFieldId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, newTagTemplateFieldId_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest other = - (com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (!getNewTagTemplateFieldId().equals(other.getNewTagTemplateFieldId())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + NEW_TAG_TEMPLATE_FIELD_ID_FIELD_NUMBER; - hash = (53 * hash) + getNewTagTemplateFieldId().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [RenameTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.RenameTagTemplateField].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest.Builder.class); - } - - // Construct using - // com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - newTagTemplateFieldId_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_RenameTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest build() { - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest result = - new com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.newTagTemplateFieldId_ = newTagTemplateFieldId_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) { - return mergeFrom( - (com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getNewTagTemplateFieldId().isEmpty()) { - newTagTemplateFieldId_ = other.newTagTemplateFieldId_; - 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: - { - newTagTemplateFieldId_ = 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 tag template. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object newTagTemplateFieldId_ = ""; - - /** - * - * - *
-     * Required. The new ID of this tag template field. For example,
-     * `my_new_field`.
-     * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newTagTemplateFieldId. - */ - public java.lang.String getNewTagTemplateFieldId() { - java.lang.Object ref = newTagTemplateFieldId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - newTagTemplateFieldId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The new ID of this tag template field. For example,
-     * `my_new_field`.
-     * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newTagTemplateFieldId. - */ - public com.google.protobuf.ByteString getNewTagTemplateFieldIdBytes() { - java.lang.Object ref = newTagTemplateFieldId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - newTagTemplateFieldId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The new ID of this tag template field. For example,
-     * `my_new_field`.
-     * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The newTagTemplateFieldId to set. - * @return This builder for chaining. - */ - public Builder setNewTagTemplateFieldId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - newTagTemplateFieldId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new ID of this tag template field. For example,
-     * `my_new_field`.
-     * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearNewTagTemplateFieldId() { - newTagTemplateFieldId_ = getDefaultInstance().getNewTagTemplateFieldId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The new ID of this tag template field. For example,
-     * `my_new_field`.
-     * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for newTagTemplateFieldId to set. - * @return This builder for chaining. - */ - public Builder setNewTagTemplateFieldIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - newTagTemplateFieldId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) - private static final com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RenameTagTemplateFieldRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index ed07680c97a5..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/RenameTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface RenameTagTemplateFieldRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag template. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag template. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The new ID of this tag template field. For example,
-   * `my_new_field`.
-   * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The newTagTemplateFieldId. - */ - java.lang.String getNewTagTemplateFieldId(); - - /** - * - * - *
-   * Required. The new ID of this tag template field. For example,
-   * `my_new_field`.
-   * 
- * - * string new_tag_template_field_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for newTagTemplateFieldId. - */ - com.google.protobuf.ByteString getNewTagTemplateFieldIdBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Schema.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Schema.java deleted file mode 100644 index 5a90d2b29a44..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Schema.java +++ /dev/null @@ -1,994 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema).
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Schema} - */ -@com.google.protobuf.Generated -public final class Schema extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Schema) - SchemaOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Schema"); - } - - // Use Schema.newBuilder() to construct. - private Schema(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Schema() { - columns_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_Schema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_Schema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.Schema.class, - com.google.cloud.datacatalog.v1beta1.Schema.Builder.class); - } - - public static final int COLUMNS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private java.util.List columns_; - - /** - * - * - *
-   * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-   * can be specified.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List getColumnsList() { - return columns_; - } - - /** - * - * - *
-   * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-   * can be specified.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.List - getColumnsOrBuilderList() { - return columns_; - } - - /** - * - * - *
-   * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-   * can be specified.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public int getColumnsCount() { - return columns_.size(); - } - - /** - * - * - *
-   * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-   * can be specified.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ColumnSchema getColumns(int index) { - return columns_.get(index); - } - - /** - * - * - *
-   * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-   * can be specified.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder getColumnsOrBuilder(int index) { - return columns_.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 < columns_.size(); i++) { - output.writeMessage(2, columns_.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 < columns_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, columns_.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.datacatalog.v1beta1.Schema)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.Schema other = - (com.google.cloud.datacatalog.v1beta1.Schema) obj; - - if (!getColumnsList().equals(other.getColumnsList())) return false; - if (!getUnknownFields().equals(other.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 (getColumnsCount() > 0) { - hash = (37 * hash) + COLUMNS_FIELD_NUMBER; - hash = (53 * hash) + getColumnsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.Schema prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 schema (e.g. BigQuery, GoogleSQL, Avro schema).
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Schema} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.Schema) - com.google.cloud.datacatalog.v1beta1.SchemaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_Schema_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_Schema_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.Schema.class, - com.google.cloud.datacatalog.v1beta1.Schema.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.Schema.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - } else { - columns_ = null; - columnsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.SchemaOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_Schema_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Schema getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Schema build() { - com.google.cloud.datacatalog.v1beta1.Schema result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Schema buildPartial() { - com.google.cloud.datacatalog.v1beta1.Schema result = - new com.google.cloud.datacatalog.v1beta1.Schema(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields(com.google.cloud.datacatalog.v1beta1.Schema result) { - if (columnsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - columns_ = java.util.Collections.unmodifiableList(columns_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.columns_ = columns_; - } else { - result.columns_ = columnsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.Schema result) { - int from_bitField0_ = bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.Schema) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.Schema) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.Schema other) { - if (other == com.google.cloud.datacatalog.v1beta1.Schema.getDefaultInstance()) return this; - if (columnsBuilder_ == null) { - if (!other.columns_.isEmpty()) { - if (columns_.isEmpty()) { - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureColumnsIsMutable(); - columns_.addAll(other.columns_); - } - onChanged(); - } - } else { - if (!other.columns_.isEmpty()) { - if (columnsBuilder_.isEmpty()) { - columnsBuilder_.dispose(); - columnsBuilder_ = null; - columns_ = other.columns_; - bitField0_ = (bitField0_ & ~0x00000001); - columnsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetColumnsFieldBuilder() - : null; - } else { - columnsBuilder_.addAllMessages(other.columns_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - com.google.cloud.datacatalog.v1beta1.ColumnSchema m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.ColumnSchema.parser(), - extensionRegistry); - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(m); - } else { - columnsBuilder_.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 columns_ = - java.util.Collections.emptyList(); - - private void ensureColumnsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - columns_ = - new java.util.ArrayList(columns_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.ColumnSchema, - com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder> - columnsBuilder_; - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List getColumnsList() { - if (columnsBuilder_ == null) { - return java.util.Collections.unmodifiableList(columns_); - } else { - return columnsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public int getColumnsCount() { - if (columnsBuilder_ == null) { - return columns_.size(); - } else { - return columnsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.ColumnSchema getColumns(int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setColumns(int index, com.google.cloud.datacatalog.v1beta1.ColumnSchema value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.set(index, value); - onChanged(); - } else { - columnsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setColumns( - int index, com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.set(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addColumns(com.google.cloud.datacatalog.v1beta1.ColumnSchema value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(value); - onChanged(); - } else { - columnsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addColumns(int index, com.google.cloud.datacatalog.v1beta1.ColumnSchema value) { - if (columnsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureColumnsIsMutable(); - columns_.add(index, value); - onChanged(); - } else { - columnsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addColumns( - com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addColumns( - int index, com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder builderForValue) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.add(index, builderForValue.build()); - onChanged(); - } else { - columnsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder addAllColumns( - java.lang.Iterable values) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, columns_); - onChanged(); - } else { - columnsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearColumns() { - if (columnsBuilder_ == null) { - columns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - columnsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeColumns(int index) { - if (columnsBuilder_ == null) { - ensureColumnsIsMutable(); - columns_.remove(index); - onChanged(); - } else { - columnsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder getColumnsBuilder(int index) { - return internalGetColumnsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder getColumnsOrBuilder( - int index) { - if (columnsBuilder_ == null) { - return columns_.get(index); - } else { - return columnsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getColumnsOrBuilderList() { - if (columnsBuilder_ != null) { - return columnsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(columns_); - } - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder addColumnsBuilder() { - return internalGetColumnsFieldBuilder() - .addBuilder(com.google.cloud.datacatalog.v1beta1.ColumnSchema.getDefaultInstance()); - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder addColumnsBuilder(int index) { - return internalGetColumnsFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1beta1.ColumnSchema.getDefaultInstance()); - } - - /** - * - * - *
-     * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-     * can be specified.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public java.util.List - getColumnsBuilderList() { - return internalGetColumnsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.ColumnSchema, - com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder> - internalGetColumnsFieldBuilder() { - if (columnsBuilder_ == null) { - columnsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.ColumnSchema, - com.google.cloud.datacatalog.v1beta1.ColumnSchema.Builder, - com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder>( - columns_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - columns_ = null; - } - return columnsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.Schema) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.Schema) - private static final com.google.cloud.datacatalog.v1beta1.Schema DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.Schema(); - } - - public static com.google.cloud.datacatalog.v1beta1.Schema getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Schema parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Schema getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOrBuilder.java deleted file mode 100644 index 858f15e99a53..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface SchemaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.Schema) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-   * can be specified.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List getColumnsList(); - - /** - * - * - *
-   * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-   * can be specified.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.ColumnSchema getColumns(int index); - - /** - * - * - *
-   * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-   * can be specified.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getColumnsCount(); - - /** - * - * - *
-   * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-   * can be specified.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.List - getColumnsOrBuilderList(); - - /** - * - * - *
-   * Required. Schema of columns. A maximum of 10,000 columns and sub-columns
-   * can be specified.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.ColumnSchema columns = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.ColumnSchemaOrBuilder getColumnsOrBuilder(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOuterClass.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOuterClass.java deleted file mode 100644 index 714d68349b61..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SchemaOuterClass.java +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/schema.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public final class SchemaOuterClass extends com.google.protobuf.GeneratedFile { - private SchemaOuterClass() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SchemaOuterClass"); - } - - 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_datacatalog_v1beta1_Schema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_Schema_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_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/datacatalog/v1beta1/schema.proto\022" - + " google.cloud.datacatalog.v1beta1\032\037google/api/field_behavior.proto\"N\n" - + "\006Schema\022D\n" - + "\007columns\030\002" - + " \003(\0132..google.cloud.datacatalog.v1beta1.ColumnSchemaB\003\340A\002\"\254\001\n" - + "\014ColumnSchema\022\023\n" - + "\006column\030\006 \001(\tB\003\340A\002\022\021\n" - + "\004type\030\001 \001(\tB\003\340A\002\022\030\n" - + "\013description\030\002 \001(\tB\003\340A\001\022\021\n" - + "\004mode\030\003 \001(\tB\003\340A\001\022G\n\n" - + "subcolumns\030\007 \003(\0132..g" - + "oogle.cloud.datacatalog.v1beta1.ColumnSchemaB\003\340A\001B\334\001\n" - + "$com.google.cloud.datacatalog.v1beta1P\001ZFcloud.google.com/go/dataca" - + "talog/apiv1beta1/datacatalogpb;datacatalogpb\252\002" - + " Google.Cloud.DataCatalog.V1Beta1\312\002" - + " Google\\Cloud\\DataCatalog\\V1beta1\352\002#Goo" - + "gle::Cloud::DataCatalog::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_Schema_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1beta1_Schema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_Schema_descriptor, - new java.lang.String[] { - "Columns", - }); - internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ColumnSchema_descriptor, - new java.lang.String[] { - "Column", "Type", "Description", "Mode", "Subcolumns", - }); - 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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java deleted file mode 100644 index fd3b27469ef0..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Search.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/search.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public final class Search extends com.google.protobuf.GeneratedFile { - private Search() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Search"); - } - - 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_datacatalog_v1beta1_SearchCatalogResult_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_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/datacatalog/v1beta1/searc" - + "h.proto\022 google.cloud.datacatalog.v1beta" - + "1\032\037google/api/field_behavior.proto\032\037goog" - + "le/protobuf/timestamp.proto\"\356\001\n\023SearchCa" - + "talogResult\022N\n\022search_result_type\030\001 \001(\0162" - + "2.google.cloud.datacatalog.v1beta1.Searc" - + "hResultType\022\035\n\025search_result_subtype\030\002 \001" - + "(\t\022\036\n\026relative_resource_name\030\003 \001(\t\022\027\n\017li" - + "nked_resource\030\004 \001(\t\022/\n\013modify_time\030\007 \001(\013" - + "2\032.google.protobuf.Timestamp*d\n\020SearchRe" - + "sultType\022\"\n\036SEARCH_RESULT_TYPE_UNSPECIFI" - + "ED\020\000\022\t\n\005ENTRY\020\001\022\020\n\014TAG_TEMPLATE\020\002\022\017\n\013ENT" - + "RY_GROUP\020\003B\334\001\n$com.google.cloud.datacata" - + "log.v1beta1P\001ZFcloud.google.com/go/datac" - + "atalog/apiv1beta1/datacatalogpb;datacata" - + "logpb\252\002 Google.Cloud.DataCatalog.V1Beta1" - + "\312\002 Google\\Cloud\\DataCatalog\\V1beta1\352\002#Go" - + "ogle::Cloud::DataCatalog::V1beta1b\006proto" - + "3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_descriptor, - new java.lang.String[] { - "SearchResultType", - "SearchResultSubtype", - "RelativeResourceName", - "LinkedResource", - "ModifyTime", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java deleted file mode 100644 index adc708e30f7f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequest.java +++ /dev/null @@ -1,3827 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogRequest} - */ -@com.google.protobuf.Generated -public final class SearchCatalogRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogRequest) - SearchCatalogRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SearchCatalogRequest"); - } - - // Use SearchCatalogRequest.newBuilder() to construct. - private SearchCatalogRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SearchCatalogRequest() { - query_ = ""; - pageToken_ = ""; - orderBy_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.class, - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Builder.class); - } - - public interface ScopeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The list of organization IDs to search within. To find your organization
-     * ID, follow instructions in
-     * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-     * 
- * - * repeated string include_org_ids = 2; - * - * @return A list containing the includeOrgIds. - */ - java.util.List getIncludeOrgIdsList(); - - /** - * - * - *
-     * The list of organization IDs to search within. To find your organization
-     * ID, follow instructions in
-     * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-     * 
- * - * repeated string include_org_ids = 2; - * - * @return The count of includeOrgIds. - */ - int getIncludeOrgIdsCount(); - - /** - * - * - *
-     * The list of organization IDs to search within. To find your organization
-     * ID, follow instructions in
-     * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-     * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the element to return. - * @return The includeOrgIds at the given index. - */ - java.lang.String getIncludeOrgIds(int index); - - /** - * - * - *
-     * The list of organization IDs to search within. To find your organization
-     * ID, follow instructions in
-     * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-     * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the value to return. - * @return The bytes of the includeOrgIds at the given index. - */ - com.google.protobuf.ByteString getIncludeOrgIdsBytes(int index); - - /** - * - * - *
-     * The list of project IDs to search within. To learn more about the
-     * distinction between project names/IDs/numbers, go to
-     * https://cloud.google.com/docs/overview/#projects.
-     * 
- * - * repeated string include_project_ids = 3; - * - * @return A list containing the includeProjectIds. - */ - java.util.List getIncludeProjectIdsList(); - - /** - * - * - *
-     * The list of project IDs to search within. To learn more about the
-     * distinction between project names/IDs/numbers, go to
-     * https://cloud.google.com/docs/overview/#projects.
-     * 
- * - * repeated string include_project_ids = 3; - * - * @return The count of includeProjectIds. - */ - int getIncludeProjectIdsCount(); - - /** - * - * - *
-     * The list of project IDs to search within. To learn more about the
-     * distinction between project names/IDs/numbers, go to
-     * https://cloud.google.com/docs/overview/#projects.
-     * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the element to return. - * @return The includeProjectIds at the given index. - */ - java.lang.String getIncludeProjectIds(int index); - - /** - * - * - *
-     * The list of project IDs to search within. To learn more about the
-     * distinction between project names/IDs/numbers, go to
-     * https://cloud.google.com/docs/overview/#projects.
-     * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the includeProjectIds at the given index. - */ - com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index); - - /** - * - * - *
-     * If `true`, include Google Cloud public datasets in the
-     * search results. Info on Google Cloud public datasets is available at
-     * https://cloud.google.com/public-datasets/. By default, Google Cloud
-     * public datasets are excluded.
-     * 
- * - * bool include_gcp_public_datasets = 7; - * - * @return The includeGcpPublicDatasets. - */ - boolean getIncludeGcpPublicDatasets(); - - /** - * - * - *
-     * Optional. The list of locations to search within.
-     * 1. If empty, search will be performed in all locations;
-     * 2. If any of the locations are NOT in the valid locations list, error
-     * will be returned;
-     * 3. Otherwise, search only the given locations for matching results.
-     * Typical usage is to leave this field empty. When a location is
-     * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-     * users can repeat the search request with this parameter set to get
-     * additional information on the error.
-     *
-     * Valid locations:
-     * * asia-east1
-     * * asia-east2
-     * * asia-northeast1
-     * * asia-northeast2
-     * * asia-northeast3
-     * * asia-south1
-     * * asia-southeast1
-     * * australia-southeast1
-     * * eu
-     * * europe-north1
-     * * europe-west1
-     * * europe-west2
-     * * europe-west3
-     * * europe-west4
-     * * europe-west6
-     * * global
-     * * northamerica-northeast1
-     * * southamerica-east1
-     * * us
-     * * us-central1
-     * * us-east1
-     * * us-east4
-     * * us-west1
-     * * us-west2
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the restrictedLocations. - */ - java.util.List getRestrictedLocationsList(); - - /** - * - * - *
-     * Optional. The list of locations to search within.
-     * 1. If empty, search will be performed in all locations;
-     * 2. If any of the locations are NOT in the valid locations list, error
-     * will be returned;
-     * 3. Otherwise, search only the given locations for matching results.
-     * Typical usage is to leave this field empty. When a location is
-     * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-     * users can repeat the search request with this parameter set to get
-     * additional information on the error.
-     *
-     * Valid locations:
-     * * asia-east1
-     * * asia-east2
-     * * asia-northeast1
-     * * asia-northeast2
-     * * asia-northeast3
-     * * asia-south1
-     * * asia-southeast1
-     * * australia-southeast1
-     * * eu
-     * * europe-north1
-     * * europe-west1
-     * * europe-west2
-     * * europe-west3
-     * * europe-west4
-     * * europe-west6
-     * * global
-     * * northamerica-northeast1
-     * * southamerica-east1
-     * * us
-     * * us-central1
-     * * us-east1
-     * * us-east4
-     * * us-west1
-     * * us-west2
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of restrictedLocations. - */ - int getRestrictedLocationsCount(); - - /** - * - * - *
-     * Optional. The list of locations to search within.
-     * 1. If empty, search will be performed in all locations;
-     * 2. If any of the locations are NOT in the valid locations list, error
-     * will be returned;
-     * 3. Otherwise, search only the given locations for matching results.
-     * Typical usage is to leave this field empty. When a location is
-     * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-     * users can repeat the search request with this parameter set to get
-     * additional information on the error.
-     *
-     * Valid locations:
-     * * asia-east1
-     * * asia-east2
-     * * asia-northeast1
-     * * asia-northeast2
-     * * asia-northeast3
-     * * asia-south1
-     * * asia-southeast1
-     * * australia-southeast1
-     * * eu
-     * * europe-north1
-     * * europe-west1
-     * * europe-west2
-     * * europe-west3
-     * * europe-west4
-     * * europe-west6
-     * * global
-     * * northamerica-northeast1
-     * * southamerica-east1
-     * * us
-     * * us-central1
-     * * us-east1
-     * * us-east4
-     * * us-west1
-     * * us-west2
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The restrictedLocations at the given index. - */ - java.lang.String getRestrictedLocations(int index); - - /** - * - * - *
-     * Optional. The list of locations to search within.
-     * 1. If empty, search will be performed in all locations;
-     * 2. If any of the locations are NOT in the valid locations list, error
-     * will be returned;
-     * 3. Otherwise, search only the given locations for matching results.
-     * Typical usage is to leave this field empty. When a location is
-     * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-     * users can repeat the search request with this parameter set to get
-     * additional information on the error.
-     *
-     * Valid locations:
-     * * asia-east1
-     * * asia-east2
-     * * asia-northeast1
-     * * asia-northeast2
-     * * asia-northeast3
-     * * asia-south1
-     * * asia-southeast1
-     * * australia-southeast1
-     * * eu
-     * * europe-north1
-     * * europe-west1
-     * * europe-west2
-     * * europe-west3
-     * * europe-west4
-     * * europe-west6
-     * * global
-     * * northamerica-northeast1
-     * * southamerica-east1
-     * * us
-     * * us-central1
-     * * us-east1
-     * * us-east4
-     * * us-west1
-     * * us-west2
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the restrictedLocations at the given index. - */ - com.google.protobuf.ByteString getRestrictedLocationsBytes(int index); - } - - /** - * - * - *
-   * The criteria that select the subspace used for query matching.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope} - */ - public static final class Scope extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope) - ScopeOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Scope"); - } - - // Use Scope.newBuilder() to construct. - private Scope(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Scope() { - includeOrgIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - restrictedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.class, - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.Builder.class); - } - - public static final int INCLUDE_ORG_IDS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList includeOrgIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-     * The list of organization IDs to search within. To find your organization
-     * ID, follow instructions in
-     * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-     * 
- * - * repeated string include_org_ids = 2; - * - * @return A list containing the includeOrgIds. - */ - public com.google.protobuf.ProtocolStringList getIncludeOrgIdsList() { - return includeOrgIds_; - } - - /** - * - * - *
-     * The list of organization IDs to search within. To find your organization
-     * ID, follow instructions in
-     * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-     * 
- * - * repeated string include_org_ids = 2; - * - * @return The count of includeOrgIds. - */ - public int getIncludeOrgIdsCount() { - return includeOrgIds_.size(); - } - - /** - * - * - *
-     * The list of organization IDs to search within. To find your organization
-     * ID, follow instructions in
-     * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-     * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the element to return. - * @return The includeOrgIds at the given index. - */ - public java.lang.String getIncludeOrgIds(int index) { - return includeOrgIds_.get(index); - } - - /** - * - * - *
-     * The list of organization IDs to search within. To find your organization
-     * ID, follow instructions in
-     * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-     * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the value to return. - * @return The bytes of the includeOrgIds at the given index. - */ - public com.google.protobuf.ByteString getIncludeOrgIdsBytes(int index) { - return includeOrgIds_.getByteString(index); - } - - public static final int INCLUDE_PROJECT_IDS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList includeProjectIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-     * The list of project IDs to search within. To learn more about the
-     * distinction between project names/IDs/numbers, go to
-     * https://cloud.google.com/docs/overview/#projects.
-     * 
- * - * repeated string include_project_ids = 3; - * - * @return A list containing the includeProjectIds. - */ - public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() { - return includeProjectIds_; - } - - /** - * - * - *
-     * The list of project IDs to search within. To learn more about the
-     * distinction between project names/IDs/numbers, go to
-     * https://cloud.google.com/docs/overview/#projects.
-     * 
- * - * repeated string include_project_ids = 3; - * - * @return The count of includeProjectIds. - */ - public int getIncludeProjectIdsCount() { - return includeProjectIds_.size(); - } - - /** - * - * - *
-     * The list of project IDs to search within. To learn more about the
-     * distinction between project names/IDs/numbers, go to
-     * https://cloud.google.com/docs/overview/#projects.
-     * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the element to return. - * @return The includeProjectIds at the given index. - */ - public java.lang.String getIncludeProjectIds(int index) { - return includeProjectIds_.get(index); - } - - /** - * - * - *
-     * The list of project IDs to search within. To learn more about the
-     * distinction between project names/IDs/numbers, go to
-     * https://cloud.google.com/docs/overview/#projects.
-     * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the includeProjectIds at the given index. - */ - public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) { - return includeProjectIds_.getByteString(index); - } - - public static final int INCLUDE_GCP_PUBLIC_DATASETS_FIELD_NUMBER = 7; - private boolean includeGcpPublicDatasets_ = false; - - /** - * - * - *
-     * If `true`, include Google Cloud public datasets in the
-     * search results. Info on Google Cloud public datasets is available at
-     * https://cloud.google.com/public-datasets/. By default, Google Cloud
-     * public datasets are excluded.
-     * 
- * - * bool include_gcp_public_datasets = 7; - * - * @return The includeGcpPublicDatasets. - */ - @java.lang.Override - public boolean getIncludeGcpPublicDatasets() { - return includeGcpPublicDatasets_; - } - - public static final int RESTRICTED_LOCATIONS_FIELD_NUMBER = 16; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList restrictedLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-     * Optional. The list of locations to search within.
-     * 1. If empty, search will be performed in all locations;
-     * 2. If any of the locations are NOT in the valid locations list, error
-     * will be returned;
-     * 3. Otherwise, search only the given locations for matching results.
-     * Typical usage is to leave this field empty. When a location is
-     * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-     * users can repeat the search request with this parameter set to get
-     * additional information on the error.
-     *
-     * Valid locations:
-     * * asia-east1
-     * * asia-east2
-     * * asia-northeast1
-     * * asia-northeast2
-     * * asia-northeast3
-     * * asia-south1
-     * * asia-southeast1
-     * * australia-southeast1
-     * * eu
-     * * europe-north1
-     * * europe-west1
-     * * europe-west2
-     * * europe-west3
-     * * europe-west4
-     * * europe-west6
-     * * global
-     * * northamerica-northeast1
-     * * southamerica-east1
-     * * us
-     * * us-central1
-     * * us-east1
-     * * us-east4
-     * * us-west1
-     * * us-west2
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the restrictedLocations. - */ - public com.google.protobuf.ProtocolStringList getRestrictedLocationsList() { - return restrictedLocations_; - } - - /** - * - * - *
-     * Optional. The list of locations to search within.
-     * 1. If empty, search will be performed in all locations;
-     * 2. If any of the locations are NOT in the valid locations list, error
-     * will be returned;
-     * 3. Otherwise, search only the given locations for matching results.
-     * Typical usage is to leave this field empty. When a location is
-     * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-     * users can repeat the search request with this parameter set to get
-     * additional information on the error.
-     *
-     * Valid locations:
-     * * asia-east1
-     * * asia-east2
-     * * asia-northeast1
-     * * asia-northeast2
-     * * asia-northeast3
-     * * asia-south1
-     * * asia-southeast1
-     * * australia-southeast1
-     * * eu
-     * * europe-north1
-     * * europe-west1
-     * * europe-west2
-     * * europe-west3
-     * * europe-west4
-     * * europe-west6
-     * * global
-     * * northamerica-northeast1
-     * * southamerica-east1
-     * * us
-     * * us-central1
-     * * us-east1
-     * * us-east4
-     * * us-west1
-     * * us-west2
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of restrictedLocations. - */ - public int getRestrictedLocationsCount() { - return restrictedLocations_.size(); - } - - /** - * - * - *
-     * Optional. The list of locations to search within.
-     * 1. If empty, search will be performed in all locations;
-     * 2. If any of the locations are NOT in the valid locations list, error
-     * will be returned;
-     * 3. Otherwise, search only the given locations for matching results.
-     * Typical usage is to leave this field empty. When a location is
-     * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-     * users can repeat the search request with this parameter set to get
-     * additional information on the error.
-     *
-     * Valid locations:
-     * * asia-east1
-     * * asia-east2
-     * * asia-northeast1
-     * * asia-northeast2
-     * * asia-northeast3
-     * * asia-south1
-     * * asia-southeast1
-     * * australia-southeast1
-     * * eu
-     * * europe-north1
-     * * europe-west1
-     * * europe-west2
-     * * europe-west3
-     * * europe-west4
-     * * europe-west6
-     * * global
-     * * northamerica-northeast1
-     * * southamerica-east1
-     * * us
-     * * us-central1
-     * * us-east1
-     * * us-east4
-     * * us-west1
-     * * us-west2
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The restrictedLocations at the given index. - */ - public java.lang.String getRestrictedLocations(int index) { - return restrictedLocations_.get(index); - } - - /** - * - * - *
-     * Optional. The list of locations to search within.
-     * 1. If empty, search will be performed in all locations;
-     * 2. If any of the locations are NOT in the valid locations list, error
-     * will be returned;
-     * 3. Otherwise, search only the given locations for matching results.
-     * Typical usage is to leave this field empty. When a location is
-     * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-     * users can repeat the search request with this parameter set to get
-     * additional information on the error.
-     *
-     * Valid locations:
-     * * asia-east1
-     * * asia-east2
-     * * asia-northeast1
-     * * asia-northeast2
-     * * asia-northeast3
-     * * asia-south1
-     * * asia-southeast1
-     * * australia-southeast1
-     * * eu
-     * * europe-north1
-     * * europe-west1
-     * * europe-west2
-     * * europe-west3
-     * * europe-west4
-     * * europe-west6
-     * * global
-     * * northamerica-northeast1
-     * * southamerica-east1
-     * * us
-     * * us-central1
-     * * us-east1
-     * * us-east4
-     * * us-west1
-     * * us-west2
-     * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the restrictedLocations at the given index. - */ - public com.google.protobuf.ByteString getRestrictedLocationsBytes(int index) { - return restrictedLocations_.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 < includeOrgIds_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, includeOrgIds_.getRaw(i)); - } - for (int i = 0; i < includeProjectIds_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, includeProjectIds_.getRaw(i)); - } - if (includeGcpPublicDatasets_ != false) { - output.writeBool(7, includeGcpPublicDatasets_); - } - for (int i = 0; i < restrictedLocations_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString( - output, 16, restrictedLocations_.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 < includeOrgIds_.size(); i++) { - dataSize += computeStringSizeNoTag(includeOrgIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncludeOrgIdsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < includeProjectIds_.size(); i++) { - dataSize += computeStringSizeNoTag(includeProjectIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncludeProjectIdsList().size(); - } - if (includeGcpPublicDatasets_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, includeGcpPublicDatasets_); - } - { - int dataSize = 0; - for (int i = 0; i < restrictedLocations_.size(); i++) { - dataSize += computeStringSizeNoTag(restrictedLocations_.getRaw(i)); - } - size += dataSize; - size += 2 * getRestrictedLocationsList().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.datacatalog.v1beta1.SearchCatalogRequest.Scope)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope other = - (com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope) obj; - - if (!getIncludeOrgIdsList().equals(other.getIncludeOrgIdsList())) return false; - if (!getIncludeProjectIdsList().equals(other.getIncludeProjectIdsList())) return false; - if (getIncludeGcpPublicDatasets() != other.getIncludeGcpPublicDatasets()) return false; - if (!getRestrictedLocationsList().equals(other.getRestrictedLocationsList())) return false; - if (!getUnknownFields().equals(other.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 (getIncludeOrgIdsCount() > 0) { - hash = (37 * hash) + INCLUDE_ORG_IDS_FIELD_NUMBER; - hash = (53 * hash) + getIncludeOrgIdsList().hashCode(); - } - if (getIncludeProjectIdsCount() > 0) { - hash = (37 * hash) + INCLUDE_PROJECT_IDS_FIELD_NUMBER; - hash = (53 * hash) + getIncludeProjectIdsList().hashCode(); - } - hash = (37 * hash) + INCLUDE_GCP_PUBLIC_DATASETS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeGcpPublicDatasets()); - if (getRestrictedLocationsCount() > 0) { - hash = (37 * hash) + RESTRICTED_LOCATIONS_FIELD_NUMBER; - hash = (53 * hash) + getRestrictedLocationsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 criteria that select the subspace used for query matching.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope) - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.class, - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.Builder.class); - } - - // Construct using - // com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - includeOrgIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - includeGcpPublicDatasets_ = false; - restrictedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_Scope_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope build() { - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope buildPartial() { - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope result = - new com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - includeOrgIds_.makeImmutable(); - result.includeOrgIds_ = includeOrgIds_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - includeProjectIds_.makeImmutable(); - result.includeProjectIds_ = includeProjectIds_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.includeGcpPublicDatasets_ = includeGcpPublicDatasets_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - restrictedLocations_.makeImmutable(); - result.restrictedLocations_ = restrictedLocations_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope other) { - if (other - == com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.getDefaultInstance()) - return this; - if (!other.includeOrgIds_.isEmpty()) { - if (includeOrgIds_.isEmpty()) { - includeOrgIds_ = other.includeOrgIds_; - bitField0_ |= 0x00000001; - } else { - ensureIncludeOrgIdsIsMutable(); - includeOrgIds_.addAll(other.includeOrgIds_); - } - onChanged(); - } - if (!other.includeProjectIds_.isEmpty()) { - if (includeProjectIds_.isEmpty()) { - includeProjectIds_ = other.includeProjectIds_; - bitField0_ |= 0x00000002; - } else { - ensureIncludeProjectIdsIsMutable(); - includeProjectIds_.addAll(other.includeProjectIds_); - } - onChanged(); - } - if (other.getIncludeGcpPublicDatasets() != false) { - setIncludeGcpPublicDatasets(other.getIncludeGcpPublicDatasets()); - } - if (!other.restrictedLocations_.isEmpty()) { - if (restrictedLocations_.isEmpty()) { - restrictedLocations_ = other.restrictedLocations_; - bitField0_ |= 0x00000008; - } else { - ensureRestrictedLocationsIsMutable(); - restrictedLocations_.addAll(other.restrictedLocations_); - } - 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 18: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIncludeOrgIdsIsMutable(); - includeOrgIds_.add(s); - break; - } // case 18 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureIncludeProjectIdsIsMutable(); - includeProjectIds_.add(s); - break; - } // case 26 - case 56: - { - includeGcpPublicDatasets_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 56 - case 130: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureRestrictedLocationsIsMutable(); - restrictedLocations_.add(s); - break; - } // case 130 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - 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 includeOrgIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureIncludeOrgIdsIsMutable() { - if (!includeOrgIds_.isModifiable()) { - includeOrgIds_ = new com.google.protobuf.LazyStringArrayList(includeOrgIds_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
-       * The list of organization IDs to search within. To find your organization
-       * ID, follow instructions in
-       * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-       * 
- * - * repeated string include_org_ids = 2; - * - * @return A list containing the includeOrgIds. - */ - public com.google.protobuf.ProtocolStringList getIncludeOrgIdsList() { - includeOrgIds_.makeImmutable(); - return includeOrgIds_; - } - - /** - * - * - *
-       * The list of organization IDs to search within. To find your organization
-       * ID, follow instructions in
-       * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-       * 
- * - * repeated string include_org_ids = 2; - * - * @return The count of includeOrgIds. - */ - public int getIncludeOrgIdsCount() { - return includeOrgIds_.size(); - } - - /** - * - * - *
-       * The list of organization IDs to search within. To find your organization
-       * ID, follow instructions in
-       * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the element to return. - * @return The includeOrgIds at the given index. - */ - public java.lang.String getIncludeOrgIds(int index) { - return includeOrgIds_.get(index); - } - - /** - * - * - *
-       * The list of organization IDs to search within. To find your organization
-       * ID, follow instructions in
-       * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index of the value to return. - * @return The bytes of the includeOrgIds at the given index. - */ - public com.google.protobuf.ByteString getIncludeOrgIdsBytes(int index) { - return includeOrgIds_.getByteString(index); - } - - /** - * - * - *
-       * The list of organization IDs to search within. To find your organization
-       * ID, follow instructions in
-       * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param index The index to set the value at. - * @param value The includeOrgIds to set. - * @return This builder for chaining. - */ - public Builder setIncludeOrgIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludeOrgIdsIsMutable(); - includeOrgIds_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of organization IDs to search within. To find your organization
-       * ID, follow instructions in
-       * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param value The includeOrgIds to add. - * @return This builder for chaining. - */ - public Builder addIncludeOrgIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludeOrgIdsIsMutable(); - includeOrgIds_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of organization IDs to search within. To find your organization
-       * ID, follow instructions in
-       * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param values The includeOrgIds to add. - * @return This builder for chaining. - */ - public Builder addAllIncludeOrgIds(java.lang.Iterable values) { - ensureIncludeOrgIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeOrgIds_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of organization IDs to search within. To find your organization
-       * ID, follow instructions in
-       * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-       * 
- * - * repeated string include_org_ids = 2; - * - * @return This builder for chaining. - */ - public Builder clearIncludeOrgIds() { - includeOrgIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of organization IDs to search within. To find your organization
-       * ID, follow instructions in
-       * https://cloud.google.com/resource-manager/docs/creating-managing-organization.
-       * 
- * - * repeated string include_org_ids = 2; - * - * @param value The bytes of the includeOrgIds to add. - * @return This builder for chaining. - */ - public Builder addIncludeOrgIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIncludeOrgIdsIsMutable(); - includeOrgIds_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList includeProjectIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureIncludeProjectIdsIsMutable() { - if (!includeProjectIds_.isModifiable()) { - includeProjectIds_ = new com.google.protobuf.LazyStringArrayList(includeProjectIds_); - } - bitField0_ |= 0x00000002; - } - - /** - * - * - *
-       * The list of project IDs to search within. To learn more about the
-       * distinction between project names/IDs/numbers, go to
-       * https://cloud.google.com/docs/overview/#projects.
-       * 
- * - * repeated string include_project_ids = 3; - * - * @return A list containing the includeProjectIds. - */ - public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() { - includeProjectIds_.makeImmutable(); - return includeProjectIds_; - } - - /** - * - * - *
-       * The list of project IDs to search within. To learn more about the
-       * distinction between project names/IDs/numbers, go to
-       * https://cloud.google.com/docs/overview/#projects.
-       * 
- * - * repeated string include_project_ids = 3; - * - * @return The count of includeProjectIds. - */ - public int getIncludeProjectIdsCount() { - return includeProjectIds_.size(); - } - - /** - * - * - *
-       * The list of project IDs to search within. To learn more about the
-       * distinction between project names/IDs/numbers, go to
-       * https://cloud.google.com/docs/overview/#projects.
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the element to return. - * @return The includeProjectIds at the given index. - */ - public java.lang.String getIncludeProjectIds(int index) { - return includeProjectIds_.get(index); - } - - /** - * - * - *
-       * The list of project IDs to search within. To learn more about the
-       * distinction between project names/IDs/numbers, go to
-       * https://cloud.google.com/docs/overview/#projects.
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index of the value to return. - * @return The bytes of the includeProjectIds at the given index. - */ - public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) { - return includeProjectIds_.getByteString(index); - } - - /** - * - * - *
-       * The list of project IDs to search within. To learn more about the
-       * distinction between project names/IDs/numbers, go to
-       * https://cloud.google.com/docs/overview/#projects.
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param index The index to set the value at. - * @param value The includeProjectIds to set. - * @return This builder for chaining. - */ - public Builder setIncludeProjectIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludeProjectIdsIsMutable(); - includeProjectIds_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of project IDs to search within. To learn more about the
-       * distinction between project names/IDs/numbers, go to
-       * https://cloud.google.com/docs/overview/#projects.
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param value The includeProjectIds to add. - * @return This builder for chaining. - */ - public Builder addIncludeProjectIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludeProjectIdsIsMutable(); - includeProjectIds_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of project IDs to search within. To learn more about the
-       * distinction between project names/IDs/numbers, go to
-       * https://cloud.google.com/docs/overview/#projects.
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param values The includeProjectIds to add. - * @return This builder for chaining. - */ - public Builder addAllIncludeProjectIds(java.lang.Iterable values) { - ensureIncludeProjectIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeProjectIds_); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of project IDs to search within. To learn more about the
-       * distinction between project names/IDs/numbers, go to
-       * https://cloud.google.com/docs/overview/#projects.
-       * 
- * - * repeated string include_project_ids = 3; - * - * @return This builder for chaining. - */ - public Builder clearIncludeProjectIds() { - includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; - } - - /** - * - * - *
-       * The list of project IDs to search within. To learn more about the
-       * distinction between project names/IDs/numbers, go to
-       * https://cloud.google.com/docs/overview/#projects.
-       * 
- * - * repeated string include_project_ids = 3; - * - * @param value The bytes of the includeProjectIds to add. - * @return This builder for chaining. - */ - public Builder addIncludeProjectIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIncludeProjectIdsIsMutable(); - includeProjectIds_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean includeGcpPublicDatasets_; - - /** - * - * - *
-       * If `true`, include Google Cloud public datasets in the
-       * search results. Info on Google Cloud public datasets is available at
-       * https://cloud.google.com/public-datasets/. By default, Google Cloud
-       * public datasets are excluded.
-       * 
- * - * bool include_gcp_public_datasets = 7; - * - * @return The includeGcpPublicDatasets. - */ - @java.lang.Override - public boolean getIncludeGcpPublicDatasets() { - return includeGcpPublicDatasets_; - } - - /** - * - * - *
-       * If `true`, include Google Cloud public datasets in the
-       * search results. Info on Google Cloud public datasets is available at
-       * https://cloud.google.com/public-datasets/. By default, Google Cloud
-       * public datasets are excluded.
-       * 
- * - * bool include_gcp_public_datasets = 7; - * - * @param value The includeGcpPublicDatasets to set. - * @return This builder for chaining. - */ - public Builder setIncludeGcpPublicDatasets(boolean value) { - - includeGcpPublicDatasets_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-       * If `true`, include Google Cloud public datasets in the
-       * search results. Info on Google Cloud public datasets is available at
-       * https://cloud.google.com/public-datasets/. By default, Google Cloud
-       * public datasets are excluded.
-       * 
- * - * bool include_gcp_public_datasets = 7; - * - * @return This builder for chaining. - */ - public Builder clearIncludeGcpPublicDatasets() { - bitField0_ = (bitField0_ & ~0x00000004); - includeGcpPublicDatasets_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList restrictedLocations_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureRestrictedLocationsIsMutable() { - if (!restrictedLocations_.isModifiable()) { - restrictedLocations_ = new com.google.protobuf.LazyStringArrayList(restrictedLocations_); - } - bitField0_ |= 0x00000008; - } - - /** - * - * - *
-       * Optional. The list of locations to search within.
-       * 1. If empty, search will be performed in all locations;
-       * 2. If any of the locations are NOT in the valid locations list, error
-       * will be returned;
-       * 3. Otherwise, search only the given locations for matching results.
-       * Typical usage is to leave this field empty. When a location is
-       * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-       * users can repeat the search request with this parameter set to get
-       * additional information on the error.
-       *
-       * Valid locations:
-       * * asia-east1
-       * * asia-east2
-       * * asia-northeast1
-       * * asia-northeast2
-       * * asia-northeast3
-       * * asia-south1
-       * * asia-southeast1
-       * * australia-southeast1
-       * * eu
-       * * europe-north1
-       * * europe-west1
-       * * europe-west2
-       * * europe-west3
-       * * europe-west4
-       * * europe-west6
-       * * global
-       * * northamerica-northeast1
-       * * southamerica-east1
-       * * us
-       * * us-central1
-       * * us-east1
-       * * us-east4
-       * * us-west1
-       * * us-west2
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the restrictedLocations. - */ - public com.google.protobuf.ProtocolStringList getRestrictedLocationsList() { - restrictedLocations_.makeImmutable(); - return restrictedLocations_; - } - - /** - * - * - *
-       * Optional. The list of locations to search within.
-       * 1. If empty, search will be performed in all locations;
-       * 2. If any of the locations are NOT in the valid locations list, error
-       * will be returned;
-       * 3. Otherwise, search only the given locations for matching results.
-       * Typical usage is to leave this field empty. When a location is
-       * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-       * users can repeat the search request with this parameter set to get
-       * additional information on the error.
-       *
-       * Valid locations:
-       * * asia-east1
-       * * asia-east2
-       * * asia-northeast1
-       * * asia-northeast2
-       * * asia-northeast3
-       * * asia-south1
-       * * asia-southeast1
-       * * australia-southeast1
-       * * eu
-       * * europe-north1
-       * * europe-west1
-       * * europe-west2
-       * * europe-west3
-       * * europe-west4
-       * * europe-west6
-       * * global
-       * * northamerica-northeast1
-       * * southamerica-east1
-       * * us
-       * * us-central1
-       * * us-east1
-       * * us-east4
-       * * us-west1
-       * * us-west2
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of restrictedLocations. - */ - public int getRestrictedLocationsCount() { - return restrictedLocations_.size(); - } - - /** - * - * - *
-       * Optional. The list of locations to search within.
-       * 1. If empty, search will be performed in all locations;
-       * 2. If any of the locations are NOT in the valid locations list, error
-       * will be returned;
-       * 3. Otherwise, search only the given locations for matching results.
-       * Typical usage is to leave this field empty. When a location is
-       * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-       * users can repeat the search request with this parameter set to get
-       * additional information on the error.
-       *
-       * Valid locations:
-       * * asia-east1
-       * * asia-east2
-       * * asia-northeast1
-       * * asia-northeast2
-       * * asia-northeast3
-       * * asia-south1
-       * * asia-southeast1
-       * * australia-southeast1
-       * * eu
-       * * europe-north1
-       * * europe-west1
-       * * europe-west2
-       * * europe-west3
-       * * europe-west4
-       * * europe-west6
-       * * global
-       * * northamerica-northeast1
-       * * southamerica-east1
-       * * us
-       * * us-central1
-       * * us-east1
-       * * us-east4
-       * * us-west1
-       * * us-west2
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The restrictedLocations at the given index. - */ - public java.lang.String getRestrictedLocations(int index) { - return restrictedLocations_.get(index); - } - - /** - * - * - *
-       * Optional. The list of locations to search within.
-       * 1. If empty, search will be performed in all locations;
-       * 2. If any of the locations are NOT in the valid locations list, error
-       * will be returned;
-       * 3. Otherwise, search only the given locations for matching results.
-       * Typical usage is to leave this field empty. When a location is
-       * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-       * users can repeat the search request with this parameter set to get
-       * additional information on the error.
-       *
-       * Valid locations:
-       * * asia-east1
-       * * asia-east2
-       * * asia-northeast1
-       * * asia-northeast2
-       * * asia-northeast3
-       * * asia-south1
-       * * asia-southeast1
-       * * australia-southeast1
-       * * eu
-       * * europe-north1
-       * * europe-west1
-       * * europe-west2
-       * * europe-west3
-       * * europe-west4
-       * * europe-west6
-       * * global
-       * * northamerica-northeast1
-       * * southamerica-east1
-       * * us
-       * * us-central1
-       * * us-east1
-       * * us-east4
-       * * us-west1
-       * * us-west2
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the restrictedLocations at the given index. - */ - public com.google.protobuf.ByteString getRestrictedLocationsBytes(int index) { - return restrictedLocations_.getByteString(index); - } - - /** - * - * - *
-       * Optional. The list of locations to search within.
-       * 1. If empty, search will be performed in all locations;
-       * 2. If any of the locations are NOT in the valid locations list, error
-       * will be returned;
-       * 3. Otherwise, search only the given locations for matching results.
-       * Typical usage is to leave this field empty. When a location is
-       * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-       * users can repeat the search request with this parameter set to get
-       * additional information on the error.
-       *
-       * Valid locations:
-       * * asia-east1
-       * * asia-east2
-       * * asia-northeast1
-       * * asia-northeast2
-       * * asia-northeast3
-       * * asia-south1
-       * * asia-southeast1
-       * * australia-southeast1
-       * * eu
-       * * europe-north1
-       * * europe-west1
-       * * europe-west2
-       * * europe-west3
-       * * europe-west4
-       * * europe-west6
-       * * global
-       * * northamerica-northeast1
-       * * southamerica-east1
-       * * us
-       * * us-central1
-       * * us-east1
-       * * us-east4
-       * * us-west1
-       * * us-west2
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The restrictedLocations to set. - * @return This builder for chaining. - */ - public Builder setRestrictedLocations(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedLocationsIsMutable(); - restrictedLocations_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. The list of locations to search within.
-       * 1. If empty, search will be performed in all locations;
-       * 2. If any of the locations are NOT in the valid locations list, error
-       * will be returned;
-       * 3. Otherwise, search only the given locations for matching results.
-       * Typical usage is to leave this field empty. When a location is
-       * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-       * users can repeat the search request with this parameter set to get
-       * additional information on the error.
-       *
-       * Valid locations:
-       * * asia-east1
-       * * asia-east2
-       * * asia-northeast1
-       * * asia-northeast2
-       * * asia-northeast3
-       * * asia-south1
-       * * asia-southeast1
-       * * australia-southeast1
-       * * eu
-       * * europe-north1
-       * * europe-west1
-       * * europe-west2
-       * * europe-west3
-       * * europe-west4
-       * * europe-west6
-       * * global
-       * * northamerica-northeast1
-       * * southamerica-east1
-       * * us
-       * * us-central1
-       * * us-east1
-       * * us-east4
-       * * us-west1
-       * * us-west2
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The restrictedLocations to add. - * @return This builder for chaining. - */ - public Builder addRestrictedLocations(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRestrictedLocationsIsMutable(); - restrictedLocations_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. The list of locations to search within.
-       * 1. If empty, search will be performed in all locations;
-       * 2. If any of the locations are NOT in the valid locations list, error
-       * will be returned;
-       * 3. Otherwise, search only the given locations for matching results.
-       * Typical usage is to leave this field empty. When a location is
-       * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-       * users can repeat the search request with this parameter set to get
-       * additional information on the error.
-       *
-       * Valid locations:
-       * * asia-east1
-       * * asia-east2
-       * * asia-northeast1
-       * * asia-northeast2
-       * * asia-northeast3
-       * * asia-south1
-       * * asia-southeast1
-       * * australia-southeast1
-       * * eu
-       * * europe-north1
-       * * europe-west1
-       * * europe-west2
-       * * europe-west3
-       * * europe-west4
-       * * europe-west6
-       * * global
-       * * northamerica-northeast1
-       * * southamerica-east1
-       * * us
-       * * us-central1
-       * * us-east1
-       * * us-east4
-       * * us-west1
-       * * us-west2
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The restrictedLocations to add. - * @return This builder for chaining. - */ - public Builder addAllRestrictedLocations(java.lang.Iterable values) { - ensureRestrictedLocationsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, restrictedLocations_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. The list of locations to search within.
-       * 1. If empty, search will be performed in all locations;
-       * 2. If any of the locations are NOT in the valid locations list, error
-       * will be returned;
-       * 3. Otherwise, search only the given locations for matching results.
-       * Typical usage is to leave this field empty. When a location is
-       * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-       * users can repeat the search request with this parameter set to get
-       * additional information on the error.
-       *
-       * Valid locations:
-       * * asia-east1
-       * * asia-east2
-       * * asia-northeast1
-       * * asia-northeast2
-       * * asia-northeast3
-       * * asia-south1
-       * * asia-southeast1
-       * * australia-southeast1
-       * * eu
-       * * europe-north1
-       * * europe-west1
-       * * europe-west2
-       * * europe-west3
-       * * europe-west4
-       * * europe-west6
-       * * global
-       * * northamerica-northeast1
-       * * southamerica-east1
-       * * us
-       * * us-central1
-       * * us-east1
-       * * us-east4
-       * * us-west1
-       * * us-west2
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearRestrictedLocations() { - restrictedLocations_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - - /** - * - * - *
-       * Optional. The list of locations to search within.
-       * 1. If empty, search will be performed in all locations;
-       * 2. If any of the locations are NOT in the valid locations list, error
-       * will be returned;
-       * 3. Otherwise, search only the given locations for matching results.
-       * Typical usage is to leave this field empty. When a location is
-       * unreachable as returned in the `SearchCatalogResponse.unreachable` field,
-       * users can repeat the search request with this parameter set to get
-       * additional information on the error.
-       *
-       * Valid locations:
-       * * asia-east1
-       * * asia-east2
-       * * asia-northeast1
-       * * asia-northeast2
-       * * asia-northeast3
-       * * asia-south1
-       * * asia-southeast1
-       * * australia-southeast1
-       * * eu
-       * * europe-north1
-       * * europe-west1
-       * * europe-west2
-       * * europe-west3
-       * * europe-west4
-       * * europe-west6
-       * * global
-       * * northamerica-northeast1
-       * * southamerica-east1
-       * * us
-       * * us-central1
-       * * us-east1
-       * * us-east4
-       * * us-west1
-       * * us-west2
-       * 
- * - * repeated string restricted_locations = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the restrictedLocations to add. - * @return This builder for chaining. - */ - public Builder addRestrictedLocationsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRestrictedLocationsIsMutable(); - restrictedLocations_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope) - private static final com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope(); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Scope parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int SCOPE_FIELD_NUMBER = 6; - private com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope_; - - /** - * - * - *
-   * Required. The scope of this search request. A `scope` that has empty
-   * `include_org_ids`, `include_project_ids` AND false
-   * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-   * return an error in such a case.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scope field is set. - */ - @java.lang.Override - public boolean hasScope() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The scope of this search request. A `scope` that has empty
-   * `include_org_ids`, `include_project_ids` AND false
-   * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-   * return an error in such a case.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scope. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope getScope() { - return scope_ == null - ? com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.getDefaultInstance() - : scope_; - } - - /** - * - * - *
-   * Required. The scope of this search request. A `scope` that has empty
-   * `include_org_ids`, `include_project_ids` AND false
-   * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-   * return an error in such a case.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeOrBuilder - getScopeOrBuilder() { - return scope_ == null - ? com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.getDefaultInstance() - : scope_; - } - - public static final int QUERY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object query_ = ""; - - /** - * - * - *
-   * Optional. The query string in search query syntax. An empty query string
-   * will result in all data assets (in the specified scope) that the user has
-   * access to. Query strings can be simple as "x" or more qualified as:
-   *
-   * * name:x
-   * * column:x
-   * * description:y
-   *
-   * Note: Query tokens need to have a minimum of 3 characters for substring
-   * matching to work correctly. See [Data Catalog Search
-   * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-   * for more information.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The query. - */ - @java.lang.Override - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } - } - - /** - * - * - *
-   * Optional. The query string in search query syntax. An empty query string
-   * will result in all data assets (in the specified scope) that the user has
-   * access to. Query strings can be simple as "x" or more qualified as:
-   *
-   * * name:x
-   * * column:x
-   * * description:y
-   *
-   * Note: Query tokens need to have a minimum of 3 characters for substring
-   * matching to work correctly. See [Data Catalog Search
-   * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-   * for more information.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for query. - */ - @java.lang.Override - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_ = 0; - - /** - * - * - *
-   * Number of results in the search page. If <=0 then defaults to 10. Max limit
-   * for page_size is 1000. Throws an invalid argument for page_size > 1000.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object pageToken_ = ""; - - /** - * - * - *
-   * Optional. Pagination token returned in an earlier
-   * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1beta1.SearchCatalogResponse.next_page_token],
-   * which indicates that this is a continuation of a prior
-   * [SearchCatalogRequest][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]
-   * call, and that the system should return the next page of data. If empty,
-   * the first page is returned.
-   * 
- * - * 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. Pagination token returned in an earlier
-   * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1beta1.SearchCatalogResponse.next_page_token],
-   * which indicates that this is a continuation of a prior
-   * [SearchCatalogRequest][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]
-   * call, and that the system should return the next page of data. If empty,
-   * the first page is returned.
-   * 
- * - * 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 = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object orderBy_ = ""; - - /** - * - * - *
-   * Specifies the ordering of results, currently supported case-sensitive
-   * choices are:
-   *
-   * * `relevance`, only supports descending
-   * * `last_modified_timestamp [asc|desc]`, defaults to descending if not
-   * specified
-   * * `default` that can only be descending
-   *
-   * If not specified, defaults to `relevance` descending.
-   * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - @java.lang.Override - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } - } - - /** - * - * - *
-   * Specifies the ordering of results, currently supported case-sensitive
-   * choices are:
-   *
-   * * `relevance`, only supports descending
-   * * `last_modified_timestamp [asc|desc]`, defaults to descending if not
-   * specified
-   * * `default` that can only be descending
-   *
-   * If not specified, defaults to `relevance` descending.
-   * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(query_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, query_); - } - 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, 5, orderBy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(6, getScope()); - } - 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(query_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, query_); - } - 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(5, orderBy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getScope()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest other = - (com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest) obj; - - if (hasScope() != other.hasScope()) return false; - if (hasScope()) { - if (!getScope().equals(other.getScope())) return false; - } - if (!getQuery().equals(other.getQuery())) 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(); - if (hasScope()) { - hash = (37 * hash) + SCOPE_FIELD_NUMBER; - hash = (53 * hash) + getScope().hashCode(); - } - hash = (37 * hash) + QUERY_FIELD_NUMBER; - hash = (53 * hash) + getQuery().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (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.datacatalog.v1beta1.SearchCatalogRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.SearchCatalogRequest) - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.class, - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.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(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - scope_ = null; - if (scopeBuilder_ != null) { - scopeBuilder_.dispose(); - scopeBuilder_ = null; - } - query_ = ""; - pageSize_ = 0; - pageToken_ = ""; - orderBy_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest build() { - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest result = - new com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.scope_ = scopeBuilder_ == null ? scope_ : scopeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.query_ = query_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.pageSize_ = pageSize_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.pageToken_ = pageToken_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.orderBy_ = orderBy_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.getDefaultInstance()) - return this; - if (other.hasScope()) { - mergeScope(other.getScope()); - } - if (!other.getQuery().isEmpty()) { - query_ = other.query_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - bitField0_ |= 0x00000008; - onChanged(); - } - 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: - { - query_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 10 - case 16: - { - pageSize_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 16 - case 26: - { - pageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 42: - { - orderBy_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 50: - { - input.readMessage(internalGetScopeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - 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 com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope, - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.Builder, - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeOrBuilder> - scopeBuilder_; - - /** - * - * - *
-     * Required. The scope of this search request. A `scope` that has empty
-     * `include_org_ids`, `include_project_ids` AND false
-     * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-     * return an error in such a case.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scope field is set. - */ - public boolean hasScope() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Required. The scope of this search request. A `scope` that has empty
-     * `include_org_ids`, `include_project_ids` AND false
-     * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-     * return an error in such a case.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scope. - */ - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope getScope() { - if (scopeBuilder_ == null) { - return scope_ == null - ? com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.getDefaultInstance() - : scope_; - } else { - return scopeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The scope of this search request. A `scope` that has empty
-     * `include_org_ids`, `include_project_ids` AND false
-     * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-     * return an error in such a case.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setScope(com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope value) { - if (scopeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scope_ = value; - } else { - scopeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The scope of this search request. A `scope` that has empty
-     * `include_org_ids`, `include_project_ids` AND false
-     * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-     * return an error in such a case.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setScope( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.Builder builderForValue) { - if (scopeBuilder_ == null) { - scope_ = builderForValue.build(); - } else { - scopeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The scope of this search request. A `scope` that has empty
-     * `include_org_ids`, `include_project_ids` AND false
-     * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-     * return an error in such a case.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeScope( - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope value) { - if (scopeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && scope_ != null - && scope_ - != com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope - .getDefaultInstance()) { - getScopeBuilder().mergeFrom(value); - } else { - scope_ = value; - } - } else { - scopeBuilder_.mergeFrom(value); - } - if (scope_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The scope of this search request. A `scope` that has empty
-     * `include_org_ids`, `include_project_ids` AND false
-     * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-     * return an error in such a case.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearScope() { - bitField0_ = (bitField0_ & ~0x00000001); - scope_ = null; - if (scopeBuilder_ != null) { - scopeBuilder_.dispose(); - scopeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The scope of this search request. A `scope` that has empty
-     * `include_org_ids`, `include_project_ids` AND false
-     * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-     * return an error in such a case.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.Builder - getScopeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetScopeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The scope of this search request. A `scope` that has empty
-     * `include_org_ids`, `include_project_ids` AND false
-     * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-     * return an error in such a case.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeOrBuilder - getScopeOrBuilder() { - if (scopeBuilder_ != null) { - return scopeBuilder_.getMessageOrBuilder(); - } else { - return scope_ == null - ? com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.getDefaultInstance() - : scope_; - } - } - - /** - * - * - *
-     * Required. The scope of this search request. A `scope` that has empty
-     * `include_org_ids`, `include_project_ids` AND false
-     * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-     * return an error in such a case.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope, - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.Builder, - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeOrBuilder> - internalGetScopeFieldBuilder() { - if (scopeBuilder_ == null) { - scopeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope, - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope.Builder, - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeOrBuilder>( - getScope(), getParentForChildren(), isClean()); - scope_ = null; - } - return scopeBuilder_; - } - - private java.lang.Object query_ = ""; - - /** - * - * - *
-     * Optional. The query string in search query syntax. An empty query string
-     * will result in all data assets (in the specified scope) that the user has
-     * access to. Query strings can be simple as "x" or more qualified as:
-     *
-     * * name:x
-     * * column:x
-     * * description:y
-     *
-     * Note: Query tokens need to have a minimum of 3 characters for substring
-     * matching to work correctly. See [Data Catalog Search
-     * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-     * for more information.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The query. - */ - public java.lang.String getQuery() { - java.lang.Object ref = query_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - query_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Optional. The query string in search query syntax. An empty query string
-     * will result in all data assets (in the specified scope) that the user has
-     * access to. Query strings can be simple as "x" or more qualified as:
-     *
-     * * name:x
-     * * column:x
-     * * description:y
-     *
-     * Note: Query tokens need to have a minimum of 3 characters for substring
-     * matching to work correctly. See [Data Catalog Search
-     * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-     * for more information.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for query. - */ - public com.google.protobuf.ByteString getQueryBytes() { - java.lang.Object ref = query_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - query_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Optional. The query string in search query syntax. An empty query string
-     * will result in all data assets (in the specified scope) that the user has
-     * access to. Query strings can be simple as "x" or more qualified as:
-     *
-     * * name:x
-     * * column:x
-     * * description:y
-     *
-     * Note: Query tokens need to have a minimum of 3 characters for substring
-     * matching to work correctly. See [Data Catalog Search
-     * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-     * for more information.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The query to set. - * @return This builder for chaining. - */ - public Builder setQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - query_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The query string in search query syntax. An empty query string
-     * will result in all data assets (in the specified scope) that the user has
-     * access to. Query strings can be simple as "x" or more qualified as:
-     *
-     * * name:x
-     * * column:x
-     * * description:y
-     *
-     * Note: Query tokens need to have a minimum of 3 characters for substring
-     * matching to work correctly. See [Data Catalog Search
-     * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-     * for more information.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearQuery() { - query_ = getDefaultInstance().getQuery(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. The query string in search query syntax. An empty query string
-     * will result in all data assets (in the specified scope) that the user has
-     * access to. Query strings can be simple as "x" or more qualified as:
-     *
-     * * name:x
-     * * column:x
-     * * description:y
-     *
-     * Note: Query tokens need to have a minimum of 3 characters for substring
-     * matching to work correctly. See [Data Catalog Search
-     * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-     * for more information.
-     * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for query to set. - * @return This builder for chaining. - */ - public Builder setQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - query_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private int pageSize_; - - /** - * - * - *
-     * Number of results in the search page. If <=0 then defaults to 10. Max limit
-     * for page_size is 1000. Throws an invalid argument for page_size > 1000.
-     * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - /** - * - * - *
-     * Number of results in the search page. If <=0 then defaults to 10. Max limit
-     * for page_size is 1000. Throws an invalid argument for page_size > 1000.
-     * 
- * - * int32 page_size = 2; - * - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Number of results in the search page. If <=0 then defaults to 10. Max limit
-     * for page_size is 1000. Throws an invalid argument for page_size > 1000.
-     * 
- * - * int32 page_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearPageSize() { - bitField0_ = (bitField0_ & ~0x00000004); - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - - /** - * - * - *
-     * Optional. Pagination token returned in an earlier
-     * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1beta1.SearchCatalogResponse.next_page_token],
-     * which indicates that this is a continuation of a prior
-     * [SearchCatalogRequest][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]
-     * call, and that the system should return the next page of data. If empty,
-     * the first page is returned.
-     * 
- * - * 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. Pagination token returned in an earlier
-     * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1beta1.SearchCatalogResponse.next_page_token],
-     * which indicates that this is a continuation of a prior
-     * [SearchCatalogRequest][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]
-     * call, and that the system should return the next page of data. If empty,
-     * the first page is returned.
-     * 
- * - * 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. Pagination token returned in an earlier
-     * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1beta1.SearchCatalogResponse.next_page_token],
-     * which indicates that this is a continuation of a prior
-     * [SearchCatalogRequest][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]
-     * call, and that the system should return the next page of data. If empty,
-     * the first page is returned.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - pageToken_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Pagination token returned in an earlier
-     * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1beta1.SearchCatalogResponse.next_page_token],
-     * which indicates that this is a continuation of a prior
-     * [SearchCatalogRequest][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]
-     * call, and that the system should return the next page of data. If empty,
-     * the first page is returned.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPageToken() { - pageToken_ = getDefaultInstance().getPageToken(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Pagination token returned in an earlier
-     * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1beta1.SearchCatalogResponse.next_page_token],
-     * which indicates that this is a continuation of a prior
-     * [SearchCatalogRequest][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]
-     * call, and that the system should return the next page of data. If empty,
-     * the first page is returned.
-     * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - pageToken_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object orderBy_ = ""; - - /** - * - * - *
-     * Specifies the ordering of results, currently supported case-sensitive
-     * choices are:
-     *
-     * * `relevance`, only supports descending
-     * * `last_modified_timestamp [asc|desc]`, defaults to descending if not
-     * specified
-     * * `default` that can only be descending
-     *
-     * If not specified, defaults to `relevance` descending.
-     * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - public java.lang.String getOrderBy() { - java.lang.Object ref = orderBy_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - orderBy_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Specifies the ordering of results, currently supported case-sensitive
-     * choices are:
-     *
-     * * `relevance`, only supports descending
-     * * `last_modified_timestamp [asc|desc]`, defaults to descending if not
-     * specified
-     * * `default` that can only be descending
-     *
-     * If not specified, defaults to `relevance` descending.
-     * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - public com.google.protobuf.ByteString getOrderByBytes() { - java.lang.Object ref = orderBy_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - orderBy_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Specifies the ordering of results, currently supported case-sensitive
-     * choices are:
-     *
-     * * `relevance`, only supports descending
-     * * `last_modified_timestamp [asc|desc]`, defaults to descending if not
-     * specified
-     * * `default` that can only be descending
-     *
-     * If not specified, defaults to `relevance` descending.
-     * 
- * - * string order_by = 5; - * - * @param value The orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderBy(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - orderBy_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Specifies the ordering of results, currently supported case-sensitive
-     * choices are:
-     *
-     * * `relevance`, only supports descending
-     * * `last_modified_timestamp [asc|desc]`, defaults to descending if not
-     * specified
-     * * `default` that can only be descending
-     *
-     * If not specified, defaults to `relevance` descending.
-     * 
- * - * string order_by = 5; - * - * @return This builder for chaining. - */ - public Builder clearOrderBy() { - orderBy_ = getDefaultInstance().getOrderBy(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - /** - * - * - *
-     * Specifies the ordering of results, currently supported case-sensitive
-     * choices are:
-     *
-     * * `relevance`, only supports descending
-     * * `last_modified_timestamp [asc|desc]`, defaults to descending if not
-     * specified
-     * * `default` that can only be descending
-     *
-     * If not specified, defaults to `relevance` descending.
-     * 
- * - * string order_by = 5; - * - * @param value The bytes for orderBy to set. - * @return This builder for chaining. - */ - public Builder setOrderByBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - orderBy_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.SearchCatalogRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.SearchCatalogRequest) - private static final com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchCatalogRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java deleted file mode 100644 index e43ddf68a7af..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogRequestOrBuilder.java +++ /dev/null @@ -1,220 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface SearchCatalogRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.SearchCatalogRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The scope of this search request. A `scope` that has empty
-   * `include_org_ids`, `include_project_ids` AND false
-   * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-   * return an error in such a case.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the scope field is set. - */ - boolean hasScope(); - - /** - * - * - *
-   * Required. The scope of this search request. A `scope` that has empty
-   * `include_org_ids`, `include_project_ids` AND false
-   * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-   * return an error in such a case.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The scope. - */ - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope getScope(); - - /** - * - * - *
-   * Required. The scope of this search request. A `scope` that has empty
-   * `include_org_ids`, `include_project_ids` AND false
-   * `include_gcp_public_datasets` is considered invalid. Data Catalog will
-   * return an error in such a case.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SearchCatalogRequest.Scope scope = 6 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeOrBuilder getScopeOrBuilder(); - - /** - * - * - *
-   * Optional. The query string in search query syntax. An empty query string
-   * will result in all data assets (in the specified scope) that the user has
-   * access to. Query strings can be simple as "x" or more qualified as:
-   *
-   * * name:x
-   * * column:x
-   * * description:y
-   *
-   * Note: Query tokens need to have a minimum of 3 characters for substring
-   * matching to work correctly. See [Data Catalog Search
-   * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-   * for more information.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The query. - */ - java.lang.String getQuery(); - - /** - * - * - *
-   * Optional. The query string in search query syntax. An empty query string
-   * will result in all data assets (in the specified scope) that the user has
-   * access to. Query strings can be simple as "x" or more qualified as:
-   *
-   * * name:x
-   * * column:x
-   * * description:y
-   *
-   * Note: Query tokens need to have a minimum of 3 characters for substring
-   * matching to work correctly. See [Data Catalog Search
-   * Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
-   * for more information.
-   * 
- * - * string query = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for query. - */ - com.google.protobuf.ByteString getQueryBytes(); - - /** - * - * - *
-   * Number of results in the search page. If <=0 then defaults to 10. Max limit
-   * for page_size is 1000. Throws an invalid argument for page_size > 1000.
-   * 
- * - * int32 page_size = 2; - * - * @return The pageSize. - */ - int getPageSize(); - - /** - * - * - *
-   * Optional. Pagination token returned in an earlier
-   * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1beta1.SearchCatalogResponse.next_page_token],
-   * which indicates that this is a continuation of a prior
-   * [SearchCatalogRequest][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]
-   * call, and that the system should return the next page of data. If empty,
-   * the first page is returned.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pageToken. - */ - java.lang.String getPageToken(); - - /** - * - * - *
-   * Optional. Pagination token returned in an earlier
-   * [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1beta1.SearchCatalogResponse.next_page_token],
-   * which indicates that this is a continuation of a prior
-   * [SearchCatalogRequest][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]
-   * call, and that the system should return the next page of data. If empty,
-   * the first page is returned.
-   * 
- * - * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString getPageTokenBytes(); - - /** - * - * - *
-   * Specifies the ordering of results, currently supported case-sensitive
-   * choices are:
-   *
-   * * `relevance`, only supports descending
-   * * `last_modified_timestamp [asc|desc]`, defaults to descending if not
-   * specified
-   * * `default` that can only be descending
-   *
-   * If not specified, defaults to `relevance` descending.
-   * 
- * - * string order_by = 5; - * - * @return The orderBy. - */ - java.lang.String getOrderBy(); - - /** - * - * - *
-   * Specifies the ordering of results, currently supported case-sensitive
-   * choices are:
-   *
-   * * `relevance`, only supports descending
-   * * `last_modified_timestamp [asc|desc]`, defaults to descending if not
-   * specified
-   * * `default` that can only be descending
-   *
-   * If not specified, defaults to `relevance` descending.
-   * 
- * - * string order_by = 5; - * - * @return The bytes for orderBy. - */ - com.google.protobuf.ByteString getOrderByBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponse.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponse.java deleted file mode 100644 index 015b75c93c3f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponse.java +++ /dev/null @@ -1,1557 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Response message for
- * [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogResponse} - */ -@com.google.protobuf.Generated -public final class SearchCatalogResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogResponse) - SearchCatalogResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SearchCatalogResponse"); - } - - // Use SearchCatalogResponse.newBuilder() to construct. - private SearchCatalogResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SearchCatalogResponse() { - results_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse.class, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse.Builder.class); - } - - public static final int RESULTS_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private java.util.List results_; - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - @java.lang.Override - public java.util.List getResultsList() { - return results_; - } - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - @java.lang.Override - public java.util.List - getResultsOrBuilderList() { - return results_; - } - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - @java.lang.Override - public int getResultsCount() { - return results_.size(); - } - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResult getResults(int index) { - return results_.get(index); - } - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder getResultsOrBuilder( - int index) { - return results_.get(index); - } - - public static final int TOTAL_SIZE_FIELD_NUMBER = 2; - private int totalSize_ = 0; - - /** - * - * - *
-   * The approximate total number of entries matched by the query.
-   * 
- * - * int32 total_size = 2; - * - * @return The totalSize. - */ - @java.lang.Override - public int getTotalSize() { - return totalSize_; - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-   * The token that can be used to retrieve the next page of results.
-   * 
- * - * string next_page_token = 3; - * - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - - /** - * - * - *
-   * The token that can be used to retrieve the next page of results.
-   * 
- * - * string next_page_token = 3; - * - * @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 = 6; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList unreachable_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-   * Unreachable locations. Search result does not include data from those
-   * locations. Users can get additional information on the error by repeating
-   * the search request with a more restrictive parameter -- setting the value
-   * for `SearchDataCatalogRequest.scope.restricted_locations`.
-   * 
- * - * repeated string unreachable = 6; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - return unreachable_; - } - - /** - * - * - *
-   * Unreachable locations. Search result does not include data from those
-   * locations. Users can get additional information on the error by repeating
-   * the search request with a more restrictive parameter -- setting the value
-   * for `SearchDataCatalogRequest.scope.restricted_locations`.
-   * 
- * - * repeated string unreachable = 6; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - - /** - * - * - *
-   * Unreachable locations. Search result does not include data from those
-   * locations. Users can get additional information on the error by repeating
-   * the search request with a more restrictive parameter -- setting the value
-   * for `SearchDataCatalogRequest.scope.restricted_locations`.
-   * 
- * - * repeated string unreachable = 6; - * - * @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); - } - - /** - * - * - *
-   * Unreachable locations. Search result does not include data from those
-   * locations. Users can get additional information on the error by repeating
-   * the search request with a more restrictive parameter -- setting the value
-   * for `SearchDataCatalogRequest.scope.restricted_locations`.
-   * 
- * - * repeated string unreachable = 6; - * - * @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 < results_.size(); i++) { - output.writeMessage(1, results_.get(i)); - } - if (totalSize_ != 0) { - output.writeInt32(2, totalSize_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, nextPageToken_); - } - for (int i = 0; i < unreachable_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, 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 < results_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, results_.get(i)); - } - if (totalSize_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, totalSize_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, 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.datacatalog.v1beta1.SearchCatalogResponse)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse other = - (com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse) obj; - - if (!getResultsList().equals(other.getResultsList())) return false; - if (getTotalSize() != other.getTotalSize()) 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 (getResultsCount() > 0) { - hash = (37 * hash) + RESULTS_FIELD_NUMBER; - hash = (53 * hash) + getResultsList().hashCode(); - } - hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getTotalSize(); - 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.datacatalog.v1beta1.SearchCatalogResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.SearchCatalogResponse) - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse.class, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (resultsBuilder_ == null) { - results_ = java.util.Collections.emptyList(); - } else { - results_ = null; - resultsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - totalSize_ = 0; - nextPageToken_ = ""; - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse build() { - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse buildPartial() { - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse result = - new com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse result) { - if (resultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - results_ = java.util.Collections.unmodifiableList(results_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.results_ = results_; - } else { - result.results_ = resultsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.totalSize_ = totalSize_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.nextPageToken_ = nextPageToken_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - unreachable_.makeImmutable(); - result.unreachable_ = unreachable_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse other) { - if (other == com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse.getDefaultInstance()) - return this; - if (resultsBuilder_ == null) { - if (!other.results_.isEmpty()) { - if (results_.isEmpty()) { - results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureResultsIsMutable(); - results_.addAll(other.results_); - } - onChanged(); - } - } else { - if (!other.results_.isEmpty()) { - if (resultsBuilder_.isEmpty()) { - resultsBuilder_.dispose(); - resultsBuilder_ = null; - results_ = other.results_; - bitField0_ = (bitField0_ & ~0x00000001); - resultsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetResultsFieldBuilder() - : null; - } else { - resultsBuilder_.addAllMessages(other.results_); - } - } - } - if (other.getTotalSize() != 0) { - setTotalSize(other.getTotalSize()); - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.unreachable_.isEmpty()) { - if (unreachable_.isEmpty()) { - unreachable_ = other.unreachable_; - bitField0_ |= 0x00000008; - } 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.datacatalog.v1beta1.SearchCatalogResult m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.parser(), - extensionRegistry); - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(m); - } else { - resultsBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - totalSize_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - nextPageToken_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureUnreachableIsMutable(); - unreachable_.add(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 bitField0_; - - private java.util.List results_ = - java.util.Collections.emptyList(); - - private void ensureResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - results_ = - new java.util.ArrayList( - results_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder> - resultsBuilder_; - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public java.util.List - getResultsList() { - if (resultsBuilder_ == null) { - return java.util.Collections.unmodifiableList(results_); - } else { - return resultsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public int getResultsCount() { - if (resultsBuilder_ == null) { - return results_.size(); - } else { - return resultsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResult getResults(int index) { - if (resultsBuilder_ == null) { - return results_.get(index); - } else { - return resultsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public Builder setResults( - int index, com.google.cloud.datacatalog.v1beta1.SearchCatalogResult value) { - if (resultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultsIsMutable(); - results_.set(index, value); - onChanged(); - } else { - resultsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public Builder setResults( - int index, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder builderForValue) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.set(index, builderForValue.build()); - onChanged(); - } else { - resultsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public Builder addResults(com.google.cloud.datacatalog.v1beta1.SearchCatalogResult value) { - if (resultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultsIsMutable(); - results_.add(value); - onChanged(); - } else { - resultsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public Builder addResults( - int index, com.google.cloud.datacatalog.v1beta1.SearchCatalogResult value) { - if (resultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureResultsIsMutable(); - results_.add(index, value); - onChanged(); - } else { - resultsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public Builder addResults( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder builderForValue) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(builderForValue.build()); - onChanged(); - } else { - resultsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public Builder addResults( - int index, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder builderForValue) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.add(index, builderForValue.build()); - onChanged(); - } else { - resultsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public Builder addAllResults( - java.lang.Iterable - values) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_); - onChanged(); - } else { - resultsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public Builder clearResults() { - if (resultsBuilder_ == null) { - results_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - resultsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public Builder removeResults(int index) { - if (resultsBuilder_ == null) { - ensureResultsIsMutable(); - results_.remove(index); - onChanged(); - } else { - resultsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder getResultsBuilder( - int index) { - return internalGetResultsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder getResultsOrBuilder( - int index) { - if (resultsBuilder_ == null) { - return results_.get(index); - } else { - return resultsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public java.util.List< - ? extends com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder> - getResultsOrBuilderList() { - if (resultsBuilder_ != null) { - return resultsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(results_); - } - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder addResultsBuilder() { - return internalGetResultsFieldBuilder() - .addBuilder( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.getDefaultInstance()); - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder addResultsBuilder( - int index) { - return internalGetResultsFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.getDefaultInstance()); - } - - /** - * - * - *
-     * Search results.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - public java.util.List - getResultsBuilderList() { - return internalGetResultsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder> - internalGetResultsFieldBuilder() { - if (resultsBuilder_ == null) { - resultsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder>( - results_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - results_ = null; - } - return resultsBuilder_; - } - - private int totalSize_; - - /** - * - * - *
-     * The approximate total number of entries matched by the query.
-     * 
- * - * int32 total_size = 2; - * - * @return The totalSize. - */ - @java.lang.Override - public int getTotalSize() { - return totalSize_; - } - - /** - * - * - *
-     * The approximate total number of entries matched by the query.
-     * 
- * - * int32 total_size = 2; - * - * @param value The totalSize to set. - * @return This builder for chaining. - */ - public Builder setTotalSize(int value) { - - totalSize_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The approximate total number of entries matched by the query.
-     * 
- * - * int32 total_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearTotalSize() { - bitField0_ = (bitField0_ & ~0x00000002); - totalSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object nextPageToken_ = ""; - - /** - * - * - *
-     * The token that can be used to retrieve the next page of results.
-     * 
- * - * string next_page_token = 3; - * - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The token that can be used to retrieve the next page of results.
-     * 
- * - * string next_page_token = 3; - * - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The token that can be used to retrieve the next page of results.
-     * 
- * - * string next_page_token = 3; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The token that can be used to retrieve the next page of results.
-     * 
- * - * string next_page_token = 3; - * - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - nextPageToken_ = getDefaultInstance().getNextPageToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * The token that can be used to retrieve the next page of results.
-     * 
- * - * string next_page_token = 3; - * - * @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_ |= 0x00000004; - 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_ |= 0x00000008; - } - - /** - * - * - *
-     * Unreachable locations. Search result does not include data from those
-     * locations. Users can get additional information on the error by repeating
-     * the search request with a more restrictive parameter -- setting the value
-     * for `SearchDataCatalogRequest.scope.restricted_locations`.
-     * 
- * - * repeated string unreachable = 6; - * - * @return A list containing the unreachable. - */ - public com.google.protobuf.ProtocolStringList getUnreachableList() { - unreachable_.makeImmutable(); - return unreachable_; - } - - /** - * - * - *
-     * Unreachable locations. Search result does not include data from those
-     * locations. Users can get additional information on the error by repeating
-     * the search request with a more restrictive parameter -- setting the value
-     * for `SearchDataCatalogRequest.scope.restricted_locations`.
-     * 
- * - * repeated string unreachable = 6; - * - * @return The count of unreachable. - */ - public int getUnreachableCount() { - return unreachable_.size(); - } - - /** - * - * - *
-     * Unreachable locations. Search result does not include data from those
-     * locations. Users can get additional information on the error by repeating
-     * the search request with a more restrictive parameter -- setting the value
-     * for `SearchDataCatalogRequest.scope.restricted_locations`.
-     * 
- * - * repeated string unreachable = 6; - * - * @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); - } - - /** - * - * - *
-     * Unreachable locations. Search result does not include data from those
-     * locations. Users can get additional information on the error by repeating
-     * the search request with a more restrictive parameter -- setting the value
-     * for `SearchDataCatalogRequest.scope.restricted_locations`.
-     * 
- * - * repeated string unreachable = 6; - * - * @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); - } - - /** - * - * - *
-     * Unreachable locations. Search result does not include data from those
-     * locations. Users can get additional information on the error by repeating
-     * the search request with a more restrictive parameter -- setting the value
-     * for `SearchDataCatalogRequest.scope.restricted_locations`.
-     * 
- * - * repeated string unreachable = 6; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Unreachable locations. Search result does not include data from those
-     * locations. Users can get additional information on the error by repeating
-     * the search request with a more restrictive parameter -- setting the value
-     * for `SearchDataCatalogRequest.scope.restricted_locations`.
-     * 
- * - * repeated string unreachable = 6; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Unreachable locations. Search result does not include data from those
-     * locations. Users can get additional information on the error by repeating
-     * the search request with a more restrictive parameter -- setting the value
-     * for `SearchDataCatalogRequest.scope.restricted_locations`.
-     * 
- * - * repeated string unreachable = 6; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Unreachable locations. Search result does not include data from those
-     * locations. Users can get additional information on the error by repeating
-     * the search request with a more restrictive parameter -- setting the value
-     * for `SearchDataCatalogRequest.scope.restricted_locations`.
-     * 
- * - * repeated string unreachable = 6; - * - * @return This builder for chaining. - */ - public Builder clearUnreachable() { - unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - - /** - * - * - *
-     * Unreachable locations. Search result does not include data from those
-     * locations. Users can get additional information on the error by repeating
-     * the search request with a more restrictive parameter -- setting the value
-     * for `SearchDataCatalogRequest.scope.restricted_locations`.
-     * 
- * - * repeated string unreachable = 6; - * - * @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_ |= 0x00000008; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.SearchCatalogResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.SearchCatalogResponse) - private static final com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse(); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchCatalogResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponseOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponseOrBuilder.java deleted file mode 100644 index 9e88bef413a6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResponseOrBuilder.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface SearchCatalogResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.SearchCatalogResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - java.util.List getResultsList(); - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult getResults(int index); - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - int getResultsCount(); - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - java.util.List - getResultsOrBuilderList(); - - /** - * - * - *
-   * Search results.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SearchCatalogResult results = 1; - */ - com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder getResultsOrBuilder(int index); - - /** - * - * - *
-   * The approximate total number of entries matched by the query.
-   * 
- * - * int32 total_size = 2; - * - * @return The totalSize. - */ - int getTotalSize(); - - /** - * - * - *
-   * The token that can be used to retrieve the next page of results.
-   * 
- * - * string next_page_token = 3; - * - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - - /** - * - * - *
-   * The token that can be used to retrieve the next page of results.
-   * 
- * - * string next_page_token = 3; - * - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString getNextPageTokenBytes(); - - /** - * - * - *
-   * Unreachable locations. Search result does not include data from those
-   * locations. Users can get additional information on the error by repeating
-   * the search request with a more restrictive parameter -- setting the value
-   * for `SearchDataCatalogRequest.scope.restricted_locations`.
-   * 
- * - * repeated string unreachable = 6; - * - * @return A list containing the unreachable. - */ - java.util.List getUnreachableList(); - - /** - * - * - *
-   * Unreachable locations. Search result does not include data from those
-   * locations. Users can get additional information on the error by repeating
-   * the search request with a more restrictive parameter -- setting the value
-   * for `SearchDataCatalogRequest.scope.restricted_locations`.
-   * 
- * - * repeated string unreachable = 6; - * - * @return The count of unreachable. - */ - int getUnreachableCount(); - - /** - * - * - *
-   * Unreachable locations. Search result does not include data from those
-   * locations. Users can get additional information on the error by repeating
-   * the search request with a more restrictive parameter -- setting the value
-   * for `SearchDataCatalogRequest.scope.restricted_locations`.
-   * 
- * - * repeated string unreachable = 6; - * - * @param index The index of the element to return. - * @return The unreachable at the given index. - */ - java.lang.String getUnreachable(int index); - - /** - * - * - *
-   * Unreachable locations. Search result does not include data from those
-   * locations. Users can get additional information on the error by repeating
-   * the search request with a more restrictive parameter -- setting the value
-   * for `SearchDataCatalogRequest.scope.restricted_locations`.
-   * 
- * - * repeated string unreachable = 6; - * - * @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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResult.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResult.java deleted file mode 100644 index 7b0a01d2aa18..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResult.java +++ /dev/null @@ -1,1513 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/search.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * A result that appears in the response of a search request. Each result
- * captures details of one entry that matches the search.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogResult} - */ -@com.google.protobuf.Generated -public final class SearchCatalogResult extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SearchCatalogResult) - SearchCatalogResultOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SearchCatalogResult"); - } - - // Use SearchCatalogResult.newBuilder() to construct. - private SearchCatalogResult(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SearchCatalogResult() { - searchResultType_ = 0; - searchResultSubtype_ = ""; - relativeResourceName_ = ""; - linkedResource_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Search - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Search - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.class, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder.class); - } - - private int bitField0_; - public static final int SEARCH_RESULT_TYPE_FIELD_NUMBER = 1; - private int searchResultType_ = 0; - - /** - * - * - *
-   * Type of the search result. This field can be used to determine which Get
-   * method to call to fetch the full resource.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1; - * - * @return The enum numeric value on the wire for searchResultType. - */ - @java.lang.Override - public int getSearchResultTypeValue() { - return searchResultType_; - } - - /** - * - * - *
-   * Type of the search result. This field can be used to determine which Get
-   * method to call to fetch the full resource.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1; - * - * @return The searchResultType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchResultType getSearchResultType() { - com.google.cloud.datacatalog.v1beta1.SearchResultType result = - com.google.cloud.datacatalog.v1beta1.SearchResultType.forNumber(searchResultType_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.SearchResultType.UNRECOGNIZED - : result; - } - - public static final int SEARCH_RESULT_SUBTYPE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object searchResultSubtype_ = ""; - - /** - * - * - *
-   * Sub-type of the search result. This is a dot-delimited description of the
-   * resource's full type, and is the same as the value callers would provide in
-   * the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
-   * `tagTemplate`.
-   * 
- * - * string search_result_subtype = 2; - * - * @return The searchResultSubtype. - */ - @java.lang.Override - public java.lang.String getSearchResultSubtype() { - java.lang.Object ref = searchResultSubtype_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - searchResultSubtype_ = s; - return s; - } - } - - /** - * - * - *
-   * Sub-type of the search result. This is a dot-delimited description of the
-   * resource's full type, and is the same as the value callers would provide in
-   * the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
-   * `tagTemplate`.
-   * 
- * - * string search_result_subtype = 2; - * - * @return The bytes for searchResultSubtype. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSearchResultSubtypeBytes() { - java.lang.Object ref = searchResultSubtype_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - searchResultSubtype_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int RELATIVE_RESOURCE_NAME_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object relativeResourceName_ = ""; - - /** - * - * - *
-   * The relative resource name of the resource in URL format.
-   * Examples:
-   *
-   * * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
-   * * `projects/{project_id}/tagTemplates/{tag_template_id}`
-   * 
- * - * string relative_resource_name = 3; - * - * @return The relativeResourceName. - */ - @java.lang.Override - public java.lang.String getRelativeResourceName() { - java.lang.Object ref = relativeResourceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - relativeResourceName_ = s; - return s; - } - } - - /** - * - * - *
-   * The relative resource name of the resource in URL format.
-   * Examples:
-   *
-   * * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
-   * * `projects/{project_id}/tagTemplates/{tag_template_id}`
-   * 
- * - * string relative_resource_name = 3; - * - * @return The bytes for relativeResourceName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRelativeResourceNameBytes() { - java.lang.Object ref = relativeResourceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - relativeResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LINKED_RESOURCE_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object linkedResource_ = ""; - - /** - * - * - *
-   * The full name of the cloud resource the entry belongs to. See:
-   * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-   * Example:
-   *
-   * * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
-   * 
- * - * string linked_resource = 4; - * - * @return The linkedResource. - */ - @java.lang.Override - public java.lang.String getLinkedResource() { - java.lang.Object ref = linkedResource_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - linkedResource_ = s; - return s; - } - } - - /** - * - * - *
-   * The full name of the cloud resource the entry belongs to. See:
-   * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-   * Example:
-   *
-   * * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
-   * 
- * - * string linked_resource = 4; - * - * @return The bytes for linkedResource. - */ - @java.lang.Override - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = linkedResource_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - linkedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int MODIFY_TIME_FIELD_NUMBER = 7; - private com.google.protobuf.Timestamp modifyTime_; - - /** - * - * - *
-   * Last-modified timestamp of the entry from the managing system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return Whether the modifyTime field is set. - */ - @java.lang.Override - public boolean hasModifyTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Last-modified timestamp of the entry from the managing system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return The modifyTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getModifyTime() { - return modifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifyTime_; - } - - /** - * - * - *
-   * Last-modified timestamp of the entry from the managing system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getModifyTimeOrBuilder() { - return modifyTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : modifyTime_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (searchResultType_ - != com.google.cloud.datacatalog.v1beta1.SearchResultType.SEARCH_RESULT_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, searchResultType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchResultSubtype_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, searchResultSubtype_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(relativeResourceName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, relativeResourceName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(linkedResource_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, linkedResource_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(7, getModifyTime()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (searchResultType_ - != com.google.cloud.datacatalog.v1beta1.SearchResultType.SEARCH_RESULT_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, searchResultType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(searchResultSubtype_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, searchResultSubtype_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(relativeResourceName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, relativeResourceName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(linkedResource_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, linkedResource_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getModifyTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.SearchCatalogResult)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult other = - (com.google.cloud.datacatalog.v1beta1.SearchCatalogResult) obj; - - if (searchResultType_ != other.searchResultType_) return false; - if (!getSearchResultSubtype().equals(other.getSearchResultSubtype())) return false; - if (!getRelativeResourceName().equals(other.getRelativeResourceName())) return false; - if (!getLinkedResource().equals(other.getLinkedResource())) return false; - if (hasModifyTime() != other.hasModifyTime()) return false; - if (hasModifyTime()) { - if (!getModifyTime().equals(other.getModifyTime())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEARCH_RESULT_TYPE_FIELD_NUMBER; - hash = (53 * hash) + searchResultType_; - hash = (37 * hash) + SEARCH_RESULT_SUBTYPE_FIELD_NUMBER; - hash = (53 * hash) + getSearchResultSubtype().hashCode(); - hash = (37 * hash) + RELATIVE_RESOURCE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getRelativeResourceName().hashCode(); - hash = (37 * hash) + LINKED_RESOURCE_FIELD_NUMBER; - hash = (53 * hash) + getLinkedResource().hashCode(); - if (hasModifyTime()) { - hash = (37 * hash) + MODIFY_TIME_FIELD_NUMBER; - hash = (53 * hash) + getModifyTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 result that appears in the response of a search request. Each result
-   * captures details of one entry that matches the search.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SearchCatalogResult} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.SearchCatalogResult) - com.google.cloud.datacatalog.v1beta1.SearchCatalogResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Search - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Search - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.class, - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetModifyTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - searchResultType_ = 0; - searchResultSubtype_ = ""; - relativeResourceName_ = ""; - linkedResource_ = ""; - modifyTime_ = null; - if (modifyTimeBuilder_ != null) { - modifyTimeBuilder_.dispose(); - modifyTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Search - .internal_static_google_cloud_datacatalog_v1beta1_SearchCatalogResult_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResult getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResult build() { - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResult buildPartial() { - com.google.cloud.datacatalog.v1beta1.SearchCatalogResult result = - new com.google.cloud.datacatalog.v1beta1.SearchCatalogResult(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.SearchCatalogResult result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.searchResultType_ = searchResultType_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.searchResultSubtype_ = searchResultSubtype_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.relativeResourceName_ = relativeResourceName_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.linkedResource_ = linkedResource_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.modifyTime_ = modifyTimeBuilder_ == null ? modifyTime_ : modifyTimeBuilder_.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.datacatalog.v1beta1.SearchCatalogResult) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.SearchCatalogResult) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.SearchCatalogResult other) { - if (other == com.google.cloud.datacatalog.v1beta1.SearchCatalogResult.getDefaultInstance()) - return this; - if (other.searchResultType_ != 0) { - setSearchResultTypeValue(other.getSearchResultTypeValue()); - } - if (!other.getSearchResultSubtype().isEmpty()) { - searchResultSubtype_ = other.searchResultSubtype_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getRelativeResourceName().isEmpty()) { - relativeResourceName_ = other.relativeResourceName_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getLinkedResource().isEmpty()) { - linkedResource_ = other.linkedResource_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (other.hasModifyTime()) { - mergeModifyTime(other.getModifyTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == 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: - { - searchResultType_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - searchResultSubtype_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - relativeResourceName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - linkedResource_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 34 - case 58: - { - input.readMessage( - internalGetModifyTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - 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 searchResultType_ = 0; - - /** - * - * - *
-     * Type of the search result. This field can be used to determine which Get
-     * method to call to fetch the full resource.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1; - * - * @return The enum numeric value on the wire for searchResultType. - */ - @java.lang.Override - public int getSearchResultTypeValue() { - return searchResultType_; - } - - /** - * - * - *
-     * Type of the search result. This field can be used to determine which Get
-     * method to call to fetch the full resource.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1; - * - * @param value The enum numeric value on the wire for searchResultType to set. - * @return This builder for chaining. - */ - public Builder setSearchResultTypeValue(int value) { - searchResultType_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of the search result. This field can be used to determine which Get
-     * method to call to fetch the full resource.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1; - * - * @return The searchResultType. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchResultType getSearchResultType() { - com.google.cloud.datacatalog.v1beta1.SearchResultType result = - com.google.cloud.datacatalog.v1beta1.SearchResultType.forNumber(searchResultType_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.SearchResultType.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Type of the search result. This field can be used to determine which Get
-     * method to call to fetch the full resource.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1; - * - * @param value The searchResultType to set. - * @return This builder for chaining. - */ - public Builder setSearchResultType( - com.google.cloud.datacatalog.v1beta1.SearchResultType value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - searchResultType_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Type of the search result. This field can be used to determine which Get
-     * method to call to fetch the full resource.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1; - * - * @return This builder for chaining. - */ - public Builder clearSearchResultType() { - bitField0_ = (bitField0_ & ~0x00000001); - searchResultType_ = 0; - onChanged(); - return this; - } - - private java.lang.Object searchResultSubtype_ = ""; - - /** - * - * - *
-     * Sub-type of the search result. This is a dot-delimited description of the
-     * resource's full type, and is the same as the value callers would provide in
-     * the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
-     * `tagTemplate`.
-     * 
- * - * string search_result_subtype = 2; - * - * @return The searchResultSubtype. - */ - public java.lang.String getSearchResultSubtype() { - java.lang.Object ref = searchResultSubtype_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - searchResultSubtype_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Sub-type of the search result. This is a dot-delimited description of the
-     * resource's full type, and is the same as the value callers would provide in
-     * the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
-     * `tagTemplate`.
-     * 
- * - * string search_result_subtype = 2; - * - * @return The bytes for searchResultSubtype. - */ - public com.google.protobuf.ByteString getSearchResultSubtypeBytes() { - java.lang.Object ref = searchResultSubtype_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - searchResultSubtype_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Sub-type of the search result. This is a dot-delimited description of the
-     * resource's full type, and is the same as the value callers would provide in
-     * the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
-     * `tagTemplate`.
-     * 
- * - * string search_result_subtype = 2; - * - * @param value The searchResultSubtype to set. - * @return This builder for chaining. - */ - public Builder setSearchResultSubtype(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - searchResultSubtype_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Sub-type of the search result. This is a dot-delimited description of the
-     * resource's full type, and is the same as the value callers would provide in
-     * the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
-     * `tagTemplate`.
-     * 
- * - * string search_result_subtype = 2; - * - * @return This builder for chaining. - */ - public Builder clearSearchResultSubtype() { - searchResultSubtype_ = getDefaultInstance().getSearchResultSubtype(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Sub-type of the search result. This is a dot-delimited description of the
-     * resource's full type, and is the same as the value callers would provide in
-     * the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
-     * `tagTemplate`.
-     * 
- * - * string search_result_subtype = 2; - * - * @param value The bytes for searchResultSubtype to set. - * @return This builder for chaining. - */ - public Builder setSearchResultSubtypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - searchResultSubtype_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object relativeResourceName_ = ""; - - /** - * - * - *
-     * The relative resource name of the resource in URL format.
-     * Examples:
-     *
-     * * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
-     * * `projects/{project_id}/tagTemplates/{tag_template_id}`
-     * 
- * - * string relative_resource_name = 3; - * - * @return The relativeResourceName. - */ - public java.lang.String getRelativeResourceName() { - java.lang.Object ref = relativeResourceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - relativeResourceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The relative resource name of the resource in URL format.
-     * Examples:
-     *
-     * * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
-     * * `projects/{project_id}/tagTemplates/{tag_template_id}`
-     * 
- * - * string relative_resource_name = 3; - * - * @return The bytes for relativeResourceName. - */ - public com.google.protobuf.ByteString getRelativeResourceNameBytes() { - java.lang.Object ref = relativeResourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - relativeResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The relative resource name of the resource in URL format.
-     * Examples:
-     *
-     * * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
-     * * `projects/{project_id}/tagTemplates/{tag_template_id}`
-     * 
- * - * string relative_resource_name = 3; - * - * @param value The relativeResourceName to set. - * @return This builder for chaining. - */ - public Builder setRelativeResourceName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - relativeResourceName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The relative resource name of the resource in URL format.
-     * Examples:
-     *
-     * * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
-     * * `projects/{project_id}/tagTemplates/{tag_template_id}`
-     * 
- * - * string relative_resource_name = 3; - * - * @return This builder for chaining. - */ - public Builder clearRelativeResourceName() { - relativeResourceName_ = getDefaultInstance().getRelativeResourceName(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * The relative resource name of the resource in URL format.
-     * Examples:
-     *
-     * * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
-     * * `projects/{project_id}/tagTemplates/{tag_template_id}`
-     * 
- * - * string relative_resource_name = 3; - * - * @param value The bytes for relativeResourceName to set. - * @return This builder for chaining. - */ - public Builder setRelativeResourceNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - relativeResourceName_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object linkedResource_ = ""; - - /** - * - * - *
-     * The full name of the cloud resource the entry belongs to. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Example:
-     *
-     * * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
-     * 
- * - * string linked_resource = 4; - * - * @return The linkedResource. - */ - public java.lang.String getLinkedResource() { - java.lang.Object ref = linkedResource_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - linkedResource_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The full name of the cloud resource the entry belongs to. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Example:
-     *
-     * * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
-     * 
- * - * string linked_resource = 4; - * - * @return The bytes for linkedResource. - */ - public com.google.protobuf.ByteString getLinkedResourceBytes() { - java.lang.Object ref = linkedResource_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - linkedResource_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The full name of the cloud resource the entry belongs to. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Example:
-     *
-     * * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
-     * 
- * - * string linked_resource = 4; - * - * @param value The linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResource(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - linkedResource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * The full name of the cloud resource the entry belongs to. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Example:
-     *
-     * * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
-     * 
- * - * string linked_resource = 4; - * - * @return This builder for chaining. - */ - public Builder clearLinkedResource() { - linkedResource_ = getDefaultInstance().getLinkedResource(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * The full name of the cloud resource the entry belongs to. See:
-     * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-     * Example:
-     *
-     * * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
-     * 
- * - * string linked_resource = 4; - * - * @param value The bytes for linkedResource to set. - * @return This builder for chaining. - */ - public Builder setLinkedResourceBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - linkedResource_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp modifyTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - modifyTimeBuilder_; - - /** - * - * - *
-     * Last-modified timestamp of the entry from the managing system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return Whether the modifyTime field is set. - */ - public boolean hasModifyTime() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
-     * Last-modified timestamp of the entry from the managing system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return The modifyTime. - */ - public com.google.protobuf.Timestamp getModifyTime() { - if (modifyTimeBuilder_ == null) { - return modifyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : modifyTime_; - } else { - return modifyTimeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Last-modified timestamp of the entry from the managing system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public Builder setModifyTime(com.google.protobuf.Timestamp value) { - if (modifyTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - modifyTime_ = value; - } else { - modifyTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Last-modified timestamp of the entry from the managing system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public Builder setModifyTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (modifyTimeBuilder_ == null) { - modifyTime_ = builderForValue.build(); - } else { - modifyTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Last-modified timestamp of the entry from the managing system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public Builder mergeModifyTime(com.google.protobuf.Timestamp value) { - if (modifyTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && modifyTime_ != null - && modifyTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getModifyTimeBuilder().mergeFrom(value); - } else { - modifyTime_ = value; - } - } else { - modifyTimeBuilder_.mergeFrom(value); - } - if (modifyTime_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Last-modified timestamp of the entry from the managing system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public Builder clearModifyTime() { - bitField0_ = (bitField0_ & ~0x00000010); - modifyTime_ = null; - if (modifyTimeBuilder_ != null) { - modifyTimeBuilder_.dispose(); - modifyTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Last-modified timestamp of the entry from the managing system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public com.google.protobuf.Timestamp.Builder getModifyTimeBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetModifyTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Last-modified timestamp of the entry from the managing system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - public com.google.protobuf.TimestampOrBuilder getModifyTimeOrBuilder() { - if (modifyTimeBuilder_ != null) { - return modifyTimeBuilder_.getMessageOrBuilder(); - } else { - return modifyTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : modifyTime_; - } - } - - /** - * - * - *
-     * Last-modified timestamp of the entry from the managing system.
-     * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetModifyTimeFieldBuilder() { - if (modifyTimeBuilder_ == null) { - modifyTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getModifyTime(), getParentForChildren(), isClean()); - modifyTime_ = null; - } - return modifyTimeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.SearchCatalogResult) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.SearchCatalogResult) - private static final com.google.cloud.datacatalog.v1beta1.SearchCatalogResult DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.SearchCatalogResult(); - } - - public static com.google.cloud.datacatalog.v1beta1.SearchCatalogResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SearchCatalogResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SearchCatalogResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResultOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResultOrBuilder.java deleted file mode 100644 index ea0cd583aa94..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchCatalogResultOrBuilder.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/search.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface SearchCatalogResultOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.SearchCatalogResult) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Type of the search result. This field can be used to determine which Get
-   * method to call to fetch the full resource.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1; - * - * @return The enum numeric value on the wire for searchResultType. - */ - int getSearchResultTypeValue(); - - /** - * - * - *
-   * Type of the search result. This field can be used to determine which Get
-   * method to call to fetch the full resource.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.SearchResultType search_result_type = 1; - * - * @return The searchResultType. - */ - com.google.cloud.datacatalog.v1beta1.SearchResultType getSearchResultType(); - - /** - * - * - *
-   * Sub-type of the search result. This is a dot-delimited description of the
-   * resource's full type, and is the same as the value callers would provide in
-   * the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
-   * `tagTemplate`.
-   * 
- * - * string search_result_subtype = 2; - * - * @return The searchResultSubtype. - */ - java.lang.String getSearchResultSubtype(); - - /** - * - * - *
-   * Sub-type of the search result. This is a dot-delimited description of the
-   * resource's full type, and is the same as the value callers would provide in
-   * the "type" search facet.  Examples: `entry.table`, `entry.dataStream`,
-   * `tagTemplate`.
-   * 
- * - * string search_result_subtype = 2; - * - * @return The bytes for searchResultSubtype. - */ - com.google.protobuf.ByteString getSearchResultSubtypeBytes(); - - /** - * - * - *
-   * The relative resource name of the resource in URL format.
-   * Examples:
-   *
-   * * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
-   * * `projects/{project_id}/tagTemplates/{tag_template_id}`
-   * 
- * - * string relative_resource_name = 3; - * - * @return The relativeResourceName. - */ - java.lang.String getRelativeResourceName(); - - /** - * - * - *
-   * The relative resource name of the resource in URL format.
-   * Examples:
-   *
-   * * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}`
-   * * `projects/{project_id}/tagTemplates/{tag_template_id}`
-   * 
- * - * string relative_resource_name = 3; - * - * @return The bytes for relativeResourceName. - */ - com.google.protobuf.ByteString getRelativeResourceNameBytes(); - - /** - * - * - *
-   * The full name of the cloud resource the entry belongs to. See:
-   * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-   * Example:
-   *
-   * * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
-   * 
- * - * string linked_resource = 4; - * - * @return The linkedResource. - */ - java.lang.String getLinkedResource(); - - /** - * - * - *
-   * The full name of the cloud resource the entry belongs to. See:
-   * https://cloud.google.com/apis/design/resource_names#full_resource_name.
-   * Example:
-   *
-   * * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId`
-   * 
- * - * string linked_resource = 4; - * - * @return The bytes for linkedResource. - */ - com.google.protobuf.ByteString getLinkedResourceBytes(); - - /** - * - * - *
-   * Last-modified timestamp of the entry from the managing system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return Whether the modifyTime field is set. - */ - boolean hasModifyTime(); - - /** - * - * - *
-   * Last-modified timestamp of the entry from the managing system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - * - * @return The modifyTime. - */ - com.google.protobuf.Timestamp getModifyTime(); - - /** - * - * - *
-   * Last-modified timestamp of the entry from the managing system.
-   * 
- * - * .google.protobuf.Timestamp modify_time = 7; - */ - com.google.protobuf.TimestampOrBuilder getModifyTimeOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchResultType.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchResultType.java deleted file mode 100644 index 815d673175a6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SearchResultType.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/search.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * The different types of resources that can be returned in search.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1beta1.SearchResultType} - */ -@com.google.protobuf.Generated -public enum SearchResultType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * SEARCH_RESULT_TYPE_UNSPECIFIED = 0; - */ - SEARCH_RESULT_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * An [Entry][google.cloud.datacatalog.v1beta1.Entry].
-   * 
- * - * ENTRY = 1; - */ - ENTRY(1), - /** - * - * - *
-   * A [TagTemplate][google.cloud.datacatalog.v1beta1.TagTemplate].
-   * 
- * - * TAG_TEMPLATE = 2; - */ - TAG_TEMPLATE(2), - /** - * - * - *
-   * An [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-   * 
- * - * ENTRY_GROUP = 3; - */ - ENTRY_GROUP(3), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SearchResultType"); - } - - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * SEARCH_RESULT_TYPE_UNSPECIFIED = 0; - */ - public static final int SEARCH_RESULT_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * An [Entry][google.cloud.datacatalog.v1beta1.Entry].
-   * 
- * - * ENTRY = 1; - */ - public static final int ENTRY_VALUE = 1; - - /** - * - * - *
-   * A [TagTemplate][google.cloud.datacatalog.v1beta1.TagTemplate].
-   * 
- * - * TAG_TEMPLATE = 2; - */ - public static final int TAG_TEMPLATE_VALUE = 2; - - /** - * - * - *
-   * An [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup].
-   * 
- * - * ENTRY_GROUP = 3; - */ - public static final int ENTRY_GROUP_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 SearchResultType 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 SearchResultType forNumber(int value) { - switch (value) { - case 0: - return SEARCH_RESULT_TYPE_UNSPECIFIED; - case 1: - return ENTRY; - case 2: - return TAG_TEMPLATE; - case 3: - return ENTRY_GROUP; - 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 SearchResultType findValueByNumber(int number) { - return SearchResultType.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.datacatalog.v1beta1.Search.getDescriptor().getEnumTypes().get(0); - } - - private static final SearchResultType[] VALUES = values(); - - public static SearchResultType 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 SearchResultType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1beta1.SearchResultType) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTag.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTag.java deleted file mode 100644 index 3bda6ab5ef1a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTag.java +++ /dev/null @@ -1,1571 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Message representing one policy tag when exported as a nested proto.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SerializedPolicyTag} - */ -@com.google.protobuf.Generated -public final class SerializedPolicyTag extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SerializedPolicyTag) - SerializedPolicyTagOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SerializedPolicyTag"); - } - - // Use SerializedPolicyTag.newBuilder() to construct. - private SerializedPolicyTag(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SerializedPolicyTag() { - policyTag_ = ""; - displayName_ = ""; - description_ = ""; - childPolicyTags_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_SerializedPolicyTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_SerializedPolicyTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.class, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder.class); - } - - public static final int POLICY_TAG_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object policyTag_ = ""; - - /** - * - * - *
-   * Resource name of the policy tag.
-   *
-   * This field will be ignored when calling ImportTaxonomies.
-   * 
- * - * string policy_tag = 1; - * - * @return The policyTag. - */ - @java.lang.Override - public java.lang.String getPolicyTag() { - java.lang.Object ref = policyTag_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyTag_ = s; - return s; - } - } - - /** - * - * - *
-   * Resource name of the policy tag.
-   *
-   * This field will be ignored when calling ImportTaxonomies.
-   * 
- * - * string policy_tag = 1; - * - * @return The bytes for policyTag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPolicyTagBytes() { - java.lang.Object ref = policyTag_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyTag_ = 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_ = ""; - - /** - * - * - *
-   * Required. Display name of the policy tag. Max 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-   * Required. Display name of the policy tag. Max 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ = ""; - - /** - * - * - *
-   * Description of the serialized policy tag. The length of the
-   * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-   * defaults to an empty description.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - - /** - * - * - *
-   * Description of the serialized policy tag. The length of the
-   * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-   * defaults to an empty description.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CHILD_POLICY_TAGS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private java.util.List childPolicyTags_; - - /** - * - * - *
-   * Children of the policy tag if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - @java.lang.Override - public java.util.List - getChildPolicyTagsList() { - return childPolicyTags_; - } - - /** - * - * - *
-   * Children of the policy tag if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - @java.lang.Override - public java.util.List - getChildPolicyTagsOrBuilderList() { - return childPolicyTags_; - } - - /** - * - * - *
-   * Children of the policy tag if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - @java.lang.Override - public int getChildPolicyTagsCount() { - return childPolicyTags_.size(); - } - - /** - * - * - *
-   * Children of the policy tag if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag getChildPolicyTags(int index) { - return childPolicyTags_.get(index); - } - - /** - * - * - *
-   * Children of the policy tag if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder - getChildPolicyTagsOrBuilder(int index) { - return childPolicyTags_.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(policyTag_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, policyTag_); - } - 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 < childPolicyTags_.size(); i++) { - output.writeMessage(4, childPolicyTags_.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(policyTag_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, policyTag_); - } - 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 < childPolicyTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, childPolicyTags_.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.datacatalog.v1beta1.SerializedPolicyTag)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag other = - (com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag) obj; - - if (!getPolicyTag().equals(other.getPolicyTag())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getChildPolicyTagsList().equals(other.getChildPolicyTagsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + POLICY_TAG_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTag().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 (getChildPolicyTagsCount() > 0) { - hash = (37 * hash) + CHILD_POLICY_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getChildPolicyTagsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 one policy tag when exported as a nested proto.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SerializedPolicyTag} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.SerializedPolicyTag) - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_SerializedPolicyTag_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_SerializedPolicyTag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.class, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - policyTag_ = ""; - displayName_ = ""; - description_ = ""; - if (childPolicyTagsBuilder_ == null) { - childPolicyTags_ = java.util.Collections.emptyList(); - } else { - childPolicyTags_ = null; - childPolicyTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_SerializedPolicyTag_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag build() { - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag buildPartial() { - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag result = - new com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag result) { - if (childPolicyTagsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - childPolicyTags_ = java.util.Collections.unmodifiableList(childPolicyTags_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.childPolicyTags_ = childPolicyTags_; - } else { - result.childPolicyTags_ = childPolicyTagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.policyTag_ = policyTag_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag other) { - if (other == com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.getDefaultInstance()) - return this; - if (!other.getPolicyTag().isEmpty()) { - policyTag_ = other.policyTag_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (childPolicyTagsBuilder_ == null) { - if (!other.childPolicyTags_.isEmpty()) { - if (childPolicyTags_.isEmpty()) { - childPolicyTags_ = other.childPolicyTags_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.addAll(other.childPolicyTags_); - } - onChanged(); - } - } else { - if (!other.childPolicyTags_.isEmpty()) { - if (childPolicyTagsBuilder_.isEmpty()) { - childPolicyTagsBuilder_.dispose(); - childPolicyTagsBuilder_ = null; - childPolicyTags_ = other.childPolicyTags_; - bitField0_ = (bitField0_ & ~0x00000008); - childPolicyTagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetChildPolicyTagsFieldBuilder() - : null; - } else { - childPolicyTagsBuilder_.addAllMessages(other.childPolicyTags_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - policyTag_ = 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.datacatalog.v1beta1.SerializedPolicyTag m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.parser(), - extensionRegistry); - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(m); - } else { - childPolicyTagsBuilder_.addMessage(m); - } - 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 policyTag_ = ""; - - /** - * - * - *
-     * Resource name of the policy tag.
-     *
-     * This field will be ignored when calling ImportTaxonomies.
-     * 
- * - * string policy_tag = 1; - * - * @return The policyTag. - */ - public java.lang.String getPolicyTag() { - java.lang.Object ref = policyTag_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - policyTag_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Resource name of the policy tag.
-     *
-     * This field will be ignored when calling ImportTaxonomies.
-     * 
- * - * string policy_tag = 1; - * - * @return The bytes for policyTag. - */ - public com.google.protobuf.ByteString getPolicyTagBytes() { - java.lang.Object ref = policyTag_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - policyTag_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Resource name of the policy tag.
-     *
-     * This field will be ignored when calling ImportTaxonomies.
-     * 
- * - * string policy_tag = 1; - * - * @param value The policyTag to set. - * @return This builder for chaining. - */ - public Builder setPolicyTag(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - policyTag_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource name of the policy tag.
-     *
-     * This field will be ignored when calling ImportTaxonomies.
-     * 
- * - * string policy_tag = 1; - * - * @return This builder for chaining. - */ - public Builder clearPolicyTag() { - policyTag_ = getDefaultInstance().getPolicyTag(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Resource name of the policy tag.
-     *
-     * This field will be ignored when calling ImportTaxonomies.
-     * 
- * - * string policy_tag = 1; - * - * @param value The bytes for policyTag to set. - * @return This builder for chaining. - */ - public Builder setPolicyTagBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - policyTag_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - - /** - * - * - *
-     * Required. Display name of the policy tag. Max 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Display name of the policy tag. Max 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Display name of the policy tag. Max 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-     * Required. Display name of the policy tag. Max 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Display name of the policy tag. Max 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ = ""; - - /** - * - * - *
-     * Description of the serialized policy tag. The length of the
-     * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-     * defaults to an empty description.
-     * 
- * - * string description = 3; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Description of the serialized policy tag. The length of the
-     * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-     * defaults to an empty description.
-     * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Description of the serialized policy tag. The length of the
-     * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-     * defaults to an empty description.
-     * 
- * - * string description = 3; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of the serialized policy tag. The length of the
-     * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-     * defaults to an empty description.
-     * 
- * - * string description = 3; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of the serialized policy tag. The length of the
-     * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-     * defaults to an empty description.
-     * 
- * - * string description = 3; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List - childPolicyTags_ = java.util.Collections.emptyList(); - - private void ensureChildPolicyTagsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - childPolicyTags_ = - new java.util.ArrayList( - childPolicyTags_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder> - childPolicyTagsBuilder_; - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public java.util.List - getChildPolicyTagsList() { - if (childPolicyTagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(childPolicyTags_); - } else { - return childPolicyTagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public int getChildPolicyTagsCount() { - if (childPolicyTagsBuilder_ == null) { - return childPolicyTags_.size(); - } else { - return childPolicyTagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag getChildPolicyTags(int index) { - if (childPolicyTagsBuilder_ == null) { - return childPolicyTags_.get(index); - } else { - return childPolicyTagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public Builder setChildPolicyTags( - int index, com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag value) { - if (childPolicyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.set(index, value); - onChanged(); - } else { - childPolicyTagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public Builder setChildPolicyTags( - int index, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder builderForValue) { - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.set(index, builderForValue.build()); - onChanged(); - } else { - childPolicyTagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public Builder addChildPolicyTags( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag value) { - if (childPolicyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(value); - onChanged(); - } else { - childPolicyTagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public Builder addChildPolicyTags( - int index, com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag value) { - if (childPolicyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(index, value); - onChanged(); - } else { - childPolicyTagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public Builder addChildPolicyTags( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder builderForValue) { - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(builderForValue.build()); - onChanged(); - } else { - childPolicyTagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public Builder addChildPolicyTags( - int index, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder builderForValue) { - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.add(index, builderForValue.build()); - onChanged(); - } else { - childPolicyTagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public Builder addAllChildPolicyTags( - java.lang.Iterable - values) { - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childPolicyTags_); - onChanged(); - } else { - childPolicyTagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public Builder clearChildPolicyTags() { - if (childPolicyTagsBuilder_ == null) { - childPolicyTags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - childPolicyTagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public Builder removeChildPolicyTags(int index) { - if (childPolicyTagsBuilder_ == null) { - ensureChildPolicyTagsIsMutable(); - childPolicyTags_.remove(index); - onChanged(); - } else { - childPolicyTagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder - getChildPolicyTagsBuilder(int index) { - return internalGetChildPolicyTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder - getChildPolicyTagsOrBuilder(int index) { - if (childPolicyTagsBuilder_ == null) { - return childPolicyTags_.get(index); - } else { - return childPolicyTagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public java.util.List< - ? extends com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder> - getChildPolicyTagsOrBuilderList() { - if (childPolicyTagsBuilder_ != null) { - return childPolicyTagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(childPolicyTags_); - } - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder - addChildPolicyTagsBuilder() { - return internalGetChildPolicyTagsFieldBuilder() - .addBuilder( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder - addChildPolicyTagsBuilder(int index) { - return internalGetChildPolicyTagsFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * Children of the policy tag if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - public java.util.List - getChildPolicyTagsBuilderList() { - return internalGetChildPolicyTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder> - internalGetChildPolicyTagsFieldBuilder() { - if (childPolicyTagsBuilder_ == null) { - childPolicyTagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder>( - childPolicyTags_, - ((bitField0_ & 0x00000008) != 0), - getParentForChildren(), - isClean()); - childPolicyTags_ = null; - } - return childPolicyTagsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.SerializedPolicyTag) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.SerializedPolicyTag) - private static final com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag(); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SerializedPolicyTag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTagOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTagOrBuilder.java deleted file mode 100644 index 0b807a937e55..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedPolicyTagOrBuilder.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface SerializedPolicyTagOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.SerializedPolicyTag) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Resource name of the policy tag.
-   *
-   * This field will be ignored when calling ImportTaxonomies.
-   * 
- * - * string policy_tag = 1; - * - * @return The policyTag. - */ - java.lang.String getPolicyTag(); - - /** - * - * - *
-   * Resource name of the policy tag.
-   *
-   * This field will be ignored when calling ImportTaxonomies.
-   * 
- * - * string policy_tag = 1; - * - * @return The bytes for policyTag. - */ - com.google.protobuf.ByteString getPolicyTagBytes(); - - /** - * - * - *
-   * Required. Display name of the policy tag. Max 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Required. Display name of the policy tag. Max 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Description of the serialized policy tag. The length of the
-   * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-   * defaults to an empty description.
-   * 
- * - * string description = 3; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Description of the serialized policy tag. The length of the
-   * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-   * defaults to an empty description.
-   * 
- * - * string description = 3; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Children of the policy tag if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - java.util.List getChildPolicyTagsList(); - - /** - * - * - *
-   * Children of the policy tag if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag getChildPolicyTags(int index); - - /** - * - * - *
-   * Children of the policy tag if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - int getChildPolicyTagsCount(); - - /** - * - * - *
-   * Children of the policy tag if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - java.util.List - getChildPolicyTagsOrBuilderList(); - - /** - * - * - *
-   * Children of the policy tag if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag child_policy_tags = 4; - * - */ - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder getChildPolicyTagsOrBuilder( - int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomy.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomy.java deleted file mode 100644 index 5b9025afce32..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomy.java +++ /dev/null @@ -1,1784 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Message capturing a taxonomy and its policy tag hierarchy as a nested proto.
- * Used for taxonomy import/export and mutation.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SerializedTaxonomy} - */ -@com.google.protobuf.Generated -public final class SerializedTaxonomy extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SerializedTaxonomy) - SerializedTaxonomyOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SerializedTaxonomy"); - } - - // Use SerializedTaxonomy.newBuilder() to construct. - private SerializedTaxonomy(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SerializedTaxonomy() { - displayName_ = ""; - description_ = ""; - policyTags_ = java.util.Collections.emptyList(); - activatedPolicyTypes_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_SerializedTaxonomy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_SerializedTaxonomy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.class, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-   * Required. Display name of the taxonomy. Max 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-   * Required. Display name of the taxonomy. Max 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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_ = ""; - - /** - * - * - *
-   * Description of the serialized taxonomy. The length of the
-   * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-   * defaults to an empty description.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - - /** - * - * - *
-   * Description of the serialized taxonomy. The length of the
-   * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-   * defaults to an empty description.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int POLICY_TAGS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List policyTags_; - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - @java.lang.Override - public java.util.List - getPolicyTagsList() { - return policyTags_; - } - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - @java.lang.Override - public java.util.List - getPolicyTagsOrBuilderList() { - return policyTags_; - } - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - @java.lang.Override - public int getPolicyTagsCount() { - return policyTags_.size(); - } - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag getPolicyTags(int index) { - return policyTags_.get(index); - } - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder getPolicyTagsOrBuilder( - int index) { - return policyTags_.get(index); - } - - public static final int ACTIVATED_POLICY_TYPES_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList activatedPolicyTypes_ = emptyIntList(); - - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType> - activatedPolicyTypes_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType>() { - public com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType convert(int from) { - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType result = - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType.forNumber(from); - return result == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType.UNRECOGNIZED - : result; - } - }; - - /** - * - * - *
-   * A list of policy types that are activated for a taxonomy.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the activatedPolicyTypes. - */ - @java.lang.Override - public java.util.List - getActivatedPolicyTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType>( - activatedPolicyTypes_, activatedPolicyTypes_converter_); - } - - /** - * - * - *
-   * A list of policy types that are activated for a taxonomy.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return The count of activatedPolicyTypes. - */ - @java.lang.Override - public int getActivatedPolicyTypesCount() { - return activatedPolicyTypes_.size(); - } - - /** - * - * - *
-   * A list of policy types that are activated for a taxonomy.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType getActivatedPolicyTypes( - int index) { - return activatedPolicyTypes_converter_.convert(activatedPolicyTypes_.getInt(index)); - } - - /** - * - * - *
-   * A list of policy types that are activated for a taxonomy.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - @java.lang.Override - public java.util.List getActivatedPolicyTypesValueList() { - return activatedPolicyTypes_; - } - - /** - * - * - *
-   * A list of policy types that are activated for a taxonomy.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - @java.lang.Override - public int getActivatedPolicyTypesValue(int index) { - return activatedPolicyTypes_.getInt(index); - } - - private int activatedPolicyTypesMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, displayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); - } - for (int i = 0; i < policyTags_.size(); i++) { - output.writeMessage(3, policyTags_.get(i)); - } - if (getActivatedPolicyTypesList().size() > 0) { - output.writeUInt32NoTag(34); - output.writeUInt32NoTag(activatedPolicyTypesMemoizedSerializedSize); - } - for (int i = 0; i < activatedPolicyTypes_.size(); i++) { - output.writeEnumNoTag(activatedPolicyTypes_.getInt(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(displayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, displayName_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); - } - for (int i = 0; i < policyTags_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, policyTags_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < activatedPolicyTypes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - activatedPolicyTypes_.getInt(i)); - } - size += dataSize; - if (!getActivatedPolicyTypesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - activatedPolicyTypesMemoizedSerializedSize = dataSize; - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy other = - (com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getPolicyTagsList().equals(other.getPolicyTagsList())) return false; - if (!activatedPolicyTypes_.equals(other.activatedPolicyTypes_)) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getPolicyTagsCount() > 0) { - hash = (37 * hash) + POLICY_TAGS_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTagsList().hashCode(); - } - if (getActivatedPolicyTypesCount() > 0) { - hash = (37 * hash) + ACTIVATED_POLICY_TYPES_FIELD_NUMBER; - hash = (53 * hash) + activatedPolicyTypes_.hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 capturing a taxonomy and its policy tag hierarchy as a nested proto.
-   * Used for taxonomy import/export and mutation.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SerializedTaxonomy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.SerializedTaxonomy) - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_SerializedTaxonomy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_SerializedTaxonomy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.class, - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - description_ = ""; - if (policyTagsBuilder_ == null) { - policyTags_ = java.util.Collections.emptyList(); - } else { - policyTags_ = null; - policyTagsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - activatedPolicyTypes_ = emptyIntList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationProto - .internal_static_google_cloud_datacatalog_v1beta1_SerializedTaxonomy_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy build() { - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy buildPartial() { - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy result = - new com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy result) { - if (policyTagsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - policyTags_ = java.util.Collections.unmodifiableList(policyTags_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.policyTags_ = policyTags_; - } else { - result.policyTags_ = policyTagsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - activatedPolicyTypes_.makeImmutable(); - result.activatedPolicyTypes_ = activatedPolicyTypes_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy other) { - if (other == com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy.getDefaultInstance()) - return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (policyTagsBuilder_ == null) { - if (!other.policyTags_.isEmpty()) { - if (policyTags_.isEmpty()) { - policyTags_ = other.policyTags_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePolicyTagsIsMutable(); - policyTags_.addAll(other.policyTags_); - } - onChanged(); - } - } else { - if (!other.policyTags_.isEmpty()) { - if (policyTagsBuilder_.isEmpty()) { - policyTagsBuilder_.dispose(); - policyTagsBuilder_ = null; - policyTags_ = other.policyTags_; - bitField0_ = (bitField0_ & ~0x00000004); - policyTagsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetPolicyTagsFieldBuilder() - : null; - } else { - policyTagsBuilder_.addAllMessages(other.policyTags_); - } - } - } - if (!other.activatedPolicyTypes_.isEmpty()) { - if (activatedPolicyTypes_.isEmpty()) { - activatedPolicyTypes_ = other.activatedPolicyTypes_; - activatedPolicyTypes_.makeImmutable(); - bitField0_ |= 0x00000008; - } else { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addAll(other.activatedPolicyTypes_); - } - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag m = - input.readMessage( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.parser(), - extensionRegistry); - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(m); - } else { - policyTagsBuilder_.addMessage(m); - } - break; - } // case 26 - case 32: - { - int tmpRaw = input.readEnum(); - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(tmpRaw); - break; - } // case 32 - case 34: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureActivatedPolicyTypesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - activatedPolicyTypes_.addInt(input.readEnum()); - } - input.popLimit(limit); - 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 displayName_ = ""; - - /** - * - * - *
-     * Required. Display name of the taxonomy. Max 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Display name of the taxonomy. Max 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. Display name of the taxonomy. Max 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-     * Required. Display name of the taxonomy. Max 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. Display name of the taxonomy. Max 200 bytes when encoded in
-     * UTF-8.
-     * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 description_ = ""; - - /** - * - * - *
-     * Description of the serialized taxonomy. The length of the
-     * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-     * defaults to an empty description.
-     * 
- * - * string description = 2; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Description of the serialized taxonomy. The length of the
-     * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-     * defaults to an empty description.
-     * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Description of the serialized taxonomy. The length of the
-     * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-     * defaults to an empty description.
-     * 
- * - * string description = 2; - * - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of the serialized taxonomy. The length of the
-     * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-     * defaults to an empty description.
-     * 
- * - * string description = 2; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Description of the serialized taxonomy. The length of the
-     * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-     * defaults to an empty description.
-     * 
- * - * string description = 2; - * - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - description_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.util.List policyTags_ = - java.util.Collections.emptyList(); - - private void ensurePolicyTagsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - policyTags_ = - new java.util.ArrayList( - policyTags_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder> - policyTagsBuilder_; - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public java.util.List - getPolicyTagsList() { - if (policyTagsBuilder_ == null) { - return java.util.Collections.unmodifiableList(policyTags_); - } else { - return policyTagsBuilder_.getMessageList(); - } - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public int getPolicyTagsCount() { - if (policyTagsBuilder_ == null) { - return policyTags_.size(); - } else { - return policyTagsBuilder_.getCount(); - } - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag getPolicyTags(int index) { - if (policyTagsBuilder_ == null) { - return policyTags_.get(index); - } else { - return policyTagsBuilder_.getMessage(index); - } - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public Builder setPolicyTags( - int index, com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.set(index, value); - onChanged(); - } else { - policyTagsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public Builder setPolicyTags( - int index, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.set(index, builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public Builder addPolicyTags(com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.add(value); - onChanged(); - } else { - policyTagsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public Builder addPolicyTags( - int index, com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag value) { - if (policyTagsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePolicyTagsIsMutable(); - policyTags_.add(index, value); - onChanged(); - } else { - policyTagsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public Builder addPolicyTags( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public Builder addPolicyTags( - int index, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder builderForValue) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.add(index, builderForValue.build()); - onChanged(); - } else { - policyTagsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public Builder addAllPolicyTags( - java.lang.Iterable - values) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyTags_); - onChanged(); - } else { - policyTagsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public Builder clearPolicyTags() { - if (policyTagsBuilder_ == null) { - policyTags_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - policyTagsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public Builder removePolicyTags(int index) { - if (policyTagsBuilder_ == null) { - ensurePolicyTagsIsMutable(); - policyTags_.remove(index); - onChanged(); - } else { - policyTagsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder getPolicyTagsBuilder( - int index) { - return internalGetPolicyTagsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder getPolicyTagsOrBuilder( - int index) { - if (policyTagsBuilder_ == null) { - return policyTags_.get(index); - } else { - return policyTagsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public java.util.List< - ? extends com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder> - getPolicyTagsOrBuilderList() { - if (policyTagsBuilder_ != null) { - return policyTagsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(policyTags_); - } - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder addPolicyTagsBuilder() { - return internalGetPolicyTagsFieldBuilder() - .addBuilder( - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder addPolicyTagsBuilder( - int index) { - return internalGetPolicyTagsFieldBuilder() - .addBuilder( - index, com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.getDefaultInstance()); - } - - /** - * - * - *
-     * Top level policy tags associated with the taxonomy if any.
-     * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - public java.util.List - getPolicyTagsBuilderList() { - return internalGetPolicyTagsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder> - internalGetPolicyTagsFieldBuilder() { - if (policyTagsBuilder_ == null) { - policyTagsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder>( - policyTags_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - policyTags_ = null; - } - return policyTagsBuilder_; - } - - private com.google.protobuf.Internal.IntList activatedPolicyTypes_ = emptyIntList(); - - private void ensureActivatedPolicyTypesIsMutable() { - if (!activatedPolicyTypes_.isModifiable()) { - activatedPolicyTypes_ = makeMutableCopy(activatedPolicyTypes_); - } - bitField0_ |= 0x00000008; - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the activatedPolicyTypes. - */ - public java.util.List - getActivatedPolicyTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType>( - activatedPolicyTypes_, activatedPolicyTypes_converter_); - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return The count of activatedPolicyTypes. - */ - public int getActivatedPolicyTypesCount() { - return activatedPolicyTypes_.size(); - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType getActivatedPolicyTypes( - int index) { - return activatedPolicyTypes_converter_.convert(activatedPolicyTypes_.getInt(index)); - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index to set the value at. - * @param value The activatedPolicyTypes to set. - * @return This builder for chaining. - */ - public Builder setActivatedPolicyTypes( - int index, com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param value The activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addActivatedPolicyTypes( - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param values The activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addAllActivatedPolicyTypes( - java.lang.Iterable - values) { - ensureActivatedPolicyTypesIsMutable(); - for (com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType value : values) { - activatedPolicyTypes_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return This builder for chaining. - */ - public Builder clearActivatedPolicyTypes() { - activatedPolicyTypes_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - public java.util.List getActivatedPolicyTypesValueList() { - activatedPolicyTypes_.makeImmutable(); - return activatedPolicyTypes_; - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - public int getActivatedPolicyTypesValue(int index) { - return activatedPolicyTypes_.getInt(index); - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for activatedPolicyTypes to set. - * @return This builder for chaining. - */ - public Builder setActivatedPolicyTypesValue(int index, int value) { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.setInt(index, value); - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param value The enum numeric value on the wire for activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addActivatedPolicyTypesValue(int value) { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(value); - onChanged(); - return this; - } - - /** - * - * - *
-     * A list of policy types that are activated for a taxonomy.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param values The enum numeric values on the wire for activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addAllActivatedPolicyTypesValue(java.lang.Iterable values) { - ensureActivatedPolicyTypesIsMutable(); - for (int value : values) { - activatedPolicyTypes_.addInt(value); - } - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.SerializedTaxonomy) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.SerializedTaxonomy) - private static final com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy(); - } - - public static com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SerializedTaxonomy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SerializedTaxonomy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomyOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomyOrBuilder.java deleted file mode 100644 index 9ee3b26b6676..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SerializedTaxonomyOrBuilder.java +++ /dev/null @@ -1,221 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface SerializedTaxonomyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.SerializedTaxonomy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. Display name of the taxonomy. Max 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Required. Display name of the taxonomy. Max 200 bytes when encoded in
-   * UTF-8.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Description of the serialized taxonomy. The length of the
-   * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-   * defaults to an empty description.
-   * 
- * - * string description = 2; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Description of the serialized taxonomy. The length of the
-   * description is limited to 2000 bytes when encoded in UTF-8. If not set,
-   * defaults to an empty description.
-   * 
- * - * string description = 2; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - java.util.List getPolicyTagsList(); - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTag getPolicyTags(int index); - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - int getPolicyTagsCount(); - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - java.util.List - getPolicyTagsOrBuilderList(); - - /** - * - * - *
-   * Top level policy tags associated with the taxonomy if any.
-   * 
- * - * repeated .google.cloud.datacatalog.v1beta1.SerializedPolicyTag policy_tags = 3; - */ - com.google.cloud.datacatalog.v1beta1.SerializedPolicyTagOrBuilder getPolicyTagsOrBuilder( - int index); - - /** - * - * - *
-   * A list of policy types that are activated for a taxonomy.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the activatedPolicyTypes. - */ - java.util.List - getActivatedPolicyTypesList(); - - /** - * - * - *
-   * A list of policy types that are activated for a taxonomy.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return The count of activatedPolicyTypes. - */ - int getActivatedPolicyTypesCount(); - - /** - * - * - *
-   * A list of policy types that are activated for a taxonomy.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType getActivatedPolicyTypes(int index); - - /** - * - * - *
-   * A list of policy types that are activated for a taxonomy.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - java.util.List getActivatedPolicyTypesValueList(); - - /** - * - * - *
-   * A list of policy types that are activated for a taxonomy.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 4; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - int getActivatedPolicyTypesValue(int index); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestamps.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestamps.java deleted file mode 100644 index f6c9ca55de06..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestamps.java +++ /dev/null @@ -1,1282 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/timestamps.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Timestamps about this resource according to a particular system.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SystemTimestamps} - */ -@com.google.protobuf.Generated -public final class SystemTimestamps extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.SystemTimestamps) - SystemTimestampsOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SystemTimestamps"); - } - - // Use SystemTimestamps.newBuilder() to construct. - private SystemTimestamps(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SystemTimestamps() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Timestamps - .internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Timestamps - .internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.class, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder.class); - } - - private int bitField0_; - public static final int CREATE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp createTime_; - - /** - * - * - *
-   * The creation time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - @java.lang.Override - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The creation time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getCreateTime() { - return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; - } - - /** - * - * - *
-   * The creation time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - @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 = 2; - private com.google.protobuf.Timestamp updateTime_; - - /** - * - * - *
-   * The last-modified time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * The last-modified time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - /** - * - * - *
-   * The last-modified time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int EXPIRE_TIME_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp expireTime_; - - /** - * - * - *
-   * Output only. The expiration time of the resource within the given system.
-   * Currently only apllicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - @java.lang.Override - public boolean hasExpireTime() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-   * Output only. The expiration time of the resource within the given system.
-   * Currently only apllicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getExpireTime() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - - /** - * - * - *
-   * Output only. The expiration time of the resource within the given system.
-   * Currently only apllicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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, getUpdateTime()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getExpireTime()); - } - 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, getUpdateTime()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExpireTime()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.SystemTimestamps)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.SystemTimestamps other = - (com.google.cloud.datacatalog.v1beta1.SystemTimestamps) obj; - - 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 (hasExpireTime() != other.hasExpireTime()) return false; - if (hasExpireTime()) { - if (!getExpireTime().equals(other.getExpireTime())) return false; - } - if (!getUnknownFields().equals(other.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 (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (hasExpireTime()) { - hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getExpireTime().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Timestamps about this resource according to a particular system.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.SystemTimestamps} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.SystemTimestamps) - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Timestamps - .internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Timestamps - .internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.class, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.SystemTimestamps.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(); - internalGetExpireTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - expireTime_ = null; - if (expireTimeBuilder_ != null) { - expireTimeBuilder_.dispose(); - expireTimeBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Timestamps - .internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps build() { - com.google.cloud.datacatalog.v1beta1.SystemTimestamps result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps buildPartial() { - com.google.cloud.datacatalog.v1beta1.SystemTimestamps result = - new com.google.cloud.datacatalog.v1beta1.SystemTimestamps(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.SystemTimestamps result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.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.datacatalog.v1beta1.SystemTimestamps) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.SystemTimestamps) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.SystemTimestamps other) { - if (other == com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()) - return this; - if (other.hasCreateTime()) { - mergeCreateTime(other.getCreateTime()); - } - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - if (other.hasExpireTime()) { - mergeExpireTime(other.getExpireTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetExpireTimeFieldBuilder().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.protobuf.Timestamp createTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - createTimeBuilder_; - - /** - * - * - *
-     * The creation time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - public boolean hasCreateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * The creation time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @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(); - } - } - - /** - * - * - *
-     * The creation time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - createTime_ = value; - } else { - createTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The creation time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (createTimeBuilder_ == null) { - createTime_ = builderForValue.build(); - } else { - createTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The creation time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { - if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && createTime_ != null - && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getCreateTimeBuilder().mergeFrom(value); - } else { - createTime_ = value; - } - } else { - createTimeBuilder_.mergeFrom(value); - } - if (createTime_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The creation time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000001); - createTime_ = null; - if (createTimeBuilder_ != null) { - createTimeBuilder_.dispose(); - createTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The creation time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetCreateTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The creation time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { - if (createTimeBuilder_ != null) { - return createTimeBuilder_.getMessageOrBuilder(); - } else { - return createTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : createTime_; - } - } - - /** - * - * - *
-     * The creation time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - 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_; - - /** - * - * - *
-     * The last-modified time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * The last-modified time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @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(); - } - } - - /** - * - * - *
-     * The last-modified time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The last-modified time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The last-modified time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - if (updateTime_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The last-modified time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000002); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The last-modified time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The last-modified time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - - /** - * - * - *
-     * The last-modified time of the resource within the given system.
-     * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - 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.Timestamp expireTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - expireTimeBuilder_; - - /** - * - * - *
-     * Output only. The expiration time of the resource within the given system.
-     * Currently only apllicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - public boolean hasExpireTime() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Output only. The expiration time of the resource within the given system.
-     * Currently only apllicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - public com.google.protobuf.Timestamp getExpireTime() { - if (expireTimeBuilder_ == null) { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; - } else { - return expireTimeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. The expiration time of the resource within the given system.
-     * Currently only apllicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expireTime_ = value; - } else { - expireTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The expiration time of the resource within the given system.
-     * Currently only apllicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (expireTimeBuilder_ == null) { - expireTime_ = builderForValue.build(); - } else { - expireTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The expiration time of the resource within the given system.
-     * Currently only apllicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { - if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && expireTime_ != null - && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getExpireTimeBuilder().mergeFrom(value); - } else { - expireTime_ = value; - } - } else { - expireTimeBuilder_.mergeFrom(value); - } - if (expireTime_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. The expiration time of the resource within the given system.
-     * Currently only apllicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearExpireTime() { - bitField0_ = (bitField0_ & ~0x00000004); - expireTime_ = null; - if (expireTimeBuilder_ != null) { - expireTimeBuilder_.dispose(); - expireTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The expiration time of the resource within the given system.
-     * Currently only apllicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetExpireTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. The expiration time of the resource within the given system.
-     * Currently only apllicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { - if (expireTimeBuilder_ != null) { - return expireTimeBuilder_.getMessageOrBuilder(); - } else { - return expireTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : expireTime_; - } - } - - /** - * - * - *
-     * Output only. The expiration time of the resource within the given system.
-     * Currently only apllicable to BigQuery resources.
-     * 
- * - * - * .google.protobuf.Timestamp expire_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> - internalGetExpireTimeFieldBuilder() { - if (expireTimeBuilder_ == null) { - expireTimeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getExpireTime(), getParentForChildren(), isClean()); - expireTime_ = null; - } - return expireTimeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.SystemTimestamps) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.SystemTimestamps) - private static final com.google.cloud.datacatalog.v1beta1.SystemTimestamps DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.SystemTimestamps(); - } - - public static com.google.cloud.datacatalog.v1beta1.SystemTimestamps getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SystemTimestamps parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestampsOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestampsOrBuilder.java deleted file mode 100644 index 02e9dd91bc40..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/SystemTimestampsOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/timestamps.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface SystemTimestampsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.SystemTimestamps) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The creation time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return Whether the createTime field is set. - */ - boolean hasCreateTime(); - - /** - * - * - *
-   * The creation time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - * - * @return The createTime. - */ - com.google.protobuf.Timestamp getCreateTime(); - - /** - * - * - *
-   * The creation time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp create_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * The last-modified time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - - /** - * - * - *
-   * The last-modified time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - - /** - * - * - *
-   * The last-modified time of the resource within the given system.
-   * 
- * - * .google.protobuf.Timestamp update_time = 2; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * Output only. The expiration time of the resource within the given system.
-   * Currently only apllicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the expireTime field is set. - */ - boolean hasExpireTime(); - - /** - * - * - *
-   * Output only. The expiration time of the resource within the given system.
-   * Currently only apllicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The expireTime. - */ - com.google.protobuf.Timestamp getExpireTime(); - - /** - * - * - *
-   * Output only. The expiration time of the resource within the given system.
-   * Currently only apllicable to BigQuery resources.
-   * 
- * - * .google.protobuf.Timestamp expire_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSourceType.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSourceType.java deleted file mode 100644 index 65da59eb9349..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSourceType.java +++ /dev/null @@ -1,216 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Table source type.
- * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1beta1.TableSourceType} - */ -@com.google.protobuf.Generated -public enum TableSourceType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * TABLE_SOURCE_TYPE_UNSPECIFIED = 0; - */ - TABLE_SOURCE_TYPE_UNSPECIFIED(0), - /** - * - * - *
-   * Table view.
-   * 
- * - * BIGQUERY_VIEW = 2; - */ - BIGQUERY_VIEW(2), - /** - * - * - *
-   * BigQuery native table.
-   * 
- * - * BIGQUERY_TABLE = 5; - */ - BIGQUERY_TABLE(5), - /** - * - * - *
-   * BigQuery materialized view.
-   * 
- * - * BIGQUERY_MATERIALIZED_VIEW = 7; - */ - BIGQUERY_MATERIALIZED_VIEW(7), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TableSourceType"); - } - - /** - * - * - *
-   * Default unknown type.
-   * 
- * - * TABLE_SOURCE_TYPE_UNSPECIFIED = 0; - */ - public static final int TABLE_SOURCE_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-   * Table view.
-   * 
- * - * BIGQUERY_VIEW = 2; - */ - public static final int BIGQUERY_VIEW_VALUE = 2; - - /** - * - * - *
-   * BigQuery native table.
-   * 
- * - * BIGQUERY_TABLE = 5; - */ - public static final int BIGQUERY_TABLE_VALUE = 5; - - /** - * - * - *
-   * BigQuery materialized view.
-   * 
- * - * BIGQUERY_MATERIALIZED_VIEW = 7; - */ - public static final int BIGQUERY_MATERIALIZED_VIEW_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 TableSourceType 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 TableSourceType forNumber(int value) { - switch (value) { - case 0: - return TABLE_SOURCE_TYPE_UNSPECIFIED; - case 2: - return BIGQUERY_VIEW; - case 5: - return BIGQUERY_TABLE; - case 7: - return BIGQUERY_MATERIALIZED_VIEW; - 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 TableSourceType findValueByNumber(int number) { - return TableSourceType.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.datacatalog.v1beta1.TableSpecOuterClass.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final TableSourceType[] VALUES = values(); - - public static TableSourceType 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 TableSourceType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1beta1.TableSourceType) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpec.java deleted file mode 100644 index 0466547339ec..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpec.java +++ /dev/null @@ -1,637 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Normal BigQuery table spec.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TableSpec} - */ -@com.google.protobuf.Generated -public final class TableSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TableSpec) - TableSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TableSpec"); - } - - // Use TableSpec.newBuilder() to construct. - private TableSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TableSpec() { - groupedEntry_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_TableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_TableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.TableSpec.class, - com.google.cloud.datacatalog.v1beta1.TableSpec.Builder.class); - } - - public static final int GROUPED_ENTRY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object groupedEntry_ = ""; - - /** - * - * - *
-   * Output only. If the table is a dated shard, i.e., with name pattern
-   * `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of
-   * the date sharded grouped entry, for example,
-   * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-   * Otherwise, `grouped_entry` is empty.
-   * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The groupedEntry. - */ - @java.lang.Override - public java.lang.String getGroupedEntry() { - java.lang.Object ref = groupedEntry_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupedEntry_ = s; - return s; - } - } - - /** - * - * - *
-   * Output only. If the table is a dated shard, i.e., with name pattern
-   * `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of
-   * the date sharded grouped entry, for example,
-   * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-   * Otherwise, `grouped_entry` is empty.
-   * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for groupedEntry. - */ - @java.lang.Override - public com.google.protobuf.ByteString getGroupedEntryBytes() { - java.lang.Object ref = groupedEntry_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - groupedEntry_ = 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(groupedEntry_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, groupedEntry_); - } - 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(groupedEntry_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, groupedEntry_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.TableSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.TableSpec other = - (com.google.cloud.datacatalog.v1beta1.TableSpec) obj; - - if (!getGroupedEntry().equals(other.getGroupedEntry())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + GROUPED_ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getGroupedEntry().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.TableSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Normal BigQuery table spec.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TableSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.TableSpec) - com.google.cloud.datacatalog.v1beta1.TableSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_TableSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_TableSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.TableSpec.class, - com.google.cloud.datacatalog.v1beta1.TableSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.TableSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - groupedEntry_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_TableSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TableSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.TableSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TableSpec build() { - com.google.cloud.datacatalog.v1beta1.TableSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TableSpec buildPartial() { - com.google.cloud.datacatalog.v1beta1.TableSpec result = - new com.google.cloud.datacatalog.v1beta1.TableSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.TableSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.groupedEntry_ = groupedEntry_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.TableSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.TableSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.TableSpec other) { - if (other == com.google.cloud.datacatalog.v1beta1.TableSpec.getDefaultInstance()) return this; - if (!other.getGroupedEntry().isEmpty()) { - groupedEntry_ = other.groupedEntry_; - 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: - { - groupedEntry_ = 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 groupedEntry_ = ""; - - /** - * - * - *
-     * Output only. If the table is a dated shard, i.e., with name pattern
-     * `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of
-     * the date sharded grouped entry, for example,
-     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-     * Otherwise, `grouped_entry` is empty.
-     * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The groupedEntry. - */ - public java.lang.String getGroupedEntry() { - java.lang.Object ref = groupedEntry_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - groupedEntry_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Output only. If the table is a dated shard, i.e., with name pattern
-     * `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of
-     * the date sharded grouped entry, for example,
-     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-     * Otherwise, `grouped_entry` is empty.
-     * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for groupedEntry. - */ - public com.google.protobuf.ByteString getGroupedEntryBytes() { - java.lang.Object ref = groupedEntry_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - groupedEntry_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Output only. If the table is a dated shard, i.e., with name pattern
-     * `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of
-     * the date sharded grouped entry, for example,
-     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-     * Otherwise, `grouped_entry` is empty.
-     * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The groupedEntry to set. - * @return This builder for chaining. - */ - public Builder setGroupedEntry(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - groupedEntry_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. If the table is a dated shard, i.e., with name pattern
-     * `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of
-     * the date sharded grouped entry, for example,
-     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-     * Otherwise, `grouped_entry` is empty.
-     * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearGroupedEntry() { - groupedEntry_ = getDefaultInstance().getGroupedEntry(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. If the table is a dated shard, i.e., with name pattern
-     * `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of
-     * the date sharded grouped entry, for example,
-     * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-     * Otherwise, `grouped_entry` is empty.
-     * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for groupedEntry to set. - * @return This builder for chaining. - */ - public Builder setGroupedEntryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - groupedEntry_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.TableSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.TableSpec) - private static final com.google.cloud.datacatalog.v1beta1.TableSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.TableSpec(); - } - - public static com.google.cloud.datacatalog.v1beta1.TableSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TableSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TableSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOrBuilder.java deleted file mode 100644 index 094de42424d4..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOrBuilder.java +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface TableSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.TableSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. If the table is a dated shard, i.e., with name pattern
-   * `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of
-   * the date sharded grouped entry, for example,
-   * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-   * Otherwise, `grouped_entry` is empty.
-   * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The groupedEntry. - */ - java.lang.String getGroupedEntry(); - - /** - * - * - *
-   * Output only. If the table is a dated shard, i.e., with name pattern
-   * `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of
-   * the date sharded grouped entry, for example,
-   * `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`.
-   * Otherwise, `grouped_entry` is empty.
-   * 
- * - * - * string grouped_entry = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for groupedEntry. - */ - com.google.protobuf.ByteString getGroupedEntryBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOuterClass.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOuterClass.java deleted file mode 100644 index fd705074a3d2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TableSpecOuterClass.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public final class TableSpecOuterClass extends com.google.protobuf.GeneratedFile { - private TableSpecOuterClass() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TableSpecOuterClass"); - } - - 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_datacatalog_v1beta1_BigQueryTableSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_TableSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_TableSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/datacatalog/v1beta1/table" - + "_spec.proto\022 google.cloud.datacatalog.v1" - + "beta1\032\037google/api/field_behavior.proto\032\031" - + "google/api/resource.proto\"\367\001\n\021BigQueryTa" - + "bleSpec\022Q\n\021table_source_type\030\001 \001(\01621.goo" - + "gle.cloud.datacatalog.v1beta1.TableSourc" - + "eTypeB\003\340A\003\022?\n\tview_spec\030\002 \001(\0132*.google.c" - + "loud.datacatalog.v1beta1.ViewSpecH\000\022A\n\nt" - + "able_spec\030\003 \001(\0132+.google.cloud.datacatal" - + "og.v1beta1.TableSpecH\000B\013\n\ttype_spec\"#\n\010V" - + "iewSpec\022\027\n\nview_query\030\001 \001(\tB\003\340A\003\"L\n\tTabl" - + "eSpec\022?\n\rgrouped_entry\030\001 \001(\tB(\340A\003\372A\"\n da" - + "tacatalog.googleapis.com/Entry\"\211\001\n\027BigQu" - + "eryDateShardedSpec\0229\n\007dataset\030\001 \001(\tB(\340A\003" - + "\372A\"\n datacatalog.googleapis.com/Entry\022\031\n" - + "\014table_prefix\030\002 \001(\tB\003\340A\003\022\030\n\013shard_count\030" - + "\003 \001(\003B\003\340A\003*{\n\017TableSourceType\022!\n\035TABLE_S" - + "OURCE_TYPE_UNSPECIFIED\020\000\022\021\n\rBIGQUERY_VIE" - + "W\020\002\022\022\n\016BIGQUERY_TABLE\020\005\022\036\n\032BIGQUERY_MATE" - + "RIALIZED_VIEW\020\007B\334\001\n$com.google.cloud.dat" - + "acatalog.v1beta1P\001ZFcloud.google.com/go/" - + "datacatalog/apiv1beta1/datacatalogpb;dat" - + "acatalogpb\252\002 Google.Cloud.DataCatalog.V1" - + "Beta1\312\002 Google\\Cloud\\DataCatalog\\V1beta1" - + "\352\002#Google::Cloud::DataCatalog::V1beta1b\006" - + "proto3" - }; - 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_datacatalog_v1beta1_BigQueryTableSpec_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_BigQueryTableSpec_descriptor, - new java.lang.String[] { - "TableSourceType", "ViewSpec", "TableSpec", "TypeSpec", - }); - internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_descriptor, - new java.lang.String[] { - "ViewQuery", - }); - internal_static_google_cloud_datacatalog_v1beta1_TableSpec_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1beta1_TableSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_TableSpec_descriptor, - new java.lang.String[] { - "GroupedEntry", - }); - internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_descriptor = - getDescriptor().getMessageType(3); - internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_BigQueryDateShardedSpec_descriptor, - new java.lang.String[] { - "Dataset", "TablePrefix", "ShardCount", - }); - 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.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java deleted file mode 100644 index ff56bbdc810a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tag.java +++ /dev/null @@ -1,1914 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Tags are used to attach custom metadata to Data Catalog resources. Tags
- * conform to the specifications within their tag template.
- *
- * See [Data Catalog
- * IAM](https://cloud.google.com/data-catalog/docs/concepts/iam) for information
- * on the permissions needed to create or view tags.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Tag} - */ -@com.google.protobuf.Generated -public final class Tag extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Tag) - TagOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Tag"); - } - - // Use Tag.newBuilder() to construct. - private Tag(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Tag() { - name_ = ""; - template_ = ""; - templateDisplayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_Tag_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_Tag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.Tag.class, - com.google.cloud.datacatalog.v1beta1.Tag.Builder.class); - } - - private int scopeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object scope_; - - public enum ScopeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - COLUMN(4), - SCOPE_NOT_SET(0); - private final int value; - - private ScopeCase(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 ScopeCase valueOf(int value) { - return forNumber(value); - } - - public static ScopeCase forNumber(int value) { - switch (value) { - case 4: - return COLUMN; - case 0: - return SCOPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public ScopeCase getScopeCase() { - return ScopeCase.forNumber(scopeCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. The resource name of the tag in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-   *
-   * where `tag_id` is a system-generated identifier.
-   * Note that this Tag may not actually be stored in the location in this 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 resource name of the tag in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-   *
-   * where `tag_id` is a system-generated identifier.
-   * Note that this Tag may not actually be stored in the location in this 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 TEMPLATE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object template_ = ""; - - /** - * - * - *
-   * Required. The resource name of the tag template that this tag uses.
-   * Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   *
-   * This field cannot be modified after creation.
-   * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The template. - */ - @java.lang.Override - public java.lang.String getTemplate() { - java.lang.Object ref = template_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - template_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The resource name of the tag template that this tag uses.
-   * Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   *
-   * This field cannot be modified after creation.
-   * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for template. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTemplateBytes() { - java.lang.Object ref = template_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - template_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TEMPLATE_DISPLAY_NAME_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object templateDisplayName_ = ""; - - /** - * - * - *
-   * Output only. The display name of the tag template.
-   * 
- * - * string template_display_name = 5 [(.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 tag template.
-   * 
- * - * string template_display_name = 5 [(.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; - } - } - - public static final int COLUMN_FIELD_NUMBER = 4; - - /** - * - * - *
-   * Resources like Entry can have schemas associated with them. This scope
-   * allows users to attach tags to an individual column based on that schema.
-   *
-   * For attaching a tag to a nested column, use `.` to separate the column
-   * names. Example:
-   *
-   * * `outer_column.inner_column`
-   * 
- * - * string column = 4; - * - * @return Whether the column field is set. - */ - public boolean hasColumn() { - return scopeCase_ == 4; - } - - /** - * - * - *
-   * Resources like Entry can have schemas associated with them. This scope
-   * allows users to attach tags to an individual column based on that schema.
-   *
-   * For attaching a tag to a nested column, use `.` to separate the column
-   * names. Example:
-   *
-   * * `outer_column.inner_column`
-   * 
- * - * string column = 4; - * - * @return The column. - */ - public java.lang.String getColumn() { - java.lang.Object ref = ""; - if (scopeCase_ == 4) { - ref = scope_; - } - if (ref instanceof java.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 (scopeCase_ == 4) { - scope_ = s; - } - return s; - } - } - - /** - * - * - *
-   * Resources like Entry can have schemas associated with them. This scope
-   * allows users to attach tags to an individual column based on that schema.
-   *
-   * For attaching a tag to a nested column, use `.` to separate the column
-   * names. Example:
-   *
-   * * `outer_column.inner_column`
-   * 
- * - * string column = 4; - * - * @return The bytes for column. - */ - public com.google.protobuf.ByteString getColumnBytes() { - java.lang.Object ref = ""; - if (scopeCase_ == 4) { - ref = scope_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (scopeCase_ == 4) { - scope_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELDS_FIELD_NUMBER = 3; - - private static final class FieldsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagField> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_Tag_FieldsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.datacatalog.v1beta1.TagField.getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagField> - fields_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagField> - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - - public int getFieldsCount() { - return internalGetFields().getMap().size(); - } - - /** - * - * - *
-   * Required. This maps the ID of a tag field to the value of and additional
-   * information about that field. Valid field IDs are defined by the tag's
-   * template. A tag must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetFields().getMap().containsKey(key); - } - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getFields() { - return getFieldsMap(); - } - - /** - * - * - *
-   * Required. This maps the ID of a tag field to the value of and additional
-   * information about that field. Valid field IDs are defined by the tag's
-   * template. A tag must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map - getFieldsMap() { - return internalGetFields().getMap(); - } - - /** - * - * - *
-   * Required. This maps the ID of a tag field to the value of and additional
-   * information about that field. Valid field IDs are defined by the tag's
-   * template. A tag must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1beta1.TagField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1beta1.TagField defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetFields().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-   * Required. This maps the ID of a tag field to the value of and additional
-   * information about that field. Valid field IDs are defined by the tag's
-   * template. A tag must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField getFieldsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetFields().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(template_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, template_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); - if (scopeCase_ == 4) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, scope_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(templateDisplayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, 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(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(template_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, template_); - } - for (java.util.Map.Entry - entry : internalGetFields().getMap().entrySet()) { - com.google.protobuf.MapEntry - fields__ = - FieldsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fields__); - } - if (scopeCase_ == 4) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, scope_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(templateDisplayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, 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.datacatalog.v1beta1.Tag)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.Tag other = (com.google.cloud.datacatalog.v1beta1.Tag) obj; - - if (!getName().equals(other.getName())) return false; - if (!getTemplate().equals(other.getTemplate())) return false; - if (!getTemplateDisplayName().equals(other.getTemplateDisplayName())) return false; - if (!internalGetFields().equals(other.internalGetFields())) return false; - if (!getScopeCase().equals(other.getScopeCase())) return false; - switch (scopeCase_) { - case 4: - if (!getColumn().equals(other.getColumn())) 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) + TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTemplate().hashCode(); - hash = (37 * hash) + TEMPLATE_DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getTemplateDisplayName().hashCode(); - if (!internalGetFields().getMap().isEmpty()) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + internalGetFields().hashCode(); - } - switch (scopeCase_) { - case 4: - hash = (37 * hash) + COLUMN_FIELD_NUMBER; - hash = (53 * hash) + getColumn().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.Tag prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Tags are used to attach custom metadata to Data Catalog resources. Tags
-   * conform to the specifications within their tag template.
-   *
-   * See [Data Catalog
-   * IAM](https://cloud.google.com/data-catalog/docs/concepts/iam) for information
-   * on the permissions needed to create or view tags.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Tag} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.Tag) - com.google.cloud.datacatalog.v1beta1.TagOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_Tag_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMutableFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_Tag_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.Tag.class, - com.google.cloud.datacatalog.v1beta1.Tag.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.Tag.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - template_ = ""; - templateDisplayName_ = ""; - internalGetMutableFields().clear(); - scopeCase_ = 0; - scope_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_Tag_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Tag getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Tag build() { - com.google.cloud.datacatalog.v1beta1.Tag result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Tag buildPartial() { - com.google.cloud.datacatalog.v1beta1.Tag result = - new com.google.cloud.datacatalog.v1beta1.Tag(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.Tag result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.template_ = template_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.templateDisplayName_ = templateDisplayName_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.fields_ = internalGetFields().build(FieldsDefaultEntryHolder.defaultEntry); - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1beta1.Tag result) { - result.scopeCase_ = scopeCase_; - result.scope_ = this.scope_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.Tag) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.Tag) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.Tag other) { - if (other == com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTemplate().isEmpty()) { - template_ = other.template_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTemplateDisplayName().isEmpty()) { - templateDisplayName_ = other.templateDisplayName_; - bitField0_ |= 0x00000004; - onChanged(); - } - internalGetMutableFields().mergeFrom(other.internalGetFields()); - bitField0_ |= 0x00000010; - switch (other.getScopeCase()) { - case COLUMN: - { - scopeCase_ = 4; - scope_ = other.scope_; - onChanged(); - break; - } - case SCOPE_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_ |= 0x00000001; - break; - } // case 10 - case 18: - { - template_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagField> - fields__ = - input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableFields() - .ensureBuilderMap() - .put(fields__.getKey(), fields__.getValue()); - bitField0_ |= 0x00000010; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - scopeCase_ = 4; - scope_ = s; - break; - } // case 34 - case 42: - { - templateDisplayName_ = input.readStringRequireUtf8(); - 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 scopeCase_ = 0; - private java.lang.Object scope_; - - public ScopeCase getScopeCase() { - return ScopeCase.forNumber(scopeCase_); - } - - public Builder clearScope() { - scopeCase_ = 0; - scope_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - - /** - * - * - *
-     * Identifier. The resource name of the tag in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-     *
-     * where `tag_id` is a system-generated identifier.
-     * Note that this Tag may not actually be stored in the location in this 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 resource name of the tag in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-     *
-     * where `tag_id` is a system-generated identifier.
-     * Note that this Tag may not actually be stored in the location in this 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 resource name of the tag in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-     *
-     * where `tag_id` is a system-generated identifier.
-     * Note that this Tag may not actually be stored in the location in this 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 resource name of the tag in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-     *
-     * where `tag_id` is a system-generated identifier.
-     * Note that this Tag may not actually be stored in the location in this 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 resource name of the tag in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-     *
-     * where `tag_id` is a system-generated identifier.
-     * Note that this Tag may not actually be stored in the location in this 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 template_ = ""; - - /** - * - * - *
-     * Required. The resource name of the tag template that this tag uses.
-     * Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     *
-     * This field cannot be modified after creation.
-     * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The template. - */ - public java.lang.String getTemplate() { - java.lang.Object ref = template_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - template_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The resource name of the tag template that this tag uses.
-     * Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     *
-     * This field cannot be modified after creation.
-     * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for template. - */ - public com.google.protobuf.ByteString getTemplateBytes() { - java.lang.Object ref = template_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - template_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The resource name of the tag template that this tag uses.
-     * Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     *
-     * This field cannot be modified after creation.
-     * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The template to set. - * @return This builder for chaining. - */ - public Builder setTemplate(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - template_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The resource name of the tag template that this tag uses.
-     * Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     *
-     * This field cannot be modified after creation.
-     * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearTemplate() { - template_ = getDefaultInstance().getTemplate(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The resource name of the tag template that this tag uses.
-     * Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     *
-     * This field cannot be modified after creation.
-     * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for template to set. - * @return This builder for chaining. - */ - public Builder setTemplateBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - template_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object templateDisplayName_ = ""; - - /** - * - * - *
-     * Output only. The display name of the tag template.
-     * 
- * - * string template_display_name = 5 [(.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 tag template.
-     * 
- * - * string template_display_name = 5 [(.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 tag template.
-     * 
- * - * string template_display_name = 5 [(.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 tag template.
-     * 
- * - * string template_display_name = 5 [(.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 tag template.
-     * 
- * - * string template_display_name = 5 [(.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; - } - - /** - * - * - *
-     * Resources like Entry can have schemas associated with them. This scope
-     * allows users to attach tags to an individual column based on that schema.
-     *
-     * For attaching a tag to a nested column, use `.` to separate the column
-     * names. Example:
-     *
-     * * `outer_column.inner_column`
-     * 
- * - * string column = 4; - * - * @return Whether the column field is set. - */ - @java.lang.Override - public boolean hasColumn() { - return scopeCase_ == 4; - } - - /** - * - * - *
-     * Resources like Entry can have schemas associated with them. This scope
-     * allows users to attach tags to an individual column based on that schema.
-     *
-     * For attaching a tag to a nested column, use `.` to separate the column
-     * names. Example:
-     *
-     * * `outer_column.inner_column`
-     * 
- * - * string column = 4; - * - * @return The column. - */ - @java.lang.Override - public java.lang.String getColumn() { - java.lang.Object ref = ""; - if (scopeCase_ == 4) { - ref = scope_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (scopeCase_ == 4) { - scope_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Resources like Entry can have schemas associated with them. This scope
-     * allows users to attach tags to an individual column based on that schema.
-     *
-     * For attaching a tag to a nested column, use `.` to separate the column
-     * names. Example:
-     *
-     * * `outer_column.inner_column`
-     * 
- * - * string column = 4; - * - * @return The bytes for column. - */ - @java.lang.Override - public com.google.protobuf.ByteString getColumnBytes() { - java.lang.Object ref = ""; - if (scopeCase_ == 4) { - ref = scope_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (scopeCase_ == 4) { - scope_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Resources like Entry can have schemas associated with them. This scope
-     * allows users to attach tags to an individual column based on that schema.
-     *
-     * For attaching a tag to a nested column, use `.` to separate the column
-     * names. Example:
-     *
-     * * `outer_column.inner_column`
-     * 
- * - * string column = 4; - * - * @param value The column to set. - * @return This builder for chaining. - */ - public Builder setColumn(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - scopeCase_ = 4; - scope_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Resources like Entry can have schemas associated with them. This scope
-     * allows users to attach tags to an individual column based on that schema.
-     *
-     * For attaching a tag to a nested column, use `.` to separate the column
-     * names. Example:
-     *
-     * * `outer_column.inner_column`
-     * 
- * - * string column = 4; - * - * @return This builder for chaining. - */ - public Builder clearColumn() { - if (scopeCase_ == 4) { - scopeCase_ = 0; - scope_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Resources like Entry can have schemas associated with them. This scope
-     * allows users to attach tags to an individual column based on that schema.
-     *
-     * For attaching a tag to a nested column, use `.` to separate the column
-     * names. Example:
-     *
-     * * `outer_column.inner_column`
-     * 
- * - * string column = 4; - * - * @param value The bytes for column to set. - * @return This builder for chaining. - */ - public Builder setColumnBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - scopeCase_ = 4; - scope_ = value; - onChanged(); - return this; - } - - private static final class FieldsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.TagFieldOrBuilder, - com.google.cloud.datacatalog.v1beta1.TagField> { - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField build( - com.google.cloud.datacatalog.v1beta1.TagFieldOrBuilder val) { - if (val instanceof com.google.cloud.datacatalog.v1beta1.TagField) { - return (com.google.cloud.datacatalog.v1beta1.TagField) val; - } - return ((com.google.cloud.datacatalog.v1beta1.TagField.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagField> - defaultEntry() { - return FieldsDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final FieldsConverter fieldsConverter = new FieldsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.TagFieldOrBuilder, - com.google.cloud.datacatalog.v1beta1.TagField, - com.google.cloud.datacatalog.v1beta1.TagField.Builder> - fields_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.TagFieldOrBuilder, - com.google.cloud.datacatalog.v1beta1.TagField, - com.google.cloud.datacatalog.v1beta1.TagField.Builder> - internalGetFields() { - if (fields_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); - } - return fields_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.TagFieldOrBuilder, - com.google.cloud.datacatalog.v1beta1.TagField, - com.google.cloud.datacatalog.v1beta1.TagField.Builder> - internalGetMutableFields() { - if (fields_ == null) { - fields_ = new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); - } - bitField0_ |= 0x00000010; - onChanged(); - return fields_; - } - - public int getFieldsCount() { - return internalGetFields().ensureBuilderMap().size(); - } - - /** - * - * - *
-     * Required. This maps the ID of a tag field to the value of and additional
-     * information about that field. Valid field IDs are defined by the tag's
-     * template. A tag must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetFields().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getFields() { - return getFieldsMap(); - } - - /** - * - * - *
-     * Required. This maps the ID of a tag field to the value of and additional
-     * information about that field. Valid field IDs are defined by the tag's
-     * template. A tag must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map - getFieldsMap() { - return internalGetFields().getImmutableMap(); - } - - /** - * - * - *
-     * Required. This maps the ID of a tag field to the value of and additional
-     * information about that field. Valid field IDs are defined by the tag's
-     * template. A tag must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1beta1.TagField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1beta1.TagField defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableFields().ensureBuilderMap(); - return map.containsKey(key) ? fieldsConverter.build(map.get(key)) : defaultValue; - } - - /** - * - * - *
-     * Required. This maps the ID of a tag field to the value of and additional
-     * information about that field. Valid field IDs are defined by the tag's
-     * template. A tag must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField getFieldsOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetMutableFields().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return fieldsConverter.build(map.get(key)); - } - - public Builder clearFields() { - bitField0_ = (bitField0_ & ~0x00000010); - internalGetMutableFields().clear(); - return this; - } - - /** - * - * - *
-     * Required. This maps the ID of a tag field to the value of and additional
-     * information about that field. Valid field IDs are defined by the tag's
-     * template. A tag must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableFields().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableFields() { - bitField0_ |= 0x00000010; - return internalGetMutableFields().ensureMessageMap(); - } - - /** - * - * - *
-     * Required. This maps the ID of a tag field to the value of and additional
-     * information about that field. Valid field IDs are defined by the tag's
-     * template. A tag must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putFields( - java.lang.String key, com.google.cloud.datacatalog.v1beta1.TagField value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableFields().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000010; - return this; - } - - /** - * - * - *
-     * Required. This maps the ID of a tag field to the value of and additional
-     * information about that field. Valid field IDs are defined by the tag's
-     * template. A tag must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putAllFields( - java.util.Map values) { - for (java.util.Map.Entry e : - values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableFields().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000010; - return this; - } - - /** - * - * - *
-     * Required. This maps the ID of a tag field to the value of and additional
-     * information about that field. Valid field IDs are defined by the tag's
-     * template. A tag must have at least 1 field and at most 500 fields.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagField.Builder putFieldsBuilderIfAbsent( - java.lang.String key) { - java.util.Map - builderMap = internalGetMutableFields().ensureBuilderMap(); - com.google.cloud.datacatalog.v1beta1.TagFieldOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.datacatalog.v1beta1.TagField.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.datacatalog.v1beta1.TagField) { - entry = ((com.google.cloud.datacatalog.v1beta1.TagField) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.datacatalog.v1beta1.TagField.Builder) entry; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.Tag) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.Tag) - private static final com.google.cloud.datacatalog.v1beta1.Tag DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.Tag(); - } - - public static com.google.cloud.datacatalog.v1beta1.Tag getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Tag parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Tag getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java deleted file mode 100644 index 43c17f565d60..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagField.java +++ /dev/null @@ -1,2552 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Contains the value and supporting information for a field within
- * a [Tag][google.cloud.datacatalog.v1beta1.Tag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TagField} - */ -@com.google.protobuf.Generated -public final class TagField extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagField) - TagFieldOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TagField"); - } - - // Use TagField.newBuilder() to construct. - private TagField(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TagField() { - displayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.TagField.class, - com.google.cloud.datacatalog.v1beta1.TagField.Builder.class); - } - - public interface EnumValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.TagField.EnumValue) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The display name of the enum value.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-     * The display name of the enum value.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - } - - /** - * - * - *
-   * Holds an enum value.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TagField.EnumValue} - */ - public static final class EnumValue extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagField.EnumValue) - EnumValueOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "EnumValue"); - } - - // Use EnumValue.newBuilder() to construct. - private EnumValue(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private EnumValue() { - displayName_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.class, - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.Builder.class); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-     * The display name of the enum value.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - - /** - * - * - *
-     * The display name of the enum value.
-     * 
- * - * string display_name = 1; - * - * @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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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_); - } - 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_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.TagField.EnumValue)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue other = - (com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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 = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 an enum value.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TagField.EnumValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.TagField.EnumValue) - com.google.cloud.datacatalog.v1beta1.TagField.EnumValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.class, - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField.EnumValue getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField.EnumValue build() { - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField.EnumValue buildPartial() { - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue result = - new com.google.cloud.datacatalog.v1beta1.TagField.EnumValue(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.TagField.EnumValue result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.TagField.EnumValue other) { - if (other == com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance()) - return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - 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: - { - displayName_ = 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 displayName_ = ""; - - /** - * - * - *
-       * The display name of the enum value.
-       * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * The display name of the enum value.
-       * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * The display name of the enum value.
-       * 
- * - * string display_name = 1; - * - * @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; - } - - /** - * - * - *
-       * The display name of the enum value.
-       * 
- * - * string display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-       * The display name of the enum value.
-       * 
- * - * string display_name = 1; - * - * @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; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.TagField.EnumValue) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.TagField.EnumValue) - private static final com.google.cloud.datacatalog.v1beta1.TagField.EnumValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.TagField.EnumValue(); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField.EnumValue getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnumValue parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField.EnumValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int kindCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object kind_; - - public enum KindCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - DOUBLE_VALUE(2), - STRING_VALUE(3), - BOOL_VALUE(4), - TIMESTAMP_VALUE(5), - ENUM_VALUE(6), - KIND_NOT_SET(0); - private final int value; - - private KindCase(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 KindCase valueOf(int value) { - return forNumber(value); - } - - public static KindCase forNumber(int value) { - switch (value) { - case 2: - return DOUBLE_VALUE; - case 3: - return STRING_VALUE; - case 4: - return BOOL_VALUE; - case 5: - return TIMESTAMP_VALUE; - case 6: - return ENUM_VALUE; - case 0: - return KIND_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public KindCase getKindCase() { - return KindCase.forNumber(kindCase_); - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-   * Output only. The display name of this field.
-   * 
- * - * 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. The display name of this field.
-   * 
- * - * 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 DOUBLE_VALUE_FIELD_NUMBER = 2; - - /** - * - * - *
-   * Holds the value for a tag field with double type.
-   * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - @java.lang.Override - public boolean hasDoubleValue() { - return kindCase_ == 2; - } - - /** - * - * - *
-   * Holds the value for a tag field with double type.
-   * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - @java.lang.Override - public double getDoubleValue() { - if (kindCase_ == 2) { - return (java.lang.Double) kind_; - } - return 0D; - } - - public static final int STRING_VALUE_FIELD_NUMBER = 3; - - /** - * - * - *
-   * Holds the value for a tag field with string type.
-   * 
- * - * string string_value = 3; - * - * @return Whether the stringValue field is set. - */ - public boolean hasStringValue() { - return kindCase_ == 3; - } - - /** - * - * - *
-   * Holds the value for a tag field with string type.
-   * 
- * - * string string_value = 3; - * - * @return The stringValue. - */ - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (kindCase_ == 3) { - kind_ = s; - } - return s; - } - } - - /** - * - * - *
-   * Holds the value for a tag field with string type.
-   * 
- * - * string string_value = 3; - * - * @return The bytes for stringValue. - */ - public com.google.protobuf.ByteString getStringValueBytes() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (kindCase_ == 3) { - kind_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BOOL_VALUE_FIELD_NUMBER = 4; - - /** - * - * - *
-   * Holds the value for a tag field with boolean type.
-   * 
- * - * bool bool_value = 4; - * - * @return Whether the boolValue field is set. - */ - @java.lang.Override - public boolean hasBoolValue() { - return kindCase_ == 4; - } - - /** - * - * - *
-   * Holds the value for a tag field with boolean type.
-   * 
- * - * bool bool_value = 4; - * - * @return The boolValue. - */ - @java.lang.Override - public boolean getBoolValue() { - if (kindCase_ == 4) { - return (java.lang.Boolean) kind_; - } - return false; - } - - public static final int TIMESTAMP_VALUE_FIELD_NUMBER = 5; - - /** - * - * - *
-   * Holds the value for a tag field with timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return Whether the timestampValue field is set. - */ - @java.lang.Override - public boolean hasTimestampValue() { - return kindCase_ == 5; - } - - /** - * - * - *
-   * Holds the value for a tag field with timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return The timestampValue. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getTimestampValue() { - if (kindCase_ == 5) { - return (com.google.protobuf.Timestamp) kind_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - /** - * - * - *
-   * Holds the value for a tag field with timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { - if (kindCase_ == 5) { - return (com.google.protobuf.Timestamp) kind_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - - public static final int ENUM_VALUE_FIELD_NUMBER = 6; - - /** - * - * - *
-   * Holds the value for a tag field with enum type. This value must be
-   * one of the allowed values in the definition of this enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - * - * @return Whether the enumValue field is set. - */ - @java.lang.Override - public boolean hasEnumValue() { - return kindCase_ == 6; - } - - /** - * - * - *
-   * Holds the value for a tag field with enum type. This value must be
-   * one of the allowed values in the definition of this enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - * - * @return The enumValue. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField.EnumValue getEnumValue() { - if (kindCase_ == 6) { - return (com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) kind_; - } - return com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance(); - } - - /** - * - * - *
-   * Holds the value for a tag field with enum type. This value must be
-   * one of the allowed values in the definition of this enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField.EnumValueOrBuilder getEnumValueOrBuilder() { - if (kindCase_ == 6) { - return (com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) kind_; - } - return com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance(); - } - - public static final int ORDER_FIELD_NUMBER = 7; - private int order_ = 0; - - /** - * - * - *
-   * Output only. The order of this field with respect to other fields in this
-   * tag. It can be set in
-   * [Tag][google.cloud.datacatalog.v1beta1.TagTemplateField.order]. For
-   * example, a higher value can indicate a more important field. The value can
-   * be negative. Multiple fields can have the same order, and field orders
-   * within a tag do not have to be sequential.
-   * 
- * - * int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The order. - */ - @java.lang.Override - public int getOrder() { - return order_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (kindCase_ == 2) { - output.writeDouble(2, (double) ((java.lang.Double) kind_)); - } - if (kindCase_ == 3) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, kind_); - } - if (kindCase_ == 4) { - output.writeBool(4, (boolean) ((java.lang.Boolean) kind_)); - } - if (kindCase_ == 5) { - output.writeMessage(5, (com.google.protobuf.Timestamp) kind_); - } - if (kindCase_ == 6) { - output.writeMessage(6, (com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) kind_); - } - if (order_ != 0) { - output.writeInt32(7, order_); - } - 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 (kindCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeDoubleSize( - 2, (double) ((java.lang.Double) kind_)); - } - if (kindCase_ == 3) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, kind_); - } - if (kindCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 4, (boolean) ((java.lang.Boolean) kind_)); - } - if (kindCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.protobuf.Timestamp) kind_); - } - if (kindCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) kind_); - } - if (order_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(7, order_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.TagField)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.TagField other = - (com.google.cloud.datacatalog.v1beta1.TagField) obj; - - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (getOrder() != other.getOrder()) return false; - if (!getKindCase().equals(other.getKindCase())) return false; - switch (kindCase_) { - case 2: - if (java.lang.Double.doubleToLongBits(getDoubleValue()) - != java.lang.Double.doubleToLongBits(other.getDoubleValue())) return false; - break; - case 3: - if (!getStringValue().equals(other.getStringValue())) return false; - break; - case 4: - if (getBoolValue() != other.getBoolValue()) return false; - break; - case 5: - if (!getTimestampValue().equals(other.getTimestampValue())) return false; - break; - case 6: - if (!getEnumValue().equals(other.getEnumValue())) 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) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + ORDER_FIELD_NUMBER; - hash = (53 * hash) + getOrder(); - switch (kindCase_) { - case 2: - hash = (37 * hash) + DOUBLE_VALUE_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashLong( - java.lang.Double.doubleToLongBits(getDoubleValue())); - break; - case 3: - hash = (37 * hash) + STRING_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getStringValue().hashCode(); - break; - case 4: - hash = (37 * hash) + BOOL_VALUE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBoolValue()); - break; - case 5: - hash = (37 * hash) + TIMESTAMP_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getTimestampValue().hashCode(); - break; - case 6: - hash = (37 * hash) + ENUM_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getEnumValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.TagField prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Contains the value and supporting information for a field within
-   * a [Tag][google.cloud.datacatalog.v1beta1.Tag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TagField} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.TagField) - com.google.cloud.datacatalog.v1beta1.TagFieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.TagField.class, - com.google.cloud.datacatalog.v1beta1.TagField.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.TagField.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - displayName_ = ""; - if (timestampValueBuilder_ != null) { - timestampValueBuilder_.clear(); - } - if (enumValueBuilder_ != null) { - enumValueBuilder_.clear(); - } - order_ = 0; - kindCase_ = 0; - kind_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagField_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.TagField.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField build() { - com.google.cloud.datacatalog.v1beta1.TagField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField buildPartial() { - com.google.cloud.datacatalog.v1beta1.TagField result = - new com.google.cloud.datacatalog.v1beta1.TagField(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.TagField result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.displayName_ = displayName_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.order_ = order_; - } - } - - private void buildPartialOneofs(com.google.cloud.datacatalog.v1beta1.TagField result) { - result.kindCase_ = kindCase_; - result.kind_ = this.kind_; - if (kindCase_ == 5 && timestampValueBuilder_ != null) { - result.kind_ = timestampValueBuilder_.build(); - } - if (kindCase_ == 6 && enumValueBuilder_ != null) { - result.kind_ = enumValueBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.TagField) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.TagField) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.TagField other) { - if (other == com.google.cloud.datacatalog.v1beta1.TagField.getDefaultInstance()) return this; - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.getOrder() != 0) { - setOrder(other.getOrder()); - } - switch (other.getKindCase()) { - case DOUBLE_VALUE: - { - setDoubleValue(other.getDoubleValue()); - break; - } - case STRING_VALUE: - { - kindCase_ = 3; - kind_ = other.kind_; - onChanged(); - break; - } - case BOOL_VALUE: - { - setBoolValue(other.getBoolValue()); - break; - } - case TIMESTAMP_VALUE: - { - mergeTimestampValue(other.getTimestampValue()); - break; - } - case ENUM_VALUE: - { - mergeEnumValue(other.getEnumValue()); - break; - } - case KIND_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: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 17: - { - kind_ = input.readDouble(); - kindCase_ = 2; - break; - } // case 17 - case 26: - { - java.lang.String s = input.readStringRequireUtf8(); - kindCase_ = 3; - kind_ = s; - break; - } // case 26 - case 32: - { - kind_ = input.readBool(); - kindCase_ = 4; - break; - } // case 32 - case 42: - { - input.readMessage( - internalGetTimestampValueFieldBuilder().getBuilder(), extensionRegistry); - kindCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetEnumValueFieldBuilder().getBuilder(), extensionRegistry); - kindCase_ = 6; - break; - } // case 50 - case 56: - { - order_ = input.readInt32(); - 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 kindCase_ = 0; - private java.lang.Object kind_; - - public KindCase getKindCase() { - return KindCase.forNumber(kindCase_); - } - - public Builder clearKind() { - kindCase_ = 0; - kind_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private java.lang.Object displayName_ = ""; - - /** - * - * - *
-     * Output only. The display name of this field.
-     * 
- * - * 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. The display name of this field.
-     * 
- * - * 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. The display name of this field.
-     * 
- * - * 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. The display name of this field.
-     * 
- * - * 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. The display name of this field.
-     * 
- * - * 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; - } - - /** - * - * - *
-     * Holds the value for a tag field with double type.
-     * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - public boolean hasDoubleValue() { - return kindCase_ == 2; - } - - /** - * - * - *
-     * Holds the value for a tag field with double type.
-     * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - public double getDoubleValue() { - if (kindCase_ == 2) { - return (java.lang.Double) kind_; - } - return 0D; - } - - /** - * - * - *
-     * Holds the value for a tag field with double type.
-     * 
- * - * double double_value = 2; - * - * @param value The doubleValue to set. - * @return This builder for chaining. - */ - public Builder setDoubleValue(double value) { - - kindCase_ = 2; - kind_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with double type.
-     * 
- * - * double double_value = 2; - * - * @return This builder for chaining. - */ - public Builder clearDoubleValue() { - if (kindCase_ == 2) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with string type.
-     * 
- * - * string string_value = 3; - * - * @return Whether the stringValue field is set. - */ - @java.lang.Override - public boolean hasStringValue() { - return kindCase_ == 3; - } - - /** - * - * - *
-     * Holds the value for a tag field with string type.
-     * 
- * - * string string_value = 3; - * - * @return The stringValue. - */ - @java.lang.Override - public java.lang.String getStringValue() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (kindCase_ == 3) { - kind_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Holds the value for a tag field with string type.
-     * 
- * - * string string_value = 3; - * - * @return The bytes for stringValue. - */ - @java.lang.Override - public com.google.protobuf.ByteString getStringValueBytes() { - java.lang.Object ref = ""; - if (kindCase_ == 3) { - ref = kind_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (kindCase_ == 3) { - kind_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Holds the value for a tag field with string type.
-     * 
- * - * string string_value = 3; - * - * @param value The stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValue(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - kindCase_ = 3; - kind_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with string type.
-     * 
- * - * string string_value = 3; - * - * @return This builder for chaining. - */ - public Builder clearStringValue() { - if (kindCase_ == 3) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with string type.
-     * 
- * - * string string_value = 3; - * - * @param value The bytes for stringValue to set. - * @return This builder for chaining. - */ - public Builder setStringValueBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - kindCase_ = 3; - kind_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with boolean type.
-     * 
- * - * bool bool_value = 4; - * - * @return Whether the boolValue field is set. - */ - public boolean hasBoolValue() { - return kindCase_ == 4; - } - - /** - * - * - *
-     * Holds the value for a tag field with boolean type.
-     * 
- * - * bool bool_value = 4; - * - * @return The boolValue. - */ - public boolean getBoolValue() { - if (kindCase_ == 4) { - return (java.lang.Boolean) kind_; - } - return false; - } - - /** - * - * - *
-     * Holds the value for a tag field with boolean type.
-     * 
- * - * bool bool_value = 4; - * - * @param value The boolValue to set. - * @return This builder for chaining. - */ - public Builder setBoolValue(boolean value) { - - kindCase_ = 4; - kind_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with boolean type.
-     * 
- * - * bool bool_value = 4; - * - * @return This builder for chaining. - */ - public Builder clearBoolValue() { - if (kindCase_ == 4) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - timestampValueBuilder_; - - /** - * - * - *
-     * Holds the value for a tag field with timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return Whether the timestampValue field is set. - */ - @java.lang.Override - public boolean hasTimestampValue() { - return kindCase_ == 5; - } - - /** - * - * - *
-     * Holds the value for a tag field with timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return The timestampValue. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getTimestampValue() { - if (timestampValueBuilder_ == null) { - if (kindCase_ == 5) { - return (com.google.protobuf.Timestamp) kind_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } else { - if (kindCase_ == 5) { - return timestampValueBuilder_.getMessage(); - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Holds the value for a tag field with timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - public Builder setTimestampValue(com.google.protobuf.Timestamp value) { - if (timestampValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - timestampValueBuilder_.setMessage(value); - } - kindCase_ = 5; - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - public Builder setTimestampValue(com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - timestampValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 5; - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - public Builder mergeTimestampValue(com.google.protobuf.Timestamp value) { - if (timestampValueBuilder_ == null) { - if (kindCase_ == 5 && kind_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - kind_ = - com.google.protobuf.Timestamp.newBuilder((com.google.protobuf.Timestamp) kind_) - .mergeFrom(value) - .buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 5) { - timestampValueBuilder_.mergeFrom(value); - } else { - timestampValueBuilder_.setMessage(value); - } - } - kindCase_ = 5; - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - public Builder clearTimestampValue() { - if (timestampValueBuilder_ == null) { - if (kindCase_ == 5) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 5) { - kindCase_ = 0; - kind_ = null; - } - timestampValueBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - public com.google.protobuf.Timestamp.Builder getTimestampValueBuilder() { - return internalGetTimestampValueFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Holds the value for a tag field with timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder() { - if ((kindCase_ == 5) && (timestampValueBuilder_ != null)) { - return timestampValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 5) { - return (com.google.protobuf.Timestamp) kind_; - } - return com.google.protobuf.Timestamp.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Holds the value for a tag field with timestamp type.
-     * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetTimestampValueFieldBuilder() { - if (timestampValueBuilder_ == null) { - if (!(kindCase_ == 5)) { - kind_ = com.google.protobuf.Timestamp.getDefaultInstance(); - } - timestampValueBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - (com.google.protobuf.Timestamp) kind_, getParentForChildren(), isClean()); - kind_ = null; - } - kindCase_ = 5; - onChanged(); - return timestampValueBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue, - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.Builder, - com.google.cloud.datacatalog.v1beta1.TagField.EnumValueOrBuilder> - enumValueBuilder_; - - /** - * - * - *
-     * Holds the value for a tag field with enum type. This value must be
-     * one of the allowed values in the definition of this enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - * - * @return Whether the enumValue field is set. - */ - @java.lang.Override - public boolean hasEnumValue() { - return kindCase_ == 6; - } - - /** - * - * - *
-     * Holds the value for a tag field with enum type. This value must be
-     * one of the allowed values in the definition of this enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - * - * @return The enumValue. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField.EnumValue getEnumValue() { - if (enumValueBuilder_ == null) { - if (kindCase_ == 6) { - return (com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) kind_; - } - return com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance(); - } else { - if (kindCase_ == 6) { - return enumValueBuilder_.getMessage(); - } - return com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Holds the value for a tag field with enum type. This value must be
-     * one of the allowed values in the definition of this enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - */ - public Builder setEnumValue(com.google.cloud.datacatalog.v1beta1.TagField.EnumValue value) { - if (enumValueBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - kind_ = value; - onChanged(); - } else { - enumValueBuilder_.setMessage(value); - } - kindCase_ = 6; - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with enum type. This value must be
-     * one of the allowed values in the definition of this enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - */ - public Builder setEnumValue( - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.Builder builderForValue) { - if (enumValueBuilder_ == null) { - kind_ = builderForValue.build(); - onChanged(); - } else { - enumValueBuilder_.setMessage(builderForValue.build()); - } - kindCase_ = 6; - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with enum type. This value must be
-     * one of the allowed values in the definition of this enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - */ - public Builder mergeEnumValue(com.google.cloud.datacatalog.v1beta1.TagField.EnumValue value) { - if (enumValueBuilder_ == null) { - if (kindCase_ == 6 - && kind_ - != com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance()) { - kind_ = - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.newBuilder( - (com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) kind_) - .mergeFrom(value) - .buildPartial(); - } else { - kind_ = value; - } - onChanged(); - } else { - if (kindCase_ == 6) { - enumValueBuilder_.mergeFrom(value); - } else { - enumValueBuilder_.setMessage(value); - } - } - kindCase_ = 6; - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with enum type. This value must be
-     * one of the allowed values in the definition of this enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - */ - public Builder clearEnumValue() { - if (enumValueBuilder_ == null) { - if (kindCase_ == 6) { - kindCase_ = 0; - kind_ = null; - onChanged(); - } - } else { - if (kindCase_ == 6) { - kindCase_ = 0; - kind_ = null; - } - enumValueBuilder_.clear(); - } - return this; - } - - /** - * - * - *
-     * Holds the value for a tag field with enum type. This value must be
-     * one of the allowed values in the definition of this enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - */ - public com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.Builder getEnumValueBuilder() { - return internalGetEnumValueFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Holds the value for a tag field with enum type. This value must be
-     * one of the allowed values in the definition of this enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField.EnumValueOrBuilder - getEnumValueOrBuilder() { - if ((kindCase_ == 6) && (enumValueBuilder_ != null)) { - return enumValueBuilder_.getMessageOrBuilder(); - } else { - if (kindCase_ == 6) { - return (com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) kind_; - } - return com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance(); - } - } - - /** - * - * - *
-     * Holds the value for a tag field with enum type. This value must be
-     * one of the allowed values in the definition of this enum.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue, - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.Builder, - com.google.cloud.datacatalog.v1beta1.TagField.EnumValueOrBuilder> - internalGetEnumValueFieldBuilder() { - if (enumValueBuilder_ == null) { - if (!(kindCase_ == 6)) { - kind_ = com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.getDefaultInstance(); - } - enumValueBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue, - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue.Builder, - com.google.cloud.datacatalog.v1beta1.TagField.EnumValueOrBuilder>( - (com.google.cloud.datacatalog.v1beta1.TagField.EnumValue) kind_, - getParentForChildren(), - isClean()); - kind_ = null; - } - kindCase_ = 6; - onChanged(); - return enumValueBuilder_; - } - - private int order_; - - /** - * - * - *
-     * Output only. The order of this field with respect to other fields in this
-     * tag. It can be set in
-     * [Tag][google.cloud.datacatalog.v1beta1.TagTemplateField.order]. For
-     * example, a higher value can indicate a more important field. The value can
-     * be negative. Multiple fields can have the same order, and field orders
-     * within a tag do not have to be sequential.
-     * 
- * - * int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The order. - */ - @java.lang.Override - public int getOrder() { - return order_; - } - - /** - * - * - *
-     * Output only. The order of this field with respect to other fields in this
-     * tag. It can be set in
-     * [Tag][google.cloud.datacatalog.v1beta1.TagTemplateField.order]. For
-     * example, a higher value can indicate a more important field. The value can
-     * be negative. Multiple fields can have the same order, and field orders
-     * within a tag do not have to be sequential.
-     * 
- * - * int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The order to set. - * @return This builder for chaining. - */ - public Builder setOrder(int value) { - - order_ = value; - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The order of this field with respect to other fields in this
-     * tag. It can be set in
-     * [Tag][google.cloud.datacatalog.v1beta1.TagTemplateField.order]. For
-     * example, a higher value can indicate a more important field. The value can
-     * be negative. Multiple fields can have the same order, and field orders
-     * within a tag do not have to be sequential.
-     * 
- * - * int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearOrder() { - bitField0_ = (bitField0_ & ~0x00000040); - order_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.TagField) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.TagField) - private static final com.google.cloud.datacatalog.v1beta1.TagField DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.TagField(); - } - - public static com.google.cloud.datacatalog.v1beta1.TagField getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TagField parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagField getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagFieldOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagFieldOrBuilder.java deleted file mode 100644 index 4b34dea4e51d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagFieldOrBuilder.java +++ /dev/null @@ -1,242 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface TagFieldOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.TagField) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The display name of this field.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Output only. The display name of this field.
-   * 
- * - * string display_name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Holds the value for a tag field with double type.
-   * 
- * - * double double_value = 2; - * - * @return Whether the doubleValue field is set. - */ - boolean hasDoubleValue(); - - /** - * - * - *
-   * Holds the value for a tag field with double type.
-   * 
- * - * double double_value = 2; - * - * @return The doubleValue. - */ - double getDoubleValue(); - - /** - * - * - *
-   * Holds the value for a tag field with string type.
-   * 
- * - * string string_value = 3; - * - * @return Whether the stringValue field is set. - */ - boolean hasStringValue(); - - /** - * - * - *
-   * Holds the value for a tag field with string type.
-   * 
- * - * string string_value = 3; - * - * @return The stringValue. - */ - java.lang.String getStringValue(); - - /** - * - * - *
-   * Holds the value for a tag field with string type.
-   * 
- * - * string string_value = 3; - * - * @return The bytes for stringValue. - */ - com.google.protobuf.ByteString getStringValueBytes(); - - /** - * - * - *
-   * Holds the value for a tag field with boolean type.
-   * 
- * - * bool bool_value = 4; - * - * @return Whether the boolValue field is set. - */ - boolean hasBoolValue(); - - /** - * - * - *
-   * Holds the value for a tag field with boolean type.
-   * 
- * - * bool bool_value = 4; - * - * @return The boolValue. - */ - boolean getBoolValue(); - - /** - * - * - *
-   * Holds the value for a tag field with timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return Whether the timestampValue field is set. - */ - boolean hasTimestampValue(); - - /** - * - * - *
-   * Holds the value for a tag field with timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - * - * @return The timestampValue. - */ - com.google.protobuf.Timestamp getTimestampValue(); - - /** - * - * - *
-   * Holds the value for a tag field with timestamp type.
-   * 
- * - * .google.protobuf.Timestamp timestamp_value = 5; - */ - com.google.protobuf.TimestampOrBuilder getTimestampValueOrBuilder(); - - /** - * - * - *
-   * Holds the value for a tag field with enum type. This value must be
-   * one of the allowed values in the definition of this enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - * - * @return Whether the enumValue field is set. - */ - boolean hasEnumValue(); - - /** - * - * - *
-   * Holds the value for a tag field with enum type. This value must be
-   * one of the allowed values in the definition of this enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - * - * @return The enumValue. - */ - com.google.cloud.datacatalog.v1beta1.TagField.EnumValue getEnumValue(); - - /** - * - * - *
-   * Holds the value for a tag field with enum type. This value must be
-   * one of the allowed values in the definition of this enum.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.TagField.EnumValue enum_value = 6; - */ - com.google.cloud.datacatalog.v1beta1.TagField.EnumValueOrBuilder getEnumValueOrBuilder(); - - /** - * - * - *
-   * Output only. The order of this field with respect to other fields in this
-   * tag. It can be set in
-   * [Tag][google.cloud.datacatalog.v1beta1.TagTemplateField.order]. For
-   * example, a higher value can indicate a more important field. The value can
-   * be negative. Multiple fields can have the same order, and field orders
-   * within a tag do not have to be sequential.
-   * 
- * - * int32 order = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The order. - */ - int getOrder(); - - com.google.cloud.datacatalog.v1beta1.TagField.KindCase getKindCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java deleted file mode 100644 index c410a6e95563..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagName.java +++ /dev/null @@ -1,301 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 TagName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_ENTRY_GROUP_ENTRY_TAG = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String entryGroup; - private final String entry; - private final String tag; - - @Deprecated - protected TagName() { - project = null; - location = null; - entryGroup = null; - entry = null; - tag = null; - } - - private TagName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - entryGroup = Preconditions.checkNotNull(builder.getEntryGroup()); - entry = Preconditions.checkNotNull(builder.getEntry()); - tag = Preconditions.checkNotNull(builder.getTag()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public String getEntry() { - return entry; - } - - public String getTag() { - return tag; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TagName of( - String project, String location, String entryGroup, String entry, String tag) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setEntryGroup(entryGroup) - .setEntry(entry) - .setTag(tag) - .build(); - } - - public static String format( - String project, String location, String entryGroup, String entry, String tag) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setEntryGroup(entryGroup) - .setEntry(entry) - .setTag(tag) - .build() - .toString(); - } - - public static @Nullable TagName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_ENTRY_GROUP_ENTRY_TAG.validatedMatch( - formattedString, "TagName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("entry_group"), - matchMap.get("entry"), - matchMap.get("tag")); - } - - 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 TagName> values) { - List list = new ArrayList<>(values.size()); - for (TagName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_ENTRY_GROUP_ENTRY_TAG.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 (entryGroup != null) { - fieldMapBuilder.put("entry_group", entryGroup); - } - if (entry != null) { - fieldMapBuilder.put("entry", entry); - } - if (tag != null) { - fieldMapBuilder.put("tag", tag); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_ENTRY_GROUP_ENTRY_TAG.instantiate( - "project", - project, - "location", - location, - "entry_group", - entryGroup, - "entry", - entry, - "tag", - tag); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TagName that = ((TagName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.entryGroup, that.entryGroup) - && Objects.equals(this.entry, that.entry) - && Objects.equals(this.tag, that.tag); - } - 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(entryGroup); - h *= 1000003; - h ^= Objects.hashCode(entry); - h *= 1000003; - h ^= Objects.hashCode(tag); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}. - */ - public static class Builder { - private String project; - private String location; - private String entryGroup; - private String entry; - private String tag; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getEntryGroup() { - return entryGroup; - } - - public String getEntry() { - return entry; - } - - public String getTag() { - return tag; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setEntryGroup(String entryGroup) { - this.entryGroup = entryGroup; - return this; - } - - public Builder setEntry(String entry) { - this.entry = entry; - return this; - } - - public Builder setTag(String tag) { - this.tag = tag; - return this; - } - - private Builder(TagName tagName) { - this.project = tagName.project; - this.location = tagName.location; - this.entryGroup = tagName.entryGroup; - this.entry = tagName.entry; - this.tag = tagName.tag; - } - - public TagName build() { - return new TagName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java deleted file mode 100644 index 91c8fe970184..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagOrBuilder.java +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface TagOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.Tag) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. The resource name of the tag in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-   *
-   * where `tag_id` is a system-generated identifier.
-   * Note that this Tag may not actually be stored in the location in this name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. The resource name of the tag in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
-   *
-   * where `tag_id` is a system-generated identifier.
-   * Note that this Tag may not actually be stored in the location in this name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The resource name of the tag template that this tag uses.
-   * Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   *
-   * This field cannot be modified after creation.
-   * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The template. - */ - java.lang.String getTemplate(); - - /** - * - * - *
-   * Required. The resource name of the tag template that this tag uses.
-   * Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   *
-   * This field cannot be modified after creation.
-   * 
- * - * string template = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for template. - */ - com.google.protobuf.ByteString getTemplateBytes(); - - /** - * - * - *
-   * Output only. The display name of the tag template.
-   * 
- * - * string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The templateDisplayName. - */ - java.lang.String getTemplateDisplayName(); - - /** - * - * - *
-   * Output only. The display name of the tag template.
-   * 
- * - * string template_display_name = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for templateDisplayName. - */ - com.google.protobuf.ByteString getTemplateDisplayNameBytes(); - - /** - * - * - *
-   * Resources like Entry can have schemas associated with them. This scope
-   * allows users to attach tags to an individual column based on that schema.
-   *
-   * For attaching a tag to a nested column, use `.` to separate the column
-   * names. Example:
-   *
-   * * `outer_column.inner_column`
-   * 
- * - * string column = 4; - * - * @return Whether the column field is set. - */ - boolean hasColumn(); - - /** - * - * - *
-   * Resources like Entry can have schemas associated with them. This scope
-   * allows users to attach tags to an individual column based on that schema.
-   *
-   * For attaching a tag to a nested column, use `.` to separate the column
-   * names. Example:
-   *
-   * * `outer_column.inner_column`
-   * 
- * - * string column = 4; - * - * @return The column. - */ - java.lang.String getColumn(); - - /** - * - * - *
-   * Resources like Entry can have schemas associated with them. This scope
-   * allows users to attach tags to an individual column based on that schema.
-   *
-   * For attaching a tag to a nested column, use `.` to separate the column
-   * names. Example:
-   *
-   * * `outer_column.inner_column`
-   * 
- * - * string column = 4; - * - * @return The bytes for column. - */ - com.google.protobuf.ByteString getColumnBytes(); - - /** - * - * - *
-   * Required. This maps the ID of a tag field to the value of and additional
-   * information about that field. Valid field IDs are defined by the tag's
-   * template. A tag must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getFieldsCount(); - - /** - * - * - *
-   * Required. This maps the ID of a tag field to the value of and additional
-   * information about that field. Valid field IDs are defined by the tag's
-   * template. A tag must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - boolean containsFields(java.lang.String key); - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Deprecated - java.util.Map getFields(); - - /** - * - * - *
-   * Required. This maps the ID of a tag field to the value of and additional
-   * information about that field. Valid field IDs are defined by the tag's
-   * template. A tag must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.Map getFieldsMap(); - - /** - * - * - *
-   * Required. This maps the ID of a tag field to the value of and additional
-   * information about that field. Valid field IDs are defined by the tag's
-   * template. A tag must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - /* nullable */ - com.google.cloud.datacatalog.v1beta1.TagField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1beta1.TagField defaultValue); - - /** - * - * - *
-   * Required. This maps the ID of a tag field to the value of and additional
-   * information about that field. Valid field IDs are defined by the tag's
-   * template. A tag must have at least 1 field and at most 500 fields.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.TagField getFieldsOrThrow(java.lang.String key); - - com.google.cloud.datacatalog.v1beta1.Tag.ScopeCase getScopeCase(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java deleted file mode 100644 index 344cdfe6c89a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplate.java +++ /dev/null @@ -1,1730 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * A tag template defines a tag, which can have one or more typed fields.
- * The template is used to create and attach the tag to Google Cloud resources.
- * [Tag template
- * roles](https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles)
- * provide permissions to create, edit, and use the template. See, for example,
- * the [TagTemplate
- * User](https://cloud.google.com/data-catalog/docs/how-to/template-user) role,
- * which includes permission to use the tag template to tag resources.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TagTemplate} - */ -@com.google.protobuf.Generated -public final class TagTemplate extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagTemplate) - TagTemplateOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TagTemplate"); - } - - // Use TagTemplate.newBuilder() to construct. - private TagTemplate(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TagTemplate() { - name_ = ""; - displayName_ = ""; - dataplexTransferStatus_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.TagTemplate.class, - com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder.class); - } - - /** - * - * - *
-   * This enum describes TagTemplate transfer status to Dataplex service.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus} - */ - public enum DataplexTransferStatus implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Default value. TagTemplate and its tags are only visible and editable in
-     * DataCatalog.
-     * 
- * - * DATAPLEX_TRANSFER_STATUS_UNSPECIFIED = 0; - */ - DATAPLEX_TRANSFER_STATUS_UNSPECIFIED(0), - /** - * - * - *
-     * TagTemplate and its tags are auto-copied to Dataplex service.
-     * Visible in both services. Editable in DataCatalog, read-only in Dataplex.
-     * Deprecated: Individual TagTemplate migration is deprecated in favor of
-     * organization or project wide TagTemplate migration opt-in.
-     * 
- * - * MIGRATED = 1 [deprecated = true]; - */ - @java.lang.Deprecated - MIGRATED(1), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataplexTransferStatus"); - } - - /** - * - * - *
-     * Default value. TagTemplate and its tags are only visible and editable in
-     * DataCatalog.
-     * 
- * - * DATAPLEX_TRANSFER_STATUS_UNSPECIFIED = 0; - */ - public static final int DATAPLEX_TRANSFER_STATUS_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * TagTemplate and its tags are auto-copied to Dataplex service.
-     * Visible in both services. Editable in DataCatalog, read-only in Dataplex.
-     * Deprecated: Individual TagTemplate migration is deprecated in favor of
-     * organization or project wide TagTemplate migration opt-in.
-     * 
- * - * MIGRATED = 1 [deprecated = true]; - */ - @java.lang.Deprecated public static final int MIGRATED_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 DataplexTransferStatus 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 DataplexTransferStatus forNumber(int value) { - switch (value) { - case 0: - return DATAPLEX_TRANSFER_STATUS_UNSPECIFIED; - case 1: - return MIGRATED; - 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 DataplexTransferStatus findValueByNumber(int number) { - return DataplexTransferStatus.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.datacatalog.v1beta1.TagTemplate.getDescriptor().getEnumTypes().get(0); - } - - private static final DataplexTransferStatus[] VALUES = values(); - - public static DataplexTransferStatus 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 DataplexTransferStatus(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus) - } - - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. The resource name of the tag template in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   *
-   * Note that this TagTemplate and its child resources may not actually be
-   * stored in the location in this 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 resource name of the tag template in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   *
-   * Note that this TagTemplate and its child resources may not actually be
-   * stored in the location in this 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_ = ""; - - /** - * - * - *
-   * The display name for this template. Defaults to an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - - /** - * - * - *
-   * The display name for this template. Defaults to an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FIELDS_FIELD_NUMBER = 3; - - private static final class FieldsDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateField> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateField> - fields_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateField> - internalGetFields() { - if (fields_ == null) { - return com.google.protobuf.MapField.emptyMapField(FieldsDefaultEntryHolder.defaultEntry); - } - return fields_; - } - - public int getFieldsCount() { - return internalGetFields().getMap().size(); - } - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. This map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. Field IDs can contain
-   * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-   * Field IDs must be at least 1 character long and at most
-   * 64 characters long. Field IDs must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetFields().getMap().containsKey(key); - } - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getFields() { - return getFieldsMap(); - } - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. This map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. Field IDs can contain
-   * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-   * Field IDs must be at least 1 character long and at most
-   * 64 characters long. Field IDs must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map - getFieldsMap() { - return internalGetFields().getMap(); - } - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. This map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. Field IDs can contain
-   * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-   * Field IDs must be at least 1 character long and at most
-   * 64 characters long. Field IDs must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1beta1.TagTemplateField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1beta1.TagTemplateField defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetFields().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. This map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. Field IDs can contain
-   * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-   * Field IDs must be at least 1 character long and at most
-   * 64 characters long. Field IDs must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateField getFieldsOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetFields().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int DATAPLEX_TRANSFER_STATUS_FIELD_NUMBER = 7; - private int dataplexTransferStatus_ = 0; - - /** - * - * - *
-   * Output only. Transfer status of the TagTemplate
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for dataplexTransferStatus. - */ - @java.lang.Override - public int getDataplexTransferStatusValue() { - return dataplexTransferStatus_; - } - - /** - * - * - *
-   * Output only. Transfer status of the TagTemplate
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataplexTransferStatus. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus - getDataplexTransferStatus() { - com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus result = - com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus.forNumber( - dataplexTransferStatus_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus.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(displayName_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetFields(), FieldsDefaultEntryHolder.defaultEntry, 3); - if (dataplexTransferStatus_ - != com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus - .DATAPLEX_TRANSFER_STATUS_UNSPECIFIED - .getNumber()) { - output.writeEnum(7, dataplexTransferStatus_); - } - 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_); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateField> - entry : internalGetFields().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateField> - fields__ = - FieldsDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, fields__); - } - if (dataplexTransferStatus_ - != com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus - .DATAPLEX_TRANSFER_STATUS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, dataplexTransferStatus_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.TagTemplate)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.TagTemplate other = - (com.google.cloud.datacatalog.v1beta1.TagTemplate) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!internalGetFields().equals(other.internalGetFields())) return false; - if (dataplexTransferStatus_ != other.dataplexTransferStatus_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - if (!internalGetFields().getMap().isEmpty()) { - hash = (37 * hash) + FIELDS_FIELD_NUMBER; - hash = (53 * hash) + internalGetFields().hashCode(); - } - hash = (37 * hash) + DATAPLEX_TRANSFER_STATUS_FIELD_NUMBER; - hash = (53 * hash) + dataplexTransferStatus_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.TagTemplate prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 tag template defines a tag, which can have one or more typed fields.
-   * The template is used to create and attach the tag to Google Cloud resources.
-   * [Tag template
-   * roles](https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles)
-   * provide permissions to create, edit, and use the template. See, for example,
-   * the [TagTemplate
-   * User](https://cloud.google.com/data-catalog/docs/how-to/template-user) role,
-   * which includes permission to use the tag template to tag resources.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TagTemplate} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.TagTemplate) - com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMutableFields(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.TagTemplate.class, - com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.TagTemplate.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - internalGetMutableFields().clear(); - dataplexTransferStatus_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplate getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplate build() { - com.google.cloud.datacatalog.v1beta1.TagTemplate result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplate buildPartial() { - com.google.cloud.datacatalog.v1beta1.TagTemplate result = - new com.google.cloud.datacatalog.v1beta1.TagTemplate(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.TagTemplate 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.fields_ = internalGetFields().build(FieldsDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.dataplexTransferStatus_ = dataplexTransferStatus_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.TagTemplate) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.TagTemplate) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.TagTemplate other) { - if (other == com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - bitField0_ |= 0x00000002; - onChanged(); - } - internalGetMutableFields().mergeFrom(other.internalGetFields()); - bitField0_ |= 0x00000004; - if (other.dataplexTransferStatus_ != 0) { - setDataplexTransferStatusValue(other.getDataplexTransferStatusValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateField> - fields__ = - input.readMessage( - FieldsDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableFields() - .ensureBuilderMap() - .put(fields__.getKey(), fields__.getValue()); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 56: - { - dataplexTransferStatus_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 56 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - - /** - * - * - *
-     * Identifier. The resource name of the tag template in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     *
-     * Note that this TagTemplate and its child resources may not actually be
-     * stored in the location in this 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 resource name of the tag template in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     *
-     * Note that this TagTemplate and its child resources may not actually be
-     * stored in the location in this 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 resource name of the tag template in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     *
-     * Note that this TagTemplate and its child resources may not actually be
-     * stored in the location in this 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 resource name of the tag template in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     *
-     * Note that this TagTemplate and its child resources may not actually be
-     * stored in the location in this 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 resource name of the tag template in URL format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-     *
-     * Note that this TagTemplate and its child resources may not actually be
-     * stored in the location in this 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_ = ""; - - /** - * - * - *
-     * The display name for this template. Defaults to an empty string.
-     * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The display name for this template. Defaults to an empty string.
-     * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The display name for this template. Defaults to an empty string.
-     * 
- * - * string display_name = 2; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The display name for this template. Defaults to an empty string.
-     * 
- * - * string display_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * The display name for this template. Defaults to an empty string.
-     * 
- * - * string display_name = 2; - * - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private static final class FieldsConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder, - com.google.cloud.datacatalog.v1beta1.TagTemplateField> { - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateField build( - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder val) { - if (val instanceof com.google.cloud.datacatalog.v1beta1.TagTemplateField) { - return (com.google.cloud.datacatalog.v1beta1.TagTemplateField) val; - } - return ((com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateField> - defaultEntry() { - return FieldsDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final FieldsConverter fieldsConverter = new FieldsConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder, - com.google.cloud.datacatalog.v1beta1.TagTemplateField, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder> - fields_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder, - com.google.cloud.datacatalog.v1beta1.TagTemplateField, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder> - internalGetFields() { - if (fields_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); - } - return fields_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder, - com.google.cloud.datacatalog.v1beta1.TagTemplateField, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder> - internalGetMutableFields() { - if (fields_ == null) { - fields_ = new com.google.protobuf.MapFieldBuilder<>(fieldsConverter); - } - bitField0_ |= 0x00000004; - onChanged(); - return fields_; - } - - public int getFieldsCount() { - return internalGetFields().ensureBuilderMap().size(); - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. This map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. Field IDs can contain
-     * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-     * Field IDs must be at least 1 character long and at most
-     * 64 characters long. Field IDs must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public boolean containsFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetFields().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getFields() { - return getFieldsMap(); - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. This map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. Field IDs can contain
-     * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-     * Field IDs must be at least 1 character long and at most
-     * 64 characters long. Field IDs must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public java.util.Map - getFieldsMap() { - return internalGetFields().getImmutableMap(); - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. This map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. Field IDs can contain
-     * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-     * Field IDs must be at least 1 character long and at most
-     * 64 characters long. Field IDs must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1beta1.TagTemplateField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1beta1.TagTemplateField defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> - map = internalGetMutableFields().ensureBuilderMap(); - return map.containsKey(key) ? fieldsConverter.build(map.get(key)) : defaultValue; - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. This map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. Field IDs can contain
-     * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-     * Field IDs must be at least 1 character long and at most
-     * 64 characters long. Field IDs must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateField getFieldsOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> - map = internalGetMutableFields().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return fieldsConverter.build(map.get(key)); - } - - public Builder clearFields() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableFields().clear(); - return this; - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. This map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. Field IDs can contain
-     * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-     * Field IDs must be at least 1 character long and at most
-     * 64 characters long. Field IDs must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder removeFields(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableFields().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableFields() { - bitField0_ |= 0x00000004; - return internalGetMutableFields().ensureMessageMap(); - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. This map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. Field IDs can contain
-     * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-     * Field IDs must be at least 1 character long and at most
-     * 64 characters long. Field IDs must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putFields( - java.lang.String key, com.google.cloud.datacatalog.v1beta1.TagTemplateField value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableFields().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000004; - return this; - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. This map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. Field IDs can contain
-     * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-     * Field IDs must be at least 1 character long and at most
-     * 64 characters long. Field IDs must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder putAllFields( - java.util.Map - values) { - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateField> - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableFields().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000004; - return this; - } - - /** - * - * - *
-     * Required. Map of tag template field IDs to the settings for the field.
-     * This map is an exhaustive list of the allowed fields. This map must contain
-     * at least one field and at most 500 fields.
-     *
-     * The keys to this map are tag template field IDs. Field IDs can contain
-     * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-     * Field IDs must be at least 1 character long and at most
-     * 64 characters long. Field IDs must start with a letter or underscore.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder putFieldsBuilderIfAbsent( - java.lang.String key) { - java.util.Map< - java.lang.String, com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> - builderMap = internalGetMutableFields().ensureBuilderMap(); - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.datacatalog.v1beta1.TagTemplateField.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.datacatalog.v1beta1.TagTemplateField) { - entry = ((com.google.cloud.datacatalog.v1beta1.TagTemplateField) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder) entry; - } - - private int dataplexTransferStatus_ = 0; - - /** - * - * - *
-     * Output only. Transfer status of the TagTemplate
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for dataplexTransferStatus. - */ - @java.lang.Override - public int getDataplexTransferStatusValue() { - return dataplexTransferStatus_; - } - - /** - * - * - *
-     * Output only. Transfer status of the TagTemplate
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The enum numeric value on the wire for dataplexTransferStatus to set. - * @return This builder for chaining. - */ - public Builder setDataplexTransferStatusValue(int value) { - dataplexTransferStatus_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Transfer status of the TagTemplate
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataplexTransferStatus. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus - getDataplexTransferStatus() { - com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus result = - com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus.forNumber( - dataplexTransferStatus_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus.UNRECOGNIZED - : result; - } - - /** - * - * - *
-     * Output only. Transfer status of the TagTemplate
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The dataplexTransferStatus to set. - * @return This builder for chaining. - */ - public Builder setDataplexTransferStatus( - com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - dataplexTransferStatus_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Transfer status of the TagTemplate
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearDataplexTransferStatus() { - bitField0_ = (bitField0_ & ~0x00000008); - dataplexTransferStatus_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.TagTemplate) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.TagTemplate) - private static final com.google.cloud.datacatalog.v1beta1.TagTemplate DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.TagTemplate(); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplate getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TagTemplate parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplate getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java deleted file mode 100644 index d9367aa5716b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateField.java +++ /dev/null @@ -1,1552 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * The template for an individual field within a tag template.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TagTemplateField} - */ -@com.google.protobuf.Generated -public final class TagTemplateField extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.TagTemplateField) - TagTemplateFieldOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TagTemplateField"); - } - - // Use TagTemplateField.newBuilder() to construct. - private TagTemplateField(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TagTemplateField() { - name_ = ""; - displayName_ = ""; - description_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.TagTemplateField.class, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Output only. Identifier. The resource name of the tag template field in URL
-   * format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
-   *
-   * Note that this TagTemplateField may not actually be stored in the location
-   * in this name.
-   * 
- * - * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The resource name of the tag template field in URL
-   * format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
-   *
-   * Note that this TagTemplateField may not actually be stored in the location
-   * in this name.
-   * 
- * - * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.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 DISPLAY_NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object displayName_ = ""; - - /** - * - * - *
-   * The display name for this field. Defaults to an empty string.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - - /** - * - * - *
-   * The display name for this field. Defaults to an empty string.
-   * 
- * - * string display_name = 1; - * - * @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 TYPE_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1beta1.FieldType type_; - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the type field is set. - */ - @java.lang.Override - public boolean hasType() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldType getType() { - return type_ == null - ? com.google.cloud.datacatalog.v1beta1.FieldType.getDefaultInstance() - : type_; - } - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.FieldTypeOrBuilder getTypeOrBuilder() { - return type_ == null - ? com.google.cloud.datacatalog.v1beta1.FieldType.getDefaultInstance() - : type_; - } - - public static final int IS_REQUIRED_FIELD_NUMBER = 3; - private boolean isRequired_ = false; - - /** - * - * - *
-   * Whether this is a required field. Defaults to false.
-   * 
- * - * bool is_required = 3; - * - * @return The isRequired. - */ - @java.lang.Override - public boolean getIsRequired() { - return isRequired_; - } - - public static final int DESCRIPTION_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
-   * The description for this field. Defaults to an empty string.
-   * 
- * - * string description = 4; - * - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - - /** - * - * - *
-   * The description for this field. Defaults to an empty string.
-   * 
- * - * string description = 4; - * - * @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 ORDER_FIELD_NUMBER = 5; - private int order_ = 0; - - /** - * - * - *
-   * The order of this field with respect to other fields in this tag
-   * template.  A higher value indicates a more important field. The value can
-   * be negative. Multiple fields can have the same order, and field orders
-   * within a tag do not have to be sequential.
-   * 
- * - * int32 order = 5; - * - * @return The order. - */ - @java.lang.Override - public int getOrder() { - return order_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return 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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getType()); - } - if (isRequired_ != false) { - output.writeBool(3, isRequired_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); - } - if (order_ != 0) { - output.writeInt32(5, order_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, 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(displayName_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, displayName_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getType()); - } - if (isRequired_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, isRequired_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); - } - if (order_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(5, order_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(6, 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.datacatalog.v1beta1.TagTemplateField)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.TagTemplateField other = - (com.google.cloud.datacatalog.v1beta1.TagTemplateField) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (hasType() != other.hasType()) return false; - if (hasType()) { - if (!getType().equals(other.getType())) return false; - } - if (getIsRequired() != other.getIsRequired()) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getOrder() != other.getOrder()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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(); - if (hasType()) { - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + getType().hashCode(); - } - hash = (37 * hash) + IS_REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsRequired()); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + ORDER_FIELD_NUMBER; - hash = (53 * hash) + getOrder(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.TagTemplateField prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 template for an individual field within a tag template.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.TagTemplateField} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.TagTemplateField) - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.TagTemplateField.class, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.TagTemplateField.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; - name_ = ""; - displayName_ = ""; - type_ = null; - if (typeBuilder_ != null) { - typeBuilder_.dispose(); - typeBuilder_ = null; - } - isRequired_ = false; - description_ = ""; - order_ = 0; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Tags - .internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateField getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateField build() { - com.google.cloud.datacatalog.v1beta1.TagTemplateField result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateField buildPartial() { - com.google.cloud.datacatalog.v1beta1.TagTemplateField result = - new com.google.cloud.datacatalog.v1beta1.TagTemplateField(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.TagTemplateField result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.displayName_ = displayName_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.type_ = typeBuilder_ == null ? type_ : typeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.isRequired_ = isRequired_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.order_ = order_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.TagTemplateField) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.TagTemplateField) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.TagTemplateField other) { - if (other == com.google.cloud.datacatalog.v1beta1.TagTemplateField.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.hasType()) { - mergeType(other.getType()); - } - if (other.getIsRequired() != false) { - setIsRequired(other.getIsRequired()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (other.getOrder() != 0) { - setOrder(other.getOrder()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - 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_ |= 0x00000002; - break; - } // case 10 - case 18: - { - input.readMessage(internalGetTypeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 24: - { - isRequired_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 24 - case 34: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 34 - case 40: - { - order_ = input.readInt32(); - bitField0_ |= 0x00000020; - break; - } // case 40 - case 50: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - 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_ = ""; - - /** - * - * - *
-     * Output only. Identifier. The resource name of the tag template field in URL
-     * format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
-     *
-     * Note that this TagTemplateField may not actually be stored in the location
-     * in this name.
-     * 
- * - * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The resource name of the tag template field in URL
-     * format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
-     *
-     * Note that this TagTemplateField may not actually be stored in the location
-     * in this name.
-     * 
- * - * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The resource name of the tag template field in URL
-     * format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
-     *
-     * Note that this TagTemplateField may not actually be stored in the location
-     * in this name.
-     * 
- * - * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The resource name of the tag template field in URL
-     * format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
-     *
-     * Note that this TagTemplateField may not actually be stored in the location
-     * in this name.
-     * 
- * - * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The resource name of the tag template field in URL
-     * format. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
-     *
-     * Note that this TagTemplateField may not actually be stored in the location
-     * in this name.
-     * 
- * - * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.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 displayName_ = ""; - - /** - * - * - *
-     * The display name for this field. Defaults to an empty string.
-     * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The display name for this field. Defaults to an empty string.
-     * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The display name for this field. Defaults to an empty string.
-     * 
- * - * string display_name = 1; - * - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - displayName_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The display name for this field. Defaults to an empty string.
-     * 
- * - * string display_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * The display name for this field. Defaults to an empty string.
-     * 
- * - * string display_name = 1; - * - * @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.datacatalog.v1beta1.FieldType type_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.FieldType, - com.google.cloud.datacatalog.v1beta1.FieldType.Builder, - com.google.cloud.datacatalog.v1beta1.FieldTypeOrBuilder> - typeBuilder_; - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the type field is set. - */ - public boolean hasType() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - public com.google.cloud.datacatalog.v1beta1.FieldType getType() { - if (typeBuilder_ == null) { - return type_ == null - ? com.google.cloud.datacatalog.v1beta1.FieldType.getDefaultInstance() - : type_; - } else { - return typeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setType(com.google.cloud.datacatalog.v1beta1.FieldType value) { - if (typeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - type_ = value; - } else { - typeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setType(com.google.cloud.datacatalog.v1beta1.FieldType.Builder builderForValue) { - if (typeBuilder_ == null) { - type_ = builderForValue.build(); - } else { - typeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeType(com.google.cloud.datacatalog.v1beta1.FieldType value) { - if (typeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && type_ != null - && type_ != com.google.cloud.datacatalog.v1beta1.FieldType.getDefaultInstance()) { - getTypeBuilder().mergeFrom(value); - } else { - type_ = value; - } - } else { - typeBuilder_.mergeFrom(value); - } - if (type_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearType() { - bitField0_ = (bitField0_ & ~0x00000004); - type_ = null; - if (typeBuilder_ != null) { - typeBuilder_.dispose(); - typeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.FieldType.Builder getTypeBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetTypeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.FieldTypeOrBuilder getTypeOrBuilder() { - if (typeBuilder_ != null) { - return typeBuilder_.getMessageOrBuilder(); - } else { - return type_ == null - ? com.google.cloud.datacatalog.v1beta1.FieldType.getDefaultInstance() - : type_; - } - } - - /** - * - * - *
-     * Required. The type of value this tag field can contain.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.FieldType, - com.google.cloud.datacatalog.v1beta1.FieldType.Builder, - com.google.cloud.datacatalog.v1beta1.FieldTypeOrBuilder> - internalGetTypeFieldBuilder() { - if (typeBuilder_ == null) { - typeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.FieldType, - com.google.cloud.datacatalog.v1beta1.FieldType.Builder, - com.google.cloud.datacatalog.v1beta1.FieldTypeOrBuilder>( - getType(), getParentForChildren(), isClean()); - type_ = null; - } - return typeBuilder_; - } - - private boolean isRequired_; - - /** - * - * - *
-     * Whether this is a required field. Defaults to false.
-     * 
- * - * bool is_required = 3; - * - * @return The isRequired. - */ - @java.lang.Override - public boolean getIsRequired() { - return isRequired_; - } - - /** - * - * - *
-     * Whether this is a required field. Defaults to false.
-     * 
- * - * bool is_required = 3; - * - * @param value The isRequired to set. - * @return This builder for chaining. - */ - public Builder setIsRequired(boolean value) { - - isRequired_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Whether this is a required field. Defaults to false.
-     * 
- * - * bool is_required = 3; - * - * @return This builder for chaining. - */ - public Builder clearIsRequired() { - bitField0_ = (bitField0_ & ~0x00000008); - isRequired_ = false; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - - /** - * - * - *
-     * The description for this field. Defaults to an empty string.
-     * 
- * - * string description = 4; - * - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * The description for this field. Defaults to an empty string.
-     * 
- * - * string description = 4; - * - * @return The bytes for description. - */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * The description for this field. Defaults to an empty string.
-     * 
- * - * string description = 4; - * - * @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; - } - - /** - * - * - *
-     * The description for this field. Defaults to an empty string.
-     * 
- * - * string description = 4; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - /** - * - * - *
-     * The description for this field. Defaults to an empty string.
-     * 
- * - * string description = 4; - * - * @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 order_; - - /** - * - * - *
-     * The order of this field with respect to other fields in this tag
-     * template.  A higher value indicates a more important field. The value can
-     * be negative. Multiple fields can have the same order, and field orders
-     * within a tag do not have to be sequential.
-     * 
- * - * int32 order = 5; - * - * @return The order. - */ - @java.lang.Override - public int getOrder() { - return order_; - } - - /** - * - * - *
-     * The order of this field with respect to other fields in this tag
-     * template.  A higher value indicates a more important field. The value can
-     * be negative. Multiple fields can have the same order, and field orders
-     * within a tag do not have to be sequential.
-     * 
- * - * int32 order = 5; - * - * @param value The order to set. - * @return This builder for chaining. - */ - public Builder setOrder(int value) { - - order_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
-     * The order of this field with respect to other fields in this tag
-     * template.  A higher value indicates a more important field. The value can
-     * be negative. Multiple fields can have the same order, and field orders
-     * within a tag do not have to be sequential.
-     * 
- * - * int32 order = 5; - * - * @return This builder for chaining. - */ - public Builder clearOrder() { - bitField0_ = (bitField0_ & ~0x00000020); - order_ = 0; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.TagTemplateField) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.TagTemplateField) - private static final com.google.cloud.datacatalog.v1beta1.TagTemplateField DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.TagTemplateField(); - } - - public static com.google.cloud.datacatalog.v1beta1.TagTemplateField getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TagTemplateField parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateField getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldEnumValueName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldEnumValueName.java deleted file mode 100644 index 724447bd2087..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldEnumValueName.java +++ /dev/null @@ -1,312 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 TagTemplateFieldEnumValueName implements ResourceName { - private static final PathTemplate - PROJECT_LOCATION_TAG_TEMPLATE_TAG_TEMPLATE_FIELD_ID_ENUM_VALUE_DISPLAY_NAME = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String tagTemplate; - private final String tagTemplateFieldId; - private final String enumValueDisplayName; - - @Deprecated - protected TagTemplateFieldEnumValueName() { - project = null; - location = null; - tagTemplate = null; - tagTemplateFieldId = null; - enumValueDisplayName = null; - } - - private TagTemplateFieldEnumValueName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - tagTemplate = Preconditions.checkNotNull(builder.getTagTemplate()); - tagTemplateFieldId = Preconditions.checkNotNull(builder.getTagTemplateFieldId()); - enumValueDisplayName = Preconditions.checkNotNull(builder.getEnumValueDisplayName()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public String getTagTemplateFieldId() { - return tagTemplateFieldId; - } - - public String getEnumValueDisplayName() { - return enumValueDisplayName; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TagTemplateFieldEnumValueName of( - String project, - String location, - String tagTemplate, - String tagTemplateFieldId, - String enumValueDisplayName) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .setTagTemplateFieldId(tagTemplateFieldId) - .setEnumValueDisplayName(enumValueDisplayName) - .build(); - } - - public static String format( - String project, - String location, - String tagTemplate, - String tagTemplateFieldId, - String enumValueDisplayName) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .setTagTemplateFieldId(tagTemplateFieldId) - .setEnumValueDisplayName(enumValueDisplayName) - .build() - .toString(); - } - - public static @Nullable TagTemplateFieldEnumValueName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TAG_TEMPLATE_TAG_TEMPLATE_FIELD_ID_ENUM_VALUE_DISPLAY_NAME.validatedMatch( - formattedString, - "TagTemplateFieldEnumValueName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("tag_template"), - matchMap.get("tag_template_field_id"), - matchMap.get("enum_value_display_name")); - } - - 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 TagTemplateFieldEnumValueName> values) { - List list = new ArrayList<>(values.size()); - for (TagTemplateFieldEnumValueName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TAG_TEMPLATE_TAG_TEMPLATE_FIELD_ID_ENUM_VALUE_DISPLAY_NAME.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 (tagTemplate != null) { - fieldMapBuilder.put("tag_template", tagTemplate); - } - if (tagTemplateFieldId != null) { - fieldMapBuilder.put("tag_template_field_id", tagTemplateFieldId); - } - if (enumValueDisplayName != null) { - fieldMapBuilder.put("enum_value_display_name", enumValueDisplayName); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TAG_TEMPLATE_TAG_TEMPLATE_FIELD_ID_ENUM_VALUE_DISPLAY_NAME.instantiate( - "project", - project, - "location", - location, - "tag_template", - tagTemplate, - "tag_template_field_id", - tagTemplateFieldId, - "enum_value_display_name", - enumValueDisplayName); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TagTemplateFieldEnumValueName that = ((TagTemplateFieldEnumValueName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.tagTemplate, that.tagTemplate) - && Objects.equals(this.tagTemplateFieldId, that.tagTemplateFieldId) - && Objects.equals(this.enumValueDisplayName, that.enumValueDisplayName); - } - 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(tagTemplate); - h *= 1000003; - h ^= Objects.hashCode(tagTemplateFieldId); - h *= 1000003; - h ^= Objects.hashCode(enumValueDisplayName); - return h; - } - - /** - * Builder for - * projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}. - */ - public static class Builder { - private String project; - private String location; - private String tagTemplate; - private String tagTemplateFieldId; - private String enumValueDisplayName; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public String getTagTemplateFieldId() { - return tagTemplateFieldId; - } - - public String getEnumValueDisplayName() { - return enumValueDisplayName; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTagTemplate(String tagTemplate) { - this.tagTemplate = tagTemplate; - return this; - } - - public Builder setTagTemplateFieldId(String tagTemplateFieldId) { - this.tagTemplateFieldId = tagTemplateFieldId; - return this; - } - - public Builder setEnumValueDisplayName(String enumValueDisplayName) { - this.enumValueDisplayName = enumValueDisplayName; - return this; - } - - private Builder(TagTemplateFieldEnumValueName tagTemplateFieldEnumValueName) { - this.project = tagTemplateFieldEnumValueName.project; - this.location = tagTemplateFieldEnumValueName.location; - this.tagTemplate = tagTemplateFieldEnumValueName.tagTemplate; - this.tagTemplateFieldId = tagTemplateFieldEnumValueName.tagTemplateFieldId; - this.enumValueDisplayName = tagTemplateFieldEnumValueName.enumValueDisplayName; - } - - public TagTemplateFieldEnumValueName build() { - return new TagTemplateFieldEnumValueName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java deleted file mode 100644 index fd6e5e740d0a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldName.java +++ /dev/null @@ -1,263 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 TagTemplateFieldName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_TAG_TEMPLATE_FIELD = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String tagTemplate; - private final String field; - - @Deprecated - protected TagTemplateFieldName() { - project = null; - location = null; - tagTemplate = null; - field = null; - } - - private TagTemplateFieldName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - tagTemplate = Preconditions.checkNotNull(builder.getTagTemplate()); - field = Preconditions.checkNotNull(builder.getField()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public String getField() { - return field; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TagTemplateFieldName of( - String project, String location, String tagTemplate, String field) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .setField(field) - .build(); - } - - public static String format(String project, String location, String tagTemplate, String field) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .setField(field) - .build() - .toString(); - } - - public static @Nullable TagTemplateFieldName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TAG_TEMPLATE_FIELD.validatedMatch( - formattedString, "TagTemplateFieldName.parse: formattedString not in valid format"); - return of( - matchMap.get("project"), - matchMap.get("location"), - matchMap.get("tag_template"), - matchMap.get("field")); - } - - 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 TagTemplateFieldName> values) { - List list = new ArrayList<>(values.size()); - for (TagTemplateFieldName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TAG_TEMPLATE_FIELD.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 (tagTemplate != null) { - fieldMapBuilder.put("tag_template", tagTemplate); - } - if (field != null) { - fieldMapBuilder.put("field", field); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TAG_TEMPLATE_FIELD.instantiate( - "project", project, "location", location, "tag_template", tagTemplate, "field", field); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TagTemplateFieldName that = ((TagTemplateFieldName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.tagTemplate, that.tagTemplate) - && Objects.equals(this.field, that.field); - } - 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(tagTemplate); - h *= 1000003; - h ^= Objects.hashCode(field); - return h; - } - - /** - * Builder for projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}. - */ - public static class Builder { - private String project; - private String location; - private String tagTemplate; - private String field; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public String getField() { - return field; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTagTemplate(String tagTemplate) { - this.tagTemplate = tagTemplate; - return this; - } - - public Builder setField(String field) { - this.field = field; - return this; - } - - private Builder(TagTemplateFieldName tagTemplateFieldName) { - this.project = tagTemplateFieldName.project; - this.location = tagTemplateFieldName.location; - this.tagTemplate = tagTemplateFieldName.tagTemplate; - this.field = tagTemplateFieldName.field; - } - - public TagTemplateFieldName build() { - return new TagTemplateFieldName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java deleted file mode 100644 index 7e265857b4bf..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateFieldOrBuilder.java +++ /dev/null @@ -1,194 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface TagTemplateFieldOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.TagTemplateField) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. Identifier. The resource name of the tag template field in URL
-   * format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
-   *
-   * Note that this TagTemplateField may not actually be stored in the location
-   * in this name.
-   * 
- * - * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Output only. Identifier. The resource name of the tag template field in URL
-   * format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
-   *
-   * Note that this TagTemplateField may not actually be stored in the location
-   * in this name.
-   * 
- * - * - * string name = 6 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The display name for this field. Defaults to an empty string.
-   * 
- * - * string display_name = 1; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * The display name for this field. Defaults to an empty string.
-   * 
- * - * string display_name = 1; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the type field is set. - */ - boolean hasType(); - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The type. - */ - com.google.cloud.datacatalog.v1beta1.FieldType getType(); - - /** - * - * - *
-   * Required. The type of value this tag field can contain.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.FieldType type = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.FieldTypeOrBuilder getTypeOrBuilder(); - - /** - * - * - *
-   * Whether this is a required field. Defaults to false.
-   * 
- * - * bool is_required = 3; - * - * @return The isRequired. - */ - boolean getIsRequired(); - - /** - * - * - *
-   * The description for this field. Defaults to an empty string.
-   * 
- * - * string description = 4; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * The description for this field. Defaults to an empty string.
-   * 
- * - * string description = 4; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * The order of this field with respect to other fields in this tag
-   * template.  A higher value indicates a more important field. The value can
-   * be negative. Multiple fields can have the same order, and field orders
-   * within a tag do not have to be sequential.
-   * 
- * - * int32 order = 5; - * - * @return The order. - */ - int getOrder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java deleted file mode 100644 index d62c001c3247..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateName.java +++ /dev/null @@ -1,230 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 TagTemplateName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_TAG_TEMPLATE = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/tagTemplates/{tag_template}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String tagTemplate; - - @Deprecated - protected TagTemplateName() { - project = null; - location = null; - tagTemplate = null; - } - - private TagTemplateName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - tagTemplate = Preconditions.checkNotNull(builder.getTagTemplate()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TagTemplateName of(String project, String location, String tagTemplate) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .build(); - } - - public static String format(String project, String location, String tagTemplate) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTagTemplate(tagTemplate) - .build() - .toString(); - } - - public static @Nullable TagTemplateName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TAG_TEMPLATE.validatedMatch( - formattedString, "TagTemplateName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("tag_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 TagTemplateName> values) { - List list = new ArrayList<>(values.size()); - for (TagTemplateName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TAG_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 (tagTemplate != null) { - fieldMapBuilder.put("tag_template", tagTemplate); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TAG_TEMPLATE.instantiate( - "project", project, "location", location, "tag_template", tagTemplate); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TagTemplateName that = ((TagTemplateName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.tagTemplate, that.tagTemplate); - } - 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(tagTemplate); - return h; - } - - /** Builder for projects/{project}/locations/{location}/tagTemplates/{tag_template}. */ - public static class Builder { - private String project; - private String location; - private String tagTemplate; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTagTemplate() { - return tagTemplate; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTagTemplate(String tagTemplate) { - this.tagTemplate = tagTemplate; - return this; - } - - private Builder(TagTemplateName tagTemplateName) { - this.project = tagTemplateName.project; - this.location = tagTemplateName.location; - this.tagTemplate = tagTemplateName.tagTemplate; - } - - public TagTemplateName build() { - return new TagTemplateName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java deleted file mode 100644 index a921abb9d2cf..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TagTemplateOrBuilder.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface TagTemplateOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.TagTemplate) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. The resource name of the tag template in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   *
-   * Note that this TagTemplate and its child resources may not actually be
-   * stored in the location in this name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. The resource name of the tag template in URL format. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
-   *
-   * Note that this TagTemplate and its child resources may not actually be
-   * stored in the location in this name.
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * The display name for this template. Defaults to an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * The display name for this template. Defaults to an empty string.
-   * 
- * - * string display_name = 2; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. This map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. Field IDs can contain
-   * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-   * Field IDs must be at least 1 character long and at most
-   * 64 characters long. Field IDs must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - int getFieldsCount(); - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. This map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. Field IDs can contain
-   * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-   * Field IDs must be at least 1 character long and at most
-   * 64 characters long. Field IDs must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - boolean containsFields(java.lang.String key); - - /** Use {@link #getFieldsMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getFields(); - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. This map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. Field IDs can contain
-   * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-   * Field IDs must be at least 1 character long and at most
-   * 64 characters long. Field IDs must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - java.util.Map - getFieldsMap(); - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. This map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. Field IDs can contain
-   * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-   * Field IDs must be at least 1 character long and at most
-   * 64 characters long. Field IDs must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - /* nullable */ - com.google.cloud.datacatalog.v1beta1.TagTemplateField getFieldsOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1beta1.TagTemplateField defaultValue); - - /** - * - * - *
-   * Required. Map of tag template field IDs to the settings for the field.
-   * This map is an exhaustive list of the allowed fields. This map must contain
-   * at least one field and at most 500 fields.
-   *
-   * The keys to this map are tag template field IDs. Field IDs can contain
-   * letters (both uppercase and lowercase), numbers (0-9) and underscores (_).
-   * Field IDs must be at least 1 character long and at most
-   * 64 characters long. Field IDs must start with a letter or underscore.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.TagTemplateField> fields = 3 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.TagTemplateField getFieldsOrThrow(java.lang.String key); - - /** - * - * - *
-   * Output only. Transfer status of the TagTemplate
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for dataplexTransferStatus. - */ - int getDataplexTransferStatusValue(); - - /** - * - * - *
-   * Output only. Transfer status of the TagTemplate
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus dataplex_transfer_status = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The dataplexTransferStatus. - */ - com.google.cloud.datacatalog.v1beta1.TagTemplate.DataplexTransferStatus - getDataplexTransferStatus(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java deleted file mode 100644 index 1dfead166365..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Tags.java +++ /dev/null @@ -1,279 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/tags.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public final class Tags extends com.google.protobuf.GeneratedFile { - private Tags() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Tags"); - } - - 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_datacatalog_v1beta1_Tag_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_Tag_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_Tag_FieldsEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_Tag_FieldsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_TagField_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_TagField_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_FieldType_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_FieldType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_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/datacatalog/v1beta1/tags.proto\022 google.cloud.datacatalog.v1beta1\032" - + "\037google/api/field_behavior.proto\032\031google" - + "/api/resource.proto\032\037google/protobuf/timestamp.proto\"\225\003\n" - + "\003Tag\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\025\n" - + "\010template\030\002 \001(\tB\003\340A\002\022\"\n" - + "\025template_display_name\030\005 \001(\tB\003\340A\003\022\020\n" - + "\006column\030\004 \001(\tH\000\022F\n" - + "\006fields\030\003" - + " \003(\01321.google.cloud.datacatalog.v1beta1.Tag.FieldsEntryB\003\340A\002\032Y\n" - + "\013FieldsEntry\022\013\n" - + "\003key\030\001 \001(\t\0229\n" - + "\005value\030\002 \001(\0132*.google" - + ".cloud.datacatalog.v1beta1.TagField:\0028\001:\201\001\352A~\n" - + "\036datacatalog.googleapis.com/Tag\022\\projects/{project}/locations/{location}/e" - + "ntryGroups/{entry_group}/entries/{entry}/tags/{tag}B\007\n" - + "\005scope\"\255\002\n" - + "\010TagField\022\031\n" - + "\014display_name\030\001 \001(\tB\003\340A\003\022\026\n" - + "\014double_value\030\002 \001(\001H\000\022\026\n" - + "\014string_value\030\003 \001(\tH\000\022\024\n\n" - + "bool_value\030\004 \001(\010H\000\0225\n" - + "\017timestamp_value\030\005 \001(\0132\032.google.protobuf.TimestampH\000\022J\n\n" - + "enum_value\030\006" - + " \001(\01324.google.cloud.datacatalog.v1beta1.TagField.EnumValueH\000\022\022\n" - + "\005order\030\007 \001(\005B\003\340A\003\032!\n" - + "\tEnumValue\022\024\n" - + "\014display_name\030\001 \001(\tB\006\n" - + "\004kind\"\236\004\n" - + "\013TagTemplate\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" - + "\014display_name\030\002 \001(\t\022N\n" - + "\006fields\030\003 \003(\01329." - + "google.cloud.datacatalog.v1beta1.TagTemplate.FieldsEntryB\003\340A\002\022k\n" - + "\030dataplex_transfer_status\030\007 \001(\0162D.google.cloud.datacatal" - + "og.v1beta1.TagTemplate.DataplexTransferStatusB\003\340A\003\032a\n" - + "\013FieldsEntry\022\013\n" - + "\003key\030\001 \001(\t\022A\n" - + "\005value\030\002" - + " \001(\01322.google.cloud.datacatalog.v1beta1.TagTemplateField:\0028\001\"T\n" - + "\026DataplexTransferStatus\022(\n" - + "$DATAPLEX_TRANSFER_STATUS_UNSPECIFIED\020\000\022\020\n" - + "\010MIGRATED\020\001\032\002\010\001:p\352Am\n" - + "&datacatalog.googleapis.com/TagTemplate" - + "\022Cprojects/{project}/locations/{location}/tagTemplates/{tag_template}\"\277\002\n" - + "\020TagTemplateField\022\024\n" - + "\004name\030\006 \001(\tB\006\340A\010\340A\003\022\024\n" - + "\014display_name\030\001 \001(\t\022>\n" - + "\004type\030\002 \001(\0132+.google.cl" - + "oud.datacatalog.v1beta1.FieldTypeB\003\340A\002\022\023\n" - + "\013is_required\030\003 \001(\010\022\023\n" - + "\013description\030\004 \001(\t\022\r\n" - + "\005order\030\005 \001(\005:\205\001\352A\201\001\n" - + "+datacatalog.googleapis.com/TagTemplateField\022Rprojects/{p" - + "roject}/locations/{location}/tagTemplates/{tag_template}/fields/{field}\"\247\003\n" - + "\tFieldType\022S\n" - + "\016primitive_type\030\001 \001(\01629.google.c" - + "loud.datacatalog.v1beta1.FieldType.PrimitiveTypeH\000\022I\n" - + "\tenum_type\030\002 \001(\01324.google.c" - + "loud.datacatalog.v1beta1.FieldType.EnumTypeH\000\032\212\001\n" - + "\010EnumType\022V\n" - + "\016allowed_values\030\001 \003" - + "(\0132>.google.cloud.datacatalog.v1beta1.FieldType.EnumType.EnumValue\032&\n" - + "\tEnumValue\022\031\n" - + "\014display_name\030\001 \001(\tB\003\340A\002\"`\n\r" - + "PrimitiveType\022\036\n" - + "\032PRIMITIVE_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006DOUBLE\020\001\022\n\n" - + "\006STRING\020\002\022\010\n" - + "\004BOOL\020\003\022\r\n" - + "\tTIMESTAMP\020\004B\013\n" - + "\ttype_declB\334\001\n" - + "$com.google.cloud.datacatalog.v1beta1P\001ZFcloud.google.com/g" - + "o/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb\252\002" - + " Google.Cloud.DataCatalog.V1Beta1\312\002 Google\\Cloud\\DataCatalog\\V1bet" - + "a1\352\002#Google::Cloud::DataCatalog::V1beta1b\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.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_Tag_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1beta1_Tag_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_Tag_descriptor, - new java.lang.String[] { - "Name", "Template", "TemplateDisplayName", "Column", "Fields", "Scope", - }); - internal_static_google_cloud_datacatalog_v1beta1_Tag_FieldsEntry_descriptor = - internal_static_google_cloud_datacatalog_v1beta1_Tag_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1beta1_Tag_FieldsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_Tag_FieldsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datacatalog_v1beta1_TagField_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1beta1_TagField_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_TagField_descriptor, - new java.lang.String[] { - "DisplayName", - "DoubleValue", - "StringValue", - "BoolValue", - "TimestampValue", - "EnumValue", - "Order", - "Kind", - }); - internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_descriptor = - internal_static_google_cloud_datacatalog_v1beta1_TagField_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_TagField_EnumValue_descriptor, - new java.lang.String[] { - "DisplayName", - }); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor = - getDescriptor().getMessageType(2); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Fields", "DataplexTransferStatus", - }); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_descriptor = - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_TagTemplate_FieldsEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_descriptor = - getDescriptor().getMessageType(3); - internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_TagTemplateField_descriptor, - new java.lang.String[] { - "Name", "DisplayName", "Type", "IsRequired", "Description", "Order", - }); - internal_static_google_cloud_datacatalog_v1beta1_FieldType_descriptor = - getDescriptor().getMessageType(4); - internal_static_google_cloud_datacatalog_v1beta1_FieldType_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_FieldType_descriptor, - new java.lang.String[] { - "PrimitiveType", "EnumType", "TypeDecl", - }); - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_descriptor = - internal_static_google_cloud_datacatalog_v1beta1_FieldType_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_descriptor, - new java.lang.String[] { - "AllowedValues", - }); - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_descriptor = - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_descriptor - .getNestedType(0); - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_FieldType_EnumType_EnumValue_descriptor, - new java.lang.String[] { - "DisplayName", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Taxonomy.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Taxonomy.java deleted file mode 100644 index 4b535efeac07..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Taxonomy.java +++ /dev/null @@ -1,3206 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * A taxonomy is a collection of policy tags that classify data along a common
- * axis. For instance a data *sensitivity* taxonomy could contain policy tags
- * denoting PII such as age, zipcode, and SSN. A data *origin* taxonomy could
- * contain policy tags to distinguish user data, employee data, partner data,
- * public data.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Taxonomy} - */ -@com.google.protobuf.Generated -public final class Taxonomy extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Taxonomy) - TaxonomyOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Taxonomy"); - } - - // Use Taxonomy.newBuilder() to construct. - private Taxonomy(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Taxonomy() { - name_ = ""; - displayName_ = ""; - description_ = ""; - activatedPolicyTypes_ = emptyIntList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.Taxonomy.class, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder.class); - } - - /** - * - * - *
-   * Defines policy types where policy tag can be used for.
-   * 
- * - * Protobuf enum {@code google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType} - */ - public enum PolicyType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified policy type.
-     * 
- * - * POLICY_TYPE_UNSPECIFIED = 0; - */ - POLICY_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * Fine grained access control policy, which enables access control on
-     * tagged resources.
-     * 
- * - * FINE_GRAINED_ACCESS_CONTROL = 1; - */ - FINE_GRAINED_ACCESS_CONTROL(1), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PolicyType"); - } - - /** - * - * - *
-     * Unspecified policy type.
-     * 
- * - * POLICY_TYPE_UNSPECIFIED = 0; - */ - public static final int POLICY_TYPE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
-     * Fine grained access control policy, which enables access control on
-     * tagged resources.
-     * 
- * - * FINE_GRAINED_ACCESS_CONTROL = 1; - */ - public static final int FINE_GRAINED_ACCESS_CONTROL_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 FINE_GRAINED_ACCESS_CONTROL; - 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.datacatalog.v1beta1.Taxonomy.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.datacatalog.v1beta1.Taxonomy.PolicyType) - } - - public interface ServiceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.Taxonomy.Service) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The Google Cloud service name.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ManagingSystem name = 1; - * - * @return The enum numeric value on the wire for name. - */ - int getNameValue(); - - /** - * - * - *
-     * The Google Cloud service name.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ManagingSystem name = 1; - * - * @return The name. - */ - com.google.cloud.datacatalog.v1beta1.ManagingSystem getName(); - - /** - * - * - *
-     * The service agent for the service.
-     * 
- * - * string identity = 2; - * - * @return The identity. - */ - java.lang.String getIdentity(); - - /** - * - * - *
-     * The service agent for the service.
-     * 
- * - * string identity = 2; - * - * @return The bytes for identity. - */ - com.google.protobuf.ByteString getIdentityBytes(); - } - - /** - * - * - *
-   * The source system of the Taxonomy.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Taxonomy.Service} - */ - public static final class Service extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.Taxonomy.Service) - ServiceOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Service"); - } - - // Use Service.newBuilder() to construct. - private Service(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Service() { - name_ = 0; - identity_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_Service_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_Service_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.class, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private int name_ = 0; - - /** - * - * - *
-     * The Google Cloud service name.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ManagingSystem name = 1; - * - * @return The enum numeric value on the wire for name. - */ - @java.lang.Override - public int getNameValue() { - return name_; - } - - /** - * - * - *
-     * The Google Cloud service name.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.ManagingSystem name = 1; - * - * @return The name. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ManagingSystem getName() { - com.google.cloud.datacatalog.v1beta1.ManagingSystem result = - com.google.cloud.datacatalog.v1beta1.ManagingSystem.forNumber(name_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.ManagingSystem.UNRECOGNIZED - : result; - } - - public static final int IDENTITY_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object identity_ = ""; - - /** - * - * - *
-     * The service agent for the service.
-     * 
- * - * string identity = 2; - * - * @return The identity. - */ - @java.lang.Override - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } - } - - /** - * - * - *
-     * The service agent for the service.
-     * 
- * - * string identity = 2; - * - * @return The bytes for identity. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - identity_ = 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 (name_ - != com.google.cloud.datacatalog.v1beta1.ManagingSystem.MANAGING_SYSTEM_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identity_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, identity_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (name_ - != com.google.cloud.datacatalog.v1beta1.ManagingSystem.MANAGING_SYSTEM_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(identity_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, identity_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.Taxonomy.Service)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service other = - (com.google.cloud.datacatalog.v1beta1.Taxonomy.Service) obj; - - if (name_ != other.name_) return false; - if (!getIdentity().equals(other.getIdentity())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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) + name_; - hash = (37 * hash) + IDENTITY_FIELD_NUMBER; - hash = (53 * hash) + getIdentity().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 source system of the Taxonomy.
-     * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Taxonomy.Service} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.Taxonomy.Service) - com.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_Service_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_Service_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.class, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = 0; - identity_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_Service_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Service getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Service build() { - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Service buildPartial() { - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service result = - new com.google.cloud.datacatalog.v1beta1.Taxonomy.Service(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.Taxonomy.Service result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.identity_ = identity_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.Taxonomy.Service) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.Taxonomy.Service) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.Taxonomy.Service other) { - if (other == com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.getDefaultInstance()) - return this; - if (other.name_ != 0) { - setNameValue(other.getNameValue()); - } - if (!other.getIdentity().isEmpty()) { - identity_ = other.identity_; - 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 8: - { - name_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - identity_ = 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 int name_ = 0; - - /** - * - * - *
-       * The Google Cloud service name.
-       * 
- * - * .google.cloud.datacatalog.v1beta1.ManagingSystem name = 1; - * - * @return The enum numeric value on the wire for name. - */ - @java.lang.Override - public int getNameValue() { - return name_; - } - - /** - * - * - *
-       * The Google Cloud service name.
-       * 
- * - * .google.cloud.datacatalog.v1beta1.ManagingSystem name = 1; - * - * @param value The enum numeric value on the wire for name to set. - * @return This builder for chaining. - */ - public Builder setNameValue(int value) { - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-       * The Google Cloud service name.
-       * 
- * - * .google.cloud.datacatalog.v1beta1.ManagingSystem name = 1; - * - * @return The name. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ManagingSystem getName() { - com.google.cloud.datacatalog.v1beta1.ManagingSystem result = - com.google.cloud.datacatalog.v1beta1.ManagingSystem.forNumber(name_); - return result == null - ? com.google.cloud.datacatalog.v1beta1.ManagingSystem.UNRECOGNIZED - : result; - } - - /** - * - * - *
-       * The Google Cloud service name.
-       * 
- * - * .google.cloud.datacatalog.v1beta1.ManagingSystem name = 1; - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(com.google.cloud.datacatalog.v1beta1.ManagingSystem value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - name_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
-       * The Google Cloud service name.
-       * 
- * - * .google.cloud.datacatalog.v1beta1.ManagingSystem name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - bitField0_ = (bitField0_ & ~0x00000001); - name_ = 0; - onChanged(); - return this; - } - - private java.lang.Object identity_ = ""; - - /** - * - * - *
-       * The service agent for the service.
-       * 
- * - * string identity = 2; - * - * @return The identity. - */ - public java.lang.String getIdentity() { - java.lang.Object ref = identity_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - identity_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-       * The service agent for the service.
-       * 
- * - * string identity = 2; - * - * @return The bytes for identity. - */ - public com.google.protobuf.ByteString getIdentityBytes() { - java.lang.Object ref = identity_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - identity_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-       * The service agent for the service.
-       * 
- * - * string identity = 2; - * - * @param value The identity to set. - * @return This builder for chaining. - */ - public Builder setIdentity(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - identity_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-       * The service agent for the service.
-       * 
- * - * string identity = 2; - * - * @return This builder for chaining. - */ - public Builder clearIdentity() { - identity_ = getDefaultInstance().getIdentity(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-       * The service agent for the service.
-       * 
- * - * string identity = 2; - * - * @param value The bytes for identity to set. - * @return This builder for chaining. - */ - public Builder setIdentityBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - identity_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.Taxonomy.Service) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.Taxonomy.Service) - private static final com.google.cloud.datacatalog.v1beta1.Taxonomy.Service DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.Taxonomy.Service(); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy.Service getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Service parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Service getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
-   * Identifier. Resource name of this taxonomy, whose format is:
-   * "projects/{project_number}/locations/{location_id}/taxonomies/{id}".
-   * 
- * - * 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. Resource name of this taxonomy, whose format is:
-   * "projects/{project_number}/locations/{location_id}/taxonomies/{id}".
-   * 
- * - * 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_ = ""; - - /** - * - * - *
-   * Required. User defined name of this taxonomy. It must: contain only unicode
-   * letters, numbers, underscores, dashes and spaces; not start or end with
-   * spaces; and be at most 200 bytes long when encoded in UTF-8.
-   *
-   * The taxonomy display name must be unique within an organization.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-   * Required. User defined name of this taxonomy. It must: contain only unicode
-   * letters, numbers, underscores, dashes and spaces; not start or end with
-   * spaces; and be at most 200 bytes long when encoded in UTF-8.
-   *
-   * The taxonomy display name must be unique within an organization.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 of this taxonomy. It must: contain only unicode
-   * characters, tabs, newlines, carriage returns and page breaks; and be at
-   * most 2000 bytes long when encoded in UTF-8. If not set, defaults to an
-   * empty 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. Description of this taxonomy. It must: contain only unicode
-   * characters, tabs, newlines, carriage returns and page breaks; and be at
-   * most 2000 bytes long when encoded in UTF-8. If not set, defaults to an
-   * empty 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_TAG_COUNT_FIELD_NUMBER = 4; - private int policyTagCount_ = 0; - - /** - * - * - *
-   * Output only. Number of policy tags contained in this taxonomy.
-   * 
- * - * int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The policyTagCount. - */ - @java.lang.Override - public int getPolicyTagCount() { - return policyTagCount_; - } - - public static final int TAXONOMY_TIMESTAMPS_FIELD_NUMBER = 5; - private com.google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomyTimestamps_; - - /** - * - * - *
-   * Output only. Timestamps about this taxonomy. Only create_time and
-   * update_time are used.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the taxonomyTimestamps field is set. - */ - @java.lang.Override - public boolean hasTaxonomyTimestamps() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Output only. Timestamps about this taxonomy. Only create_time and
-   * update_time are used.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The taxonomyTimestamps. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getTaxonomyTimestamps() { - return taxonomyTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : taxonomyTimestamps_; - } - - /** - * - * - *
-   * Output only. Timestamps about this taxonomy. Only create_time and
-   * update_time are used.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder - getTaxonomyTimestampsOrBuilder() { - return taxonomyTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : taxonomyTimestamps_; - } - - public static final int ACTIVATED_POLICY_TYPES_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private com.google.protobuf.Internal.IntList activatedPolicyTypes_ = emptyIntList(); - - private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType> - activatedPolicyTypes_converter_ = - new com.google.protobuf.Internal.IntListAdapter.IntConverter< - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType>() { - public com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType convert(int from) { - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType result = - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType.forNumber(from); - return result == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType.UNRECOGNIZED - : result; - } - }; - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the activatedPolicyTypes. - */ - @java.lang.Override - public java.util.List - getActivatedPolicyTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType>( - activatedPolicyTypes_, activatedPolicyTypes_converter_); - } - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of activatedPolicyTypes. - */ - @java.lang.Override - public int getActivatedPolicyTypesCount() { - return activatedPolicyTypes_.size(); - } - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType getActivatedPolicyTypes( - int index) { - return activatedPolicyTypes_converter_.convert(activatedPolicyTypes_.getInt(index)); - } - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - @java.lang.Override - public java.util.List getActivatedPolicyTypesValueList() { - return activatedPolicyTypes_; - } - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - @java.lang.Override - public int getActivatedPolicyTypesValue(int index) { - return activatedPolicyTypes_.getInt(index); - } - - private int activatedPolicyTypesMemoizedSerializedSize; - - public static final int SERVICE_FIELD_NUMBER = 7; - private com.google.cloud.datacatalog.v1beta1.Taxonomy.Service service_; - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the service field is set. - */ - @java.lang.Override - public boolean hasService() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The service. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Service getService() { - return service_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.getDefaultInstance() - : service_; - } - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceOrBuilder getServiceOrBuilder() { - return service_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.getDefaultInstance() - : service_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - getSerializedSize(); - 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 (policyTagCount_ != 0) { - output.writeInt32(4, policyTagCount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(5, getTaxonomyTimestamps()); - } - if (getActivatedPolicyTypesList().size() > 0) { - output.writeUInt32NoTag(50); - output.writeUInt32NoTag(activatedPolicyTypesMemoizedSerializedSize); - } - for (int i = 0; i < activatedPolicyTypes_.size(); i++) { - output.writeEnumNoTag(activatedPolicyTypes_.getInt(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(7, getService()); - } - 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 (policyTagCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(4, policyTagCount_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getTaxonomyTimestamps()); - } - { - int dataSize = 0; - for (int i = 0; i < activatedPolicyTypes_.size(); i++) { - dataSize += - com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag( - activatedPolicyTypes_.getInt(i)); - } - size += dataSize; - if (!getActivatedPolicyTypesList().isEmpty()) { - size += 1; - size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); - } - activatedPolicyTypesMemoizedSerializedSize = dataSize; - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getService()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.Taxonomy)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.Taxonomy other = - (com.google.cloud.datacatalog.v1beta1.Taxonomy) obj; - - if (!getName().equals(other.getName())) return false; - if (!getDisplayName().equals(other.getDisplayName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getPolicyTagCount() != other.getPolicyTagCount()) return false; - if (hasTaxonomyTimestamps() != other.hasTaxonomyTimestamps()) return false; - if (hasTaxonomyTimestamps()) { - if (!getTaxonomyTimestamps().equals(other.getTaxonomyTimestamps())) return false; - } - if (!activatedPolicyTypes_.equals(other.activatedPolicyTypes_)) return false; - if (hasService() != other.hasService()) return false; - if (hasService()) { - if (!getService().equals(other.getService())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - 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_TAG_COUNT_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTagCount(); - if (hasTaxonomyTimestamps()) { - hash = (37 * hash) + TAXONOMY_TIMESTAMPS_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomyTimestamps().hashCode(); - } - if (getActivatedPolicyTypesCount() > 0) { - hash = (37 * hash) + ACTIVATED_POLICY_TYPES_FIELD_NUMBER; - hash = (53 * hash) + activatedPolicyTypes_.hashCode(); - } - if (hasService()) { - hash = (37 * hash) + SERVICE_FIELD_NUMBER; - hash = (53 * hash) + getService().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.Taxonomy prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 taxonomy is a collection of policy tags that classify data along a common
-   * axis. For instance a data *sensitivity* taxonomy could contain policy tags
-   * denoting PII such as age, zipcode, and SSN. A data *origin* taxonomy could
-   * contain policy tags to distinguish user data, employee data, partner data,
-   * public data.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.Taxonomy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.Taxonomy) - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.Taxonomy.class, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.Taxonomy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTaxonomyTimestampsFieldBuilder(); - internalGetServiceFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - displayName_ = ""; - description_ = ""; - policyTagCount_ = 0; - taxonomyTimestamps_ = null; - if (taxonomyTimestampsBuilder_ != null) { - taxonomyTimestampsBuilder_.dispose(); - taxonomyTimestampsBuilder_ = null; - } - activatedPolicyTypes_ = emptyIntList(); - service_ = null; - if (serviceBuilder_ != null) { - serviceBuilder_.dispose(); - serviceBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_Taxonomy_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy build() { - com.google.cloud.datacatalog.v1beta1.Taxonomy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy buildPartial() { - com.google.cloud.datacatalog.v1beta1.Taxonomy result = - new com.google.cloud.datacatalog.v1beta1.Taxonomy(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.Taxonomy 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.policyTagCount_ = policyTagCount_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.taxonomyTimestamps_ = - taxonomyTimestampsBuilder_ == null - ? taxonomyTimestamps_ - : taxonomyTimestampsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - activatedPolicyTypes_.makeImmutable(); - result.activatedPolicyTypes_ = activatedPolicyTypes_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - result.service_ = serviceBuilder_ == null ? service_ : serviceBuilder_.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.datacatalog.v1beta1.Taxonomy) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.Taxonomy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.Taxonomy other) { - if (other == com.google.cloud.datacatalog.v1beta1.Taxonomy.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.getPolicyTagCount() != 0) { - setPolicyTagCount(other.getPolicyTagCount()); - } - if (other.hasTaxonomyTimestamps()) { - mergeTaxonomyTimestamps(other.getTaxonomyTimestamps()); - } - if (!other.activatedPolicyTypes_.isEmpty()) { - if (activatedPolicyTypes_.isEmpty()) { - activatedPolicyTypes_ = other.activatedPolicyTypes_; - activatedPolicyTypes_.makeImmutable(); - bitField0_ |= 0x00000020; - } else { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addAll(other.activatedPolicyTypes_); - } - onChanged(); - } - if (other.hasService()) { - mergeService(other.getService()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - policyTagCount_ = input.readInt32(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage( - internalGetTaxonomyTimestampsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 42 - case 48: - { - int tmpRaw = input.readEnum(); - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(tmpRaw); - break; - } // case 48 - case 50: - { - int length = input.readRawVarint32(); - int limit = input.pushLimit(length); - ensureActivatedPolicyTypesIsMutable(); - while (input.getBytesUntilLimit() > 0) { - activatedPolicyTypes_.addInt(input.readEnum()); - } - input.popLimit(limit); - break; - } // case 50 - case 58: - { - input.readMessage(internalGetServiceFieldBuilder().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 name_ = ""; - - /** - * - * - *
-     * Identifier. Resource name of this taxonomy, whose format is:
-     * "projects/{project_number}/locations/{location_id}/taxonomies/{id}".
-     * 
- * - * 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. Resource name of this taxonomy, whose format is:
-     * "projects/{project_number}/locations/{location_id}/taxonomies/{id}".
-     * 
- * - * 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. Resource name of this taxonomy, whose format is:
-     * "projects/{project_number}/locations/{location_id}/taxonomies/{id}".
-     * 
- * - * 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. Resource name of this taxonomy, whose format is:
-     * "projects/{project_number}/locations/{location_id}/taxonomies/{id}".
-     * 
- * - * 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. Resource name of this taxonomy, whose format is:
-     * "projects/{project_number}/locations/{location_id}/taxonomies/{id}".
-     * 
- * - * 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_ = ""; - - /** - * - * - *
-     * Required. User defined name of this taxonomy. It must: contain only unicode
-     * letters, numbers, underscores, dashes and spaces; not start or end with
-     * spaces; and be at most 200 bytes long when encoded in UTF-8.
-     *
-     * The taxonomy display name must be unique within an organization.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. User defined name of this taxonomy. It must: contain only unicode
-     * letters, numbers, underscores, dashes and spaces; not start or end with
-     * spaces; and be at most 200 bytes long when encoded in UTF-8.
-     *
-     * The taxonomy display name must be unique within an organization.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - } - - /** - * - * - *
-     * Required. User defined name of this taxonomy. It must: contain only unicode
-     * letters, numbers, underscores, dashes and spaces; not start or end with
-     * spaces; and be at most 200 bytes long when encoded in UTF-8.
-     *
-     * The taxonomy display name must be unique within an organization.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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; - } - - /** - * - * - *
-     * Required. User defined name of this taxonomy. It must: contain only unicode
-     * letters, numbers, underscores, dashes and spaces; not start or end with
-     * spaces; and be at most 200 bytes long when encoded in UTF-8.
-     *
-     * The taxonomy display name must be unique within an organization.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. User defined name of this taxonomy. It must: contain only unicode
-     * letters, numbers, underscores, dashes and spaces; not start or end with
-     * spaces; and be at most 200 bytes long when encoded in UTF-8.
-     *
-     * The taxonomy display name must be unique within an organization.
-     * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @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 of this taxonomy. It must: contain only unicode
-     * characters, tabs, newlines, carriage returns and page breaks; and be at
-     * most 2000 bytes long when encoded in UTF-8. If not set, defaults to an
-     * empty 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. Description of this taxonomy. It must: contain only unicode
-     * characters, tabs, newlines, carriage returns and page breaks; and be at
-     * most 2000 bytes long when encoded in UTF-8. If not set, defaults to an
-     * empty 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. Description of this taxonomy. It must: contain only unicode
-     * characters, tabs, newlines, carriage returns and page breaks; and be at
-     * most 2000 bytes long when encoded in UTF-8. If not set, defaults to an
-     * empty 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. Description of this taxonomy. It must: contain only unicode
-     * characters, tabs, newlines, carriage returns and page breaks; and be at
-     * most 2000 bytes long when encoded in UTF-8. If not set, defaults to an
-     * empty 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. Description of this taxonomy. It must: contain only unicode
-     * characters, tabs, newlines, carriage returns and page breaks; and be at
-     * most 2000 bytes long when encoded in UTF-8. If not set, defaults to an
-     * empty 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 int policyTagCount_; - - /** - * - * - *
-     * Output only. Number of policy tags contained in this taxonomy.
-     * 
- * - * int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The policyTagCount. - */ - @java.lang.Override - public int getPolicyTagCount() { - return policyTagCount_; - } - - /** - * - * - *
-     * Output only. Number of policy tags contained in this taxonomy.
-     * 
- * - * int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The policyTagCount to set. - * @return This builder for chaining. - */ - public Builder setPolicyTagCount(int value) { - - policyTagCount_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Number of policy tags contained in this taxonomy.
-     * 
- * - * int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearPolicyTagCount() { - bitField0_ = (bitField0_ & ~0x00000008); - policyTagCount_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomyTimestamps_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - taxonomyTimestampsBuilder_; - - /** - * - * - *
-     * Output only. Timestamps about this taxonomy. Only create_time and
-     * update_time are used.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the taxonomyTimestamps field is set. - */ - public boolean hasTaxonomyTimestamps() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
-     * Output only. Timestamps about this taxonomy. Only create_time and
-     * update_time are used.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The taxonomyTimestamps. - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps getTaxonomyTimestamps() { - if (taxonomyTimestampsBuilder_ == null) { - return taxonomyTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : taxonomyTimestamps_; - } else { - return taxonomyTimestampsBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Timestamps about this taxonomy. Only create_time and
-     * update_time are used.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTaxonomyTimestamps( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) { - if (taxonomyTimestampsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taxonomyTimestamps_ = value; - } else { - taxonomyTimestampsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about this taxonomy. Only create_time and
-     * update_time are used.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTaxonomyTimestamps( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder builderForValue) { - if (taxonomyTimestampsBuilder_ == null) { - taxonomyTimestamps_ = builderForValue.build(); - } else { - taxonomyTimestampsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about this taxonomy. Only create_time and
-     * update_time are used.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeTaxonomyTimestamps( - com.google.cloud.datacatalog.v1beta1.SystemTimestamps value) { - if (taxonomyTimestampsBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && taxonomyTimestamps_ != null - && taxonomyTimestamps_ - != com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance()) { - getTaxonomyTimestampsBuilder().mergeFrom(value); - } else { - taxonomyTimestamps_ = value; - } - } else { - taxonomyTimestampsBuilder_.mergeFrom(value); - } - if (taxonomyTimestamps_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about this taxonomy. Only create_time and
-     * update_time are used.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearTaxonomyTimestamps() { - bitField0_ = (bitField0_ & ~0x00000010); - taxonomyTimestamps_ = null; - if (taxonomyTimestampsBuilder_ != null) { - taxonomyTimestampsBuilder_.dispose(); - taxonomyTimestampsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Timestamps about this taxonomy. Only create_time and
-     * update_time are used.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder - getTaxonomyTimestampsBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetTaxonomyTimestampsFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Timestamps about this taxonomy. Only create_time and
-     * update_time are used.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder - getTaxonomyTimestampsOrBuilder() { - if (taxonomyTimestampsBuilder_ != null) { - return taxonomyTimestampsBuilder_.getMessageOrBuilder(); - } else { - return taxonomyTimestamps_ == null - ? com.google.cloud.datacatalog.v1beta1.SystemTimestamps.getDefaultInstance() - : taxonomyTimestamps_; - } - } - - /** - * - * - *
-     * Output only. Timestamps about this taxonomy. Only create_time and
-     * update_time are used.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder> - internalGetTaxonomyTimestampsFieldBuilder() { - if (taxonomyTimestampsBuilder_ == null) { - taxonomyTimestampsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.SystemTimestamps, - com.google.cloud.datacatalog.v1beta1.SystemTimestamps.Builder, - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder>( - getTaxonomyTimestamps(), getParentForChildren(), isClean()); - taxonomyTimestamps_ = null; - } - return taxonomyTimestampsBuilder_; - } - - private com.google.protobuf.Internal.IntList activatedPolicyTypes_ = emptyIntList(); - - private void ensureActivatedPolicyTypesIsMutable() { - if (!activatedPolicyTypes_.isModifiable()) { - activatedPolicyTypes_ = makeMutableCopy(activatedPolicyTypes_); - } - bitField0_ |= 0x00000020; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the activatedPolicyTypes. - */ - public java.util.List - getActivatedPolicyTypesList() { - return new com.google.protobuf.Internal.IntListAdapter< - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType>( - activatedPolicyTypes_, activatedPolicyTypes_converter_); - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of activatedPolicyTypes. - */ - public int getActivatedPolicyTypesCount() { - return activatedPolicyTypes_.size(); - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType getActivatedPolicyTypes( - int index) { - return activatedPolicyTypes_converter_.convert(activatedPolicyTypes_.getInt(index)); - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The activatedPolicyTypes to set. - * @return This builder for chaining. - */ - public Builder setActivatedPolicyTypes( - int index, com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.setInt(index, value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addActivatedPolicyTypes( - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(value.getNumber()); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addAllActivatedPolicyTypes( - java.lang.Iterable - values) { - ensureActivatedPolicyTypesIsMutable(); - for (com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType value : values) { - activatedPolicyTypes_.addInt(value.getNumber()); - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearActivatedPolicyTypes() { - activatedPolicyTypes_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - public java.util.List getActivatedPolicyTypesValueList() { - activatedPolicyTypes_.makeImmutable(); - return activatedPolicyTypes_; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - public int getActivatedPolicyTypesValue(int index) { - return activatedPolicyTypes_.getInt(index); - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for activatedPolicyTypes to set. - * @return This builder for chaining. - */ - public Builder setActivatedPolicyTypesValue(int index, int value) { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.setInt(index, value); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addActivatedPolicyTypesValue(int value) { - ensureActivatedPolicyTypesIsMutable(); - activatedPolicyTypes_.addInt(value); - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. A list of policy types that are activated for this taxonomy. If
-     * not set, defaults to an empty list.
-     * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The enum numeric values on the wire for activatedPolicyTypes to add. - * @return This builder for chaining. - */ - public Builder addAllActivatedPolicyTypesValue(java.lang.Iterable values) { - ensureActivatedPolicyTypesIsMutable(); - for (int value : values) { - activatedPolicyTypes_.addInt(value); - } - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.Taxonomy.Service service_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.Builder, - com.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceOrBuilder> - serviceBuilder_; - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the service field is set. - */ - public boolean hasService() { - return ((bitField0_ & 0x00000040) != 0); - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The service. - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Service getService() { - if (serviceBuilder_ == null) { - return service_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.getDefaultInstance() - : service_; - } else { - return serviceBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setService(com.google.cloud.datacatalog.v1beta1.Taxonomy.Service value) { - if (serviceBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - service_ = value; - } else { - serviceBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setService( - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.Builder builderForValue) { - if (serviceBuilder_ == null) { - service_ = builderForValue.build(); - } else { - serviceBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeService(com.google.cloud.datacatalog.v1beta1.Taxonomy.Service value) { - if (serviceBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && service_ != null - && service_ - != com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.getDefaultInstance()) { - getServiceBuilder().mergeFrom(value); - } else { - service_ = value; - } - } else { - serviceBuilder_.mergeFrom(value); - } - if (service_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearService() { - bitField0_ = (bitField0_ & ~0x00000040); - service_ = null; - if (serviceBuilder_ != null) { - serviceBuilder_.dispose(); - serviceBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.Builder getServiceBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return internalGetServiceFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceOrBuilder getServiceOrBuilder() { - if (serviceBuilder_ != null) { - return serviceBuilder_.getMessageOrBuilder(); - } else { - return service_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.getDefaultInstance() - : service_; - } - } - - /** - * - * - *
-     * Output only. Identity of the service which owns the Taxonomy. This field is
-     * only populated when the taxonomy is created by a Google Cloud service.
-     * Currently only 'DATAPLEX' is supported.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.Builder, - com.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceOrBuilder> - internalGetServiceFieldBuilder() { - if (serviceBuilder_ == null) { - serviceBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service.Builder, - com.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceOrBuilder>( - getService(), getParentForChildren(), isClean()); - service_ = null; - } - return serviceBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.Taxonomy) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.Taxonomy) - private static final com.google.cloud.datacatalog.v1beta1.Taxonomy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.Taxonomy(); - } - - public static com.google.cloud.datacatalog.v1beta1.Taxonomy getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Taxonomy parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java deleted file mode 100644 index da6c63f51a1e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyName.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1; - -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 TaxonomyName implements ResourceName { - private static final PathTemplate PROJECT_LOCATION_TAXONOMY = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/locations/{location}/taxonomies/{taxonomy}"); - private volatile Map fieldValuesMap; - private final String project; - private final String location; - private final String taxonomy; - - @Deprecated - protected TaxonomyName() { - project = null; - location = null; - taxonomy = null; - } - - private TaxonomyName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - location = Preconditions.checkNotNull(builder.getLocation()); - taxonomy = Preconditions.checkNotNull(builder.getTaxonomy()); - } - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTaxonomy() { - return taxonomy; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static TaxonomyName of(String project, String location, String taxonomy) { - return newBuilder().setProject(project).setLocation(location).setTaxonomy(taxonomy).build(); - } - - public static String format(String project, String location, String taxonomy) { - return newBuilder() - .setProject(project) - .setLocation(location) - .setTaxonomy(taxonomy) - .build() - .toString(); - } - - public static @Nullable TaxonomyName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_LOCATION_TAXONOMY.validatedMatch( - formattedString, "TaxonomyName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("taxonomy")); - } - - 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 TaxonomyName> values) { - List list = new ArrayList<>(values.size()); - for (TaxonomyName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_LOCATION_TAXONOMY.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 (taxonomy != null) { - fieldMapBuilder.put("taxonomy", taxonomy); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_LOCATION_TAXONOMY.instantiate( - "project", project, "location", location, "taxonomy", taxonomy); - } - - @Override - public boolean equals(@Nullable Object o) { - if (o == this) { - return true; - } - if (o != null && getClass() == o.getClass()) { - TaxonomyName that = ((TaxonomyName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.location, that.location) - && Objects.equals(this.taxonomy, that.taxonomy); - } - 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(taxonomy); - return h; - } - - /** Builder for projects/{project}/locations/{location}/taxonomies/{taxonomy}. */ - public static class Builder { - private String project; - private String location; - private String taxonomy; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getLocation() { - return location; - } - - public String getTaxonomy() { - return taxonomy; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setLocation(String location) { - this.location = location; - return this; - } - - public Builder setTaxonomy(String taxonomy) { - this.taxonomy = taxonomy; - return this; - } - - private Builder(TaxonomyName taxonomyName) { - this.project = taxonomyName.project; - this.location = taxonomyName.location; - this.taxonomy = taxonomyName.taxonomy; - } - - public TaxonomyName build() { - return new TaxonomyName(this); - } - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyOrBuilder.java deleted file mode 100644 index cdb759327231..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/TaxonomyOrBuilder.java +++ /dev/null @@ -1,313 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface TaxonomyOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.Taxonomy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Identifier. Resource name of this taxonomy, whose format is:
-   * "projects/{project_number}/locations/{location_id}/taxonomies/{id}".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Identifier. Resource name of this taxonomy, whose format is:
-   * "projects/{project_number}/locations/{location_id}/taxonomies/{id}".
-   * 
- * - * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. User defined name of this taxonomy. It must: contain only unicode
-   * letters, numbers, underscores, dashes and spaces; not start or end with
-   * spaces; and be at most 200 bytes long when encoded in UTF-8.
-   *
-   * The taxonomy display name must be unique within an organization.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The displayName. - */ - java.lang.String getDisplayName(); - - /** - * - * - *
-   * Required. User defined name of this taxonomy. It must: contain only unicode
-   * letters, numbers, underscores, dashes and spaces; not start or end with
-   * spaces; and be at most 200 bytes long when encoded in UTF-8.
-   *
-   * The taxonomy display name must be unique within an organization.
-   * 
- * - * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString getDisplayNameBytes(); - - /** - * - * - *
-   * Optional. Description of this taxonomy. It must: contain only unicode
-   * characters, tabs, newlines, carriage returns and page breaks; and be at
-   * most 2000 bytes long when encoded in UTF-8. If not set, defaults to an
-   * empty description.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
-   * Optional. Description of this taxonomy. It must: contain only unicode
-   * characters, tabs, newlines, carriage returns and page breaks; and be at
-   * most 2000 bytes long when encoded in UTF-8. If not set, defaults to an
-   * empty description.
-   * 
- * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
-   * Output only. Number of policy tags contained in this taxonomy.
-   * 
- * - * int32 policy_tag_count = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The policyTagCount. - */ - int getPolicyTagCount(); - - /** - * - * - *
-   * Output only. Timestamps about this taxonomy. Only create_time and
-   * update_time are used.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the taxonomyTimestamps field is set. - */ - boolean hasTaxonomyTimestamps(); - - /** - * - * - *
-   * Output only. Timestamps about this taxonomy. Only create_time and
-   * update_time are used.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The taxonomyTimestamps. - */ - com.google.cloud.datacatalog.v1beta1.SystemTimestamps getTaxonomyTimestamps(); - - /** - * - * - *
-   * Output only. Timestamps about this taxonomy. Only create_time and
-   * update_time are used.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.SystemTimestamps taxonomy_timestamps = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1beta1.SystemTimestampsOrBuilder getTaxonomyTimestampsOrBuilder(); - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the activatedPolicyTypes. - */ - java.util.List - getActivatedPolicyTypesList(); - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of activatedPolicyTypes. - */ - int getActivatedPolicyTypesCount(); - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The activatedPolicyTypes at the given index. - */ - com.google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType getActivatedPolicyTypes(int index); - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the enum numeric values on the wire for activatedPolicyTypes. - */ - java.util.List getActivatedPolicyTypesValueList(); - - /** - * - * - *
-   * Optional. A list of policy types that are activated for this taxonomy. If
-   * not set, defaults to an empty list.
-   * 
- * - * - * repeated .google.cloud.datacatalog.v1beta1.Taxonomy.PolicyType activated_policy_types = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The enum numeric value on the wire of activatedPolicyTypes at the given index. - */ - int getActivatedPolicyTypesValue(int index); - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the service field is set. - */ - boolean hasService(); - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The service. - */ - com.google.cloud.datacatalog.v1beta1.Taxonomy.Service getService(); - - /** - * - * - *
-   * Output only. Identity of the service which owns the Taxonomy. This field is
-   * only populated when the taxonomy is created by a Google Cloud service.
-   * Currently only 'DATAPLEX' is supported.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Taxonomy.Service service = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.cloud.datacatalog.v1beta1.Taxonomy.ServiceOrBuilder getServiceOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Timestamps.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Timestamps.java deleted file mode 100644 index 9e1b8588e29a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Timestamps.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/timestamps.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public final class Timestamps extends com.google.protobuf.GeneratedFile { - private Timestamps() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Timestamps"); - } - - 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_datacatalog_v1beta1_SystemTimestamps_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n1google/cloud/datacatalog/v1beta1/times" - + "tamps.proto\022 google.cloud.datacatalog.v1" - + "beta1\032\037google/api/field_behavior.proto\032\037" - + "google/protobuf/timestamp.proto\"\252\001\n\020Syst" - + "emTimestamps\022/\n\013create_time\030\001 \001(\0132\032.goog" - + "le.protobuf.Timestamp\022/\n\013update_time\030\002 \001" - + "(\0132\032.google.protobuf.Timestamp\0224\n\013expire" - + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003B\334\001\n$com.google.cloud.datacatalog.v1" - + "beta1P\001ZFcloud.google.com/go/datacatalog" - + "/apiv1beta1/datacatalogpb;datacatalogpb\252" - + "\002 Google.Cloud.DataCatalog.V1Beta1\312\002 Goo" - + "gle\\Cloud\\DataCatalog\\V1beta1\352\002#Google::" - + "Cloud::DataCatalog::V1beta1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_SystemTimestamps_descriptor, - new java.lang.String[] { - "CreateTime", "UpdateTime", "ExpireTime", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.api.FieldBehaviorProto.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-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java deleted file mode 100644 index 5088d0728a1c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequest.java +++ /dev/null @@ -1,1056 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [UpdateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntryGroup].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest} - */ -@com.google.protobuf.Generated -public final class UpdateEntryGroupRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest) - UpdateEntryGroupRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateEntryGroupRequest"); - } - - // Use UpdateEntryGroupRequest.newBuilder() to construct. - private UpdateEntryGroupRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateEntryGroupRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest.Builder.class); - } - - private int bitField0_; - public static final int ENTRY_GROUP_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1beta1.EntryGroup entryGroup_; - - /** - * - * - *
-   * Required. The updated entry group. "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entryGroup field is set. - */ - @java.lang.Override - public boolean hasEntryGroup() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The updated entry group. "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entryGroup. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroup() { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - - /** - * - * - *
-   * Required. The updated entry group. "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder getEntryGroupOrBuilder() { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getEntryGroup()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getEntryGroup()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest other = - (com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest) obj; - - if (hasEntryGroup() != other.hasEntryGroup()) return false; - if (hasEntryGroup()) { - if (!getEntryGroup().equals(other.getEntryGroup())) 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 (hasEntryGroup()) { - hash = (37 * hash) + ENTRY_GROUP_FIELD_NUMBER; - hash = (53 * hash) + getEntryGroup().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.datacatalog.v1beta1.UpdateEntryGroupRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntryGroup].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest) - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetEntryGroupFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - entryGroup_ = null; - if (entryGroupBuilder_ != null) { - entryGroupBuilder_.dispose(); - entryGroupBuilder_ = 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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryGroupRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest build() { - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest result = - new com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entryGroup_ = entryGroupBuilder_ == null ? entryGroup_ : entryGroupBuilder_.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.datacatalog.v1beta1.UpdateEntryGroupRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest.getDefaultInstance()) - return this; - if (other.hasEntryGroup()) { - mergeEntryGroup(other.getEntryGroup()); - } - 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( - internalGetEntryGroupFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1beta1.EntryGroup entryGroup_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.EntryGroup, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> - entryGroupBuilder_; - - /** - * - * - *
-     * Required. The updated entry group. "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entryGroup field is set. - */ - public boolean hasEntryGroup() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Required. The updated entry group. "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entryGroup. - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroup() { - if (entryGroupBuilder_ == null) { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance() - : entryGroup_; - } else { - return entryGroupBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The updated entry group. "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntryGroup(com.google.cloud.datacatalog.v1beta1.EntryGroup value) { - if (entryGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entryGroup_ = value; - } else { - entryGroupBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated entry group. "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntryGroup( - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder builderForValue) { - if (entryGroupBuilder_ == null) { - entryGroup_ = builderForValue.build(); - } else { - entryGroupBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated entry group. "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeEntryGroup(com.google.cloud.datacatalog.v1beta1.EntryGroup value) { - if (entryGroupBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && entryGroup_ != null - && entryGroup_ - != com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance()) { - getEntryGroupBuilder().mergeFrom(value); - } else { - entryGroup_ = value; - } - } else { - entryGroupBuilder_.mergeFrom(value); - } - if (entryGroup_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The updated entry group. "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearEntryGroup() { - bitField0_ = (bitField0_ & ~0x00000001); - entryGroup_ = null; - if (entryGroupBuilder_ != null) { - entryGroupBuilder_.dispose(); - entryGroupBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated entry group. "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder getEntryGroupBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetEntryGroupFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The updated entry group. "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder getEntryGroupOrBuilder() { - if (entryGroupBuilder_ != null) { - return entryGroupBuilder_.getMessageOrBuilder(); - } else { - return entryGroup_ == null - ? com.google.cloud.datacatalog.v1beta1.EntryGroup.getDefaultInstance() - : entryGroup_; - } - } - - /** - * - * - *
-     * Required. The updated entry group. "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.EntryGroup, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder> - internalGetEntryGroupFieldBuilder() { - if (entryGroupBuilder_ == null) { - entryGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.EntryGroup, - com.google.cloud.datacatalog.v1beta1.EntryGroup.Builder, - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder>( - getEntryGroup(), getParentForChildren(), isClean()); - entryGroup_ = null; - } - return entryGroupBuilder_; - } - - 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_; - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry group.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1beta1.UpdateEntryGroupRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest) - private static final com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEntryGroupRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequestOrBuilder.java deleted file mode 100644 index efe2d4c469ea..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryGroupRequestOrBuilder.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface UpdateEntryGroupRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The updated entry group. "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entryGroup field is set. - */ - boolean hasEntryGroup(); - - /** - * - * - *
-   * Required. The updated entry group. "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entryGroup. - */ - com.google.cloud.datacatalog.v1beta1.EntryGroup getEntryGroup(); - - /** - * - * - *
-   * Required. The updated entry group. "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.EntryGroup entry_group = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.EntryGroupOrBuilder getEntryGroupOrBuilder(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry group.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java deleted file mode 100644 index 9af898f1dfe7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequest.java +++ /dev/null @@ -1,1277 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [UpdateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntry].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateEntryRequest} - */ -@com.google.protobuf.Generated -public final class UpdateEntryRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateEntryRequest) - UpdateEntryRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateEntryRequest"); - } - - // Use UpdateEntryRequest.newBuilder() to construct. - private UpdateEntryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateEntryRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest.Builder.class); - } - - private int bitField0_; - public static final int ENTRY_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1beta1.Entry entry_; - - /** - * - * - *
-   * Required. The updated entry. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - @java.lang.Override - public boolean hasEntry() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The updated entry. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Entry getEntry() { - return entry_ == null - ? com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance() - : entry_; - } - - /** - * - * - *
-   * Required. The updated entry. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.EntryOrBuilder getEntryOrBuilder() { - return entry_ == null - ? com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance() - : entry_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * The following fields are modifiable:
-   *
-   * * For entries with type `DATA_STREAM`:
-   * * `schema`
-   * * For entries with type `FILESET`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   * * For entries with `user_specified_type`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * The following fields are modifiable:
-   *
-   * * For entries with type `DATA_STREAM`:
-   * * `schema`
-   * * For entries with type `FILESET`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   * * For entries with `user_specified_type`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * The following fields are modifiable:
-   *
-   * * For entries with type `DATA_STREAM`:
-   * * `schema`
-   * * For entries with type `FILESET`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   * * For entries with `user_specified_type`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getEntry()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getEntry()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest other = - (com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest) obj; - - if (hasEntry() != other.hasEntry()) return false; - if (hasEntry()) { - if (!getEntry().equals(other.getEntry())) 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 (hasEntry()) { - hash = (37 * hash) + ENTRY_FIELD_NUMBER; - hash = (53 * hash) + getEntry().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.datacatalog.v1beta1.UpdateEntryRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntry].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateEntryRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.UpdateEntryRequest) - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetEntryFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - entry_ = null; - if (entryBuilder_ != null) { - entryBuilder_.dispose(); - entryBuilder_ = 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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateEntryRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest build() { - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest result = - new com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.entry_ = entryBuilder_ == null ? entry_ : entryBuilder_.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.datacatalog.v1beta1.UpdateEntryRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest.getDefaultInstance()) - return this; - if (other.hasEntry()) { - mergeEntry(other.getEntry()); - } - 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(internalGetEntryFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1beta1.Entry entry_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Entry, - com.google.cloud.datacatalog.v1beta1.Entry.Builder, - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> - entryBuilder_; - - /** - * - * - *
-     * Required. The updated entry. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - public boolean hasEntry() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Required. The updated entry. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - public com.google.cloud.datacatalog.v1beta1.Entry getEntry() { - if (entryBuilder_ == null) { - return entry_ == null - ? com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance() - : entry_; - } else { - return entryBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The updated entry. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntry(com.google.cloud.datacatalog.v1beta1.Entry value) { - if (entryBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entry_ = value; - } else { - entryBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated entry. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setEntry(com.google.cloud.datacatalog.v1beta1.Entry.Builder builderForValue) { - if (entryBuilder_ == null) { - entry_ = builderForValue.build(); - } else { - entryBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated entry. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeEntry(com.google.cloud.datacatalog.v1beta1.Entry value) { - if (entryBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && entry_ != null - && entry_ != com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance()) { - getEntryBuilder().mergeFrom(value); - } else { - entry_ = value; - } - } else { - entryBuilder_.mergeFrom(value); - } - if (entry_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The updated entry. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearEntry() { - bitField0_ = (bitField0_ & ~0x00000001); - entry_ = null; - if (entryBuilder_ != null) { - entryBuilder_.dispose(); - entryBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated entry. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.Entry.Builder getEntryBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetEntryFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The updated entry. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.EntryOrBuilder getEntryOrBuilder() { - if (entryBuilder_ != null) { - return entryBuilder_.getMessageOrBuilder(); - } else { - return entry_ == null - ? com.google.cloud.datacatalog.v1beta1.Entry.getDefaultInstance() - : entry_; - } - } - - /** - * - * - *
-     * Required. The updated entry. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Entry, - com.google.cloud.datacatalog.v1beta1.Entry.Builder, - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder> - internalGetEntryFieldBuilder() { - if (entryBuilder_ == null) { - entryBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Entry, - com.google.cloud.datacatalog.v1beta1.Entry.Builder, - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder>( - getEntry(), getParentForChildren(), isClean()); - entry_ = null; - } - return entryBuilder_; - } - - 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_; - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * The following fields are modifiable:
-     *
-     * * For entries with type `DATA_STREAM`:
-     * * `schema`
-     * * For entries with type `FILESET`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     * * For entries with `user_specified_type`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * The following fields are modifiable:
-     *
-     * * For entries with type `DATA_STREAM`:
-     * * `schema`
-     * * For entries with type `FILESET`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     * * For entries with `user_specified_type`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * The following fields are modifiable:
-     *
-     * * For entries with type `DATA_STREAM`:
-     * * `schema`
-     * * For entries with type `FILESET`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     * * For entries with `user_specified_type`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * The following fields are modifiable:
-     *
-     * * For entries with type `DATA_STREAM`:
-     * * `schema`
-     * * For entries with type `FILESET`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     * * For entries with `user_specified_type`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * The following fields are modifiable:
-     *
-     * * For entries with type `DATA_STREAM`:
-     * * `schema`
-     * * For entries with type `FILESET`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     * * For entries with `user_specified_type`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * The following fields are modifiable:
-     *
-     * * For entries with type `DATA_STREAM`:
-     * * `schema`
-     * * For entries with type `FILESET`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     * * For entries with `user_specified_type`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * The following fields are modifiable:
-     *
-     * * For entries with type `DATA_STREAM`:
-     * * `schema`
-     * * For entries with type `FILESET`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     * * For entries with `user_specified_type`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * The following fields are modifiable:
-     *
-     * * For entries with type `DATA_STREAM`:
-     * * `schema`
-     * * For entries with type `FILESET`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     * * For entries with `user_specified_type`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on an entry.
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     *
-     * The following fields are modifiable:
-     *
-     * * For entries with type `DATA_STREAM`:
-     * * `schema`
-     * * For entries with type `FILESET`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `gcs_fileset_spec`
-     * * `gcs_fileset_spec.file_patterns`
-     * * For entries with `user_specified_type`:
-     * * `schema`
-     * * `display_name`
-     * * `description`
-     * * `user_specified_type`
-     * * `user_specified_system`
-     * * `linked_resource`
-     * * `source_system_timestamps`
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1beta1.UpdateEntryRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UpdateEntryRequest) - private static final com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateEntryRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequestOrBuilder.java deleted file mode 100644 index 9ca370dc2881..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateEntryRequestOrBuilder.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface UpdateEntryRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.UpdateEntryRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The updated entry. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the entry field is set. - */ - boolean hasEntry(); - - /** - * - * - *
-   * Required. The updated entry. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The entry. - */ - com.google.cloud.datacatalog.v1beta1.Entry getEntry(); - - /** - * - * - *
-   * Required. The updated entry. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.Entry entry = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.EntryOrBuilder getEntryOrBuilder(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * The following fields are modifiable:
-   *
-   * * For entries with type `DATA_STREAM`:
-   * * `schema`
-   * * For entries with type `FILESET`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   * * For entries with `user_specified_type`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * The following fields are modifiable:
-   *
-   * * For entries with type `DATA_STREAM`:
-   * * `schema`
-   * * For entries with type `FILESET`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   * * For entries with `user_specified_type`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on an entry.
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   *
-   * The following fields are modifiable:
-   *
-   * * For entries with type `DATA_STREAM`:
-   * * `schema`
-   * * For entries with type `FILESET`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `gcs_fileset_spec`
-   * * `gcs_fileset_spec.file_patterns`
-   * * For entries with `user_specified_type`:
-   * * `schema`
-   * * `display_name`
-   * * `description`
-   * * `user_specified_type`
-   * * `user_specified_system`
-   * * `linked_resource`
-   * * `source_system_timestamps`
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequest.java deleted file mode 100644 index 988cd33b253a..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequest.java +++ /dev/null @@ -1,1063 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [UpdatePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdatePolicyTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest} - */ -@com.google.protobuf.Generated -public final class UpdatePolicyTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest) - UpdatePolicyTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdatePolicyTagRequest"); - } - - // Use UpdatePolicyTagRequest.newBuilder() to construct. - private UpdatePolicyTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdatePolicyTagRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_UpdatePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_UpdatePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest.Builder.class); - } - - private int bitField0_; - public static final int POLICY_TAG_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1beta1.PolicyTag policyTag_; - - /** - * - * - *
-   * The policy tag to update. Only the description, display_name, and
-   * parent_policy_tag fields can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - * - * @return Whether the policyTag field is set. - */ - @java.lang.Override - public boolean hasPolicyTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The policy tag to update. Only the description, display_name, and
-   * parent_policy_tag fields can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - * - * @return The policyTag. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTag() { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance() - : policyTag_; - } - - /** - * - * - *
-   * The policy tag to update. Only the description, display_name, and
-   * parent_policy_tag fields can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder getPolicyTagOrBuilder() { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance() - : policyTag_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * The update mask applies to the resource. Only display_name, description and
-   * parent_policy_tag can be updated and thus can be listed in the mask. If
-   * update_mask is not provided, all allowed fields (i.e. display_name,
-   * description and parent) will be updated. For more information including the
-   * `FieldMask` definition, see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * The update mask applies to the resource. Only display_name, description and
-   * parent_policy_tag can be updated and thus can be listed in the mask. If
-   * update_mask is not provided, all allowed fields (i.e. display_name,
-   * description and parent) will be updated. For more information including the
-   * `FieldMask` definition, see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * The update mask applies to the resource. Only display_name, description and
-   * parent_policy_tag can be updated and thus can be listed in the mask. If
-   * update_mask is not provided, all allowed fields (i.e. display_name,
-   * description and parent) will be updated. For more information including the
-   * `FieldMask` definition, see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getPolicyTag()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getPolicyTag()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest other = - (com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest) obj; - - if (hasPolicyTag() != other.hasPolicyTag()) return false; - if (hasPolicyTag()) { - if (!getPolicyTag().equals(other.getPolicyTag())) 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 (hasPolicyTag()) { - hash = (37 * hash) + POLICY_TAG_FIELD_NUMBER; - hash = (53 * hash) + getPolicyTag().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.datacatalog.v1beta1.UpdatePolicyTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdatePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdatePolicyTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest) - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_UpdatePolicyTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_UpdatePolicyTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetPolicyTagFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - policyTag_ = null; - if (policyTagBuilder_ != null) { - policyTagBuilder_.dispose(); - policyTagBuilder_ = 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.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_UpdatePolicyTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest build() { - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest result = - new com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.policyTag_ = policyTagBuilder_ == null ? policyTag_ : policyTagBuilder_.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.datacatalog.v1beta1.UpdatePolicyTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest.getDefaultInstance()) - return this; - if (other.hasPolicyTag()) { - mergePolicyTag(other.getPolicyTag()); - } - 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( - internalGetPolicyTagFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1beta1.PolicyTag policyTag_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.PolicyTag, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> - policyTagBuilder_; - - /** - * - * - *
-     * The policy tag to update. Only the description, display_name, and
-     * parent_policy_tag fields can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - * - * @return Whether the policyTag field is set. - */ - public boolean hasPolicyTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * The policy tag to update. Only the description, display_name, and
-     * parent_policy_tag fields can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - * - * @return The policyTag. - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTag() { - if (policyTagBuilder_ == null) { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance() - : policyTag_; - } else { - return policyTagBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The policy tag to update. Only the description, display_name, and
-     * parent_policy_tag fields can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - */ - public Builder setPolicyTag(com.google.cloud.datacatalog.v1beta1.PolicyTag value) { - if (policyTagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - policyTag_ = value; - } else { - policyTagBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to update. Only the description, display_name, and
-     * parent_policy_tag fields can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - */ - public Builder setPolicyTag( - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder builderForValue) { - if (policyTagBuilder_ == null) { - policyTag_ = builderForValue.build(); - } else { - policyTagBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to update. Only the description, display_name, and
-     * parent_policy_tag fields can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - */ - public Builder mergePolicyTag(com.google.cloud.datacatalog.v1beta1.PolicyTag value) { - if (policyTagBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && policyTag_ != null - && policyTag_ != com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance()) { - getPolicyTagBuilder().mergeFrom(value); - } else { - policyTag_ = value; - } - } else { - policyTagBuilder_.mergeFrom(value); - } - if (policyTag_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The policy tag to update. Only the description, display_name, and
-     * parent_policy_tag fields can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - */ - public Builder clearPolicyTag() { - bitField0_ = (bitField0_ & ~0x00000001); - policyTag_ = null; - if (policyTagBuilder_ != null) { - policyTagBuilder_.dispose(); - policyTagBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The policy tag to update. Only the description, display_name, and
-     * parent_policy_tag fields can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder getPolicyTagBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetPolicyTagFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The policy tag to update. Only the description, display_name, and
-     * parent_policy_tag fields can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - */ - public com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder getPolicyTagOrBuilder() { - if (policyTagBuilder_ != null) { - return policyTagBuilder_.getMessageOrBuilder(); - } else { - return policyTag_ == null - ? com.google.cloud.datacatalog.v1beta1.PolicyTag.getDefaultInstance() - : policyTag_; - } - } - - /** - * - * - *
-     * The policy tag to update. Only the description, display_name, and
-     * parent_policy_tag fields can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.PolicyTag, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder> - internalGetPolicyTagFieldBuilder() { - if (policyTagBuilder_ == null) { - policyTagBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.PolicyTag, - com.google.cloud.datacatalog.v1beta1.PolicyTag.Builder, - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder>( - getPolicyTag(), getParentForChildren(), isClean()); - policyTag_ = null; - } - return policyTagBuilder_; - } - - 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_; - - /** - * - * - *
-     * The update mask applies to the resource. Only display_name, description and
-     * parent_policy_tag can be updated and thus can be listed in the mask. If
-     * update_mask is not provided, all allowed fields (i.e. display_name,
-     * description and parent) will be updated. For more information including the
-     * `FieldMask` definition, see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * The update mask applies to the resource. Only display_name, description and
-     * parent_policy_tag can be updated and thus can be listed in the mask. If
-     * update_mask is not provided, all allowed fields (i.e. display_name,
-     * description and parent) will be updated. For more information including the
-     * `FieldMask` definition, see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The update mask applies to the resource. Only display_name, description and
-     * parent_policy_tag can be updated and thus can be listed in the mask. If
-     * update_mask is not provided, all allowed fields (i.e. display_name,
-     * description and parent) will be updated. For more information including the
-     * `FieldMask` definition, see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The update mask applies to the resource. Only display_name, description and
-     * parent_policy_tag can be updated and thus can be listed in the mask. If
-     * update_mask is not provided, all allowed fields (i.e. display_name,
-     * description and parent) will be updated. For more information including the
-     * `FieldMask` definition, see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * The update mask applies to the resource. Only display_name, description and
-     * parent_policy_tag can be updated and thus can be listed in the mask. If
-     * update_mask is not provided, all allowed fields (i.e. display_name,
-     * description and parent) will be updated. For more information including the
-     * `FieldMask` definition, see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * The update mask applies to the resource. Only display_name, description and
-     * parent_policy_tag can be updated and thus can be listed in the mask. If
-     * update_mask is not provided, all allowed fields (i.e. display_name,
-     * description and parent) will be updated. For more information including the
-     * `FieldMask` definition, see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The update mask applies to the resource. Only display_name, description and
-     * parent_policy_tag can be updated and thus can be listed in the mask. If
-     * update_mask is not provided, all allowed fields (i.e. display_name,
-     * description and parent) will be updated. For more information including the
-     * `FieldMask` definition, see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The update mask applies to the resource. Only display_name, description and
-     * parent_policy_tag can be updated and thus can be listed in the mask. If
-     * update_mask is not provided, all allowed fields (i.e. display_name,
-     * description and parent) will be updated. For more information including the
-     * `FieldMask` definition, see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * The update mask applies to the resource. Only display_name, description and
-     * parent_policy_tag can be updated and thus can be listed in the mask. If
-     * update_mask is not provided, all allowed fields (i.e. display_name,
-     * description and parent) will be updated. For more information including the
-     * `FieldMask` definition, see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1beta1.UpdatePolicyTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest) - private static final com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdatePolicyTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequestOrBuilder.java deleted file mode 100644 index 53d58aacf7cc..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdatePolicyTagRequestOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface UpdatePolicyTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The policy tag to update. Only the description, display_name, and
-   * parent_policy_tag fields can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - * - * @return Whether the policyTag field is set. - */ - boolean hasPolicyTag(); - - /** - * - * - *
-   * The policy tag to update. Only the description, display_name, and
-   * parent_policy_tag fields can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - * - * @return The policyTag. - */ - com.google.cloud.datacatalog.v1beta1.PolicyTag getPolicyTag(); - - /** - * - * - *
-   * The policy tag to update. Only the description, display_name, and
-   * parent_policy_tag fields can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.PolicyTag policy_tag = 1; - */ - com.google.cloud.datacatalog.v1beta1.PolicyTagOrBuilder getPolicyTagOrBuilder(); - - /** - * - * - *
-   * The update mask applies to the resource. Only display_name, description and
-   * parent_policy_tag can be updated and thus can be listed in the mask. If
-   * update_mask is not provided, all allowed fields (i.e. display_name,
-   * description and parent) will be updated. For more information including the
-   * `FieldMask` definition, see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * The update mask applies to the resource. Only display_name, description and
-   * parent_policy_tag can be updated and thus can be listed in the mask. If
-   * update_mask is not provided, all allowed fields (i.e. display_name,
-   * description and parent) will be updated. For more information including the
-   * `FieldMask` definition, see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * The update mask applies to the resource. Only display_name, description and
-   * parent_policy_tag can be updated and thus can be listed in the mask. If
-   * update_mask is not provided, all allowed fields (i.e. display_name,
-   * description and parent) will be updated. For more information including the
-   * `FieldMask` definition, see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequest.java deleted file mode 100644 index 745fa5b38cf2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequest.java +++ /dev/null @@ -1,1074 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [UpdateTag][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTag].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagRequest} - */ -@com.google.protobuf.Generated -public final class UpdateTagRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTagRequest) - UpdateTagRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateTagRequest"); - } - - // Use UpdateTagRequest.newBuilder() to construct. - private UpdateTagRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateTagRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest.Builder.class); - } - - private int bitField0_; - public static final int TAG_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1beta1.Tag tag_; - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - @java.lang.Override - public boolean hasTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Tag getTag() { - return tag_ == null ? com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance() : tag_; - } - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagOrBuilder getTagOrBuilder() { - return tag_ == null ? com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance() : tag_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Note: Currently, this parameter can only take `"fields"` as value.
-   *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Note: Currently, this parameter can only take `"fields"` as value.
-   *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * Note: Currently, this parameter can only take `"fields"` as value.
-   *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getTag()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getTag()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.UpdateTagRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest other = - (com.google.cloud.datacatalog.v1beta1.UpdateTagRequest) obj; - - if (hasTag() != other.hasTag()) return false; - if (hasTag()) { - if (!getTag().equals(other.getTag())) 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 (hasTag()) { - hash = (37 * hash) + TAG_FIELD_NUMBER; - hash = (53 * hash) + getTag().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.datacatalog.v1beta1.UpdateTagRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateTag][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTag].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.UpdateTagRequest) - com.google.cloud.datacatalog.v1beta1.UpdateTagRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.UpdateTagRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tag_ = null; - if (tagBuilder_ != null) { - tagBuilder_.dispose(); - tagBuilder_ = 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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.UpdateTagRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagRequest build() { - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.UpdateTagRequest result = - new com.google.cloud.datacatalog.v1beta1.UpdateTagRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.UpdateTagRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tag_ = tagBuilder_ == null ? tag_ : tagBuilder_.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.datacatalog.v1beta1.UpdateTagRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.UpdateTagRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.UpdateTagRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.UpdateTagRequest.getDefaultInstance()) - return this; - if (other.hasTag()) { - mergeTag(other.getTag()); - } - 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(internalGetTagFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1beta1.Tag tag_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Tag, - com.google.cloud.datacatalog.v1beta1.Tag.Builder, - com.google.cloud.datacatalog.v1beta1.TagOrBuilder> - tagBuilder_; - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - public boolean hasTag() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - public com.google.cloud.datacatalog.v1beta1.Tag getTag() { - if (tagBuilder_ == null) { - return tag_ == null ? com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance() : tag_; - } else { - return tagBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTag(com.google.cloud.datacatalog.v1beta1.Tag value) { - if (tagBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tag_ = value; - } else { - tagBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTag(com.google.cloud.datacatalog.v1beta1.Tag.Builder builderForValue) { - if (tagBuilder_ == null) { - tag_ = builderForValue.build(); - } else { - tagBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTag(com.google.cloud.datacatalog.v1beta1.Tag value) { - if (tagBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && tag_ != null - && tag_ != com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance()) { - getTagBuilder().mergeFrom(value); - } else { - tag_ = value; - } - } else { - tagBuilder_.mergeFrom(value); - } - if (tag_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTag() { - bitField0_ = (bitField0_ & ~0x00000001); - tag_ = null; - if (tagBuilder_ != null) { - tagBuilder_.dispose(); - tagBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.Tag.Builder getTagBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetTagFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagOrBuilder getTagOrBuilder() { - if (tagBuilder_ != null) { - return tagBuilder_.getMessageOrBuilder(); - } else { - return tag_ == null ? com.google.cloud.datacatalog.v1beta1.Tag.getDefaultInstance() : tag_; - } - } - - /** - * - * - *
-     * Required. The updated tag. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Tag, - com.google.cloud.datacatalog.v1beta1.Tag.Builder, - com.google.cloud.datacatalog.v1beta1.TagOrBuilder> - internalGetTagFieldBuilder() { - if (tagBuilder_ == null) { - tagBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Tag, - com.google.cloud.datacatalog.v1beta1.Tag.Builder, - com.google.cloud.datacatalog.v1beta1.TagOrBuilder>( - getTag(), getParentForChildren(), isClean()); - tag_ = null; - } - return tagBuilder_; - } - - 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_; - - /** - * - * - *
-     * Note: Currently, this parameter can only take `"fields"` as value.
-     *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Note: Currently, this parameter can only take `"fields"` as value.
-     *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Note: Currently, this parameter can only take `"fields"` as value.
-     *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Note: Currently, this parameter can only take `"fields"` as value.
-     *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Note: Currently, this parameter can only take `"fields"` as value.
-     *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Note: Currently, this parameter can only take `"fields"` as value.
-     *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Note: Currently, this parameter can only take `"fields"` as value.
-     *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Note: Currently, this parameter can only take `"fields"` as value.
-     *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * Note: Currently, this parameter can only take `"fields"` as value.
-     *
-     * Names of fields whose values to overwrite on a tag. Currently, a tag has
-     * the only modifiable field with the name `fields`.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1beta1.UpdateTagRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UpdateTagRequest) - private static final com.google.cloud.datacatalog.v1beta1.UpdateTagRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.UpdateTagRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTagRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequestOrBuilder.java deleted file mode 100644 index a6961dff4b61..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagRequestOrBuilder.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface UpdateTagRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.UpdateTagRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tag field is set. - */ - boolean hasTag(); - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tag. - */ - com.google.cloud.datacatalog.v1beta1.Tag getTag(); - - /** - * - * - *
-   * Required. The updated tag. The "name" field must be set.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Tag tag = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.TagOrBuilder getTagOrBuilder(); - - /** - * - * - *
-   * Note: Currently, this parameter can only take `"fields"` as value.
-   *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Note: Currently, this parameter can only take `"fields"` as value.
-   *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Note: Currently, this parameter can only take `"fields"` as value.
-   *
-   * Names of fields whose values to overwrite on a tag. Currently, a tag has
-   * the only modifiable field with the name `fields`.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequest.java deleted file mode 100644 index eec4db209269..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequest.java +++ /dev/null @@ -1,1431 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [UpdateTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplateField].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest} - */ -@com.google.protobuf.Generated -public final class UpdateTagTemplateFieldRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) - UpdateTagTemplateFieldRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateTagTemplateFieldRequest"); - } - - // Use UpdateTagTemplateFieldRequest.newBuilder() to construct. - private UpdateTagTemplateFieldRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateTagTemplateFieldRequest() { - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest.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 tag template field. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - - /** - * - * - *
-   * Required. The name of the tag template field. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TAG_TEMPLATE_FIELD_FIELD_NUMBER = 2; - private com.google.cloud.datacatalog.v1beta1.TagTemplateField tagTemplateField_; - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - @java.lang.Override - public boolean hasTagTemplateField() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateField getTagTemplateField() { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder - getTagTemplateFieldOrBuilder() { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Optional. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Optional. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getTagTemplateField()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getUpdateMask()); - } - 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, getTagTemplateField()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest other = - (com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) obj; - - if (!getName().equals(other.getName())) return false; - if (hasTagTemplateField() != other.hasTagTemplateField()) return false; - if (hasTagTemplateField()) { - if (!getTagTemplateField().equals(other.getTagTemplateField())) 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(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasTagTemplateField()) { - hash = (37 * hash) + TAG_TEMPLATE_FIELD_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplateField().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.datacatalog.v1beta1.UpdateTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplateField].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest.Builder.class); - } - - // Construct using - // com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagTemplateFieldFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - name_ = ""; - tagTemplateField_ = null; - if (tagTemplateFieldBuilder_ != null) { - tagTemplateFieldBuilder_.dispose(); - tagTemplateFieldBuilder_ = 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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateFieldRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest build() { - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest result = - new com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.name_ = name_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tagTemplateField_ = - tagTemplateFieldBuilder_ == null ? tagTemplateField_ : tagTemplateFieldBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 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.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) { - return mergeFrom( - (com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest - .getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasTagTemplateField()) { - mergeTagTemplateField(other.getTagTemplateField()); - } - 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: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetTagTemplateFieldFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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 tag template field. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template field. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Required. The name of the tag template field. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template field. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The name of the tag template field. Example:
-     *
-     * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-     * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - name_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.cloud.datacatalog.v1beta1.TagTemplateField tagTemplateField_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplateField, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> - tagTemplateFieldBuilder_; - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - public boolean hasTagTemplateField() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplateField getTagTemplateField() { - if (tagTemplateFieldBuilder_ == null) { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } else { - return tagTemplateFieldBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplateField( - com.google.cloud.datacatalog.v1beta1.TagTemplateField value) { - if (tagTemplateFieldBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplateField_ = value; - } else { - tagTemplateFieldBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplateField( - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder builderForValue) { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateField_ = builderForValue.build(); - } else { - tagTemplateFieldBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTagTemplateField( - com.google.cloud.datacatalog.v1beta1.TagTemplateField value) { - if (tagTemplateFieldBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && tagTemplateField_ != null - && tagTemplateField_ - != com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance()) { - getTagTemplateFieldBuilder().mergeFrom(value); - } else { - tagTemplateField_ = value; - } - } else { - tagTemplateFieldBuilder_.mergeFrom(value); - } - if (tagTemplateField_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTagTemplateField() { - bitField0_ = (bitField0_ & ~0x00000002); - tagTemplateField_ = null; - if (tagTemplateFieldBuilder_ != null) { - tagTemplateFieldBuilder_.dispose(); - tagTemplateFieldBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder - getTagTemplateFieldBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetTagTemplateFieldFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder - getTagTemplateFieldOrBuilder() { - if (tagTemplateFieldBuilder_ != null) { - return tagTemplateFieldBuilder_.getMessageOrBuilder(); - } else { - return tagTemplateField_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplateField.getDefaultInstance() - : tagTemplateField_; - } - } - - /** - * - * - *
-     * Required. The template to update.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplateField, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder> - internalGetTagTemplateFieldFieldBuilder() { - if (tagTemplateFieldBuilder_ == null) { - tagTemplateFieldBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplateField, - com.google.cloud.datacatalog.v1beta1.TagTemplateField.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder>( - getTagTemplateField(), getParentForChildren(), isClean()); - tagTemplateField_ = null; - } - return tagTemplateFieldBuilder_; - } - - 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. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && updateMask_ != null - && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { - getUpdateMaskBuilder().mergeFrom(value); - } else { - updateMask_ = value; - } - } else { - updateMaskBuilder_.mergeFrom(value); - } - if (updateMask_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000004); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Optional. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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. Names of fields whose values to overwrite on an individual field
-     * of a tag template. The following fields are modifiable:
-     *
-     * * `display_name`
-     * * `type.enum_type`
-     * * `is_required`
-     *
-     * If this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the request
-     * body, their values are emptied with one exception: when updating an enum
-     * type, the provided values are merged with the existing values. Therefore,
-     * enum values can only be added, existing enum values cannot be deleted or
-     * renamed.
-     *
-     * Additionally, updating a template field from optional to required is
-     * *not* allowed.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.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.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) - private static final com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTagTemplateFieldRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequestOrBuilder.java deleted file mode 100644 index e0a3ceccd9f6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateFieldRequestOrBuilder.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface UpdateTagTemplateFieldRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The name of the tag template field. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
-   * Required. The name of the tag template field. Example:
-   *
-   * * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}
-   * 
- * - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplateField field is set. - */ - boolean hasTagTemplateField(); - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplateField. - */ - com.google.cloud.datacatalog.v1beta1.TagTemplateField getTagTemplateField(); - - /** - * - * - *
-   * Required. The template to update.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplateField tag_template_field = 2 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.TagTemplateFieldOrBuilder getTagTemplateFieldOrBuilder(); - - /** - * - * - *
-   * Optional. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Optional. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Optional. Names of fields whose values to overwrite on an individual field
-   * of a tag template. The following fields are modifiable:
-   *
-   * * `display_name`
-   * * `type.enum_type`
-   * * `is_required`
-   *
-   * If this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the request
-   * body, their values are emptied with one exception: when updating an enum
-   * type, the provided values are merged with the existing values. Therefore,
-   * enum values can only be added, existing enum values cannot be deleted or
-   * renamed.
-   *
-   * Additionally, updating a template field from optional to required is
-   * *not* allowed.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequest.java deleted file mode 100644 index 1001150b1e18..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequest.java +++ /dev/null @@ -1,1069 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [UpdateTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplate].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest} - */ -@com.google.protobuf.Generated -public final class UpdateTagTemplateRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest) - UpdateTagTemplateRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateTagTemplateRequest"); - } - - // Use UpdateTagTemplateRequest.newBuilder() to construct. - private UpdateTagTemplateRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateTagTemplateRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest.Builder.class); - } - - private int bitField0_; - public static final int TAG_TEMPLATE_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1beta1.TagTemplate tagTemplate_; - - /** - * - * - *
-   * Required. The template to update. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - @java.lang.Override - public boolean hasTagTemplate() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * Required. The template to update. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplate getTagTemplate() { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - - /** - * - * - *
-   * Required. The template to update. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder getTagTemplateOrBuilder() { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` can be overwritten.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` can be overwritten.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` can be overwritten.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getTagTemplate()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getTagTemplate()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest other = - (com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest) obj; - - if (hasTagTemplate() != other.hasTagTemplate()) return false; - if (hasTagTemplate()) { - if (!getTagTemplate().equals(other.getTagTemplate())) 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 (hasTagTemplate()) { - hash = (37 * hash) + TAG_TEMPLATE_FIELD_NUMBER; - hash = (53 * hash) + getTagTemplate().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.datacatalog.v1beta1.UpdateTagTemplateRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplate].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest) - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTagTemplateFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tagTemplate_ = null; - if (tagTemplateBuilder_ != null) { - tagTemplateBuilder_.dispose(); - tagTemplateBuilder_ = 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.datacatalog.v1beta1.Datacatalog - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTagTemplateRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest - getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest build() { - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest result = - new com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tagTemplate_ = - tagTemplateBuilder_ == null ? tagTemplate_ : tagTemplateBuilder_.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.datacatalog.v1beta1.UpdateTagTemplateRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest other) { - if (other - == com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest.getDefaultInstance()) - return this; - if (other.hasTagTemplate()) { - mergeTagTemplate(other.getTagTemplate()); - } - 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( - internalGetTagTemplateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1beta1.TagTemplate tagTemplate_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplate, - com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder> - tagTemplateBuilder_; - - /** - * - * - *
-     * Required. The template to update. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - public boolean hasTagTemplate() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * Required. The template to update. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplate getTagTemplate() { - if (tagTemplateBuilder_ == null) { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } else { - return tagTemplateBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Required. The template to update. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplate(com.google.cloud.datacatalog.v1beta1.TagTemplate value) { - if (tagTemplateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tagTemplate_ = value; - } else { - tagTemplateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setTagTemplate( - com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder builderForValue) { - if (tagTemplateBuilder_ == null) { - tagTemplate_ = builderForValue.build(); - } else { - tagTemplateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeTagTemplate(com.google.cloud.datacatalog.v1beta1.TagTemplate value) { - if (tagTemplateBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && tagTemplate_ != null - && tagTemplate_ - != com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance()) { - getTagTemplateBuilder().mergeFrom(value); - } else { - tagTemplate_ = value; - } - } else { - tagTemplateBuilder_.mergeFrom(value); - } - if (tagTemplate_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * Required. The template to update. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearTagTemplate() { - bitField0_ = (bitField0_ & ~0x00000001); - tagTemplate_ = null; - if (tagTemplateBuilder_ != null) { - tagTemplateBuilder_.dispose(); - tagTemplateBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Required. The template to update. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder getTagTemplateBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetTagTemplateFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Required. The template to update. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder getTagTemplateOrBuilder() { - if (tagTemplateBuilder_ != null) { - return tagTemplateBuilder_.getMessageOrBuilder(); - } else { - return tagTemplate_ == null - ? com.google.cloud.datacatalog.v1beta1.TagTemplate.getDefaultInstance() - : tagTemplate_; - } - } - - /** - * - * - *
-     * Required. The template to update. The "name" field must be set.
-     * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplate, - com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder> - internalGetTagTemplateFieldBuilder() { - if (tagTemplateBuilder_ == null) { - tagTemplateBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.TagTemplate, - com.google.cloud.datacatalog.v1beta1.TagTemplate.Builder, - com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder>( - getTagTemplate(), getParentForChildren(), isClean()); - tagTemplate_ = null; - } - return tagTemplateBuilder_; - } - - 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_; - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` can be overwritten.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` can be overwritten.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` can be overwritten.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` can be overwritten.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` can be overwritten.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` can be overwritten.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` can be overwritten.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` can be overwritten.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * Names of fields whose values to overwrite on a tag template. Currently,
-     * only `display_name` can be overwritten.
-     *
-     * In general, if this parameter is absent or empty, all modifiable fields
-     * are overwritten. If such fields are non-required and omitted in the
-     * request body, their values are emptied.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1beta1.UpdateTagTemplateRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest) - private static final com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTagTemplateRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequestOrBuilder.java deleted file mode 100644 index 23518b173938..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTagTemplateRequestOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/datacatalog.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface UpdateTagTemplateRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The template to update. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the tagTemplate field is set. - */ - boolean hasTagTemplate(); - - /** - * - * - *
-   * Required. The template to update. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The tagTemplate. - */ - com.google.cloud.datacatalog.v1beta1.TagTemplate getTagTemplate(); - - /** - * - * - *
-   * Required. The template to update. The "name" field must be set.
-   * 
- * - * - * .google.cloud.datacatalog.v1beta1.TagTemplate tag_template = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.datacatalog.v1beta1.TagTemplateOrBuilder getTagTemplateOrBuilder(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` can be overwritten.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` can be overwritten.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * Names of fields whose values to overwrite on a tag template. Currently,
-   * only `display_name` can be overwritten.
-   *
-   * In general, if this parameter is absent or empty, all modifiable fields
-   * are overwritten. If such fields are non-required and omitted in the
-   * request body, their values are emptied.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequest.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequest.java deleted file mode 100644 index c4c98aff51a7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequest.java +++ /dev/null @@ -1,1027 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Request message for
- * [UpdateTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdateTaxonomy].
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest} - */ -@com.google.protobuf.Generated -public final class UpdateTaxonomyRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest) - UpdateTaxonomyRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UpdateTaxonomyRequest"); - } - - // Use UpdateTaxonomyRequest.newBuilder() to construct. - private UpdateTaxonomyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UpdateTaxonomyRequest() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest.Builder.class); - } - - private int bitField0_; - public static final int TAXONOMY_FIELD_NUMBER = 1; - private com.google.cloud.datacatalog.v1beta1.Taxonomy taxonomy_; - - /** - * - * - *
-   * The taxonomy to update. Only description, display_name, and activated
-   * policy types can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - * - * @return Whether the taxonomy field is set. - */ - @java.lang.Override - public boolean hasTaxonomy() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The taxonomy to update. Only description, display_name, and activated
-   * policy types can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - * - * @return The taxonomy. - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomy() { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - - /** - * - * - *
-   * The taxonomy to update. Only description, display_name, and activated
-   * policy types can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomyOrBuilder() { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - - /** - * - * - *
-   * The update mask applies to the resource. For the `FieldMask` definition,
-   * see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-   * The update mask applies to the resource. For the `FieldMask` definition,
-   * see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - - /** - * - * - *
-   * The update mask applies to the resource. For the `FieldMask` definition,
-   * see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - @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_ & 0x00000001) != 0)) { - output.writeMessage(1, getTaxonomy()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getUpdateMask()); - } - 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, getTaxonomy()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest other = - (com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest) obj; - - if (hasTaxonomy() != other.hasTaxonomy()) return false; - if (hasTaxonomy()) { - if (!getTaxonomy().equals(other.getTaxonomy())) 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 (hasTaxonomy()) { - hash = (37 * hash) + TAXONOMY_FIELD_NUMBER; - hash = (53 * hash) + getTaxonomy().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.datacatalog.v1beta1.UpdateTaxonomyRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder( - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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
-   * [UpdateTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdateTaxonomy].
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest) - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTaxonomyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTaxonomyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest.class, - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetTaxonomyFieldBuilder(); - internalGetUpdateMaskFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - taxonomy_ = null; - if (taxonomyBuilder_ != null) { - taxonomyBuilder_.dispose(); - taxonomyBuilder_ = 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.datacatalog.v1beta1.PolicyTagManagerProto - .internal_static_google_cloud_datacatalog_v1beta1_UpdateTaxonomyRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest build() { - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest buildPartial() { - com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest result = - new com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.taxonomy_ = taxonomyBuilder_ == null ? taxonomy_ : taxonomyBuilder_.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.datacatalog.v1beta1.UpdateTaxonomyRequest) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest other) { - if (other == com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest.getDefaultInstance()) - return this; - if (other.hasTaxonomy()) { - mergeTaxonomy(other.getTaxonomy()); - } - 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( - internalGetTaxonomyFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetUpdateMaskFieldBuilder().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.datacatalog.v1beta1.Taxonomy taxonomy_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - taxonomyBuilder_; - - /** - * - * - *
-     * The taxonomy to update. Only description, display_name, and activated
-     * policy types can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - * - * @return Whether the taxonomy field is set. - */ - public boolean hasTaxonomy() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * The taxonomy to update. Only description, display_name, and activated
-     * policy types can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - * - * @return The taxonomy. - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomy() { - if (taxonomyBuilder_ == null) { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance() - : taxonomy_; - } else { - return taxonomyBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The taxonomy to update. Only description, display_name, and activated
-     * policy types can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - */ - public Builder setTaxonomy(com.google.cloud.datacatalog.v1beta1.Taxonomy value) { - if (taxonomyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - taxonomy_ = value; - } else { - taxonomyBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to update. Only description, display_name, and activated
-     * policy types can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - */ - public Builder setTaxonomy( - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder builderForValue) { - if (taxonomyBuilder_ == null) { - taxonomy_ = builderForValue.build(); - } else { - taxonomyBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to update. Only description, display_name, and activated
-     * policy types can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - */ - public Builder mergeTaxonomy(com.google.cloud.datacatalog.v1beta1.Taxonomy value) { - if (taxonomyBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && taxonomy_ != null - && taxonomy_ != com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance()) { - getTaxonomyBuilder().mergeFrom(value); - } else { - taxonomy_ = value; - } - } else { - taxonomyBuilder_.mergeFrom(value); - } - if (taxonomy_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The taxonomy to update. Only description, display_name, and activated
-     * policy types can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - */ - public Builder clearTaxonomy() { - bitField0_ = (bitField0_ & ~0x00000001); - taxonomy_ = null; - if (taxonomyBuilder_ != null) { - taxonomyBuilder_.dispose(); - taxonomyBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The taxonomy to update. Only description, display_name, and activated
-     * policy types can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - */ - public com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder getTaxonomyBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetTaxonomyFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The taxonomy to update. Only description, display_name, and activated
-     * policy types can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - */ - public com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomyOrBuilder() { - if (taxonomyBuilder_ != null) { - return taxonomyBuilder_.getMessageOrBuilder(); - } else { - return taxonomy_ == null - ? com.google.cloud.datacatalog.v1beta1.Taxonomy.getDefaultInstance() - : taxonomy_; - } - } - - /** - * - * - *
-     * The taxonomy to update. Only description, display_name, and activated
-     * policy types can be updated.
-     * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder> - internalGetTaxonomyFieldBuilder() { - if (taxonomyBuilder_ == null) { - taxonomyBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.datacatalog.v1beta1.Taxonomy, - com.google.cloud.datacatalog.v1beta1.Taxonomy.Builder, - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder>( - getTaxonomy(), getParentForChildren(), isClean()); - taxonomy_ = null; - } - return taxonomyBuilder_; - } - - 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_; - - /** - * - * - *
-     * The update mask applies to the resource. For the `FieldMask` definition,
-     * see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
-     * The update mask applies to the resource. For the `FieldMask` definition,
-     * see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The update mask applies to the resource. For the `FieldMask` definition,
-     * see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - } else { - updateMaskBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The update mask applies to the resource. For the `FieldMask` definition,
-     * see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * The update mask applies to the resource. For the `FieldMask` definition,
-     * see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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; - } - - /** - * - * - *
-     * The update mask applies to the resource. For the `FieldMask` definition,
-     * see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - bitField0_ = (bitField0_ & ~0x00000002); - updateMask_ = null; - if (updateMaskBuilder_ != null) { - updateMaskBuilder_.dispose(); - updateMaskBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The update mask applies to the resource. For the `FieldMask` definition,
-     * see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateMaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The update mask applies to the resource. For the `FieldMask` definition,
-     * see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null - ? com.google.protobuf.FieldMask.getDefaultInstance() - : updateMask_; - } - } - - /** - * - * - *
-     * The update mask applies to the resource. For the `FieldMask` definition,
-     * see
-     * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-     * If not set, defaults to all of the fields that are allowed to update.
-     * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - 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.datacatalog.v1beta1.UpdateTaxonomyRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest) - private static final com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest(); - } - - public static com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateTaxonomyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequestOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequestOrBuilder.java deleted file mode 100644 index f024bfb38dd8..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UpdateTaxonomyRequestOrBuilder.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/policytagmanager.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface UpdateTaxonomyRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The taxonomy to update. Only description, display_name, and activated
-   * policy types can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - * - * @return Whether the taxonomy field is set. - */ - boolean hasTaxonomy(); - - /** - * - * - *
-   * The taxonomy to update. Only description, display_name, and activated
-   * policy types can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - * - * @return The taxonomy. - */ - com.google.cloud.datacatalog.v1beta1.Taxonomy getTaxonomy(); - - /** - * - * - *
-   * The taxonomy to update. Only description, display_name, and activated
-   * policy types can be updated.
-   * 
- * - * .google.cloud.datacatalog.v1beta1.Taxonomy taxonomy = 1; - */ - com.google.cloud.datacatalog.v1beta1.TaxonomyOrBuilder getTaxonomyOrBuilder(); - - /** - * - * - *
-   * The update mask applies to the resource. For the `FieldMask` definition,
-   * see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - - /** - * - * - *
-   * The update mask applies to the resource. For the `FieldMask` definition,
-   * see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - * - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - - /** - * - * - *
-   * The update mask applies to the resource. For the `FieldMask` definition,
-   * see
-   * https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask
-   * If not set, defaults to all of the fields that are allowed to update.
-   * 
- * - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Usage.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Usage.java deleted file mode 100644 index 53c2886ca297..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/Usage.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public final class Usage extends com.google.protobuf.GeneratedFile { - private Usage() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Usage"); - } - - 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_datacatalog_v1beta1_UsageStats_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_UsageStats_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_UsageWithinTimeRangeEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_UsageWithinTimeRangeEntry_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/datacatalog/v1beta1/usage" - + ".proto\022 google.cloud.datacatalog.v1beta1" - + "\032\037google/protobuf/timestamp.proto\"\221\001\n\nUs" - + "ageStats\022\031\n\021total_completions\030\001 \001(\002\022\026\n\016t" - + "otal_failures\030\002 \001(\002\022\033\n\023total_cancellatio" - + "ns\030\003 \001(\002\0223\n+total_execution_time_for_com" - + "pletions_millis\030\004 \001(\002\"\223\002\n\013UsageSignal\022/\n" - + "\013update_time\030\001 \001(\0132\032.google.protobuf.Tim" - + "estamp\022h\n\027usage_within_time_range\030\002 \003(\0132" - + "G.google.cloud.datacatalog.v1beta1.Usage" - + "Signal.UsageWithinTimeRangeEntry\032i\n\031Usag" - + "eWithinTimeRangeEntry\022\013\n\003key\030\001 \001(\t\022;\n\005va" - + "lue\030\002 \001(\0132,.google.cloud.datacatalog.v1b" - + "eta1.UsageStats:\0028\001B\334\001\n$com.google.cloud" - + ".datacatalog.v1beta1P\001ZFcloud.google.com" - + "/go/datacatalog/apiv1beta1/datacatalogpb" - + ";datacatalogpb\252\002 Google.Cloud.DataCatalo" - + "g.V1Beta1\312\002 Google\\Cloud\\DataCatalog\\V1b" - + "eta1\352\002#Google::Cloud::DataCatalog::V1bet" - + "a1b\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.TimestampProto.getDescriptor(), - }); - internal_static_google_cloud_datacatalog_v1beta1_UsageStats_descriptor = - getDescriptor().getMessageType(0); - internal_static_google_cloud_datacatalog_v1beta1_UsageStats_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UsageStats_descriptor, - new java.lang.String[] { - "TotalCompletions", - "TotalFailures", - "TotalCancellations", - "TotalExecutionTimeForCompletionsMillis", - }); - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_descriptor = - getDescriptor().getMessageType(1); - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_descriptor, - new java.lang.String[] { - "UpdateTime", "UsageWithinTimeRange", - }); - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_UsageWithinTimeRangeEntry_descriptor = - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_descriptor.getNestedType(0); - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_UsageWithinTimeRangeEntry_fieldAccessorTable = - new com.google.protobuf.GeneratedMessage.FieldAccessorTable( - internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_UsageWithinTimeRangeEntry_descriptor, - new java.lang.String[] { - "Key", "Value", - }); - descriptor.resolveAllFeaturesImmutable(); - com.google.protobuf.TimestampProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignal.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignal.java deleted file mode 100644 index 40a886117080..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignal.java +++ /dev/null @@ -1,1183 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * The set of all usage signals that we store in Data Catalog.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UsageSignal} - */ -@com.google.protobuf.Generated -public final class UsageSignal extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UsageSignal) - UsageSignalOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UsageSignal"); - } - - // Use UsageSignal.newBuilder() to construct. - private UsageSignal(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UsageSignal() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetUsageWithinTimeRange(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UsageSignal.class, - com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder.class); - } - - private int bitField0_; - public static final int UPDATE_TIME_FIELD_NUMBER = 1; - private com.google.protobuf.Timestamp updateTime_; - - /** - * - * - *
-   * The timestamp of the end of the usage statistics duration.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return Whether the updateTime field is set. - */ - @java.lang.Override - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-   * The timestamp of the end of the usage statistics duration.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return The updateTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getUpdateTime() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - /** - * - * - *
-   * The timestamp of the end of the usage statistics duration.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; - } - - public static final int USAGE_WITHIN_TIME_RANGE_FIELD_NUMBER = 2; - - private static final class UsageWithinTimeRangeDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.UsageStats> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_UsageWithinTimeRangeEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.datacatalog.v1beta1.UsageStats.getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1beta1.UsageStats> - usageWithinTimeRange_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.datacatalog.v1beta1.UsageStats> - internalGetUsageWithinTimeRange() { - if (usageWithinTimeRange_ == null) { - return com.google.protobuf.MapField.emptyMapField( - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - return usageWithinTimeRange_; - } - - public int getUsageWithinTimeRangeCount() { - return internalGetUsageWithinTimeRange().getMap().size(); - } - - /** - * - * - *
-   * Usage statistics over each of the pre-defined time ranges, supported
-   * strings for time ranges are {"24H", "7D", "30D"}.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - @java.lang.Override - public boolean containsUsageWithinTimeRange(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetUsageWithinTimeRange().getMap().containsKey(key); - } - - /** Use {@link #getUsageWithinTimeRangeMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getUsageWithinTimeRange() { - return getUsageWithinTimeRangeMap(); - } - - /** - * - * - *
-   * Usage statistics over each of the pre-defined time ranges, supported
-   * strings for time ranges are {"24H", "7D", "30D"}.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - @java.lang.Override - public java.util.Map - getUsageWithinTimeRangeMap() { - return internalGetUsageWithinTimeRange().getMap(); - } - - /** - * - * - *
-   * Usage statistics over each of the pre-defined time ranges, supported
-   * strings for time ranges are {"24H", "7D", "30D"}.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1beta1.UsageStats - getUsageWithinTimeRangeOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1beta1.UsageStats defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetUsageWithinTimeRange().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
-   * Usage statistics over each of the pre-defined time ranges, supported
-   * strings for time ranges are {"24H", "7D", "30D"}.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageStats getUsageWithinTimeRangeOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetUsageWithinTimeRange().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 (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getUpdateTime()); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, - internalGetUsageWithinTimeRange(), - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry, - 2); - 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, getUpdateTime()); - } - for (java.util.Map.Entry - entry : internalGetUsageWithinTimeRange().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.UsageStats> - usageWithinTimeRange__ = - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, usageWithinTimeRange__); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.UsageSignal)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.UsageSignal other = - (com.google.cloud.datacatalog.v1beta1.UsageSignal) obj; - - if (hasUpdateTime() != other.hasUpdateTime()) return false; - if (hasUpdateTime()) { - if (!getUpdateTime().equals(other.getUpdateTime())) return false; - } - if (!internalGetUsageWithinTimeRange().equals(other.internalGetUsageWithinTimeRange())) - return false; - if (!getUnknownFields().equals(other.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 (hasUpdateTime()) { - hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getUpdateTime().hashCode(); - } - if (!internalGetUsageWithinTimeRange().getMap().isEmpty()) { - hash = (37 * hash) + USAGE_WITHIN_TIME_RANGE_FIELD_NUMBER; - hash = (53 * hash) + internalGetUsageWithinTimeRange().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.UsageSignal prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 set of all usage signals that we store in Data Catalog.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UsageSignal} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.UsageSignal) - com.google.cloud.datacatalog.v1beta1.UsageSignalOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetUsageWithinTimeRange(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 2: - return internalGetMutableUsageWithinTimeRange(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UsageSignal.class, - com.google.cloud.datacatalog.v1beta1.UsageSignal.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.UsageSignal.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetUpdateTimeFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - internalGetMutableUsageWithinTimeRange().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageSignal_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageSignal getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageSignal build() { - com.google.cloud.datacatalog.v1beta1.UsageSignal result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageSignal buildPartial() { - com.google.cloud.datacatalog.v1beta1.UsageSignal result = - new com.google.cloud.datacatalog.v1beta1.UsageSignal(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.UsageSignal result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.usageWithinTimeRange_ = - internalGetUsageWithinTimeRange() - .build(UsageWithinTimeRangeDefaultEntryHolder.defaultEntry); - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.UsageSignal) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.UsageSignal) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.UsageSignal other) { - if (other == com.google.cloud.datacatalog.v1beta1.UsageSignal.getDefaultInstance()) - return this; - if (other.hasUpdateTime()) { - mergeUpdateTime(other.getUpdateTime()); - } - internalGetMutableUsageWithinTimeRange().mergeFrom(other.internalGetUsageWithinTimeRange()); - 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: - { - input.readMessage( - internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.UsageStats> - usageWithinTimeRange__ = - input.readMessage( - UsageWithinTimeRangeDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableUsageWithinTimeRange() - .ensureBuilderMap() - .put(usageWithinTimeRange__.getKey(), usageWithinTimeRange__.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.Timestamp updateTime_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - updateTimeBuilder_; - - /** - * - * - *
-     * The timestamp of the end of the usage statistics duration.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return Whether the updateTime field is set. - */ - public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
-     * The timestamp of the end of the usage statistics duration.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return The updateTime. - */ - public com.google.protobuf.Timestamp getUpdateTime() { - if (updateTimeBuilder_ == null) { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } else { - return updateTimeBuilder_.getMessage(); - } - } - - /** - * - * - *
-     * The timestamp of the end of the usage statistics duration.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateTime_ = value; - } else { - updateTimeBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The timestamp of the end of the usage statistics duration.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { - if (updateTimeBuilder_ == null) { - updateTime_ = builderForValue.build(); - } else { - updateTimeBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The timestamp of the end of the usage statistics duration.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { - if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && updateTime_ != null - && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getUpdateTimeBuilder().mergeFrom(value); - } else { - updateTime_ = value; - } - } else { - updateTimeBuilder_.mergeFrom(value); - } - if (updateTime_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
-     * The timestamp of the end of the usage statistics duration.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000001); - updateTime_ = null; - if (updateTimeBuilder_ != null) { - updateTimeBuilder_.dispose(); - updateTimeBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
-     * The timestamp of the end of the usage statistics duration.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetUpdateTimeFieldBuilder().getBuilder(); - } - - /** - * - * - *
-     * The timestamp of the end of the usage statistics duration.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { - if (updateTimeBuilder_ != null) { - return updateTimeBuilder_.getMessageOrBuilder(); - } else { - return updateTime_ == null - ? com.google.protobuf.Timestamp.getDefaultInstance() - : updateTime_; - } - } - - /** - * - * - *
-     * The timestamp of the end of the usage statistics duration.
-     * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - 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 static final class UsageWithinTimeRangeConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.UsageStatsOrBuilder, - com.google.cloud.datacatalog.v1beta1.UsageStats> { - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageStats build( - com.google.cloud.datacatalog.v1beta1.UsageStatsOrBuilder val) { - if (val instanceof com.google.cloud.datacatalog.v1beta1.UsageStats) { - return (com.google.cloud.datacatalog.v1beta1.UsageStats) val; - } - return ((com.google.cloud.datacatalog.v1beta1.UsageStats.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.datacatalog.v1beta1.UsageStats> - defaultEntry() { - return UsageWithinTimeRangeDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final UsageWithinTimeRangeConverter usageWithinTimeRangeConverter = - new UsageWithinTimeRangeConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.UsageStatsOrBuilder, - com.google.cloud.datacatalog.v1beta1.UsageStats, - com.google.cloud.datacatalog.v1beta1.UsageStats.Builder> - usageWithinTimeRange_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.UsageStatsOrBuilder, - com.google.cloud.datacatalog.v1beta1.UsageStats, - com.google.cloud.datacatalog.v1beta1.UsageStats.Builder> - internalGetUsageWithinTimeRange() { - if (usageWithinTimeRange_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(usageWithinTimeRangeConverter); - } - return usageWithinTimeRange_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.datacatalog.v1beta1.UsageStatsOrBuilder, - com.google.cloud.datacatalog.v1beta1.UsageStats, - com.google.cloud.datacatalog.v1beta1.UsageStats.Builder> - internalGetMutableUsageWithinTimeRange() { - if (usageWithinTimeRange_ == null) { - usageWithinTimeRange_ = - new com.google.protobuf.MapFieldBuilder<>(usageWithinTimeRangeConverter); - } - bitField0_ |= 0x00000002; - onChanged(); - return usageWithinTimeRange_; - } - - public int getUsageWithinTimeRangeCount() { - return internalGetUsageWithinTimeRange().ensureBuilderMap().size(); - } - - /** - * - * - *
-     * Usage statistics over each of the pre-defined time ranges, supported
-     * strings for time ranges are {"24H", "7D", "30D"}.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - @java.lang.Override - public boolean containsUsageWithinTimeRange(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetUsageWithinTimeRange().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getUsageWithinTimeRangeMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getUsageWithinTimeRange() { - return getUsageWithinTimeRangeMap(); - } - - /** - * - * - *
-     * Usage statistics over each of the pre-defined time ranges, supported
-     * strings for time ranges are {"24H", "7D", "30D"}.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - @java.lang.Override - public java.util.Map - getUsageWithinTimeRangeMap() { - return internalGetUsageWithinTimeRange().getImmutableMap(); - } - - /** - * - * - *
-     * Usage statistics over each of the pre-defined time ranges, supported
-     * strings for time ranges are {"24H", "7D", "30D"}.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.datacatalog.v1beta1.UsageStats - getUsageWithinTimeRangeOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1beta1.UsageStats defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableUsageWithinTimeRange().ensureBuilderMap(); - return map.containsKey(key) - ? usageWithinTimeRangeConverter.build(map.get(key)) - : defaultValue; - } - - /** - * - * - *
-     * Usage statistics over each of the pre-defined time ranges, supported
-     * strings for time ranges are {"24H", "7D", "30D"}.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageStats getUsageWithinTimeRangeOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetMutableUsageWithinTimeRange().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return usageWithinTimeRangeConverter.build(map.get(key)); - } - - public Builder clearUsageWithinTimeRange() { - bitField0_ = (bitField0_ & ~0x00000002); - internalGetMutableUsageWithinTimeRange().clear(); - return this; - } - - /** - * - * - *
-     * Usage statistics over each of the pre-defined time ranges, supported
-     * strings for time ranges are {"24H", "7D", "30D"}.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - public Builder removeUsageWithinTimeRange(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableUsageWithinTimeRange().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableUsageWithinTimeRange() { - bitField0_ |= 0x00000002; - return internalGetMutableUsageWithinTimeRange().ensureMessageMap(); - } - - /** - * - * - *
-     * Usage statistics over each of the pre-defined time ranges, supported
-     * strings for time ranges are {"24H", "7D", "30D"}.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - public Builder putUsageWithinTimeRange( - java.lang.String key, com.google.cloud.datacatalog.v1beta1.UsageStats value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableUsageWithinTimeRange().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000002; - return this; - } - - /** - * - * - *
-     * Usage statistics over each of the pre-defined time ranges, supported
-     * strings for time ranges are {"24H", "7D", "30D"}.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - public Builder putAllUsageWithinTimeRange( - java.util.Map values) { - for (java.util.Map.Entry - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableUsageWithinTimeRange().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000002; - return this; - } - - /** - * - * - *
-     * Usage statistics over each of the pre-defined time ranges, supported
-     * strings for time ranges are {"24H", "7D", "30D"}.
-     * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - public com.google.cloud.datacatalog.v1beta1.UsageStats.Builder - putUsageWithinTimeRangeBuilderIfAbsent(java.lang.String key) { - java.util.Map - builderMap = internalGetMutableUsageWithinTimeRange().ensureBuilderMap(); - com.google.cloud.datacatalog.v1beta1.UsageStatsOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.datacatalog.v1beta1.UsageStats.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.datacatalog.v1beta1.UsageStats) { - entry = ((com.google.cloud.datacatalog.v1beta1.UsageStats) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.datacatalog.v1beta1.UsageStats.Builder) entry; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.UsageSignal) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UsageSignal) - private static final com.google.cloud.datacatalog.v1beta1.UsageSignal DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.UsageSignal(); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageSignal getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UsageSignal parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageSignal getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignalOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignalOrBuilder.java deleted file mode 100644 index b536fcafa614..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageSignalOrBuilder.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface UsageSignalOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.UsageSignal) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The timestamp of the end of the usage statistics duration.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return Whether the updateTime field is set. - */ - boolean hasUpdateTime(); - - /** - * - * - *
-   * The timestamp of the end of the usage statistics duration.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - * - * @return The updateTime. - */ - com.google.protobuf.Timestamp getUpdateTime(); - - /** - * - * - *
-   * The timestamp of the end of the usage statistics duration.
-   * 
- * - * .google.protobuf.Timestamp update_time = 1; - */ - com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - - /** - * - * - *
-   * Usage statistics over each of the pre-defined time ranges, supported
-   * strings for time ranges are {"24H", "7D", "30D"}.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - int getUsageWithinTimeRangeCount(); - - /** - * - * - *
-   * Usage statistics over each of the pre-defined time ranges, supported
-   * strings for time ranges are {"24H", "7D", "30D"}.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - boolean containsUsageWithinTimeRange(java.lang.String key); - - /** Use {@link #getUsageWithinTimeRangeMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getUsageWithinTimeRange(); - - /** - * - * - *
-   * Usage statistics over each of the pre-defined time ranges, supported
-   * strings for time ranges are {"24H", "7D", "30D"}.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - java.util.Map - getUsageWithinTimeRangeMap(); - - /** - * - * - *
-   * Usage statistics over each of the pre-defined time ranges, supported
-   * strings for time ranges are {"24H", "7D", "30D"}.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - /* nullable */ - com.google.cloud.datacatalog.v1beta1.UsageStats getUsageWithinTimeRangeOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.datacatalog.v1beta1.UsageStats defaultValue); - - /** - * - * - *
-   * Usage statistics over each of the pre-defined time ranges, supported
-   * strings for time ranges are {"24H", "7D", "30D"}.
-   * 
- * - * - * map<string, .google.cloud.datacatalog.v1beta1.UsageStats> usage_within_time_range = 2; - * - */ - com.google.cloud.datacatalog.v1beta1.UsageStats getUsageWithinTimeRangeOrThrow( - java.lang.String key); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStats.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStats.java deleted file mode 100644 index 2d2637aa192c..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStats.java +++ /dev/null @@ -1,824 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Detailed counts on the entry's usage.
- * Caveats:
- * - Only BigQuery tables have usage stats
- * - The usage stats only include BigQuery query jobs
- * - The usage stats might be underestimated, e.g. wildcard table references
- * are not yet counted in usage computation
- * https://cloud.google.com/bigquery/docs/querying-wildcard-tables
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UsageStats} - */ -@com.google.protobuf.Generated -public final class UsageStats extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.UsageStats) - UsageStatsOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "UsageStats"); - } - - // Use UsageStats.newBuilder() to construct. - private UsageStats(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private UsageStats() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UsageStats.class, - com.google.cloud.datacatalog.v1beta1.UsageStats.Builder.class); - } - - public static final int TOTAL_COMPLETIONS_FIELD_NUMBER = 1; - private float totalCompletions_ = 0F; - - /** - * - * - *
-   * The number of times that the underlying entry was successfully used.
-   * 
- * - * float total_completions = 1; - * - * @return The totalCompletions. - */ - @java.lang.Override - public float getTotalCompletions() { - return totalCompletions_; - } - - public static final int TOTAL_FAILURES_FIELD_NUMBER = 2; - private float totalFailures_ = 0F; - - /** - * - * - *
-   * The number of times that the underlying entry was attempted to be used
-   * but failed.
-   * 
- * - * float total_failures = 2; - * - * @return The totalFailures. - */ - @java.lang.Override - public float getTotalFailures() { - return totalFailures_; - } - - public static final int TOTAL_CANCELLATIONS_FIELD_NUMBER = 3; - private float totalCancellations_ = 0F; - - /** - * - * - *
-   * The number of times that the underlying entry was attempted to be used
-   * but was cancelled by the user.
-   * 
- * - * float total_cancellations = 3; - * - * @return The totalCancellations. - */ - @java.lang.Override - public float getTotalCancellations() { - return totalCancellations_; - } - - public static final int TOTAL_EXECUTION_TIME_FOR_COMPLETIONS_MILLIS_FIELD_NUMBER = 4; - private float totalExecutionTimeForCompletionsMillis_ = 0F; - - /** - * - * - *
-   * Total time spent (in milliseconds) during uses the resulted in completions.
-   * 
- * - * float total_execution_time_for_completions_millis = 4; - * - * @return The totalExecutionTimeForCompletionsMillis. - */ - @java.lang.Override - public float getTotalExecutionTimeForCompletionsMillis() { - return totalExecutionTimeForCompletionsMillis_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (java.lang.Float.floatToRawIntBits(totalCompletions_) != 0) { - output.writeFloat(1, totalCompletions_); - } - if (java.lang.Float.floatToRawIntBits(totalFailures_) != 0) { - output.writeFloat(2, totalFailures_); - } - if (java.lang.Float.floatToRawIntBits(totalCancellations_) != 0) { - output.writeFloat(3, totalCancellations_); - } - if (java.lang.Float.floatToRawIntBits(totalExecutionTimeForCompletionsMillis_) != 0) { - output.writeFloat(4, totalExecutionTimeForCompletionsMillis_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (java.lang.Float.floatToRawIntBits(totalCompletions_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, totalCompletions_); - } - if (java.lang.Float.floatToRawIntBits(totalFailures_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, totalFailures_); - } - if (java.lang.Float.floatToRawIntBits(totalCancellations_) != 0) { - size += com.google.protobuf.CodedOutputStream.computeFloatSize(3, totalCancellations_); - } - if (java.lang.Float.floatToRawIntBits(totalExecutionTimeForCompletionsMillis_) != 0) { - size += - com.google.protobuf.CodedOutputStream.computeFloatSize( - 4, totalExecutionTimeForCompletionsMillis_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.UsageStats)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.UsageStats other = - (com.google.cloud.datacatalog.v1beta1.UsageStats) obj; - - if (java.lang.Float.floatToIntBits(getTotalCompletions()) - != java.lang.Float.floatToIntBits(other.getTotalCompletions())) return false; - if (java.lang.Float.floatToIntBits(getTotalFailures()) - != java.lang.Float.floatToIntBits(other.getTotalFailures())) return false; - if (java.lang.Float.floatToIntBits(getTotalCancellations()) - != java.lang.Float.floatToIntBits(other.getTotalCancellations())) return false; - if (java.lang.Float.floatToIntBits(getTotalExecutionTimeForCompletionsMillis()) - != java.lang.Float.floatToIntBits(other.getTotalExecutionTimeForCompletionsMillis())) - return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOTAL_COMPLETIONS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTotalCompletions()); - hash = (37 * hash) + TOTAL_FAILURES_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTotalFailures()); - hash = (37 * hash) + TOTAL_CANCELLATIONS_FIELD_NUMBER; - hash = (53 * hash) + java.lang.Float.floatToIntBits(getTotalCancellations()); - hash = (37 * hash) + TOTAL_EXECUTION_TIME_FOR_COMPLETIONS_MILLIS_FIELD_NUMBER; - hash = - (53 * hash) + java.lang.Float.floatToIntBits(getTotalExecutionTimeForCompletionsMillis()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.UsageStats prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Detailed counts on the entry's usage.
-   * Caveats:
-   * - Only BigQuery tables have usage stats
-   * - The usage stats only include BigQuery query jobs
-   * - The usage stats might be underestimated, e.g. wildcard table references
-   * are not yet counted in usage computation
-   * https://cloud.google.com/bigquery/docs/querying-wildcard-tables
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.UsageStats} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.UsageStats) - com.google.cloud.datacatalog.v1beta1.UsageStatsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageStats_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageStats_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.UsageStats.class, - com.google.cloud.datacatalog.v1beta1.UsageStats.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.UsageStats.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - totalCompletions_ = 0F; - totalFailures_ = 0F; - totalCancellations_ = 0F; - totalExecutionTimeForCompletionsMillis_ = 0F; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.Usage - .internal_static_google_cloud_datacatalog_v1beta1_UsageStats_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageStats getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.UsageStats.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageStats build() { - com.google.cloud.datacatalog.v1beta1.UsageStats result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageStats buildPartial() { - com.google.cloud.datacatalog.v1beta1.UsageStats result = - new com.google.cloud.datacatalog.v1beta1.UsageStats(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.UsageStats result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.totalCompletions_ = totalCompletions_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.totalFailures_ = totalFailures_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.totalCancellations_ = totalCancellations_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.totalExecutionTimeForCompletionsMillis_ = totalExecutionTimeForCompletionsMillis_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.UsageStats) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.UsageStats) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.UsageStats other) { - if (other == com.google.cloud.datacatalog.v1beta1.UsageStats.getDefaultInstance()) - return this; - if (java.lang.Float.floatToRawIntBits(other.getTotalCompletions()) != 0) { - setTotalCompletions(other.getTotalCompletions()); - } - if (java.lang.Float.floatToRawIntBits(other.getTotalFailures()) != 0) { - setTotalFailures(other.getTotalFailures()); - } - if (java.lang.Float.floatToRawIntBits(other.getTotalCancellations()) != 0) { - setTotalCancellations(other.getTotalCancellations()); - } - if (java.lang.Float.floatToRawIntBits(other.getTotalExecutionTimeForCompletionsMillis()) - != 0) { - setTotalExecutionTimeForCompletionsMillis( - other.getTotalExecutionTimeForCompletionsMillis()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 13: - { - totalCompletions_ = input.readFloat(); - bitField0_ |= 0x00000001; - break; - } // case 13 - case 21: - { - totalFailures_ = input.readFloat(); - bitField0_ |= 0x00000002; - break; - } // case 21 - case 29: - { - totalCancellations_ = input.readFloat(); - bitField0_ |= 0x00000004; - break; - } // case 29 - case 37: - { - totalExecutionTimeForCompletionsMillis_ = input.readFloat(); - bitField0_ |= 0x00000008; - break; - } // case 37 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private float totalCompletions_; - - /** - * - * - *
-     * The number of times that the underlying entry was successfully used.
-     * 
- * - * float total_completions = 1; - * - * @return The totalCompletions. - */ - @java.lang.Override - public float getTotalCompletions() { - return totalCompletions_; - } - - /** - * - * - *
-     * The number of times that the underlying entry was successfully used.
-     * 
- * - * float total_completions = 1; - * - * @param value The totalCompletions to set. - * @return This builder for chaining. - */ - public Builder setTotalCompletions(float value) { - - totalCompletions_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * The number of times that the underlying entry was successfully used.
-     * 
- * - * float total_completions = 1; - * - * @return This builder for chaining. - */ - public Builder clearTotalCompletions() { - bitField0_ = (bitField0_ & ~0x00000001); - totalCompletions_ = 0F; - onChanged(); - return this; - } - - private float totalFailures_; - - /** - * - * - *
-     * The number of times that the underlying entry was attempted to be used
-     * but failed.
-     * 
- * - * float total_failures = 2; - * - * @return The totalFailures. - */ - @java.lang.Override - public float getTotalFailures() { - return totalFailures_; - } - - /** - * - * - *
-     * The number of times that the underlying entry was attempted to be used
-     * but failed.
-     * 
- * - * float total_failures = 2; - * - * @param value The totalFailures to set. - * @return This builder for chaining. - */ - public Builder setTotalFailures(float value) { - - totalFailures_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
-     * The number of times that the underlying entry was attempted to be used
-     * but failed.
-     * 
- * - * float total_failures = 2; - * - * @return This builder for chaining. - */ - public Builder clearTotalFailures() { - bitField0_ = (bitField0_ & ~0x00000002); - totalFailures_ = 0F; - onChanged(); - return this; - } - - private float totalCancellations_; - - /** - * - * - *
-     * The number of times that the underlying entry was attempted to be used
-     * but was cancelled by the user.
-     * 
- * - * float total_cancellations = 3; - * - * @return The totalCancellations. - */ - @java.lang.Override - public float getTotalCancellations() { - return totalCancellations_; - } - - /** - * - * - *
-     * The number of times that the underlying entry was attempted to be used
-     * but was cancelled by the user.
-     * 
- * - * float total_cancellations = 3; - * - * @param value The totalCancellations to set. - * @return This builder for chaining. - */ - public Builder setTotalCancellations(float value) { - - totalCancellations_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
-     * The number of times that the underlying entry was attempted to be used
-     * but was cancelled by the user.
-     * 
- * - * float total_cancellations = 3; - * - * @return This builder for chaining. - */ - public Builder clearTotalCancellations() { - bitField0_ = (bitField0_ & ~0x00000004); - totalCancellations_ = 0F; - onChanged(); - return this; - } - - private float totalExecutionTimeForCompletionsMillis_; - - /** - * - * - *
-     * Total time spent (in milliseconds) during uses the resulted in completions.
-     * 
- * - * float total_execution_time_for_completions_millis = 4; - * - * @return The totalExecutionTimeForCompletionsMillis. - */ - @java.lang.Override - public float getTotalExecutionTimeForCompletionsMillis() { - return totalExecutionTimeForCompletionsMillis_; - } - - /** - * - * - *
-     * Total time spent (in milliseconds) during uses the resulted in completions.
-     * 
- * - * float total_execution_time_for_completions_millis = 4; - * - * @param value The totalExecutionTimeForCompletionsMillis to set. - * @return This builder for chaining. - */ - public Builder setTotalExecutionTimeForCompletionsMillis(float value) { - - totalExecutionTimeForCompletionsMillis_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
-     * Total time spent (in milliseconds) during uses the resulted in completions.
-     * 
- * - * float total_execution_time_for_completions_millis = 4; - * - * @return This builder for chaining. - */ - public Builder clearTotalExecutionTimeForCompletionsMillis() { - bitField0_ = (bitField0_ & ~0x00000008); - totalExecutionTimeForCompletionsMillis_ = 0F; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.UsageStats) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UsageStats) - private static final com.google.cloud.datacatalog.v1beta1.UsageStats DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.UsageStats(); - } - - public static com.google.cloud.datacatalog.v1beta1.UsageStats getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UsageStats parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.UsageStats getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStatsOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStatsOrBuilder.java deleted file mode 100644 index ff92f011bfb7..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/UsageStatsOrBuilder.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/usage.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface UsageStatsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.UsageStats) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The number of times that the underlying entry was successfully used.
-   * 
- * - * float total_completions = 1; - * - * @return The totalCompletions. - */ - float getTotalCompletions(); - - /** - * - * - *
-   * The number of times that the underlying entry was attempted to be used
-   * but failed.
-   * 
- * - * float total_failures = 2; - * - * @return The totalFailures. - */ - float getTotalFailures(); - - /** - * - * - *
-   * The number of times that the underlying entry was attempted to be used
-   * but was cancelled by the user.
-   * 
- * - * float total_cancellations = 3; - * - * @return The totalCancellations. - */ - float getTotalCancellations(); - - /** - * - * - *
-   * Total time spent (in milliseconds) during uses the resulted in completions.
-   * 
- * - * float total_execution_time_for_completions_millis = 4; - * - * @return The totalExecutionTimeForCompletionsMillis. - */ - float getTotalExecutionTimeForCompletionsMillis(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpec.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpec.java deleted file mode 100644 index 543b1f964efc..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpec.java +++ /dev/null @@ -1,595 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -/** - * - * - *
- * Table view specification.
- * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ViewSpec} - */ -@com.google.protobuf.Generated -public final class ViewSpec extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.datacatalog.v1beta1.ViewSpec) - ViewSpecOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ViewSpec"); - } - - // Use ViewSpec.newBuilder() to construct. - private ViewSpec(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ViewSpec() { - viewQuery_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ViewSpec.class, - com.google.cloud.datacatalog.v1beta1.ViewSpec.Builder.class); - } - - public static final int VIEW_QUERY_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object viewQuery_ = ""; - - /** - * - * - *
-   * Output only. The query that defines the table view.
-   * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The viewQuery. - */ - @java.lang.Override - public java.lang.String getViewQuery() { - java.lang.Object ref = viewQuery_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - viewQuery_ = s; - return s; - } - } - - /** - * - * - *
-   * Output only. The query that defines the table view.
-   * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for viewQuery. - */ - @java.lang.Override - public com.google.protobuf.ByteString getViewQueryBytes() { - java.lang.Object ref = viewQuery_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - viewQuery_ = 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(viewQuery_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, viewQuery_); - } - 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(viewQuery_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, viewQuery_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.cloud.datacatalog.v1beta1.ViewSpec)) { - return super.equals(obj); - } - com.google.cloud.datacatalog.v1beta1.ViewSpec other = - (com.google.cloud.datacatalog.v1beta1.ViewSpec) obj; - - if (!getViewQuery().equals(other.getViewQuery())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + VIEW_QUERY_FIELD_NUMBER; - hash = (53 * hash) + getViewQuery().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseFrom( - java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } - - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - - public static Builder newBuilder(com.google.cloud.datacatalog.v1beta1.ViewSpec prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
-   * Table view specification.
-   * 
- * - * Protobuf type {@code google.cloud.datacatalog.v1beta1.ViewSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.datacatalog.v1beta1.ViewSpec) - com.google.cloud.datacatalog.v1beta1.ViewSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.datacatalog.v1beta1.ViewSpec.class, - com.google.cloud.datacatalog.v1beta1.ViewSpec.Builder.class); - } - - // Construct using com.google.cloud.datacatalog.v1beta1.ViewSpec.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - viewQuery_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.datacatalog.v1beta1.TableSpecOuterClass - .internal_static_google_cloud_datacatalog_v1beta1_ViewSpec_descriptor; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ViewSpec getDefaultInstanceForType() { - return com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ViewSpec build() { - com.google.cloud.datacatalog.v1beta1.ViewSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ViewSpec buildPartial() { - com.google.cloud.datacatalog.v1beta1.ViewSpec result = - new com.google.cloud.datacatalog.v1beta1.ViewSpec(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.datacatalog.v1beta1.ViewSpec result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.viewQuery_ = viewQuery_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.datacatalog.v1beta1.ViewSpec) { - return mergeFrom((com.google.cloud.datacatalog.v1beta1.ViewSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.datacatalog.v1beta1.ViewSpec other) { - if (other == com.google.cloud.datacatalog.v1beta1.ViewSpec.getDefaultInstance()) return this; - if (!other.getViewQuery().isEmpty()) { - viewQuery_ = other.viewQuery_; - 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: - { - viewQuery_ = 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 viewQuery_ = ""; - - /** - * - * - *
-     * Output only. The query that defines the table view.
-     * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The viewQuery. - */ - public java.lang.String getViewQuery() { - java.lang.Object ref = viewQuery_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - viewQuery_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
-     * Output only. The query that defines the table view.
-     * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for viewQuery. - */ - public com.google.protobuf.ByteString getViewQueryBytes() { - java.lang.Object ref = viewQuery_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - viewQuery_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
-     * Output only. The query that defines the table view.
-     * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The viewQuery to set. - * @return This builder for chaining. - */ - public Builder setViewQuery(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - viewQuery_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The query that defines the table view.
-     * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearViewQuery() { - viewQuery_ = getDefaultInstance().getViewQuery(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
-     * Output only. The query that defines the table view.
-     * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for viewQuery to set. - * @return This builder for chaining. - */ - public Builder setViewQueryBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - viewQuery_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.datacatalog.v1beta1.ViewSpec) - } - - // @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ViewSpec) - private static final com.google.cloud.datacatalog.v1beta1.ViewSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.datacatalog.v1beta1.ViewSpec(); - } - - public static com.google.cloud.datacatalog.v1beta1.ViewSpec getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ViewSpec parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.cloud.datacatalog.v1beta1.ViewSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpecOrBuilder.java b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpecOrBuilder.java deleted file mode 100644 index b18c92a4c66e..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/ViewSpecOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/datacatalog/v1beta1/table_spec.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.datacatalog.v1beta1; - -@com.google.protobuf.Generated -public interface ViewSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.datacatalog.v1beta1.ViewSpec) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Output only. The query that defines the table view.
-   * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The viewQuery. - */ - java.lang.String getViewQuery(); - - /** - * - * - *
-   * Output only. The query that defines the table view.
-   * 
- * - * string view_query = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for viewQuery. - */ - com.google.protobuf.ByteString getViewQueryBytes(); -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/common.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/common.proto deleted file mode 100644 index df99330f404b..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/common.proto +++ /dev/null @@ -1,50 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; - -// This enum describes all the possible systems that Data Catalog integrates -// with. -enum IntegratedSystem { - // Default unknown system. - INTEGRATED_SYSTEM_UNSPECIFIED = 0; - - // BigQuery. - BIGQUERY = 1; - - // Cloud Pub/Sub. - CLOUD_PUBSUB = 2; -} - -// This enum describes all the systems that manage -// Taxonomy and PolicyTag resources in DataCatalog. -enum ManagingSystem { - // Default value - MANAGING_SYSTEM_UNSPECIFIED = 0; - - // Dataplex. - MANAGING_SYSTEM_DATAPLEX = 1; - - // Other - MANAGING_SYSTEM_OTHER = 2; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto deleted file mode 100644 index ada8200e85b9..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/datacatalog.proto +++ /dev/null @@ -1,1346 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/datacatalog/v1beta1/common.proto"; -import "google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto"; -import "google/cloud/datacatalog/v1beta1/schema.proto"; -import "google/cloud/datacatalog/v1beta1/search.proto"; -import "google/cloud/datacatalog/v1beta1/table_spec.proto"; -import "google/cloud/datacatalog/v1beta1/tags.proto"; -import "google/cloud/datacatalog/v1beta1/timestamps.proto"; -import "google/cloud/datacatalog/v1beta1/usage.proto"; -import "google/iam/v1/iam_policy.proto"; -import "google/iam/v1/policy.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; -option (google.api.resource_definition) = { - type: "datacatalog.googleapis.com/TagTemplateFieldEnumValue" - pattern: "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}" -}; - -// Deprecated: Please use Dataplex Catalog instead. -// -// Data Catalog API service allows clients to discover, understand, and manage -// their data. -service DataCatalog { - option deprecated = true; - option (google.api.default_host) = "datacatalog.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Searches Data Catalog for multiple resources like entries, tags that - // match a query. - // - // This is a custom method - // (https://cloud.google.com/apis/design/custom_methods) and does not return - // the complete resource, only the resource identifier and high level - // fields. Clients can subsequently call `Get` methods. - // - // Note that Data Catalog search queries do not guarantee full recall. Query - // results that match your query may not be returned, even in subsequent - // result pages. Also note that results returned (and not returned) can vary - // across repeated search queries. - // - // See [Data Catalog Search - // Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference) - // for more information. - rpc SearchCatalog(SearchCatalogRequest) returns (SearchCatalogResponse) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/catalog:search" - body: "*" - }; - option (google.api.method_signature) = "scope,query"; - } - - // A maximum of 10,000 entry groups may be created per organization across all - // locations. - // - // Users should enable the Data Catalog API in the project identified by - // the `parent` parameter (see [Data Catalog Resource Project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for - // more information). - rpc CreateEntryGroup(CreateEntryGroupRequest) returns (EntryGroup) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*}/entryGroups" - body: "entry_group" - }; - option (google.api.method_signature) = "parent,entry_group_id,entry_group"; - } - - // Updates an EntryGroup. The user should enable the Data Catalog API in the - // project identified by the `entry_group.name` parameter (see [Data Catalog - // Resource Project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for - // more information). - rpc UpdateEntryGroup(UpdateEntryGroupRequest) returns (EntryGroup) { - option deprecated = true; - option (google.api.http) = { - patch: "/v1beta1/{entry_group.name=projects/*/locations/*/entryGroups/*}" - body: "entry_group" - }; - option (google.api.method_signature) = "entry_group"; - option (google.api.method_signature) = "entry_group,update_mask"; - } - - // Gets an EntryGroup. - rpc GetEntryGroup(GetEntryGroupRequest) returns (EntryGroup) { - option deprecated = true; - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/entryGroups/*}" - }; - option (google.api.method_signature) = "name"; - option (google.api.method_signature) = "name,read_mask"; - } - - // Deletes an EntryGroup. Only entry groups that do not contain entries can be - // deleted. Users should enable the Data Catalog API in the project - // identified by the `name` parameter (see [Data Catalog Resource Project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for - // more information). - rpc DeleteEntryGroup(DeleteEntryGroupRequest) - returns (google.protobuf.Empty) { - option deprecated = true; - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/entryGroups/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Lists entry groups. - rpc ListEntryGroups(ListEntryGroupsRequest) - returns (ListEntryGroupsResponse) { - option deprecated = true; - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*}/entryGroups" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates an entry. Only entries of 'FILESET' type or user-specified type can - // be created. - // - // Users should enable the Data Catalog API in the project identified by - // the `parent` parameter (see [Data Catalog Resource Project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for - // more information). - // - // A maximum of 100,000 entries may be created per entry group. - rpc CreateEntry(CreateEntryRequest) returns (Entry) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/entries" - body: "entry" - }; - option (google.api.method_signature) = "parent,entry_id,entry"; - } - - // Updates an existing entry. - // Users should enable the Data Catalog API in the project identified by - // the `entry.name` parameter (see [Data Catalog Resource Project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for - // more information). - rpc UpdateEntry(UpdateEntryRequest) returns (Entry) { - option deprecated = true; - option (google.api.http) = { - patch: "/v1beta1/{entry.name=projects/*/locations/*/entryGroups/*/entries/*}" - body: "entry" - }; - option (google.api.method_signature) = "entry"; - option (google.api.method_signature) = "entry,update_mask"; - } - - // Deletes an existing entry. Only entries created through - // [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry] - // method can be deleted. - // Users should enable the Data Catalog API in the project identified by - // the `name` parameter (see [Data Catalog Resource Project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for - // more information). - rpc DeleteEntry(DeleteEntryRequest) returns (google.protobuf.Empty) { - option deprecated = true; - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Gets an entry. - rpc GetEntry(GetEntryRequest) returns (Entry) { - option deprecated = true; - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Get an entry by target resource name. This method allows clients to use - // the resource name from the source Google Cloud Platform service to get the - // Data Catalog Entry. - rpc LookupEntry(LookupEntryRequest) returns (Entry) { - option deprecated = true; - option (google.api.http) = { - get: "/v1beta1/entries:lookup" - }; - } - - // Lists entries. - rpc ListEntries(ListEntriesRequest) returns (ListEntriesResponse) { - option deprecated = true; - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/entries" - }; - option (google.api.method_signature) = "parent"; - } - - // Creates a tag template. The user should enable the Data Catalog API in - // the project identified by the `parent` parameter (see [Data Catalog - // Resource - // Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) - // for more information). - rpc CreateTagTemplate(CreateTagTemplateRequest) returns (TagTemplate) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*}/tagTemplates" - body: "tag_template" - }; - option (google.api.method_signature) = - "parent,tag_template_id,tag_template"; - } - - // Gets a tag template. - rpc GetTagTemplate(GetTagTemplateRequest) returns (TagTemplate) { - option deprecated = true; - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/tagTemplates/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a tag template. This method cannot be used to update the fields of - // a template. The tag template fields are represented as separate resources - // and should be updated using their own create/update/delete methods. - // Users should enable the Data Catalog API in the project identified by - // the `tag_template.name` parameter (see [Data Catalog Resource Project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for - // more information). - rpc UpdateTagTemplate(UpdateTagTemplateRequest) returns (TagTemplate) { - option deprecated = true; - option (google.api.http) = { - patch: "/v1beta1/{tag_template.name=projects/*/locations/*/tagTemplates/*}" - body: "tag_template" - }; - option (google.api.method_signature) = "tag_template"; - option (google.api.method_signature) = "tag_template,update_mask"; - } - - // Deletes a tag template and all tags using the template. - // Users should enable the Data Catalog API in the project identified by - // the `name` parameter (see [Data Catalog Resource Project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for - // more information). - rpc DeleteTagTemplate(DeleteTagTemplateRequest) - returns (google.protobuf.Empty) { - option deprecated = true; - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/tagTemplates/*}" - }; - option (google.api.method_signature) = "name,force"; - } - - // Creates a field in a tag template. The user should enable the Data Catalog - // API in the project identified by the `parent` parameter (see - // [Data Catalog Resource - // Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) - // for more information). - rpc CreateTagTemplateField(CreateTagTemplateFieldRequest) - returns (TagTemplateField) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*/tagTemplates/*}/fields" - body: "tag_template_field" - }; - option (google.api.method_signature) = - "parent,tag_template_field_id,tag_template_field"; - } - - // Updates a field in a tag template. This method cannot be used to update the - // field type. Users should enable the Data Catalog API in the project - // identified by the `name` parameter (see [Data Catalog Resource Project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for - // more information). - rpc UpdateTagTemplateField(UpdateTagTemplateFieldRequest) - returns (TagTemplateField) { - option deprecated = true; - option (google.api.http) = { - patch: "/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}" - body: "tag_template_field" - }; - option (google.api.method_signature) = "name,tag_template_field"; - option (google.api.method_signature) = - "name,tag_template_field,update_mask"; - } - - // Renames a field in a tag template. The user should enable the Data Catalog - // API in the project identified by the `name` parameter (see [Data Catalog - // Resource - // Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project) - // for more information). - rpc RenameTagTemplateField(RenameTagTemplateFieldRequest) - returns (TagTemplateField) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}:rename" - body: "*" - }; - option (google.api.method_signature) = "name,new_tag_template_field_id"; - } - - // Renames an enum value in a tag template. The enum values have to be unique - // within one enum field. Thus, an enum value cannot be renamed with a name - // used in any other enum value within the same enum field. - rpc RenameTagTemplateFieldEnumValue(RenameTagTemplateFieldEnumValueRequest) - returns (TagTemplateField) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*/enumValues/*}:rename" - body: "*" - }; - option (google.api.method_signature) = "name,new_enum_value_display_name"; - } - - // Deletes a field in a tag template and all uses of that field. - // Users should enable the Data Catalog API in the project identified by - // the `name` parameter (see [Data Catalog Resource Project] - // (https://cloud.google.com/data-catalog/docs/concepts/resource-project) for - // more information). - rpc DeleteTagTemplateField(DeleteTagTemplateFieldRequest) - returns (google.protobuf.Empty) { - option deprecated = true; - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}" - }; - option (google.api.method_signature) = "name,force"; - } - - // Creates a tag on an [Entry][google.cloud.datacatalog.v1beta1.Entry]. - // Note: The project identified by the `parent` parameter for the - // [tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.entryGroups.entries.tags/create#path-parameters) - // and the - // [tag - // template](https://cloud.google.com/data-catalog/docs/reference/rest/v1beta1/projects.locations.tagTemplates/create#path-parameters) - // used to create the tag must be from the same organization. - rpc CreateTag(CreateTagRequest) returns (Tag) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags" - body: "tag" - additional_bindings { - post: "/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/tags" - body: "tag" - } - }; - option (google.api.method_signature) = "parent,tag"; - } - - // Updates an existing tag. - rpc UpdateTag(UpdateTagRequest) returns (Tag) { - option deprecated = true; - option (google.api.http) = { - patch: "/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}" - body: "tag" - additional_bindings { - patch: "/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/tags/*}" - body: "tag" - } - }; - option (google.api.method_signature) = "tag"; - option (google.api.method_signature) = "tag,update_mask"; - } - - // Deletes a tag. - rpc DeleteTag(DeleteTagRequest) returns (google.protobuf.Empty) { - option deprecated = true; - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}" - additional_bindings { - delete: "/v1beta1/{name=projects/*/locations/*/entryGroups/*/tags/*}" - } - }; - option (google.api.method_signature) = "name"; - } - - // Lists tags assigned to an [Entry][google.cloud.datacatalog.v1beta1.Entry]. - // The [columns][google.cloud.datacatalog.v1beta1.Tag.column] in the response - // are lowercased. - rpc ListTags(ListTagsRequest) returns (ListTagsResponse) { - option deprecated = true; - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags" - additional_bindings { - get: "/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/tags" - } - }; - option (google.api.method_signature) = "parent"; - } - - // Sets the access control policy for a resource. Replaces any existing - // policy. - // Supported resources are: - // - Tag templates. - // - Entries. - // - Entry groups. - // Note, this method cannot be used to manage policies for BigQuery, Pub/Sub - // and any external Google Cloud Platform resources synced to Data Catalog. - // - // Callers must have following Google IAM permission - // - `datacatalog.tagTemplates.setIamPolicy` to set policies on tag - // templates. - // - `datacatalog.entries.setIamPolicy` to set policies on entries. - // - `datacatalog.entryGroups.setIamPolicy` to set policies on entry groups. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) - returns (google.iam.v1.Policy) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:setIamPolicy" - body: "*" - additional_bindings { - post: "/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy" - body: "*" - } - }; - option (google.api.method_signature) = "resource,policy"; - } - - // Gets the access control policy for a resource. A `NOT_FOUND` error - // is returned if the resource does not exist. An empty policy is returned - // if the resource exists but does not have a policy set on it. - // - // Supported resources are: - // - Tag templates. - // - Entries. - // - Entry groups. - // Note, this method cannot be used to manage policies for BigQuery, Pub/Sub - // and any external Google Cloud Platform resources synced to Data Catalog. - // - // Callers must have following Google IAM permission - // - `datacatalog.tagTemplates.getIamPolicy` to get policies on tag - // templates. - // - `datacatalog.entries.getIamPolicy` to get policies on entries. - // - `datacatalog.entryGroups.getIamPolicy` to get policies on entry groups. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) - returns (google.iam.v1.Policy) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:getIamPolicy" - body: "*" - additional_bindings { - post: "/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy" - body: "*" - } - additional_bindings { - post: "/v1beta1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:getIamPolicy" - body: "*" - } - }; - option (google.api.method_signature) = "resource"; - } - - // Returns the caller's permissions on a resource. - // If the resource does not exist, an empty set of permissions is returned - // (We don't return a `NOT_FOUND` error). - // - // Supported resources are: - // - Tag templates. - // - Entries. - // - Entry groups. - // Note, this method cannot be used to manage policies for BigQuery, Pub/Sub - // and any external Google Cloud Platform resources synced to Data Catalog. - // - // A caller is not required to have Google IAM permission to make this - // request. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) - returns (google.iam.v1.TestIamPermissionsResponse) { - option deprecated = true; - option (google.api.http) = { - post: "/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:testIamPermissions" - body: "*" - additional_bindings { - post: "/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions" - body: "*" - } - additional_bindings { - post: "/v1beta1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:testIamPermissions" - body: "*" - } - }; - } -} - -// Request message for -// [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]. -message SearchCatalogRequest { - // The criteria that select the subspace used for query matching. - message Scope { - // The list of organization IDs to search within. To find your organization - // ID, follow instructions in - // https://cloud.google.com/resource-manager/docs/creating-managing-organization. - repeated string include_org_ids = 2; - - // The list of project IDs to search within. To learn more about the - // distinction between project names/IDs/numbers, go to - // https://cloud.google.com/docs/overview/#projects. - repeated string include_project_ids = 3; - - // If `true`, include Google Cloud public datasets in the - // search results. Info on Google Cloud public datasets is available at - // https://cloud.google.com/public-datasets/. By default, Google Cloud - // public datasets are excluded. - bool include_gcp_public_datasets = 7; - - // Optional. The list of locations to search within. - // 1. If empty, search will be performed in all locations; - // 2. If any of the locations are NOT in the valid locations list, error - // will be returned; - // 3. Otherwise, search only the given locations for matching results. - // Typical usage is to leave this field empty. When a location is - // unreachable as returned in the `SearchCatalogResponse.unreachable` field, - // users can repeat the search request with this parameter set to get - // additional information on the error. - // - // Valid locations: - // * asia-east1 - // * asia-east2 - // * asia-northeast1 - // * asia-northeast2 - // * asia-northeast3 - // * asia-south1 - // * asia-southeast1 - // * australia-southeast1 - // * eu - // * europe-north1 - // * europe-west1 - // * europe-west2 - // * europe-west3 - // * europe-west4 - // * europe-west6 - // * global - // * northamerica-northeast1 - // * southamerica-east1 - // * us - // * us-central1 - // * us-east1 - // * us-east4 - // * us-west1 - // * us-west2 - repeated string restricted_locations = 16 - [(google.api.field_behavior) = OPTIONAL]; - } - - // Required. The scope of this search request. A `scope` that has empty - // `include_org_ids`, `include_project_ids` AND false - // `include_gcp_public_datasets` is considered invalid. Data Catalog will - // return an error in such a case. - Scope scope = 6 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The query string in search query syntax. An empty query string - // will result in all data assets (in the specified scope) that the user has - // access to. Query strings can be simple as "x" or more qualified as: - // - // * name:x - // * column:x - // * description:y - // - // Note: Query tokens need to have a minimum of 3 characters for substring - // matching to work correctly. See [Data Catalog Search - // Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference) - // for more information. - string query = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Number of results in the search page. If <=0 then defaults to 10. Max limit - // for page_size is 1000. Throws an invalid argument for page_size > 1000. - int32 page_size = 2; - - // Optional. Pagination token returned in an earlier - // [SearchCatalogResponse.next_page_token][google.cloud.datacatalog.v1beta1.SearchCatalogResponse.next_page_token], - // which indicates that this is a continuation of a prior - // [SearchCatalogRequest][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog] - // call, and that the system should return the next page of data. If empty, - // the first page is returned. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Specifies the ordering of results, currently supported case-sensitive - // choices are: - // - // * `relevance`, only supports descending - // * `last_modified_timestamp [asc|desc]`, defaults to descending if not - // specified - // * `default` that can only be descending - // - // If not specified, defaults to `relevance` descending. - string order_by = 5; -} - -// Response message for -// [SearchCatalog][google.cloud.datacatalog.v1beta1.DataCatalog.SearchCatalog]. -message SearchCatalogResponse { - // Search results. - repeated SearchCatalogResult results = 1; - - // The approximate total number of entries matched by the query. - int32 total_size = 2; - - // The token that can be used to retrieve the next page of results. - string next_page_token = 3; - - // Unreachable locations. Search result does not include data from those - // locations. Users can get additional information on the error by repeating - // the search request with a more restrictive parameter -- setting the value - // for `SearchDataCatalogRequest.scope.restricted_locations`. - repeated string unreachable = 6; -} - -// Request message for -// [CreateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntryGroup]. -message CreateEntryGroupRequest { - // Required. The name of the project this entry group is in. Example: - // - // * projects/{project_id}/locations/{location} - // - // Note that this EntryGroup and its child resources may not actually be - // stored in the location in this name. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // Required. The id of the entry group to create. - // The id must begin with a letter or underscore, contain only English - // letters, numbers and underscores, and be at most 64 characters. - string entry_group_id = 3 [(google.api.field_behavior) = REQUIRED]; - - // The entry group to create. Defaults to an empty entry group. - EntryGroup entry_group = 2; -} - -// Request message for -// [UpdateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntryGroup]. -message UpdateEntryGroupRequest { - // Required. The updated entry group. "name" field must be set. - EntryGroup entry_group = 1 [(google.api.field_behavior) = REQUIRED]; - - // Names of fields whose values to overwrite on an entry group. - // - // If this parameter is absent or empty, all modifiable fields - // are overwritten. If such fields are non-required and omitted in the - // request body, their values are emptied. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [GetEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.GetEntryGroup]. -message GetEntryGroupRequest { - // Required. The name of the entry group. For example, - // `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // The fields to return. If not set or empty, all fields are returned. - google.protobuf.FieldMask read_mask = 2; -} - -// Request message for -// [DeleteEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntryGroup]. -message DeleteEntryGroupRequest { - // Required. The name of the entry group. For example, - // `projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // Optional. If true, deletes all entries in the entry group. - bool force = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request message for -// [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups]. -message ListEntryGroupsRequest { - // Required. The name of the location that contains the entry groups, which - // can be provided in URL format. Example: - // - // * projects/{project_id}/locations/{location} - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // Optional. The maximum number of items to return. Default is 10. Max limit - // is 1000. Throws an invalid argument for `page_size > 1000`. - int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Token that specifies which page is requested. If empty, the first - // page is returned. - string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for -// [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups]. -message ListEntryGroupsResponse { - // EntryGroup details. - repeated EntryGroup entry_groups = 1; - - // Token to retrieve the next page of results. It is set to empty if no items - // remain in results. - string next_page_token = 2; -} - -// Request message for -// [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry]. -message CreateEntryRequest { - // Required. The name of the entry group this entry is in. Example: - // - // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - // - // Note that this Entry and its child resources may not actually be stored in - // the location in this name. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // Required. The id of the entry to create. - string entry_id = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The entry to create. - Entry entry = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [UpdateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntry]. -message UpdateEntryRequest { - // Required. The updated entry. The "name" field must be set. - Entry entry = 1 [(google.api.field_behavior) = REQUIRED]; - - // Names of fields whose values to overwrite on an entry. - // - // If this parameter is absent or empty, all modifiable fields - // are overwritten. If such fields are non-required and omitted in the - // request body, their values are emptied. - // - // The following fields are modifiable: - // - // * For entries with type `DATA_STREAM`: - // * `schema` - // * For entries with type `FILESET`: - // * `schema` - // * `display_name` - // * `description` - // * `gcs_fileset_spec` - // * `gcs_fileset_spec.file_patterns` - // * For entries with `user_specified_type`: - // * `schema` - // * `display_name` - // * `description` - // * `user_specified_type` - // * `user_specified_system` - // * `linked_resource` - // * `source_system_timestamps` - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [DeleteEntry][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntry]. -message DeleteEntryRequest { - // Required. The name of the entry. Example: - // - // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; -} - -// Request message for -// [GetEntry][google.cloud.datacatalog.v1beta1.DataCatalog.GetEntry]. -message GetEntryRequest { - // Required. The name of the entry. Example: - // - // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; -} - -// Request message for -// [LookupEntry][google.cloud.datacatalog.v1beta1.DataCatalog.LookupEntry]. -message LookupEntryRequest { - // Required. Represents either the Google Cloud Platform resource or SQL name - // for a Google Cloud Platform resource. - oneof target_name { - // The full name of the Google Cloud Platform resource the Data Catalog - // entry represents. See: - // https://cloud.google.com/apis/design/resource_names#full_resource_name. - // Full names are case-sensitive. - // - // Examples: - // - // * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId - // * //pubsub.googleapis.com/projects/projectId/topics/topicId - string linked_resource = 1; - - // The SQL name of the entry. SQL names are case-sensitive. - // - // Examples: - // - // * `pubsub.project_id.topic_id` - // * ``pubsub.project_id.`topic.id.with.dots` `` - // * `bigquery.table.project_id.dataset_id.table_id` - // * `bigquery.dataset.project_id.dataset_id` - // * `datacatalog.entry.project_id.location_id.entry_group_id.entry_id` - // - // `*_id`s should satisfy the GoogleSQL rules for identifiers. - // https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical. - string sql_resource = 3; - } -} - -// Entry Metadata. -// A Data Catalog Entry resource represents another resource in Google -// Cloud Platform (such as a BigQuery dataset or a Pub/Sub topic), or -// outside of Google Cloud Platform. Clients can use the `linked_resource` field -// in the Entry resource to refer to the original resource ID of the source -// system. -// -// An Entry resource contains resource details, such as its schema. An Entry can -// also be used to attach flexible metadata, such as a -// [Tag][google.cloud.datacatalog.v1beta1.Tag]. -message Entry { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/Entry" - pattern: "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}" - }; - - // Output only. Identifier. The Data Catalog resource name of the entry in URL - // format. Example: - // - // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - // - // Note that this Entry and its child resources may not actually be stored in - // the location in this name. - string name = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.field_behavior) = IDENTIFIER, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // The resource this metadata entry refers to. - // - // For Google Cloud Platform resources, `linked_resource` is the [full name of - // the - // resource](https://cloud.google.com/apis/design/resource_names#full_resource_name). - // For example, the `linked_resource` for a table resource from BigQuery is: - // - // * //bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId - // - // Output only when Entry is of type in the EntryType enum. For entries with - // user_specified_type, this field is optional and defaults to an empty - // string. - string linked_resource = 9; - - // Required. Entry type. - oneof entry_type { - // The type of the entry. - // Only used for Entries with types in the EntryType enum. - EntryType type = 2; - - // Entry type if it does not fit any of the input-allowed values listed in - // `EntryType` enum above. When creating an entry, users should check the - // enum values first, if nothing matches the entry to be created, then - // provide a custom value, for example "my_special_type". - // `user_specified_type` strings must begin with a letter or underscore and - // can only contain letters, numbers, and underscores; are case insensitive; - // must be at least 1 character and at most 64 characters long. - // - // Currently, only FILESET enum value is allowed. All other entries created - // through Data Catalog must use `user_specified_type`. - string user_specified_type = 16; - } - - // The source system of the entry. - oneof system { - // Output only. This field indicates the entry's source system that Data - // Catalog integrates with, such as BigQuery or Pub/Sub. - IntegratedSystem integrated_system = 17 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // This field indicates the entry's source system that Data Catalog does not - // integrate with. `user_specified_system` strings must begin with a letter - // or underscore and can only contain letters, numbers, and underscores; are - // case insensitive; must be at least 1 character and at most 64 characters - // long. - string user_specified_system = 18; - } - - // Type specification information. - oneof type_spec { - // Specification that applies to a Cloud Storage fileset. This is only valid - // on entries of type FILESET. - GcsFilesetSpec gcs_fileset_spec = 6; - - // Specification that applies to a BigQuery table. This is only valid on - // entries of type `TABLE`. - BigQueryTableSpec bigquery_table_spec = 12; - - // Specification for a group of BigQuery tables with name pattern - // `[prefix]YYYYMMDD`. Context: - // https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding. - BigQueryDateShardedSpec bigquery_date_sharded_spec = 15; - } - - // Display information such as title and description. A short name to identify - // the entry, for example, "Analytics Data - Jan 2011". Default value is an - // empty string. - string display_name = 3; - - // Entry description, which can consist of several sentences or paragraphs - // that describe entry contents. Default value is an empty string. - string description = 4; - - // Schema of the entry. An entry might not have any schema attached to it. - Schema schema = 5; - - // Output only. Timestamps about the underlying resource, not about this Data - // Catalog entry. Output only when Entry is of type in the EntryType enum. For - // entries with user_specified_type, this field is optional and defaults to an - // empty timestamp. - SystemTimestamps source_system_timestamps = 7 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Statistics on the usage level of the resource. - UsageSignal usage_signal = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// EntryGroup Metadata. -// An EntryGroup resource represents a logical grouping of zero or more -// Data Catalog [Entry][google.cloud.datacatalog.v1beta1.Entry] resources. -message EntryGroup { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/EntryGroup" - pattern: "projects/{project}/locations/{location}/entryGroups/{entry_group}" - }; - - // Identifier. The resource name of the entry group in URL format. Example: - // - // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - // - // Note that this EntryGroup and its child resources may not actually be - // stored in the location in this name. - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // A short name to identify the entry group, for example, - // "analytics data - jan 2011". Default value is an empty string. - string display_name = 2; - - // Entry group description, which can consist of several sentences or - // paragraphs that describe entry group contents. Default value is an empty - // string. - string description = 3; - - // Output only. Timestamps about this EntryGroup. Default value is empty - // timestamps. - SystemTimestamps data_catalog_timestamps = 4 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request message for -// [CreateTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplate]. -message CreateTagTemplateRequest { - // Required. The name of the project and the template location - // [region](https://cloud.google.com/data-catalog/docs/concepts/regions. - // - // Example: - // - // * projects/{project_id}/locations/us-central1 - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/TagTemplate" - } - ]; - - // Required. The id of the tag template to create. - string tag_template_id = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. The tag template to create. - TagTemplate tag_template = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [GetTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.GetTagTemplate]. -message GetTagTemplateRequest { - // Required. The name of the tag template. Example: - // - // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplate" - } - ]; -} - -// Request message for -// [UpdateTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplate]. -message UpdateTagTemplateRequest { - // Required. The template to update. The "name" field must be set. - TagTemplate tag_template = 1 [(google.api.field_behavior) = REQUIRED]; - - // Names of fields whose values to overwrite on a tag template. Currently, - // only `display_name` can be overwritten. - // - // In general, if this parameter is absent or empty, all modifiable fields - // are overwritten. If such fields are non-required and omitted in the - // request body, their values are emptied. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [DeleteTagTemplate][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplate]. -message DeleteTagTemplateRequest { - // Required. The name of the tag template to delete. Example: - // - // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplate" - } - ]; - - // Required. Currently, this field must always be set to `true`. - // This confirms the deletion of any possible tags using this template. - // `force = false` will be supported in the future. - bool force = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [CreateTag][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTag]. -message CreateTagRequest { - // Required. The name of the resource to attach this tag to. Tags can be - // attached to - // Entries. Example: - // - // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - // - // Note that this Tag and its child resources may not actually be stored in - // the location in this name. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Tag" - } - ]; - - // Required. The tag to create. - Tag tag = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [UpdateTag][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTag]. -message UpdateTagRequest { - // Required. The updated tag. The "name" field must be set. - Tag tag = 1 [(google.api.field_behavior) = REQUIRED]; - - // Note: Currently, this parameter can only take `"fields"` as value. - // - // Names of fields whose values to overwrite on a tag. Currently, a tag has - // the only modifiable field with the name `fields`. - // - // In general, if this parameter is absent or empty, all modifiable fields - // are overwritten. If such fields are non-required and omitted in the - // request body, their values are emptied. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [DeleteTag][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTag]. -message DeleteTagRequest { - // Required. The name of the tag to delete. Example: - // - // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Tag" - } - ]; -} - -// Request message for -// [CreateTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplateField]. -message CreateTagTemplateFieldRequest { - // Required. The name of the project and the template location - // [region](https://cloud.google.com/data-catalog/docs/concepts/regions). - // - // Example: - // - // * projects/{project_id}/locations/us-central1/tagTemplates/{tag_template_id} - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplate" - } - ]; - - // Required. The ID of the tag template field to create. - // Field ids can contain letters (both uppercase and lowercase), numbers - // (0-9), underscores (_) and dashes (-). Field IDs must be at least 1 - // character long and at most 128 characters long. Field IDs must also be - // unique within their template. - string tag_template_field_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // Required. The tag template field to create. - TagTemplateField tag_template_field = 3 - [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [UpdateTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplateField]. -message UpdateTagTemplateFieldRequest { - // Required. The name of the tag template field. Example: - // - // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplateField" - } - ]; - - // Required. The template to update. - TagTemplateField tag_template_field = 2 - [(google.api.field_behavior) = REQUIRED]; - - // Optional. Names of fields whose values to overwrite on an individual field - // of a tag template. The following fields are modifiable: - // - // * `display_name` - // * `type.enum_type` - // * `is_required` - // - // If this parameter is absent or empty, all modifiable fields - // are overwritten. If such fields are non-required and omitted in the request - // body, their values are emptied with one exception: when updating an enum - // type, the provided values are merged with the existing values. Therefore, - // enum values can only be added, existing enum values cannot be deleted or - // renamed. - // - // Additionally, updating a template field from optional to required is - // *not* allowed. - google.protobuf.FieldMask update_mask = 3 - [(google.api.field_behavior) = OPTIONAL]; -} - -// Request message for -// [RenameTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.RenameTagTemplateField]. -message RenameTagTemplateFieldRequest { - // Required. The name of the tag template. Example: - // - // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplateField" - } - ]; - - // Required. The new ID of this tag template field. For example, - // `my_new_field`. - string new_tag_template_field_id = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [RenameTagTemplateFieldEnumValue][google.cloud.datacatalog.v1.DataCatalog.RenameTagTemplateFieldEnumValue]. -message RenameTagTemplateFieldEnumValueRequest { - // Required. The name of the enum field value. Example: - // - // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplateFieldEnumValue" - } - ]; - - // Required. The new display name of the enum value. For example, - // `my_new_enum_value`. - string new_enum_value_display_name = 2 - [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [DeleteTagTemplateField][google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplateField]. -message DeleteTagTemplateFieldRequest { - // Required. The name of the tag template field to delete. Example: - // - // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}/fields/{tag_template_field_id} - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/TagTemplateField" - } - ]; - - // Required. Currently, this field must always be set to `true`. - // This confirms the deletion of this field from any tags using this field. - // `force = false` will be supported in the future. - bool force = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request message for -// [ListTags][google.cloud.datacatalog.v1beta1.DataCatalog.ListTags]. -message ListTagsRequest { - // Required. The name of the Data Catalog resource to list the tags of. The - // resource could be an [Entry][google.cloud.datacatalog.v1beta1.Entry] or an - // [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup]. - // - // Examples: - // - // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id} - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Tag" - } - ]; - - // The maximum number of tags to return. Default is 10. Max limit is 1000. - int32 page_size = 2; - - // Token that specifies which page is requested. If empty, the first page is - // returned. - string page_token = 3; -} - -// Response message for -// [ListTags][google.cloud.datacatalog.v1beta1.DataCatalog.ListTags]. -message ListTagsResponse { - // [Tag][google.cloud.datacatalog.v1beta1.Tag] details. - repeated Tag tags = 1; - - // Token to retrieve the next page of results. It is set to empty if no items - // remain in results. - string next_page_token = 2; -} - -// Request message for -// [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries]. -message ListEntriesRequest { - // Required. The name of the entry group that contains the entries, which can - // be provided in URL format. Example: - // - // * projects/{project_id}/locations/{location}/entryGroups/{entry_group_id} - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/EntryGroup" - } - ]; - - // The maximum number of items to return. Default is 10. Max limit is 1000. - // Throws an invalid argument for `page_size > 1000`. - int32 page_size = 2; - - // Token that specifies which page is requested. If empty, the first page is - // returned. - string page_token = 3; - - // The fields to return for each Entry. If not set or empty, all - // fields are returned. - // For example, setting read_mask to contain only one path "name" will cause - // ListEntries to return a list of Entries with only "name" field. - google.protobuf.FieldMask read_mask = 4; -} - -// Response message for -// [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries]. -message ListEntriesResponse { - // Entry details. - repeated Entry entries = 1; - - // Token to retrieve the next page of results. It is set to empty if no items - // remain in results. - string next_page_token = 2; -} - -// Entry resources in Data Catalog can be of different types e.g. a BigQuery -// Table entry is of type `TABLE`. This enum describes all the possible types -// Data Catalog contains. -enum EntryType { - // Default unknown type. - ENTRY_TYPE_UNSPECIFIED = 0; - - // Output only. The type of entry that has a GoogleSQL schema, including - // logical views. - TABLE = 2; - - // Output only. The type of models. - // https://cloud.google.com/bigquery-ml/docs/bigqueryml-intro - MODEL = 5; - - // Output only. An entry type which is used for streaming entries. Example: - // Pub/Sub topic. - DATA_STREAM = 3; - - // An entry type which is a set of files or objects. Example: - // Cloud Storage fileset. - FILESET = 4; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto deleted file mode 100644 index 04a718e00858..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.proto +++ /dev/null @@ -1,78 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -import "google/api/field_behavior.proto"; -import "google/cloud/datacatalog/v1beta1/timestamps.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; - -// Describes a Cloud Storage fileset entry. -message GcsFilesetSpec { - // Required. Patterns to identify a set of files in Google Cloud Storage. - // See [Cloud Storage - // documentation](https://cloud.google.com/storage/docs/wildcards) - // for more information. Note that bucket wildcards are currently not - // supported. - // - // Examples of valid file_patterns: - // - // * `gs://bucket_name/dir/*`: matches all files within `bucket_name/dir` - // directory. - // * `gs://bucket_name/dir/**`: matches all files in `bucket_name/dir` - // spanning all subdirectories. - // * `gs://bucket_name/file*`: matches files prefixed by `file` in - // `bucket_name` - // * `gs://bucket_name/??.txt`: matches files with two characters followed by - // `.txt` in `bucket_name` - // * `gs://bucket_name/[aeiou].txt`: matches files that contain a single - // vowel character followed by `.txt` in - // `bucket_name` - // * `gs://bucket_name/[a-m].txt`: matches files that contain `a`, `b`, ... - // or `m` followed by `.txt` in `bucket_name` - // * `gs://bucket_name/a/*/b`: matches all files in `bucket_name` that match - // `a/*/b` pattern, such as `a/c/b`, `a/d/b` - // * `gs://another_bucket/a.txt`: matches `gs://another_bucket/a.txt` - // - // You can combine wildcards to provide more powerful matches, for example: - // - // * `gs://bucket_name/[a-m]??.j*g` - repeated string file_patterns = 1 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Sample files contained in this fileset, not all files - // contained in this fileset are represented here. - repeated GcsFileSpec sample_gcs_file_specs = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Specifications of a single file in Cloud Storage. -message GcsFileSpec { - // Required. The full file path. Example: `gs://bucket_name/a/b.txt`. - string file_path = 1 [(google.api.field_behavior) = REQUIRED]; - - // Output only. Timestamps about the Cloud Storage file. - SystemTimestamps gcs_timestamps = 2 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The size of the file, in bytes. - int64 size_bytes = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanager.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanager.proto deleted file mode 100644 index 670af8eb8bb6..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanager.proto +++ /dev/null @@ -1,452 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/datacatalog/v1beta1/common.proto"; -import "google/cloud/datacatalog/v1beta1/timestamps.proto"; -import "google/iam/v1/iam_policy.proto"; -import "google/iam/v1/policy.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTagManagerProto"; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; - -// The policy tag manager API service allows clients to manage their taxonomies -// and policy tags. -service PolicyTagManager { - option (google.api.default_host) = "datacatalog.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Creates a taxonomy in the specified project. - rpc CreateTaxonomy(CreateTaxonomyRequest) returns (Taxonomy) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*}/taxonomies" - body: "taxonomy" - }; - option (google.api.method_signature) = "parent,taxonomy"; - } - - // Deletes a taxonomy. This operation will also delete all - // policy tags in this taxonomy along with their associated policies. - rpc DeleteTaxonomy(DeleteTaxonomyRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/taxonomies/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a taxonomy. - rpc UpdateTaxonomy(UpdateTaxonomyRequest) returns (Taxonomy) { - option (google.api.http) = { - patch: "/v1beta1/{taxonomy.name=projects/*/locations/*/taxonomies/*}" - body: "taxonomy" - }; - option (google.api.method_signature) = "taxonomy"; - } - - // Lists all taxonomies in a project in a particular location that the caller - // has permission to view. - rpc ListTaxonomies(ListTaxonomiesRequest) returns (ListTaxonomiesResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*}/taxonomies" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a taxonomy. - rpc GetTaxonomy(GetTaxonomyRequest) returns (Taxonomy) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/taxonomies/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a policy tag in the specified taxonomy. - rpc CreatePolicyTag(CreatePolicyTagRequest) returns (PolicyTag) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*/taxonomies/*}/policyTags" - body: "policy_tag" - }; - option (google.api.method_signature) = "parent,policy_tag"; - } - - // Deletes a policy tag. Also deletes all of its descendant policy tags. - rpc DeletePolicyTag(DeletePolicyTagRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1beta1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Updates a policy tag. - rpc UpdatePolicyTag(UpdatePolicyTagRequest) returns (PolicyTag) { - option (google.api.http) = { - patch: "/v1beta1/{policy_tag.name=projects/*/locations/*/taxonomies/*/policyTags/*}" - body: "policy_tag" - }; - option (google.api.method_signature) = "policy_tag"; - } - - // Lists all policy tags in a taxonomy. - rpc ListPolicyTags(ListPolicyTagsRequest) returns (ListPolicyTagsResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*/taxonomies/*}/policyTags" - }; - option (google.api.method_signature) = "parent"; - } - - // Gets a policy tag. - rpc GetPolicyTag(GetPolicyTagRequest) returns (PolicyTag) { - option (google.api.http) = { - get: "/v1beta1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Gets the IAM policy for a taxonomy or a policy tag. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) - returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v1beta1/{resource=projects/*/locations/*/taxonomies/*}:getIamPolicy" - body: "*" - additional_bindings { - post: "/v1beta1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:getIamPolicy" - body: "*" - } - }; - } - - // Sets the IAM policy for a taxonomy or a policy tag. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) - returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v1beta1/{resource=projects/*/locations/*/taxonomies/*}:setIamPolicy" - body: "*" - additional_bindings { - post: "/v1beta1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:setIamPolicy" - body: "*" - } - }; - } - - // Returns the permissions that a caller has on the specified taxonomy or - // policy tag. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) - returns (google.iam.v1.TestIamPermissionsResponse) { - option (google.api.http) = { - post: "/v1beta1/{resource=projects/*/locations/*/taxonomies/*}:testIamPermissions" - body: "*" - additional_bindings { - post: "/v1beta1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:testIamPermissions" - body: "*" - } - }; - } -} - -// A taxonomy is a collection of policy tags that classify data along a common -// axis. For instance a data *sensitivity* taxonomy could contain policy tags -// denoting PII such as age, zipcode, and SSN. A data *origin* taxonomy could -// contain policy tags to distinguish user data, employee data, partner data, -// public data. -message Taxonomy { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/Taxonomy" - pattern: "projects/{project}/locations/{location}/taxonomies/{taxonomy}" - }; - - // Defines policy types where policy tag can be used for. - enum PolicyType { - // Unspecified policy type. - POLICY_TYPE_UNSPECIFIED = 0; - - // Fine grained access control policy, which enables access control on - // tagged resources. - FINE_GRAINED_ACCESS_CONTROL = 1; - } - - // The source system of the Taxonomy. - message Service { - // The Google Cloud service name. - ManagingSystem name = 1; - - // The service agent for the service. - string identity = 2; - } - - // Identifier. Resource name of this taxonomy, whose format is: - // "projects/{project_number}/locations/{location_id}/taxonomies/{id}". - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // Required. User defined name of this taxonomy. It must: contain only unicode - // letters, numbers, underscores, dashes and spaces; not start or end with - // spaces; and be at most 200 bytes long when encoded in UTF-8. - // - // The taxonomy display name must be unique within an organization. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Description of this taxonomy. It must: contain only unicode - // characters, tabs, newlines, carriage returns and page breaks; and be at - // most 2000 bytes long when encoded in UTF-8. If not set, defaults to an - // empty description. - string description = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Number of policy tags contained in this taxonomy. - int32 policy_tag_count = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Timestamps about this taxonomy. Only create_time and - // update_time are used. - SystemTimestamps taxonomy_timestamps = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. A list of policy types that are activated for this taxonomy. If - // not set, defaults to an empty list. - repeated PolicyType activated_policy_types = 6 - [(google.api.field_behavior) = OPTIONAL]; - - // Output only. Identity of the service which owns the Taxonomy. This field is - // only populated when the taxonomy is created by a Google Cloud service. - // Currently only 'DATAPLEX' is supported. - Service service = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined -// in a hierarchy. For example, consider the following hierarchy: -// Geolocation -> (LatLong, City, ZipCode). PolicyTag "Geolocation" -// contains three child policy tags: "LatLong", "City", and "ZipCode". -message PolicyTag { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/PolicyTag" - pattern: "projects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}" - }; - - // Identifier. Resource name of this policy tag, whose format is: - // "projects/{project_number}/locations/{location_id}/taxonomies/{taxonomy_id}/policyTags/{id}". - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // Required. User defined name of this policy tag. It must: be unique within - // the parent taxonomy; contain only unicode letters, numbers, underscores, - // dashes and spaces; not start or end with spaces; and be at most 200 bytes - // long when encoded in UTF-8. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Description of this policy tag. It must: contain only unicode characters, - // tabs, newlines, carriage returns and page breaks; and be at most 2000 bytes - // long when encoded in UTF-8. If not set, defaults to an empty description. - // If not set, defaults to an empty description. - string description = 3; - - // Resource name of this policy tag's parent policy tag (e.g. for the - // "LatLong" policy tag in the example above, this field contains the - // resource name of the "Geolocation" policy tag). If empty, it means this - // policy tag is a top level policy tag (e.g. this field is empty for the - // "Geolocation" policy tag in the example above). If not set, defaults to an - // empty string. - string parent_policy_tag = 4; - - // Output only. Resource names of child policy tags of this policy tag. - repeated string child_policy_tags = 5 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Request message for -// [CreateTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.CreateTaxonomy]. -message CreateTaxonomyRequest { - // Required. Resource name of the project that the taxonomy will belong to. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // The taxonomy to be created. - Taxonomy taxonomy = 2; -} - -// Request message for -// [DeleteTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.DeleteTaxonomy]. -message DeleteTaxonomyRequest { - // Required. Resource name of the taxonomy to be deleted. All policy tags in - // this taxonomy will also be deleted. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Taxonomy" - } - ]; -} - -// Request message for -// [UpdateTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdateTaxonomy]. -message UpdateTaxonomyRequest { - // The taxonomy to update. Only description, display_name, and activated - // policy types can be updated. - Taxonomy taxonomy = 1; - - // The update mask applies to the resource. For the `FieldMask` definition, - // see - // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - // If not set, defaults to all of the fields that are allowed to update. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [ListTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies]. -message ListTaxonomiesRequest { - // Required. Resource name of the project to list the taxonomies of. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // The maximum number of items to return. Must be a value between 1 and 1000. - // If not set, defaults to 50. - int32 page_size = 2; - - // The next_page_token value returned from a previous list request, if any. If - // not set, defaults to an empty string. - string page_token = 3; - - // Supported field for filter is 'service' and value is 'dataplex'. - // Eg: service=dataplex. - string filter = 4; -} - -// Response message for -// [ListTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListTaxonomies]. -message ListTaxonomiesResponse { - // Taxonomies that the project contains. - repeated Taxonomy taxonomies = 1; - - // Token used to retrieve the next page of results, or empty if there are no - // more results in the list. - string next_page_token = 2; -} - -// Request message for -// [GetTaxonomy][google.cloud.datacatalog.v1beta1.PolicyTagManager.GetTaxonomy]. -message GetTaxonomyRequest { - // Required. Resource name of the requested taxonomy. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Taxonomy" - } - ]; -} - -// Request message for -// [CreatePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.CreatePolicyTag]. -message CreatePolicyTagRequest { - // Required. Resource name of the taxonomy that the policy tag will belong to. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/PolicyTag" - } - ]; - - // The policy tag to be created. - PolicyTag policy_tag = 2; -} - -// Request message for -// [DeletePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.DeletePolicyTag]. -message DeletePolicyTagRequest { - // Required. Resource name of the policy tag to be deleted. All of its - // descendant policy tags will also be deleted. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/PolicyTag" - } - ]; -} - -// Request message for -// [UpdatePolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.UpdatePolicyTag]. -message UpdatePolicyTagRequest { - // The policy tag to update. Only the description, display_name, and - // parent_policy_tag fields can be updated. - PolicyTag policy_tag = 1; - - // The update mask applies to the resource. Only display_name, description and - // parent_policy_tag can be updated and thus can be listed in the mask. If - // update_mask is not provided, all allowed fields (i.e. display_name, - // description and parent) will be updated. For more information including the - // `FieldMask` definition, see - // https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask - // If not set, defaults to all of the fields that are allowed to update. - google.protobuf.FieldMask update_mask = 2; -} - -// Request message for -// [ListPolicyTags][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags]. -message ListPolicyTagsRequest { - // Required. Resource name of the taxonomy to list the policy tags of. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/PolicyTag" - } - ]; - - // The maximum number of items to return. Must be a value between 1 and 1000. - // If not set, defaults to 50. - int32 page_size = 2; - - // The next_page_token value returned from a previous List request, if any. If - // not set, defaults to an empty string. - string page_token = 3; -} - -// Response message for -// [ListPolicyTags][google.cloud.datacatalog.v1beta1.PolicyTagManager.ListPolicyTags]. -message ListPolicyTagsResponse { - // The policy tags that are in the requested taxonomy. - repeated PolicyTag policy_tags = 1; - - // Token used to retrieve the next page of results, or empty if there are no - // more results in the list. - string next_page_token = 2; -} - -// Request message for -// [GetPolicyTag][google.cloud.datacatalog.v1beta1.PolicyTagManager.GetPolicyTag]. -message GetPolicyTagRequest { - // Required. Resource name of the requested policy tag. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/PolicyTag" - } - ]; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto deleted file mode 100644 index ef72b5ae7f8f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.proto +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/cloud/datacatalog/v1beta1/policytagmanager.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_outer_classname = "PolicyTagManagerSerializationProto"; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; - -// Policy tag manager serialization API service allows clients to manipulate -// their taxonomies and policy tags data with serialized format. -service PolicyTagManagerSerialization { - option (google.api.default_host) = "datacatalog.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Imports all taxonomies and their policy tags to a project as new - // taxonomies. - // - // This method provides a bulk taxonomy / policy tag creation using nested - // proto structure. - rpc ImportTaxonomies(ImportTaxonomiesRequest) - returns (ImportTaxonomiesResponse) { - option (google.api.http) = { - post: "/v1beta1/{parent=projects/*/locations/*}/taxonomies:import" - body: "*" - }; - } - - // Exports all taxonomies and their policy tags in a project. - // - // This method generates SerializedTaxonomy protos with nested policy tags - // that can be used as an input for future ImportTaxonomies calls. - rpc ExportTaxonomies(ExportTaxonomiesRequest) - returns (ExportTaxonomiesResponse) { - option (google.api.http) = { - get: "/v1beta1/{parent=projects/*/locations/*}/taxonomies:export" - }; - } -} - -// Message capturing a taxonomy and its policy tag hierarchy as a nested proto. -// Used for taxonomy import/export and mutation. -message SerializedTaxonomy { - // Required. Display name of the taxonomy. Max 200 bytes when encoded in - // UTF-8. - string display_name = 1 [(google.api.field_behavior) = REQUIRED]; - - // Description of the serialized taxonomy. The length of the - // description is limited to 2000 bytes when encoded in UTF-8. If not set, - // defaults to an empty description. - string description = 2; - - // Top level policy tags associated with the taxonomy if any. - repeated SerializedPolicyTag policy_tags = 3; - - // A list of policy types that are activated for a taxonomy. - repeated Taxonomy.PolicyType activated_policy_types = 4; -} - -// Message representing one policy tag when exported as a nested proto. -message SerializedPolicyTag { - // Resource name of the policy tag. - // - // This field will be ignored when calling ImportTaxonomies. - string policy_tag = 1; - - // Required. Display name of the policy tag. Max 200 bytes when encoded in - // UTF-8. - string display_name = 2 [(google.api.field_behavior) = REQUIRED]; - - // Description of the serialized policy tag. The length of the - // description is limited to 2000 bytes when encoded in UTF-8. If not set, - // defaults to an empty description. - string description = 3; - - // Children of the policy tag if any. - repeated SerializedPolicyTag child_policy_tags = 4; -} - -// Request message for -// [ImportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies]. -message ImportTaxonomiesRequest { - // Required. Resource name of project that the imported taxonomies will belong - // to. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // Source taxonomies to be imported. - oneof source { - // Inline source used for taxonomies to be imported. - InlineSource inline_source = 2; - } -} - -// Inline source used for taxonomies import. -message InlineSource { - // Required. Taxonomies to be imported. - repeated SerializedTaxonomy taxonomies = 1 - [(google.api.field_behavior) = REQUIRED]; -} - -// Response message for -// [ImportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ImportTaxonomies]. -message ImportTaxonomiesResponse { - // Taxonomies that were imported. - repeated Taxonomy taxonomies = 1; -} - -// Request message for -// [ExportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies]. -message ExportTaxonomiesRequest { - // Required. Resource name of the project that taxonomies to be exported - // will share. - string parent = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // Required. Resource names of the taxonomies to be exported. - repeated string taxonomies = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Taxonomy" - } - ]; - - // Required. Taxonomies export destination. - oneof destination { - // Export taxonomies as serialized taxonomies. - bool serialized_taxonomies = 3; - } -} - -// Response message for -// [ExportTaxonomies][google.cloud.datacatalog.v1beta1.PolicyTagManagerSerialization.ExportTaxonomies]. -message ExportTaxonomiesResponse { - // List of taxonomies and policy tags in a tree structure. - repeated SerializedTaxonomy taxonomies = 1; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/schema.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/schema.proto deleted file mode 100644 index c1be1b71491f..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/schema.proto +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; - -// Represents a schema (e.g. BigQuery, GoogleSQL, Avro schema). -message Schema { - // Required. Schema of columns. A maximum of 10,000 columns and sub-columns - // can be specified. - repeated ColumnSchema columns = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Representation of a column within a schema. Columns could be nested inside -// other columns. -message ColumnSchema { - // Required. Name of the column. - string column = 6 [(google.api.field_behavior) = REQUIRED]; - - // Required. Type of the column. - string type = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Description of the column. Default value is an empty string. - string description = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A column's mode indicates whether the values in this column are - // required, nullable, etc. Only `NULLABLE`, `REQUIRED` and `REPEATED` are - // supported. Default mode is `NULLABLE`. - string mode = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Schema of sub-columns. A column can have zero or more - // sub-columns. - repeated ColumnSchema subcolumns = 7 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/search.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/search.proto deleted file mode 100644 index cd809e842a7d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/search.proto +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -import "google/api/field_behavior.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; - -// A result that appears in the response of a search request. Each result -// captures details of one entry that matches the search. -message SearchCatalogResult { - // Type of the search result. This field can be used to determine which Get - // method to call to fetch the full resource. - SearchResultType search_result_type = 1; - - // Sub-type of the search result. This is a dot-delimited description of the - // resource's full type, and is the same as the value callers would provide in - // the "type" search facet. Examples: `entry.table`, `entry.dataStream`, - // `tagTemplate`. - string search_result_subtype = 2; - - // The relative resource name of the resource in URL format. - // Examples: - // - // * `projects/{project_id}/locations/{location_id}/entryGroups/{entry_group_id}/entries/{entry_id}` - // * `projects/{project_id}/tagTemplates/{tag_template_id}` - string relative_resource_name = 3; - - // The full name of the cloud resource the entry belongs to. See: - // https://cloud.google.com/apis/design/resource_names#full_resource_name. - // Example: - // - // * `//bigquery.googleapis.com/projects/projectId/datasets/datasetId/tables/tableId` - string linked_resource = 4; - - // Last-modified timestamp of the entry from the managing system. - google.protobuf.Timestamp modify_time = 7; -} - -// The different types of resources that can be returned in search. -enum SearchResultType { - // Default unknown type. - SEARCH_RESULT_TYPE_UNSPECIFIED = 0; - - // An [Entry][google.cloud.datacatalog.v1beta1.Entry]. - ENTRY = 1; - - // A [TagTemplate][google.cloud.datacatalog.v1beta1.TagTemplate]. - TAG_TEMPLATE = 2; - - // An [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup]. - ENTRY_GROUP = 3; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/table_spec.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/table_spec.proto deleted file mode 100644 index e28d00998420..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/table_spec.proto +++ /dev/null @@ -1,105 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; - -// Describes a BigQuery table. -message BigQueryTableSpec { - // Output only. The table source type. - TableSourceType table_source_type = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. - oneof type_spec { - // Table view specification. This field should only be populated if - // `table_source_type` is `BIGQUERY_VIEW`. - ViewSpec view_spec = 2; - - // Spec of a BigQuery table. This field should only be populated if - // `table_source_type` is `BIGQUERY_TABLE`. - TableSpec table_spec = 3; - } -} - -// Table source type. -enum TableSourceType { - // Default unknown type. - TABLE_SOURCE_TYPE_UNSPECIFIED = 0; - - // Table view. - BIGQUERY_VIEW = 2; - - // BigQuery native table. - BIGQUERY_TABLE = 5; - - // BigQuery materialized view. - BIGQUERY_MATERIALIZED_VIEW = 7; -} - -// Table view specification. -message ViewSpec { - // Output only. The query that defines the table view. - string view_query = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Normal BigQuery table spec. -message TableSpec { - // Output only. If the table is a dated shard, i.e., with name pattern - // `[prefix]YYYYMMDD`, `grouped_entry` is the Data Catalog resource name of - // the date sharded grouped entry, for example, - // `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. - // Otherwise, `grouped_entry` is empty. - string grouped_entry = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; -} - -// Spec for a group of BigQuery tables with name pattern `[prefix]YYYYMMDD`. -// Context: -// https://cloud.google.com/bigquery/docs/partitioned-tables#partitioning_versus_sharding -message BigQueryDateShardedSpec { - // Output only. The Data Catalog resource name of the dataset entry the - // current table belongs to, for example, - // `projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}`. - string dataset = 1 [ - (google.api.field_behavior) = OUTPUT_ONLY, - (google.api.resource_reference) = { - type: "datacatalog.googleapis.com/Entry" - } - ]; - - // Output only. The table name prefix of the shards. The name of any given - // shard is - // `[table_prefix]YYYYMMDD`, for example, for shard `MyTable20180101`, the - // `table_prefix` is `MyTable`. - string table_prefix = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Total number of shards. - int64 shard_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto deleted file mode 100644 index 77f23f4094a2..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/tags.proto +++ /dev/null @@ -1,250 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; - -// Tags are used to attach custom metadata to Data Catalog resources. Tags -// conform to the specifications within their tag template. -// -// See [Data Catalog -// IAM](https://cloud.google.com/data-catalog/docs/concepts/iam) for information -// on the permissions needed to create or view tags. -message Tag { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/Tag" - pattern: "projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}" - }; - - // Identifier. The resource name of the tag in URL format. Example: - // - // * projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id} - // - // where `tag_id` is a system-generated identifier. - // Note that this Tag may not actually be stored in the location in this name. - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // Required. The resource name of the tag template that this tag uses. - // Example: - // - // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - // - // This field cannot be modified after creation. - string template = 2 [(google.api.field_behavior) = REQUIRED]; - - // Output only. The display name of the tag template. - string template_display_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // The scope within the parent resource that this tag is attached to. If not - // provided, the tag is attached to the parent resource itself. - // Deleting the scope from the parent resource will delete all tags attached - // to that scope. These fields cannot be updated after creation. - oneof scope { - // Resources like Entry can have schemas associated with them. This scope - // allows users to attach tags to an individual column based on that schema. - // - // For attaching a tag to a nested column, use `.` to separate the column - // names. Example: - // - // * `outer_column.inner_column` - string column = 4; - } - - // Required. This maps the ID of a tag field to the value of and additional - // information about that field. Valid field IDs are defined by the tag's - // template. A tag must have at least 1 field and at most 500 fields. - map fields = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Contains the value and supporting information for a field within -// a [Tag][google.cloud.datacatalog.v1beta1.Tag]. -message TagField { - // Holds an enum value. - message EnumValue { - // The display name of the enum value. - string display_name = 1; - } - - // Output only. The display name of this field. - string display_name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Required. The value of this field. - oneof kind { - // Holds the value for a tag field with double type. - double double_value = 2; - - // Holds the value for a tag field with string type. - string string_value = 3; - - // Holds the value for a tag field with boolean type. - bool bool_value = 4; - - // Holds the value for a tag field with timestamp type. - google.protobuf.Timestamp timestamp_value = 5; - - // Holds the value for a tag field with enum type. This value must be - // one of the allowed values in the definition of this enum. - EnumValue enum_value = 6; - } - - // Output only. The order of this field with respect to other fields in this - // tag. It can be set in - // [Tag][google.cloud.datacatalog.v1beta1.TagTemplateField.order]. For - // example, a higher value can indicate a more important field. The value can - // be negative. Multiple fields can have the same order, and field orders - // within a tag do not have to be sequential. - int32 order = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// A tag template defines a tag, which can have one or more typed fields. -// The template is used to create and attach the tag to Google Cloud resources. -// [Tag template -// roles](https://cloud.google.com/iam/docs/understanding-roles#data-catalog-roles) -// provide permissions to create, edit, and use the template. See, for example, -// the [TagTemplate -// User](https://cloud.google.com/data-catalog/docs/how-to/template-user) role, -// which includes permission to use the tag template to tag resources. -message TagTemplate { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/TagTemplate" - pattern: "projects/{project}/locations/{location}/tagTemplates/{tag_template}" - }; - - // This enum describes TagTemplate transfer status to Dataplex service. - enum DataplexTransferStatus { - // Default value. TagTemplate and its tags are only visible and editable in - // DataCatalog. - DATAPLEX_TRANSFER_STATUS_UNSPECIFIED = 0; - - // TagTemplate and its tags are auto-copied to Dataplex service. - // Visible in both services. Editable in DataCatalog, read-only in Dataplex. - // Deprecated: Individual TagTemplate migration is deprecated in favor of - // organization or project wide TagTemplate migration opt-in. - MIGRATED = 1 [deprecated = true]; - } - - // Identifier. The resource name of the tag template in URL format. Example: - // - // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id} - // - // Note that this TagTemplate and its child resources may not actually be - // stored in the location in this name. - string name = 1 [(google.api.field_behavior) = IDENTIFIER]; - - // The display name for this template. Defaults to an empty string. - string display_name = 2; - - // Required. Map of tag template field IDs to the settings for the field. - // This map is an exhaustive list of the allowed fields. This map must contain - // at least one field and at most 500 fields. - // - // The keys to this map are tag template field IDs. Field IDs can contain - // letters (both uppercase and lowercase), numbers (0-9) and underscores (_). - // Field IDs must be at least 1 character long and at most - // 64 characters long. Field IDs must start with a letter or underscore. - map fields = 3 - [(google.api.field_behavior) = REQUIRED]; - - // Output only. Transfer status of the TagTemplate - DataplexTransferStatus dataplex_transfer_status = 7 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The template for an individual field within a tag template. -message TagTemplateField { - option (google.api.resource) = { - type: "datacatalog.googleapis.com/TagTemplateField" - pattern: "projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}" - }; - - // Output only. Identifier. The resource name of the tag template field in URL - // format. Example: - // - // * projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field} - // - // Note that this TagTemplateField may not actually be stored in the location - // in this name. - string name = 6 [ - (google.api.field_behavior) = IDENTIFIER, - (google.api.field_behavior) = OUTPUT_ONLY - ]; - - // The display name for this field. Defaults to an empty string. - string display_name = 1; - - // Required. The type of value this tag field can contain. - FieldType type = 2 [(google.api.field_behavior) = REQUIRED]; - - // Whether this is a required field. Defaults to false. - bool is_required = 3; - - // The description for this field. Defaults to an empty string. - string description = 4; - - // The order of this field with respect to other fields in this tag - // template. A higher value indicates a more important field. The value can - // be negative. Multiple fields can have the same order, and field orders - // within a tag do not have to be sequential. - int32 order = 5; -} - -message FieldType { - enum PrimitiveType { - // This is the default invalid value for a type. - PRIMITIVE_TYPE_UNSPECIFIED = 0; - - // A double precision number. - DOUBLE = 1; - - // An UTF-8 string. - STRING = 2; - - // A boolean value. - BOOL = 3; - - // A timestamp. - TIMESTAMP = 4; - } - - message EnumType { - message EnumValue { - // Required. The display name of the enum value. Must not be an empty - // string. - string display_name = 1 [(google.api.field_behavior) = REQUIRED]; - } - - repeated EnumValue allowed_values = 1; - } - - // Required. - oneof type_decl { - // Represents primitive types - string, bool etc. - PrimitiveType primitive_type = 1; - - // Represents an enum type. - EnumType enum_type = 2; - } -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/timestamps.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/timestamps.proto deleted file mode 100644 index 1865eb776a4d..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/timestamps.proto +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -import "google/api/field_behavior.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; - -// Timestamps about this resource according to a particular system. -message SystemTimestamps { - // The creation time of the resource within the given system. - google.protobuf.Timestamp create_time = 1; - - // The last-modified time of the resource within the given system. - google.protobuf.Timestamp update_time = 2; - - // Output only. The expiration time of the resource within the given system. - // Currently only apllicable to BigQuery resources. - google.protobuf.Timestamp expire_time = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/usage.proto b/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/usage.proto deleted file mode 100644 index 4c807ac144f3..000000000000 --- a/java-datacatalog/proto-google-cloud-datacatalog-v1beta1/src/main/proto/google/cloud/datacatalog/v1beta1/usage.proto +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright 2025 Google LLC -// -// Licensed under the Apache License, Version 2.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.datacatalog.v1beta1; - -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.DataCatalog.V1Beta1"; -option go_package = "cloud.google.com/go/datacatalog/apiv1beta1/datacatalogpb;datacatalogpb"; -option java_multiple_files = true; -option java_package = "com.google.cloud.datacatalog.v1beta1"; -option php_namespace = "Google\\Cloud\\DataCatalog\\V1beta1"; -option ruby_package = "Google::Cloud::DataCatalog::V1beta1"; - -// Detailed counts on the entry's usage. -// Caveats: -// - Only BigQuery tables have usage stats -// - The usage stats only include BigQuery query jobs -// - The usage stats might be underestimated, e.g. wildcard table references -// are not yet counted in usage computation -// https://cloud.google.com/bigquery/docs/querying-wildcard-tables -message UsageStats { - // The number of times that the underlying entry was successfully used. - float total_completions = 1; - - // The number of times that the underlying entry was attempted to be used - // but failed. - float total_failures = 2; - - // The number of times that the underlying entry was attempted to be used - // but was cancelled by the user. - float total_cancellations = 3; - - // Total time spent (in milliseconds) during uses the resulted in completions. - float total_execution_time_for_completions_millis = 4; -} - -// The set of all usage signals that we store in Data Catalog. -message UsageSignal { - // The timestamp of the end of the usage statistics duration. - google.protobuf.Timestamp update_time = 1; - - // Usage statistics over each of the pre-defined time ranges, supported - // strings for time ranges are {"24H", "7D", "30D"}. - map usage_within_time_range = 2; -} diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 1fd70682cfe8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_Create_SetCredentialsProvider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DataCatalogSettings; -import com.google.cloud.datacatalog.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 - DataCatalogSettings dataCatalogSettings = - DataCatalogSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings); - } -} -// [END datacatalog_v1_generated_DataCatalog_Create_SetCredentialsProvider_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetEndpoint.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetEndpoint.java deleted file mode 100644 index c0b40f05acc9..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_Create_SetEndpoint_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DataCatalogSettings; -import com.google.cloud.datacatalog.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 - DataCatalogSettings dataCatalogSettings = - DataCatalogSettings.newBuilder().setEndpoint(myEndpoint).build(); - DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings); - } -} -// [END datacatalog_v1_generated_DataCatalog_Create_SetEndpoint_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateUseHttpJsonTransport.java deleted file mode 100644 index 2a132b703d0f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/create/SyncCreateUseHttpJsonTransport.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_Create_UseHttpJsonTransport_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DataCatalogSettings; - -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 - DataCatalogSettings dataCatalogSettings = DataCatalogSettings.newHttpJsonBuilder().build(); - DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings); - } -} -// [END datacatalog_v1_generated_DataCatalog_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/AsyncCreateEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/AsyncCreateEntry.java deleted file mode 100644 index 2cf92c850c57..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/AsyncCreateEntry.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; - -public class AsyncCreateEntry { - - public static void main(String[] args) throws Exception { - asyncCreateEntry(); - } - - public static void asyncCreateEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateEntryRequest request = - CreateEntryRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setEntryId("entryId-1591558867") - .setEntry(Entry.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.createEntryCallable().futureCall(request); - // Do something. - Entry response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntry.java deleted file mode 100644 index 13e5c07551f9..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntry.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateEntry_sync] -import com.google.cloud.datacatalog.v1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; - -public class SyncCreateEntry { - - public static void main(String[] args) throws Exception { - syncCreateEntry(); - } - - public static void syncCreateEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateEntryRequest request = - CreateEntryRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setEntryId("entryId-1591558867") - .setEntry(Entry.newBuilder().build()) - .build(); - Entry response = dataCatalogClient.createEntry(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java deleted file mode 100644 index 3292b981b5fc..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateEntry_EntrygroupnameStringEntry_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; - -public class SyncCreateEntryEntrygroupnameStringEntry { - - public static void main(String[] args) throws Exception { - syncCreateEntryEntrygroupnameStringEntry(); - } - - public static void syncCreateEntryEntrygroupnameStringEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - Entry response = dataCatalogClient.createEntry(parent, entryId, entry); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateEntry_EntrygroupnameStringEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java deleted file mode 100644 index e92fa39857c5..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateEntry_StringStringEntry_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; - -public class SyncCreateEntryStringStringEntry { - - public static void main(String[] args) throws Exception { - syncCreateEntryStringStringEntry(); - } - - public static void syncCreateEntryStringStringEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - Entry response = dataCatalogClient.createEntry(parent, entryId, entry); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateEntry_StringStringEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java deleted file mode 100644 index 80eacd4fdd2e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateEntryGroup_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.LocationName; - -public class AsyncCreateEntryGroup { - - public static void main(String[] args) throws Exception { - asyncCreateEntryGroup(); - } - - public static void asyncCreateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateEntryGroupRequest request = - CreateEntryGroupRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setEntryGroupId("entryGroupId1228924712") - .setEntryGroup(EntryGroup.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.createEntryGroupCallable().futureCall(request); - // Do something. - EntryGroup response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateEntryGroup_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroup.java deleted file mode 100644 index 72c52d9b1768..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroup.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateEntryGroup_sync] -import com.google.cloud.datacatalog.v1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.LocationName; - -public class SyncCreateEntryGroup { - - public static void main(String[] args) throws Exception { - syncCreateEntryGroup(); - } - - public static void syncCreateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateEntryGroupRequest request = - CreateEntryGroupRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setEntryGroupId("entryGroupId1228924712") - .setEntryGroup(EntryGroup.newBuilder().build()) - .build(); - EntryGroup response = dataCatalogClient.createEntryGroup(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java deleted file mode 100644 index 27ca16f2e5a2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateEntryGroup_LocationnameStringEntrygroup_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.LocationName; - -public class SyncCreateEntryGroupLocationnameStringEntrygroup { - - public static void main(String[] args) throws Exception { - syncCreateEntryGroupLocationnameStringEntrygroup(); - } - - public static void syncCreateEntryGroupLocationnameStringEntrygroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateEntryGroup_LocationnameStringEntrygroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java deleted file mode 100644 index f035d7bc2351..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateEntryGroup_StringStringEntrygroup_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.LocationName; - -public class SyncCreateEntryGroupStringStringEntrygroup { - - public static void main(String[] args) throws Exception { - syncCreateEntryGroupStringStringEntrygroup(); - } - - public static void syncCreateEntryGroupStringStringEntrygroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateEntryGroup_StringStringEntrygroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/AsyncCreateTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/AsyncCreateTag.java deleted file mode 100644 index 876769d82fa4..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/AsyncCreateTag.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.CreateTagRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.Tag; - -public class AsyncCreateTag { - - public static void main(String[] args) throws Exception { - asyncCreateTag(); - } - - public static void asyncCreateTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagRequest request = - CreateTagRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTag(Tag.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.createTagCallable().futureCall(request); - // Do something. - Tag response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTag.java deleted file mode 100644 index 0e33d0c6dc59..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTag.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTag_sync] -import com.google.cloud.datacatalog.v1.CreateTagRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.Tag; - -public class SyncCreateTag { - - public static void main(String[] args) throws Exception { - syncCreateTag(); - } - - public static void syncCreateTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagRequest request = - CreateTagRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTag(Tag.newBuilder().build()) - .build(); - Tag response = dataCatalogClient.createTag(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagEntrynameTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagEntrynameTag.java deleted file mode 100644 index ce4ccac52eea..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagEntrynameTag.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTag_EntrynameTag_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.Tag; - -public class SyncCreateTagEntrynameTag { - - public static void main(String[] args) throws Exception { - syncCreateTagEntrynameTag(); - } - - public static void syncCreateTagEntrynameTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Tag tag = Tag.newBuilder().build(); - Tag response = dataCatalogClient.createTag(parent, tag); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTag_EntrynameTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagStringTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagStringTag.java deleted file mode 100644 index 86dc816e8cb8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtag/SyncCreateTagStringTag.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTag_StringTag_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.Tag; - -public class SyncCreateTagStringTag { - - public static void main(String[] args) throws Exception { - syncCreateTagStringTag(); - } - - public static void syncCreateTagStringTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - Tag tag = Tag.newBuilder().build(); - Tag response = dataCatalogClient.createTag(parent, tag); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTag_StringTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java deleted file mode 100644 index 928122ac2aaf..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTagTemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.TagTemplate; - -public class AsyncCreateTagTemplate { - - public static void main(String[] args) throws Exception { - asyncCreateTagTemplate(); - } - - public static void asyncCreateTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagTemplateRequest request = - CreateTagTemplateRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTagTemplateId("tagTemplateId-1438776721") - .setTagTemplate(TagTemplate.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.createTagTemplateCallable().futureCall(request); - // Do something. - TagTemplate response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplate_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java deleted file mode 100644 index e88d47e24fbe..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTagTemplate_sync] -import com.google.cloud.datacatalog.v1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.TagTemplate; - -public class SyncCreateTagTemplate { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplate(); - } - - public static void syncCreateTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagTemplateRequest request = - CreateTagTemplateRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTagTemplateId("tagTemplateId-1438776721") - .setTagTemplate(TagTemplate.newBuilder().build()) - .build(); - TagTemplate response = dataCatalogClient.createTagTemplate(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java deleted file mode 100644 index 713ce47c326f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTagTemplate_LocationnameStringTagtemplate_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.TagTemplate; - -public class SyncCreateTagTemplateLocationnameStringTagtemplate { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplateLocationnameStringTagtemplate(); - } - - public static void syncCreateTagTemplateLocationnameStringTagtemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - TagTemplate response = - dataCatalogClient.createTagTemplate(parent, tagTemplateId, tagTemplate); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplate_LocationnameStringTagtemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java deleted file mode 100644 index 69e04d5a895b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTagTemplate_StringStringTagtemplate_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.TagTemplate; - -public class SyncCreateTagTemplateStringStringTagtemplate { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplateStringStringTagtemplate(); - } - - public static void syncCreateTagTemplateStringStringTagtemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - TagTemplate response = - dataCatalogClient.createTagTemplate(parent, tagTemplateId, tagTemplate); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplate_StringStringTagtemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java deleted file mode 100644 index cf54b6e035d4..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateName; - -public class AsyncCreateTagTemplateField { - - public static void main(String[] args) throws Exception { - asyncCreateTagTemplateField(); - } - - public static void asyncCreateTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagTemplateFieldRequest request = - CreateTagTemplateFieldRequest.newBuilder() - .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setTagTemplateFieldId("tagTemplateFieldId-1556835615") - .setTagTemplateField(TagTemplateField.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.createTagTemplateFieldCallable().futureCall(request); - // Do something. - TagTemplateField response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java deleted file mode 100644 index 669a04b65d19..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_sync] -import com.google.cloud.datacatalog.v1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateName; - -public class SyncCreateTagTemplateField { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplateField(); - } - - public static void syncCreateTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagTemplateFieldRequest request = - CreateTagTemplateFieldRequest.newBuilder() - .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setTagTemplateFieldId("tagTemplateFieldId-1556835615") - .setTagTemplateField(TagTemplateField.newBuilder().build()) - .build(); - TagTemplateField response = dataCatalogClient.createTagTemplateField(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java deleted file mode 100644 index 6acf938593c1..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_StringStringTagtemplatefield_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateName; - -public class SyncCreateTagTemplateFieldStringStringTagtemplatefield { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplateFieldStringStringTagtemplatefield(); - } - - public static void syncCreateTagTemplateFieldStringStringTagtemplatefield() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString(); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - TagTemplateField response = - dataCatalogClient.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_StringStringTagtemplatefield_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java deleted file mode 100644 index 6b6f16f78c0e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_TagtemplatenameStringTagtemplatefield_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateName; - -public class SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield(); - } - - public static void syncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - TagTemplateField response = - dataCatalogClient.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_CreateTagTemplateField_TagtemplatenameStringTagtemplatefield_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/AsyncDeleteEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/AsyncDeleteEntry.java deleted file mode 100644 index c7e88036a4fc..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/AsyncDeleteEntry.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.protobuf.Empty; - -public class AsyncDeleteEntry { - - public static void main(String[] args) throws Exception { - asyncDeleteEntry(); - } - - public static void asyncDeleteEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteEntryRequest request = - DeleteEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - ApiFuture future = dataCatalogClient.deleteEntryCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntry.java deleted file mode 100644 index dbe94aa49e72..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntry.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteEntry_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntry { - - public static void main(String[] args) throws Exception { - syncDeleteEntry(); - } - - public static void syncDeleteEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteEntryRequest request = - DeleteEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - dataCatalogClient.deleteEntry(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java deleted file mode 100644 index 36d19262b69f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteEntry_Entryname_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntryEntryname { - - public static void main(String[] args) throws Exception { - syncDeleteEntryEntryname(); - } - - public static void syncDeleteEntryEntryname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - dataCatalogClient.deleteEntry(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteEntry_Entryname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryString.java deleted file mode 100644 index 9fd05968bcf6..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentry/SyncDeleteEntryString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteEntry_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntryString { - - public static void main(String[] args) throws Exception { - syncDeleteEntryString(); - } - - public static void syncDeleteEntryString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - dataCatalogClient.deleteEntry(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteEntry_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java deleted file mode 100644 index eabaac349a88..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.protobuf.Empty; - -public class AsyncDeleteEntryGroup { - - public static void main(String[] args) throws Exception { - asyncDeleteEntryGroup(); - } - - public static void asyncDeleteEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteEntryGroupRequest request = - DeleteEntryGroupRequest.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setForce(true) - .build(); - ApiFuture future = dataCatalogClient.deleteEntryGroupCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java deleted file mode 100644 index 057c43cec34a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntryGroup { - - public static void main(String[] args) throws Exception { - syncDeleteEntryGroup(); - } - - public static void syncDeleteEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteEntryGroupRequest request = - DeleteEntryGroupRequest.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setForce(true) - .build(); - dataCatalogClient.deleteEntryGroup(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java deleted file mode 100644 index 480e6afff122..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_Entrygroupname_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntryGroupEntrygroupname { - - public static void main(String[] args) throws Exception { - syncDeleteEntryGroupEntrygroupname(); - } - - public static void syncDeleteEntryGroupEntrygroupname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - dataCatalogClient.deleteEntryGroup(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_Entrygroupname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java deleted file mode 100644 index 6d7b2a952d5c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntryGroupString { - - public static void main(String[] args) throws Exception { - syncDeleteEntryGroupString(); - } - - public static void syncDeleteEntryGroupString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); - dataCatalogClient.deleteEntryGroup(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteEntryGroup_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/AsyncDeleteTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/AsyncDeleteTag.java deleted file mode 100644 index 65c7f761f427..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/AsyncDeleteTag.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTag { - - public static void main(String[] args) throws Exception { - asyncDeleteTag(); - } - - public static void asyncDeleteTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagRequest request = - DeleteTagRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - ApiFuture future = dataCatalogClient.deleteTagCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTag.java deleted file mode 100644 index f6779cf8b258..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTag.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTag_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteTag { - - public static void main(String[] args) throws Exception { - syncDeleteTag(); - } - - public static void syncDeleteTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagRequest request = - DeleteTagRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - dataCatalogClient.deleteTag(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagEntryname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagEntryname.java deleted file mode 100644 index e1a32c77c3c0..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagEntryname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTag_Entryname_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagEntryname { - - public static void main(String[] args) throws Exception { - syncDeleteTagEntryname(); - } - - public static void syncDeleteTagEntryname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - dataCatalogClient.deleteTag(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTag_Entryname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagString.java deleted file mode 100644 index 3fff2337b0f6..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetag/SyncDeleteTagString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTag_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagString { - - public static void main(String[] args) throws Exception { - syncDeleteTagString(); - } - - public static void syncDeleteTagString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - dataCatalogClient.deleteTag(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTag_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java deleted file mode 100644 index cbb96db332ab..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTagTemplate { - - public static void main(String[] args) throws Exception { - asyncDeleteTagTemplate(); - } - - public static void asyncDeleteTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagTemplateRequest request = - DeleteTagTemplateRequest.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForce(true) - .build(); - ApiFuture future = dataCatalogClient.deleteTagTemplateCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java deleted file mode 100644 index 5a0186c2f849..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplate { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplate(); - } - - public static void syncDeleteTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagTemplateRequest request = - DeleteTagTemplateRequest.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForce(true) - .build(); - dataCatalogClient.deleteTagTemplate(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java deleted file mode 100644 index afa67529a7e8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_StringBoolean_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplateStringBoolean { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplateStringBoolean(); - } - - public static void syncDeleteTagTemplateStringBoolean() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString(); - boolean force = true; - dataCatalogClient.deleteTagTemplate(name, force); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_StringBoolean_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java deleted file mode 100644 index 891a52a4acbd..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_TagtemplatenameBoolean_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplateTagtemplatenameBoolean { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplateTagtemplatenameBoolean(); - } - - public static void syncDeleteTagTemplateTagtemplatenameBoolean() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - boolean force = true; - dataCatalogClient.deleteTagTemplate(name, force); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplate_TagtemplatenameBoolean_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java deleted file mode 100644 index dd9e6a3f1c3b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTagTemplateField { - - public static void main(String[] args) throws Exception { - asyncDeleteTagTemplateField(); - } - - public static void asyncDeleteTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagTemplateFieldRequest request = - DeleteTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setForce(true) - .build(); - ApiFuture future = - dataCatalogClient.deleteTagTemplateFieldCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java deleted file mode 100644 index 502d853255a7..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplateField { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplateField(); - } - - public static void syncDeleteTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagTemplateFieldRequest request = - DeleteTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setForce(true) - .build(); - dataCatalogClient.deleteTagTemplateField(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java deleted file mode 100644 index 21d6cf36a0fd..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_StringBoolean_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplateFieldStringBoolean { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplateFieldStringBoolean(); - } - - public static void syncDeleteTagTemplateFieldStringBoolean() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString(); - boolean force = true; - dataCatalogClient.deleteTagTemplateField(name, force); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_StringBoolean_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java deleted file mode 100644 index 34831f6a1b8d..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_TagtemplatefieldnameBoolean_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplateFieldTagtemplatefieldnameBoolean(); - } - - public static void syncDeleteTagTemplateFieldTagtemplatefieldnameBoolean() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - boolean force = true; - dataCatalogClient.deleteTagTemplateField(name, force); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_DeleteTagTemplateField_TagtemplatefieldnameBoolean_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/AsyncGetEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/AsyncGetEntry.java deleted file mode 100644 index dd6242f100dc..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/AsyncGetEntry.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.GetEntryRequest; - -public class AsyncGetEntry { - - public static void main(String[] args) throws Exception { - asyncGetEntry(); - } - - public static void asyncGetEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetEntryRequest request = - GetEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - ApiFuture future = dataCatalogClient.getEntryCallable().futureCall(request); - // Do something. - Entry response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntry.java deleted file mode 100644 index 6e5799a5bf13..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntry.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetEntry_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.GetEntryRequest; - -public class SyncGetEntry { - - public static void main(String[] args) throws Exception { - syncGetEntry(); - } - - public static void syncGetEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetEntryRequest request = - GetEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - Entry response = dataCatalogClient.getEntry(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryEntryname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryEntryname.java deleted file mode 100644 index bcd67c3e1696..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryEntryname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetEntry_Entryname_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryName; - -public class SyncGetEntryEntryname { - - public static void main(String[] args) throws Exception { - syncGetEntryEntryname(); - } - - public static void syncGetEntryEntryname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Entry response = dataCatalogClient.getEntry(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetEntry_Entryname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryString.java deleted file mode 100644 index 9f93f10609c0..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentry/SyncGetEntryString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetEntry_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryName; - -public class SyncGetEntryString { - - public static void main(String[] args) throws Exception { - syncGetEntryString(); - } - - public static void syncGetEntryString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - Entry response = dataCatalogClient.getEntry(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetEntry_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/AsyncGetEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/AsyncGetEntryGroup.java deleted file mode 100644 index 954a85113ecb..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/AsyncGetEntryGroup.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetEntryGroup_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.GetEntryGroupRequest; -import com.google.protobuf.FieldMask; - -public class AsyncGetEntryGroup { - - public static void main(String[] args) throws Exception { - asyncGetEntryGroup(); - } - - public static void asyncGetEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetEntryGroupRequest request = - GetEntryGroupRequest.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setReadMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.getEntryGroupCallable().futureCall(request); - // Do something. - EntryGroup response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetEntryGroup_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroup.java deleted file mode 100644 index 42b686cd9846..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroup.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetEntryGroup_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.GetEntryGroupRequest; -import com.google.protobuf.FieldMask; - -public class SyncGetEntryGroup { - - public static void main(String[] args) throws Exception { - syncGetEntryGroup(); - } - - public static void syncGetEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetEntryGroupRequest request = - GetEntryGroupRequest.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setReadMask(FieldMask.newBuilder().build()) - .build(); - EntryGroup response = dataCatalogClient.getEntryGroup(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java deleted file mode 100644 index f26b462fe39b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetEntryGroup_Entrygroupname_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryGroupName; - -public class SyncGetEntryGroupEntrygroupname { - - public static void main(String[] args) throws Exception { - syncGetEntryGroupEntrygroupname(); - } - - public static void syncGetEntryGroupEntrygroupname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - EntryGroup response = dataCatalogClient.getEntryGroup(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetEntryGroup_Entrygroupname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java deleted file mode 100644 index 8d3c6321b256..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetEntryGroup_EntrygroupnameFieldmask_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.protobuf.FieldMask; - -public class SyncGetEntryGroupEntrygroupnameFieldmask { - - public static void main(String[] args) throws Exception { - syncGetEntryGroupEntrygroupnameFieldmask(); - } - - public static void syncGetEntryGroupEntrygroupnameFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - FieldMask readMask = FieldMask.newBuilder().build(); - EntryGroup response = dataCatalogClient.getEntryGroup(name, readMask); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetEntryGroup_EntrygroupnameFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupString.java deleted file mode 100644 index b41545899a58..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetEntryGroup_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryGroupName; - -public class SyncGetEntryGroupString { - - public static void main(String[] args) throws Exception { - syncGetEntryGroupString(); - } - - public static void syncGetEntryGroupString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); - EntryGroup response = dataCatalogClient.getEntryGroup(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetEntryGroup_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java deleted file mode 100644 index 7f5684f4a42b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetEntryGroup_StringFieldmask_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.protobuf.FieldMask; - -public class SyncGetEntryGroupStringFieldmask { - - public static void main(String[] args) throws Exception { - syncGetEntryGroupStringFieldmask(); - } - - public static void syncGetEntryGroupStringFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); - FieldMask readMask = FieldMask.newBuilder().build(); - EntryGroup response = dataCatalogClient.getEntryGroup(name, readMask); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetEntryGroup_StringFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/AsyncGetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/AsyncGetIamPolicy.java deleted file mode 100644 index 3b415e74f33c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/AsyncGetIamPolicy.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetIamPolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.getIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetIamPolicy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicy.java deleted file mode 100644 index bb4c43cb117a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetIamPolicy_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - Policy response = dataCatalogClient.getIamPolicy(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetIamPolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java deleted file mode 100644 index 7678d359b5b2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetIamPolicy_Resourcename_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyResourcename { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyResourcename(); - } - - public static void syncGetIamPolicyResourcename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Policy response = dataCatalogClient.getIamPolicy(resource); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetIamPolicy_Resourcename_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyString.java deleted file mode 100644 index 9ff105e3853f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/getiampolicy/SyncGetIamPolicyString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetIamPolicy_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyString { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyString(); - } - - public static void syncGetIamPolicyString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String resource = - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - Policy response = dataCatalogClient.getIamPolicy(resource); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetIamPolicy_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java deleted file mode 100644 index 9ced713a8b08..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetTagTemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateName; - -public class AsyncGetTagTemplate { - - public static void main(String[] args) throws Exception { - asyncGetTagTemplate(); - } - - public static void asyncGetTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetTagTemplateRequest request = - GetTagTemplateRequest.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .build(); - ApiFuture future = - dataCatalogClient.getTagTemplateCallable().futureCall(request); - // Do something. - TagTemplate response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetTagTemplate_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplate.java deleted file mode 100644 index 96af0951296c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplate.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetTagTemplate_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateName; - -public class SyncGetTagTemplate { - - public static void main(String[] args) throws Exception { - syncGetTagTemplate(); - } - - public static void syncGetTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetTagTemplateRequest request = - GetTagTemplateRequest.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .build(); - TagTemplate response = dataCatalogClient.getTagTemplate(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetTagTemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java deleted file mode 100644 index 27ba15682202..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetTagTemplate_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateName; - -public class SyncGetTagTemplateString { - - public static void main(String[] args) throws Exception { - syncGetTagTemplateString(); - } - - public static void syncGetTagTemplateString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString(); - TagTemplate response = dataCatalogClient.getTagTemplate(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetTagTemplate_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java deleted file mode 100644 index cc73e4fd7567..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_GetTagTemplate_Tagtemplatename_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.TagTemplateName; - -public class SyncGetTagTemplateTagtemplatename { - - public static void main(String[] args) throws Exception { - syncGetTagTemplateTagtemplatename(); - } - - public static void syncGetTagTemplateTagtemplatename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - TagTemplate response = dataCatalogClient.getTagTemplate(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_GetTagTemplate_Tagtemplatename_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntries.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntries.java deleted file mode 100644 index 3ee3cba70f31..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntries.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ImportEntries_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.ImportEntriesRequest; -import com.google.longrunning.Operation; - -public class AsyncImportEntries { - - public static void main(String[] args) throws Exception { - asyncImportEntries(); - } - - public static void asyncImportEntries() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ImportEntriesRequest request = - ImportEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setJobId("jobId101296568") - .build(); - ApiFuture future = dataCatalogClient.importEntriesCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ImportEntries_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntriesLRO.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntriesLRO.java deleted file mode 100644 index 7c697a936c55..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/AsyncImportEntriesLRO.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ImportEntries_LRO_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.ImportEntriesMetadata; -import com.google.cloud.datacatalog.v1.ImportEntriesRequest; -import com.google.cloud.datacatalog.v1.ImportEntriesResponse; - -public class AsyncImportEntriesLRO { - - public static void main(String[] args) throws Exception { - asyncImportEntriesLRO(); - } - - public static void asyncImportEntriesLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ImportEntriesRequest request = - ImportEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setJobId("jobId101296568") - .build(); - OperationFuture future = - dataCatalogClient.importEntriesOperationCallable().futureCall(request); - // Do something. - ImportEntriesResponse response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ImportEntries_LRO_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/SyncImportEntries.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/SyncImportEntries.java deleted file mode 100644 index 26b7a5bef014..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/importentries/SyncImportEntries.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ImportEntries_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.ImportEntriesRequest; -import com.google.cloud.datacatalog.v1.ImportEntriesResponse; - -public class SyncImportEntries { - - public static void main(String[] args) throws Exception { - syncImportEntries(); - } - - public static void syncImportEntries() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ImportEntriesRequest request = - ImportEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setJobId("jobId101296568") - .build(); - ImportEntriesResponse response = dataCatalogClient.importEntriesAsync(request).get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ImportEntries_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntries.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntries.java deleted file mode 100644 index 53733fef17a7..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntries.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListEntries_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.ListEntriesRequest; -import com.google.protobuf.FieldMask; - -public class AsyncListEntries { - - public static void main(String[] args) throws Exception { - asyncListEntries(); - } - - public static void asyncListEntries() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntriesRequest request = - ListEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.listEntriesPagedCallable().futureCall(request); - // Do something. - for (Entry element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListEntries_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntriesPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntriesPaged.java deleted file mode 100644 index 2461215fb931..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/AsyncListEntriesPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListEntries_Paged_async] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.ListEntriesRequest; -import com.google.cloud.datacatalog.v1.ListEntriesResponse; -import com.google.common.base.Strings; -import com.google.protobuf.FieldMask; - -public class AsyncListEntriesPaged { - - public static void main(String[] args) throws Exception { - asyncListEntriesPaged(); - } - - public static void asyncListEntriesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntriesRequest request = - ListEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - while (true) { - ListEntriesResponse response = dataCatalogClient.listEntriesCallable().call(request); - for (Entry element : response.getEntriesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListEntries_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntries.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntries.java deleted file mode 100644 index e9ae57066ba5..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntries.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListEntries_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.cloud.datacatalog.v1.ListEntriesRequest; -import com.google.protobuf.FieldMask; - -public class SyncListEntries { - - public static void main(String[] args) throws Exception { - syncListEntries(); - } - - public static void syncListEntries() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntriesRequest request = - ListEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - for (Entry element : dataCatalogClient.listEntries(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListEntries_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesEntrygroupname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesEntrygroupname.java deleted file mode 100644 index fbe20d25848a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesEntrygroupname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListEntries_Entrygroupname_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; - -public class SyncListEntriesEntrygroupname { - - public static void main(String[] args) throws Exception { - syncListEntriesEntrygroupname(); - } - - public static void syncListEntriesEntrygroupname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - for (Entry element : dataCatalogClient.listEntries(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListEntries_Entrygroupname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesString.java deleted file mode 100644 index f31d3b88bccb..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentries/SyncListEntriesString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListEntries_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.EntryGroupName; - -public class SyncListEntriesString { - - public static void main(String[] args) throws Exception { - syncListEntriesString(); - } - - public static void syncListEntriesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); - for (Entry element : dataCatalogClient.listEntries(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListEntries_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroups.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroups.java deleted file mode 100644 index d18d9bab2ca1..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroups.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListEntryGroups_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1.LocationName; - -public class AsyncListEntryGroups { - - public static void main(String[] args) throws Exception { - asyncListEntryGroups(); - } - - public static void asyncListEntryGroups() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntryGroupsRequest request = - ListEntryGroupsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - dataCatalogClient.listEntryGroupsPagedCallable().futureCall(request); - // Do something. - for (EntryGroup element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListEntryGroups_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java deleted file mode 100644 index 68265e56441e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListEntryGroups_Paged_async] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1.ListEntryGroupsResponse; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.common.base.Strings; - -public class AsyncListEntryGroupsPaged { - - public static void main(String[] args) throws Exception { - asyncListEntryGroupsPaged(); - } - - public static void asyncListEntryGroupsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntryGroupsRequest request = - ListEntryGroupsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListEntryGroupsResponse response = - dataCatalogClient.listEntryGroupsCallable().call(request); - for (EntryGroup element : response.getEntryGroupsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListEntryGroups_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroups.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroups.java deleted file mode 100644 index a6597364c4f8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroups.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListEntryGroups_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1.LocationName; - -public class SyncListEntryGroups { - - public static void main(String[] args) throws Exception { - syncListEntryGroups(); - } - - public static void syncListEntryGroups() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntryGroupsRequest request = - ListEntryGroupsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (EntryGroup element : dataCatalogClient.listEntryGroups(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListEntryGroups_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java deleted file mode 100644 index 36686454c8ad..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListEntryGroups_Locationname_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.LocationName; - -public class SyncListEntryGroupsLocationname { - - public static void main(String[] args) throws Exception { - syncListEntryGroupsLocationname(); - } - - public static void syncListEntryGroupsLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (EntryGroup element : dataCatalogClient.listEntryGroups(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListEntryGroups_Locationname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsString.java deleted file mode 100644 index f0efca591a93..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listentrygroups/SyncListEntryGroupsString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListEntryGroups_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.LocationName; - -public class SyncListEntryGroupsString { - - public static void main(String[] args) throws Exception { - syncListEntryGroupsString(); - } - - public static void syncListEntryGroupsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (EntryGroup element : dataCatalogClient.listEntryGroups(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListEntryGroups_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTags.java deleted file mode 100644 index 82d345b6b7b9..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTags.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListTags_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.ListTagsRequest; -import com.google.cloud.datacatalog.v1.Tag; - -public class AsyncListTags { - - public static void main(String[] args) throws Exception { - asyncListTags(); - } - - public static void asyncListTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListTagsRequest request = - ListTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = dataCatalogClient.listTagsPagedCallable().futureCall(request); - // Do something. - for (Tag element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListTags_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTagsPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTagsPaged.java deleted file mode 100644 index e68a2a740e1b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/AsyncListTagsPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListTags_Paged_async] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.ListTagsRequest; -import com.google.cloud.datacatalog.v1.ListTagsResponse; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.common.base.Strings; - -public class AsyncListTagsPaged { - - public static void main(String[] args) throws Exception { - asyncListTagsPaged(); - } - - public static void asyncListTagsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListTagsRequest request = - ListTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListTagsResponse response = dataCatalogClient.listTagsCallable().call(request); - for (Tag element : response.getTagsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListTags_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTags.java deleted file mode 100644 index fa3e76e9b61e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTags.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListTags_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.ListTagsRequest; -import com.google.cloud.datacatalog.v1.Tag; - -public class SyncListTags { - - public static void main(String[] args) throws Exception { - syncListTags(); - } - - public static void syncListTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListTagsRequest request = - ListTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Tag element : dataCatalogClient.listTags(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListTags_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsEntryname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsEntryname.java deleted file mode 100644 index f551a3c134ff..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsEntryname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListTags_Entryname_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.Tag; - -public class SyncListTagsEntryname { - - public static void main(String[] args) throws Exception { - syncListTagsEntryname(); - } - - public static void syncListTagsEntryname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListTags_Entryname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsString.java deleted file mode 100644 index 7d94180bf677..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/listtags/SyncListTagsString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ListTags_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.Tag; - -public class SyncListTagsString { - - public static void main(String[] args) throws Exception { - syncListTagsString(); - } - - public static void syncListTagsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ListTags_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/AsyncLookupEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/AsyncLookupEntry.java deleted file mode 100644 index a69b2ce63b01..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/AsyncLookupEntry.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_LookupEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.LookupEntryRequest; - -public class AsyncLookupEntry { - - public static void main(String[] args) throws Exception { - asyncLookupEntry(); - } - - public static void asyncLookupEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LookupEntryRequest request = - LookupEntryRequest.newBuilder() - .setProject("project-309310695") - .setLocation("location1901043637") - .build(); - ApiFuture future = dataCatalogClient.lookupEntryCallable().futureCall(request); - // Do something. - Entry response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_LookupEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/SyncLookupEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/SyncLookupEntry.java deleted file mode 100644 index f7133ad29d64..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/lookupentry/SyncLookupEntry.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_LookupEntry_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.LookupEntryRequest; - -public class SyncLookupEntry { - - public static void main(String[] args) throws Exception { - syncLookupEntry(); - } - - public static void syncLookupEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LookupEntryRequest request = - LookupEntryRequest.newBuilder() - .setProject("project-309310695") - .setLocation("location1901043637") - .build(); - Entry response = dataCatalogClient.lookupEntry(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_LookupEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/AsyncModifyEntryContacts.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/AsyncModifyEntryContacts.java deleted file mode 100644 index 164bdab8264e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/AsyncModifyEntryContacts.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ModifyEntryContacts_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.Contacts; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest; - -public class AsyncModifyEntryContacts { - - public static void main(String[] args) throws Exception { - asyncModifyEntryContacts(); - } - - public static void asyncModifyEntryContacts() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ModifyEntryContactsRequest request = - ModifyEntryContactsRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setContacts(Contacts.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.modifyEntryContactsCallable().futureCall(request); - // Do something. - Contacts response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ModifyEntryContacts_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/SyncModifyEntryContacts.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/SyncModifyEntryContacts.java deleted file mode 100644 index 9e517ec787e0..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentrycontacts/SyncModifyEntryContacts.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ModifyEntryContacts_sync] -import com.google.cloud.datacatalog.v1.Contacts; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.ModifyEntryContactsRequest; - -public class SyncModifyEntryContacts { - - public static void main(String[] args) throws Exception { - syncModifyEntryContacts(); - } - - public static void syncModifyEntryContacts() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ModifyEntryContactsRequest request = - ModifyEntryContactsRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setContacts(Contacts.newBuilder().build()) - .build(); - Contacts response = dataCatalogClient.modifyEntryContacts(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ModifyEntryContacts_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/AsyncModifyEntryOverview.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/AsyncModifyEntryOverview.java deleted file mode 100644 index a7a766ad3272..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/AsyncModifyEntryOverview.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ModifyEntryOverview_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.EntryOverview; -import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; - -public class AsyncModifyEntryOverview { - - public static void main(String[] args) throws Exception { - asyncModifyEntryOverview(); - } - - public static void asyncModifyEntryOverview() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ModifyEntryOverviewRequest request = - ModifyEntryOverviewRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setEntryOverview(EntryOverview.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.modifyEntryOverviewCallable().futureCall(request); - // Do something. - EntryOverview response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ModifyEntryOverview_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/SyncModifyEntryOverview.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/SyncModifyEntryOverview.java deleted file mode 100644 index eb95af75fb61..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/modifyentryoverview/SyncModifyEntryOverview.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ModifyEntryOverview_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.EntryOverview; -import com.google.cloud.datacatalog.v1.ModifyEntryOverviewRequest; - -public class SyncModifyEntryOverview { - - public static void main(String[] args) throws Exception { - syncModifyEntryOverview(); - } - - public static void syncModifyEntryOverview() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ModifyEntryOverviewRequest request = - ModifyEntryOverviewRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setEntryOverview(EntryOverview.newBuilder().build()) - .build(); - EntryOverview response = dataCatalogClient.modifyEntryOverview(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ModifyEntryOverview_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTags.java deleted file mode 100644 index 8c6659e6d464..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTags.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ReconcileTags_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import com.google.longrunning.Operation; -import java.util.ArrayList; - -public class AsyncReconcileTags { - - public static void main(String[] args) throws Exception { - asyncReconcileTags(); - } - - public static void asyncReconcileTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ReconcileTagsRequest request = - ReconcileTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTagTemplate( - TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForceDeleteMissing(true) - .addAllTags(new ArrayList()) - .build(); - ApiFuture future = dataCatalogClient.reconcileTagsCallable().futureCall(request); - // Do something. - Operation response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ReconcileTags_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTagsLRO.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTagsLRO.java deleted file mode 100644 index 723a1dc93ad7..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/AsyncReconcileTagsLRO.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ReconcileTags_LRO_async] -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.ReconcileTagsMetadata; -import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; -import com.google.cloud.datacatalog.v1.ReconcileTagsResponse; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import java.util.ArrayList; - -public class AsyncReconcileTagsLRO { - - public static void main(String[] args) throws Exception { - asyncReconcileTagsLRO(); - } - - public static void asyncReconcileTagsLRO() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ReconcileTagsRequest request = - ReconcileTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTagTemplate( - TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForceDeleteMissing(true) - .addAllTags(new ArrayList()) - .build(); - OperationFuture future = - dataCatalogClient.reconcileTagsOperationCallable().futureCall(request); - // Do something. - ReconcileTagsResponse response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ReconcileTags_LRO_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/SyncReconcileTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/SyncReconcileTags.java deleted file mode 100644 index 298958ee1fac..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/reconciletags/SyncReconcileTags.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_ReconcileTags_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.ReconcileTagsRequest; -import com.google.cloud.datacatalog.v1.ReconcileTagsResponse; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.cloud.datacatalog.v1.TagTemplateName; -import java.util.ArrayList; - -public class SyncReconcileTags { - - public static void main(String[] args) throws Exception { - syncReconcileTags(); - } - - public static void syncReconcileTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ReconcileTagsRequest request = - ReconcileTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTagTemplate( - TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForceDeleteMissing(true) - .addAllTags(new ArrayList()) - .build(); - ReconcileTagsResponse response = dataCatalogClient.reconcileTagsAsync(request).get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_ReconcileTags_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java deleted file mode 100644 index 008f12514126..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; - -public class AsyncRenameTagTemplateField { - - public static void main(String[] args) throws Exception { - asyncRenameTagTemplateField(); - } - - public static void asyncRenameTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RenameTagTemplateFieldRequest request = - RenameTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setNewTagTemplateFieldId("newTagTemplateFieldId2008993953") - .build(); - ApiFuture future = - dataCatalogClient.renameTagTemplateFieldCallable().futureCall(request); - // Do something. - TagTemplateField response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java deleted file mode 100644 index 6552b69dfcc3..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; - -public class SyncRenameTagTemplateField { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateField(); - } - - public static void syncRenameTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RenameTagTemplateFieldRequest request = - RenameTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setNewTagTemplateFieldId("newTagTemplateFieldId2008993953") - .build(); - TagTemplateField response = dataCatalogClient.renameTagTemplateField(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java deleted file mode 100644 index 3384b343bd66..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_StringString_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; - -public class SyncRenameTagTemplateFieldStringString { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateFieldStringString(); - } - - public static void syncRenameTagTemplateFieldStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString(); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - TagTemplateField response = - dataCatalogClient.renameTagTemplateField(name, newTagTemplateFieldId); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_StringString_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java deleted file mode 100644 index b82696621da7..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_TagtemplatefieldnameString_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; - -public class SyncRenameTagTemplateFieldTagtemplatefieldnameString { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateFieldTagtemplatefieldnameString(); - } - - public static void syncRenameTagTemplateFieldTagtemplatefieldnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - TagTemplateField response = - dataCatalogClient.renameTagTemplateField(name, newTagTemplateFieldId); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateField_TagtemplatefieldnameString_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java deleted file mode 100644 index 4f21f623fc37..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldEnumValueName; - -public class AsyncRenameTagTemplateFieldEnumValue { - - public static void main(String[] args) throws Exception { - asyncRenameTagTemplateFieldEnumValue(); - } - - public static void asyncRenameTagTemplateFieldEnumValue() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RenameTagTemplateFieldEnumValueRequest request = - RenameTagTemplateFieldEnumValueRequest.newBuilder() - .setName( - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]") - .toString()) - .setNewEnumValueDisplayName("newEnumValueDisplayName-1119629027") - .build(); - ApiFuture future = - dataCatalogClient.renameTagTemplateFieldEnumValueCallable().futureCall(request); - // Do something. - TagTemplateField response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java deleted file mode 100644 index e403f041c1ee..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldEnumValueName; - -public class SyncRenameTagTemplateFieldEnumValue { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateFieldEnumValue(); - } - - public static void syncRenameTagTemplateFieldEnumValue() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RenameTagTemplateFieldEnumValueRequest request = - RenameTagTemplateFieldEnumValueRequest.newBuilder() - .setName( - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]") - .toString()) - .setNewEnumValueDisplayName("newEnumValueDisplayName-1119629027") - .build(); - TagTemplateField response = dataCatalogClient.renameTagTemplateFieldEnumValue(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java deleted file mode 100644 index 3bf63554030c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_StringString_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldEnumValueName; - -public class SyncRenameTagTemplateFieldEnumValueStringString { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateFieldEnumValueStringString(); - } - - public static void syncRenameTagTemplateFieldEnumValueStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]") - .toString(); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - TagTemplateField response = - dataCatalogClient.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_StringString_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java deleted file mode 100644 index ad9d47b16d6c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_TagtemplatefieldenumvaluenameString_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldEnumValueName; - -public class SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString(); - } - - public static void syncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateFieldEnumValueName name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]"); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - TagTemplateField response = - dataCatalogClient.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_TagtemplatefieldenumvaluenameString_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/AsyncRetrieveConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/AsyncRetrieveConfig.java deleted file mode 100644 index 8ad412a9d98a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/AsyncRetrieveConfig.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RetrieveConfig_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.OrganizationConfig; -import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; - -public class AsyncRetrieveConfig { - - public static void main(String[] args) throws Exception { - asyncRetrieveConfig(); - } - - public static void asyncRetrieveConfig() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RetrieveConfigRequest request = - RetrieveConfigRequest.newBuilder().setName("name3373707").build(); - ApiFuture future = - dataCatalogClient.retrieveConfigCallable().futureCall(request); - // Do something. - OrganizationConfig response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RetrieveConfig_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/SyncRetrieveConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/SyncRetrieveConfig.java deleted file mode 100644 index f8c00fa16518..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveconfig/SyncRetrieveConfig.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RetrieveConfig_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.OrganizationConfig; -import com.google.cloud.datacatalog.v1.RetrieveConfigRequest; - -public class SyncRetrieveConfig { - - public static void main(String[] args) throws Exception { - syncRetrieveConfig(); - } - - public static void syncRetrieveConfig() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RetrieveConfigRequest request = - RetrieveConfigRequest.newBuilder().setName("name3373707").build(); - OrganizationConfig response = dataCatalogClient.retrieveConfig(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RetrieveConfig_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/AsyncRetrieveEffectiveConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/AsyncRetrieveEffectiveConfig.java deleted file mode 100644 index f15ad13f3865..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/AsyncRetrieveEffectiveConfig.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.MigrationConfig; -import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; - -public class AsyncRetrieveEffectiveConfig { - - public static void main(String[] args) throws Exception { - asyncRetrieveEffectiveConfig(); - } - - public static void asyncRetrieveEffectiveConfig() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RetrieveEffectiveConfigRequest request = - RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build(); - ApiFuture future = - dataCatalogClient.retrieveEffectiveConfigCallable().futureCall(request); - // Do something. - MigrationConfig response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/SyncRetrieveEffectiveConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/SyncRetrieveEffectiveConfig.java deleted file mode 100644 index a6e179fabe59..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/retrieveeffectiveconfig/SyncRetrieveEffectiveConfig.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.MigrationConfig; -import com.google.cloud.datacatalog.v1.RetrieveEffectiveConfigRequest; - -public class SyncRetrieveEffectiveConfig { - - public static void main(String[] args) throws Exception { - syncRetrieveEffectiveConfig(); - } - - public static void syncRetrieveEffectiveConfig() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RetrieveEffectiveConfigRequest request = - RetrieveEffectiveConfigRequest.newBuilder().setName("name3373707").build(); - MigrationConfig response = dataCatalogClient.retrieveEffectiveConfig(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalog.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalog.java deleted file mode 100644 index ffe4e835cdea..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalog.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_SearchCatalog_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogResult; - -public class AsyncSearchCatalog { - - public static void main(String[] args) throws Exception { - asyncSearchCatalog(); - } - - public static void asyncSearchCatalog() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SearchCatalogRequest request = - SearchCatalogRequest.newBuilder() - .setScope(SearchCatalogRequest.Scope.newBuilder().build()) - .setQuery("query107944136") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setOrderBy("orderBy-1207110587") - .setAdminSearch(true) - .build(); - ApiFuture future = - dataCatalogClient.searchCatalogPagedCallable().futureCall(request); - // Do something. - for (SearchCatalogResult element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_SearchCatalog_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java deleted file mode 100644 index d77b99bfd60e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_SearchCatalog_Paged_async] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogResponse; -import com.google.cloud.datacatalog.v1.SearchCatalogResult; -import com.google.common.base.Strings; - -public class AsyncSearchCatalogPaged { - - public static void main(String[] args) throws Exception { - asyncSearchCatalogPaged(); - } - - public static void asyncSearchCatalogPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SearchCatalogRequest request = - SearchCatalogRequest.newBuilder() - .setScope(SearchCatalogRequest.Scope.newBuilder().build()) - .setQuery("query107944136") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setOrderBy("orderBy-1207110587") - .setAdminSearch(true) - .build(); - while (true) { - SearchCatalogResponse response = dataCatalogClient.searchCatalogCallable().call(request); - for (SearchCatalogResult element : response.getResultsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_SearchCatalog_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalog.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalog.java deleted file mode 100644 index 760ee978fc0b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalog.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_SearchCatalog_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogResult; - -public class SyncSearchCatalog { - - public static void main(String[] args) throws Exception { - syncSearchCatalog(); - } - - public static void syncSearchCatalog() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SearchCatalogRequest request = - SearchCatalogRequest.newBuilder() - .setScope(SearchCatalogRequest.Scope.newBuilder().build()) - .setQuery("query107944136") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setOrderBy("orderBy-1207110587") - .setAdminSearch(true) - .build(); - for (SearchCatalogResult element : dataCatalogClient.searchCatalog(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_SearchCatalog_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java deleted file mode 100644 index 2421553c9307..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_SearchCatalog_SearchcatalogrequestscopeString_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1.SearchCatalogResult; - -public class SyncSearchCatalogSearchcatalogrequestscopeString { - - public static void main(String[] args) throws Exception { - syncSearchCatalogSearchcatalogrequestscopeString(); - } - - public static void syncSearchCatalogSearchcatalogrequestscopeString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build(); - String query = "query107944136"; - for (SearchCatalogResult element : - dataCatalogClient.searchCatalog(scope, query).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_DataCatalog_SearchCatalog_SearchcatalogrequestscopeString_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/AsyncSetConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/AsyncSetConfig.java deleted file mode 100644 index 97502d923c3e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/AsyncSetConfig.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_SetConfig_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.MigrationConfig; -import com.google.cloud.datacatalog.v1.SetConfigRequest; - -public class AsyncSetConfig { - - public static void main(String[] args) throws Exception { - asyncSetConfig(); - } - - public static void asyncSetConfig() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build(); - ApiFuture future = dataCatalogClient.setConfigCallable().futureCall(request); - // Do something. - MigrationConfig response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_SetConfig_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/SyncSetConfig.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/SyncSetConfig.java deleted file mode 100644 index ed0ae5337ac7..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setconfig/SyncSetConfig.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_SetConfig_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.MigrationConfig; -import com.google.cloud.datacatalog.v1.SetConfigRequest; - -public class SyncSetConfig { - - public static void main(String[] args) throws Exception { - syncSetConfig(); - } - - public static void syncSetConfig() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SetConfigRequest request = SetConfigRequest.newBuilder().setName("name3373707").build(); - MigrationConfig response = dataCatalogClient.setConfig(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_SetConfig_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/AsyncSetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/AsyncSetIamPolicy.java deleted file mode 100644 index 14060acd7a0c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/AsyncSetIamPolicy.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_SetIamPolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroupName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.setIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_SetIamPolicy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicy.java deleted file mode 100644 index b0da7299a98a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_SetIamPolicy_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroupName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Policy response = dataCatalogClient.setIamPolicy(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_SetIamPolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java deleted file mode 100644 index 8950e38a369a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_SetIamPolicy_ResourcenamePolicy_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroupName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyResourcenamePolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyResourcenamePolicy(); - } - - public static void syncSetIamPolicyResourcenamePolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - Policy policy = Policy.newBuilder().build(); - Policy response = dataCatalogClient.setIamPolicy(resource, policy); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_SetIamPolicy_ResourcenamePolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java deleted file mode 100644 index a8505899dba7..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_SetIamPolicy_StringPolicy_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyStringPolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyStringPolicy(); - } - - public static void syncSetIamPolicyStringPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String resource = - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - Policy policy = Policy.newBuilder().build(); - Policy response = dataCatalogClient.setIamPolicy(resource, policy); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_SetIamPolicy_StringPolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/AsyncStarEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/AsyncStarEntry.java deleted file mode 100644 index 7a7c2ddbd280..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/AsyncStarEntry.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_StarEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.StarEntryRequest; -import com.google.cloud.datacatalog.v1.StarEntryResponse; - -public class AsyncStarEntry { - - public static void main(String[] args) throws Exception { - asyncStarEntry(); - } - - public static void asyncStarEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - StarEntryRequest request = - StarEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - ApiFuture future = - dataCatalogClient.starEntryCallable().futureCall(request); - // Do something. - StarEntryResponse response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_StarEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntry.java deleted file mode 100644 index 14cd66e47b4d..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntry.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_StarEntry_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.StarEntryRequest; -import com.google.cloud.datacatalog.v1.StarEntryResponse; - -public class SyncStarEntry { - - public static void main(String[] args) throws Exception { - syncStarEntry(); - } - - public static void syncStarEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - StarEntryRequest request = - StarEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - StarEntryResponse response = dataCatalogClient.starEntry(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_StarEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryEntryname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryEntryname.java deleted file mode 100644 index 24d2496889ac..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryEntryname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_StarEntry_Entryname_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.StarEntryResponse; - -public class SyncStarEntryEntryname { - - public static void main(String[] args) throws Exception { - syncStarEntryEntryname(); - } - - public static void syncStarEntryEntryname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - StarEntryResponse response = dataCatalogClient.starEntry(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_StarEntry_Entryname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryString.java deleted file mode 100644 index 571cc167749e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/starentry/SyncStarEntryString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_StarEntry_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.StarEntryResponse; - -public class SyncStarEntryString { - - public static void main(String[] args) throws Exception { - syncStarEntryString(); - } - - public static void syncStarEntryString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - StarEntryResponse response = dataCatalogClient.starEntry(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_StarEntry_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/AsyncTestIamPermissions.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/AsyncTestIamPermissions.java deleted file mode 100644 index 41e3068df492..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/AsyncTestIamPermissions.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_TestIamPermissions_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - ApiFuture future = - dataCatalogClient.testIamPermissionsCallable().futureCall(request); - // Do something. - TestIamPermissionsResponse response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_TestIamPermissions_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/SyncTestIamPermissions.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/SyncTestIamPermissions.java deleted file mode 100644 index 5067756dcc2d..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/testiampermissions/SyncTestIamPermissions.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_TestIamPermissions_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - TestIamPermissionsResponse response = dataCatalogClient.testIamPermissions(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_TestIamPermissions_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/AsyncUnstarEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/AsyncUnstarEntry.java deleted file mode 100644 index 7d2e6bfd6308..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/AsyncUnstarEntry.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UnstarEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.UnstarEntryRequest; -import com.google.cloud.datacatalog.v1.UnstarEntryResponse; - -public class AsyncUnstarEntry { - - public static void main(String[] args) throws Exception { - asyncUnstarEntry(); - } - - public static void asyncUnstarEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UnstarEntryRequest request = - UnstarEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - ApiFuture future = - dataCatalogClient.unstarEntryCallable().futureCall(request); - // Do something. - UnstarEntryResponse response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UnstarEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntry.java deleted file mode 100644 index 666931eed55c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntry.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UnstarEntry_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.UnstarEntryRequest; -import com.google.cloud.datacatalog.v1.UnstarEntryResponse; - -public class SyncUnstarEntry { - - public static void main(String[] args) throws Exception { - syncUnstarEntry(); - } - - public static void syncUnstarEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UnstarEntryRequest request = - UnstarEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - UnstarEntryResponse response = dataCatalogClient.unstarEntry(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UnstarEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryEntryname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryEntryname.java deleted file mode 100644 index db9be3672b90..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryEntryname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UnstarEntry_Entryname_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.UnstarEntryResponse; - -public class SyncUnstarEntryEntryname { - - public static void main(String[] args) throws Exception { - syncUnstarEntryEntryname(); - } - - public static void syncUnstarEntryEntryname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - UnstarEntryResponse response = dataCatalogClient.unstarEntry(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UnstarEntry_Entryname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryString.java deleted file mode 100644 index 90fc20090665..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/unstarentry/SyncUnstarEntryString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UnstarEntry_String_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryName; -import com.google.cloud.datacatalog.v1.UnstarEntryResponse; - -public class SyncUnstarEntryString { - - public static void main(String[] args) throws Exception { - syncUnstarEntryString(); - } - - public static void syncUnstarEntryString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - UnstarEntryResponse response = dataCatalogClient.unstarEntry(name); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UnstarEntry_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/AsyncUpdateEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/AsyncUpdateEntry.java deleted file mode 100644 index 6f6b4e5cfcf6..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/AsyncUpdateEntry.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.UpdateEntryRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateEntry { - - public static void main(String[] args) throws Exception { - asyncUpdateEntry(); - } - - public static void asyncUpdateEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateEntryRequest request = - UpdateEntryRequest.newBuilder() - .setEntry(Entry.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.updateEntryCallable().futureCall(request); - // Do something. - Entry response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntry.java deleted file mode 100644 index b88b703d2712..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntry.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateEntry_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.cloud.datacatalog.v1.UpdateEntryRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateEntry { - - public static void main(String[] args) throws Exception { - syncUpdateEntry(); - } - - public static void syncUpdateEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateEntryRequest request = - UpdateEntryRequest.newBuilder() - .setEntry(Entry.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Entry response = dataCatalogClient.updateEntry(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntry.java deleted file mode 100644 index d926e4ff6a05..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntry.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateEntry_Entry_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; - -public class SyncUpdateEntryEntry { - - public static void main(String[] args) throws Exception { - syncUpdateEntryEntry(); - } - - public static void syncUpdateEntryEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - Entry entry = Entry.newBuilder().build(); - Entry response = dataCatalogClient.updateEntry(entry); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateEntry_Entry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java deleted file mode 100644 index e7f9e24e2ee3..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateEntry_EntryFieldmask_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Entry; -import com.google.protobuf.FieldMask; - -public class SyncUpdateEntryEntryFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateEntryEntryFieldmask(); - } - - public static void syncUpdateEntryEntryFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - Entry entry = Entry.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Entry response = dataCatalogClient.updateEntry(entry, updateMask); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateEntry_EntryFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java deleted file mode 100644 index 6997652ff384..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateEntryGroup { - - public static void main(String[] args) throws Exception { - asyncUpdateEntryGroup(); - } - - public static void asyncUpdateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateEntryGroupRequest request = - UpdateEntryGroupRequest.newBuilder() - .setEntryGroup(EntryGroup.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.updateEntryGroupCallable().futureCall(request); - // Do something. - EntryGroup response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java deleted file mode 100644 index 817067c17ac0..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.cloud.datacatalog.v1.UpdateEntryGroupRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateEntryGroup { - - public static void main(String[] args) throws Exception { - syncUpdateEntryGroup(); - } - - public static void syncUpdateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateEntryGroupRequest request = - UpdateEntryGroupRequest.newBuilder() - .setEntryGroup(EntryGroup.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - EntryGroup response = dataCatalogClient.updateEntryGroup(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java deleted file mode 100644 index e630527c50cb..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_Entrygroup_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; - -public class SyncUpdateEntryGroupEntrygroup { - - public static void main(String[] args) throws Exception { - syncUpdateEntryGroupEntrygroup(); - } - - public static void syncUpdateEntryGroupEntrygroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - EntryGroup response = dataCatalogClient.updateEntryGroup(entryGroup); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_Entrygroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java deleted file mode 100644 index 624d97744284..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_EntrygroupFieldmask_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.EntryGroup; -import com.google.protobuf.FieldMask; - -public class SyncUpdateEntryGroupEntrygroupFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateEntryGroupEntrygroupFieldmask(); - } - - public static void syncUpdateEntryGroupEntrygroupFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - EntryGroup response = dataCatalogClient.updateEntryGroup(entryGroup, updateMask); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateEntryGroup_EntrygroupFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/AsyncUpdateTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/AsyncUpdateTag.java deleted file mode 100644 index 883a545b9159..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/AsyncUpdateTag.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.cloud.datacatalog.v1.UpdateTagRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateTag { - - public static void main(String[] args) throws Exception { - asyncUpdateTag(); - } - - public static void asyncUpdateTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagRequest request = - UpdateTagRequest.newBuilder() - .setTag(Tag.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.updateTagCallable().futureCall(request); - // Do something. - Tag response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTag.java deleted file mode 100644 index e9bf3747429c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTag.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTag_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.cloud.datacatalog.v1.UpdateTagRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTag { - - public static void main(String[] args) throws Exception { - syncUpdateTag(); - } - - public static void syncUpdateTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagRequest request = - UpdateTagRequest.newBuilder() - .setTag(Tag.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Tag response = dataCatalogClient.updateTag(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTag.java deleted file mode 100644 index 2c9338099d6e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTag.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTag_Tag_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Tag; - -public class SyncUpdateTagTag { - - public static void main(String[] args) throws Exception { - syncUpdateTagTag(); - } - - public static void syncUpdateTagTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - Tag tag = Tag.newBuilder().build(); - Tag response = dataCatalogClient.updateTag(tag); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTag_Tag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java deleted file mode 100644 index b0cd3f6a9333..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTag_TagFieldmask_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.Tag; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTagFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateTagTagFieldmask(); - } - - public static void syncUpdateTagTagFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - Tag tag = Tag.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Tag response = dataCatalogClient.updateTag(tag, updateMask); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTag_TagFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java deleted file mode 100644 index 4e413b1b97b8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateTagTemplate { - - public static void main(String[] args) throws Exception { - asyncUpdateTagTemplate(); - } - - public static void asyncUpdateTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagTemplateRequest request = - UpdateTagTemplateRequest.newBuilder() - .setTagTemplate(TagTemplate.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.updateTagTemplateCallable().futureCall(request); - // Do something. - TagTemplate response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java deleted file mode 100644 index 1d859344851c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTemplate { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplate(); - } - - public static void syncUpdateTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagTemplateRequest request = - UpdateTagTemplateRequest.newBuilder() - .setTagTemplate(TagTemplate.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - TagTemplate response = dataCatalogClient.updateTagTemplate(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java deleted file mode 100644 index ae146f5196a2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_Tagtemplate_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplate; - -public class SyncUpdateTagTemplateTagtemplate { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateTagtemplate(); - } - - public static void syncUpdateTagTemplateTagtemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - TagTemplate response = dataCatalogClient.updateTagTemplate(tagTemplate); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_Tagtemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java deleted file mode 100644 index c6dd89f55173..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_TagtemplateFieldmask_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplate; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTemplateTagtemplateFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateTagtemplateFieldmask(); - } - - public static void syncUpdateTagTemplateTagtemplateFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - TagTemplate response = dataCatalogClient.updateTagTemplate(tagTemplate, updateMask); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplate_TagtemplateFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java deleted file mode 100644 index d225a98fa533..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateTagTemplateField { - - public static void main(String[] args) throws Exception { - asyncUpdateTagTemplateField(); - } - - public static void asyncUpdateTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setTagTemplateField(TagTemplateField.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.updateTagTemplateFieldCallable().futureCall(request); - // Do something. - TagTemplateField response = future.get(); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java deleted file mode 100644 index f45ceb6c4da8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; -import com.google.cloud.datacatalog.v1.UpdateTagTemplateFieldRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTemplateField { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateField(); - } - - public static void syncUpdateTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setTagTemplateField(TagTemplateField.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - TagTemplateField response = dataCatalogClient.updateTagTemplateField(request); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java deleted file mode 100644 index bdcd33ce0e3d..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_StringTagtemplatefield_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; - -public class SyncUpdateTagTemplateFieldStringTagtemplatefield { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateFieldStringTagtemplatefield(); - } - - public static void syncUpdateTagTemplateFieldStringTagtemplatefield() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString(); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - TagTemplateField response = dataCatalogClient.updateTagTemplateField(name, tagTemplateField); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_StringTagtemplatefield_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java deleted file mode 100644 index 4b86e2cdc25b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_StringTagtemplatefieldFieldmask_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask(); - } - - public static void syncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString(); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - TagTemplateField response = - dataCatalogClient.updateTagTemplateField(name, tagTemplateField, updateMask); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_StringTagtemplatefieldFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java deleted file mode 100644 index 89841221a160..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_TagtemplatefieldnameTagtemplatefield_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; - -public class SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield(); - } - - public static void syncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - TagTemplateField response = dataCatalogClient.updateTagTemplateField(name, tagTemplateField); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_TagtemplatefieldnameTagtemplatefield_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java deleted file mode 100644 index c9fb5b0a00df..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_TagtemplatefieldnameTagtemplatefieldFieldmask_sync] -import com.google.cloud.datacatalog.v1.DataCatalogClient; -import com.google.cloud.datacatalog.v1.TagTemplateField; -import com.google.cloud.datacatalog.v1.TagTemplateFieldName; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask(); - } - - public static void syncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - TagTemplateField response = - dataCatalogClient.updateTagTemplateField(name, tagTemplateField, updateMask); - } - } -} -// [END datacatalog_v1_generated_DataCatalog_UpdateTagTemplateField_TagtemplatefieldnameTagtemplatefieldFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java deleted file mode 100644 index 9c7d0cdf906e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalogSettings_CreateEntryGroup_sync] -import com.google.cloud.datacatalog.v1.DataCatalogSettings; -import java.time.Duration; - -public class SyncCreateEntryGroup { - - public static void main(String[] args) throws Exception { - syncCreateEntryGroup(); - } - - public static void syncCreateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataCatalogSettings.Builder dataCatalogSettingsBuilder = DataCatalogSettings.newBuilder(); - dataCatalogSettingsBuilder - .createEntryGroupSettings() - .setRetrySettings( - dataCatalogSettingsBuilder - .createEntryGroupSettings() - .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()); - DataCatalogSettings dataCatalogSettings = dataCatalogSettingsBuilder.build(); - } -} -// [END datacatalog_v1_generated_DataCatalogSettings_CreateEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalogsettings/reconciletags/SyncReconcileTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalogsettings/reconciletags/SyncReconcileTags.java deleted file mode 100644 index 2b0bad7f3cea..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/datacatalogsettings/reconciletags/SyncReconcileTags.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_DataCatalogSettings_ReconcileTags_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.datacatalog.v1.DataCatalogSettings; -import java.time.Duration; - -public class SyncReconcileTags { - - public static void main(String[] args) throws Exception { - syncReconcileTags(); - } - - public static void syncReconcileTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataCatalogSettings.Builder dataCatalogSettingsBuilder = DataCatalogSettings.newBuilder(); - TimedRetryAlgorithm timedRetryAlgorithm = - OperationalTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(500)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(5000)) - .setTotalTimeoutDuration(Duration.ofHours(24)) - .build()); - dataCatalogSettingsBuilder - .createClusterOperationSettings() - .setPollingAlgorithm(timedRetryAlgorithm) - .build(); - } -} -// [END datacatalog_v1_generated_DataCatalogSettings_ReconcileTags_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 21c97e37623d..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_Create_SetCredentialsProvider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSettings; -import com.google.cloud.datacatalog.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 - PolicyTagManagerSettings policyTagManagerSettings = - PolicyTagManagerSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - PolicyTagManagerClient policyTagManagerClient = - PolicyTagManagerClient.create(policyTagManagerSettings); - } -} -// [END datacatalog_v1_generated_PolicyTagManager_Create_SetCredentialsProvider_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetEndpoint.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetEndpoint.java deleted file mode 100644 index abe93d78a2cf..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_Create_SetEndpoint_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSettings; -import com.google.cloud.datacatalog.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 - PolicyTagManagerSettings policyTagManagerSettings = - PolicyTagManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); - PolicyTagManagerClient policyTagManagerClient = - PolicyTagManagerClient.create(policyTagManagerSettings); - } -} -// [END datacatalog_v1_generated_PolicyTagManager_Create_SetEndpoint_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java deleted file mode 100644 index 30efa7ea2042..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_Create_UseHttpJsonTransport_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSettings; - -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 - PolicyTagManagerSettings policyTagManagerSettings = - PolicyTagManagerSettings.newHttpJsonBuilder().build(); - PolicyTagManagerClient policyTagManagerClient = - PolicyTagManagerClient.create(policyTagManagerSettings); - } -} -// [END datacatalog_v1_generated_PolicyTagManager_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java deleted file mode 100644 index efb470e9b343..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class AsyncCreatePolicyTag { - - public static void main(String[] args) throws Exception { - asyncCreatePolicyTag(); - } - - public static void asyncCreatePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - CreatePolicyTagRequest request = - CreatePolicyTagRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setPolicyTag(PolicyTag.newBuilder().build()) - .build(); - ApiFuture future = - policyTagManagerClient.createPolicyTagCallable().futureCall(request); - // Do something. - PolicyTag response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java deleted file mode 100644 index 4e67074fb206..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_sync] -import com.google.cloud.datacatalog.v1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class SyncCreatePolicyTag { - - public static void main(String[] args) throws Exception { - syncCreatePolicyTag(); - } - - public static void syncCreatePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - CreatePolicyTagRequest request = - CreatePolicyTagRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setPolicyTag(PolicyTag.newBuilder().build()) - .build(); - PolicyTag response = policyTagManagerClient.createPolicyTag(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java deleted file mode 100644 index 68f8d0c9b5ab..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_StringPolicytag_sync] -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class SyncCreatePolicyTagStringPolicytag { - - public static void main(String[] args) throws Exception { - syncCreatePolicyTagStringPolicytag(); - } - - public static void syncCreatePolicyTagStringPolicytag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_StringPolicytag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java deleted file mode 100644 index 9474c69e2c91..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_TaxonomynamePolicytag_sync] -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class SyncCreatePolicyTagTaxonomynamePolicytag { - - public static void main(String[] args) throws Exception { - syncCreatePolicyTagTaxonomynamePolicytag(); - } - - public static void syncCreatePolicyTagTaxonomynamePolicytag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_CreatePolicyTag_TaxonomynamePolicytag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java deleted file mode 100644 index 21c96565753b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; - -public class AsyncCreateTaxonomy { - - public static void main(String[] args) throws Exception { - asyncCreateTaxonomy(); - } - - public static void asyncCreateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - CreateTaxonomyRequest request = - CreateTaxonomyRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTaxonomy(Taxonomy.newBuilder().build()) - .build(); - ApiFuture future = - policyTagManagerClient.createTaxonomyCallable().futureCall(request); - // Do something. - Taxonomy response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java deleted file mode 100644 index a0e6c10dfb1f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_sync] -import com.google.cloud.datacatalog.v1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; - -public class SyncCreateTaxonomy { - - public static void main(String[] args) throws Exception { - syncCreateTaxonomy(); - } - - public static void syncCreateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - CreateTaxonomyRequest request = - CreateTaxonomyRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTaxonomy(Taxonomy.newBuilder().build()) - .build(); - Taxonomy response = policyTagManagerClient.createTaxonomy(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java deleted file mode 100644 index a73ebb50d1d5..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_LocationnameTaxonomy_sync] -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; - -public class SyncCreateTaxonomyLocationnameTaxonomy { - - public static void main(String[] args) throws Exception { - syncCreateTaxonomyLocationnameTaxonomy(); - } - - public static void syncCreateTaxonomyLocationnameTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_LocationnameTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java deleted file mode 100644 index be3b5a1f6fd9..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_StringTaxonomy_sync] -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; - -public class SyncCreateTaxonomyStringTaxonomy { - - public static void main(String[] args) throws Exception { - syncCreateTaxonomyStringTaxonomy(); - } - - public static void syncCreateTaxonomyStringTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_CreateTaxonomy_StringTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java deleted file mode 100644 index d14980440540..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; -import com.google.protobuf.Empty; - -public class AsyncDeletePolicyTag { - - public static void main(String[] args) throws Exception { - asyncDeletePolicyTag(); - } - - public static void asyncDeletePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - DeletePolicyTagRequest request = - DeletePolicyTagRequest.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .build(); - ApiFuture future = - policyTagManagerClient.deletePolicyTagCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java deleted file mode 100644 index c2d3d7c6fc75..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_sync] -import com.google.cloud.datacatalog.v1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyTag { - - public static void main(String[] args) throws Exception { - syncDeletePolicyTag(); - } - - public static void syncDeletePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - DeletePolicyTagRequest request = - DeletePolicyTagRequest.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .build(); - policyTagManagerClient.deletePolicyTag(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java deleted file mode 100644 index 1cdd89b07e93..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_Policytagname_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyTagPolicytagname { - - public static void main(String[] args) throws Exception { - syncDeletePolicyTagPolicytagname(); - } - - public static void syncDeletePolicyTagPolicytagname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - policyTagManagerClient.deletePolicyTag(name); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_Policytagname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java deleted file mode 100644 index f331e5bbd6bf..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_String_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyTagString { - - public static void main(String[] args) throws Exception { - syncDeletePolicyTagString(); - } - - public static void syncDeletePolicyTagString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString(); - policyTagManagerClient.deletePolicyTag(name); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_DeletePolicyTag_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java deleted file mode 100644 index c8ee55417cdf..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTaxonomy { - - public static void main(String[] args) throws Exception { - asyncDeleteTaxonomy(); - } - - public static void asyncDeleteTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - DeleteTaxonomyRequest request = - DeleteTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .build(); - ApiFuture future = policyTagManagerClient.deleteTaxonomyCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java deleted file mode 100644 index 70eebab0c105..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_sync] -import com.google.cloud.datacatalog.v1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaxonomy { - - public static void main(String[] args) throws Exception { - syncDeleteTaxonomy(); - } - - public static void syncDeleteTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - DeleteTaxonomyRequest request = - DeleteTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .build(); - policyTagManagerClient.deleteTaxonomy(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java deleted file mode 100644 index b4e9f71bbd97..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_String_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaxonomyString { - - public static void main(String[] args) throws Exception { - syncDeleteTaxonomyString(); - } - - public static void syncDeleteTaxonomyString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); - policyTagManagerClient.deleteTaxonomy(name); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java deleted file mode 100644 index ed0ad815d3a6..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_Taxonomyname_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaxonomyTaxonomyname { - - public static void main(String[] args) throws Exception { - syncDeleteTaxonomyTaxonomyname(); - } - - public static void syncDeleteTaxonomyTaxonomyname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - policyTagManagerClient.deleteTaxonomy(name); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_DeleteTaxonomy_Taxonomyname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java deleted file mode 100644 index edc4e88beae0..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_GetIamPolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - ApiFuture future = policyTagManagerClient.getIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_GetIamPolicy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/SyncGetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/SyncGetIamPolicy.java deleted file mode 100644 index 9a1abafd5dc1..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getiampolicy/SyncGetIamPolicy.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_GetIamPolicy_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - Policy response = policyTagManagerClient.getIamPolicy(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_GetIamPolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java deleted file mode 100644 index 5a2dd60301d8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; - -public class AsyncGetPolicyTag { - - public static void main(String[] args) throws Exception { - asyncGetPolicyTag(); - } - - public static void asyncGetPolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetPolicyTagRequest request = - GetPolicyTagRequest.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .build(); - ApiFuture future = - policyTagManagerClient.getPolicyTagCallable().futureCall(request); - // Do something. - PolicyTag response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTag.java deleted file mode 100644 index 232634df2301..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTag.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_sync] -import com.google.cloud.datacatalog.v1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; - -public class SyncGetPolicyTag { - - public static void main(String[] args) throws Exception { - syncGetPolicyTag(); - } - - public static void syncGetPolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetPolicyTagRequest request = - GetPolicyTagRequest.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .build(); - PolicyTag response = policyTagManagerClient.getPolicyTag(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java deleted file mode 100644 index 7d030c5622f2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_Policytagname_sync] -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; - -public class SyncGetPolicyTagPolicytagname { - - public static void main(String[] args) throws Exception { - syncGetPolicyTagPolicytagname(); - } - - public static void syncGetPolicyTagPolicytagname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - PolicyTag response = policyTagManagerClient.getPolicyTag(name); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_Policytagname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java deleted file mode 100644 index 8937bc77783b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_String_sync] -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; - -public class SyncGetPolicyTagString { - - public static void main(String[] args) throws Exception { - syncGetPolicyTagString(); - } - - public static void syncGetPolicyTagString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString(); - PolicyTag response = policyTagManagerClient.getPolicyTag(name); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_GetPolicyTag_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java deleted file mode 100644 index 45d2e8b3bc23..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class AsyncGetTaxonomy { - - public static void main(String[] args) throws Exception { - asyncGetTaxonomy(); - } - - public static void asyncGetTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetTaxonomyRequest request = - GetTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .build(); - ApiFuture future = policyTagManagerClient.getTaxonomyCallable().futureCall(request); - // Do something. - Taxonomy response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java deleted file mode 100644 index 9fa7133e7a3c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_sync] -import com.google.cloud.datacatalog.v1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class SyncGetTaxonomy { - - public static void main(String[] args) throws Exception { - syncGetTaxonomy(); - } - - public static void syncGetTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetTaxonomyRequest request = - GetTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .build(); - Taxonomy response = policyTagManagerClient.getTaxonomy(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java deleted file mode 100644 index 40794d05385e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_String_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class SyncGetTaxonomyString { - - public static void main(String[] args) throws Exception { - syncGetTaxonomyString(); - } - - public static void syncGetTaxonomyString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); - Taxonomy response = policyTagManagerClient.getTaxonomy(name); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java deleted file mode 100644 index 2620d0bdb0df..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_Taxonomyname_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class SyncGetTaxonomyTaxonomyname { - - public static void main(String[] args) throws Exception { - syncGetTaxonomyTaxonomyname(); - } - - public static void syncGetTaxonomyTaxonomyname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - Taxonomy response = policyTagManagerClient.getTaxonomy(name); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_GetTaxonomy_Taxonomyname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTags.java deleted file mode 100644 index e8a77a4f9e03..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTags.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class AsyncListPolicyTags { - - public static void main(String[] args) throws Exception { - asyncListPolicyTags(); - } - - public static void asyncListPolicyTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListPolicyTagsRequest request = - ListPolicyTagsRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - policyTagManagerClient.listPolicyTagsPagedCallable().futureCall(request); - // Do something. - for (PolicyTag element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java deleted file mode 100644 index 2248b766a719..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_Paged_async] -import com.google.cloud.datacatalog.v1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1.ListPolicyTagsResponse; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; -import com.google.common.base.Strings; - -public class AsyncListPolicyTagsPaged { - - public static void main(String[] args) throws Exception { - asyncListPolicyTagsPaged(); - } - - public static void asyncListPolicyTagsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListPolicyTagsRequest request = - ListPolicyTagsRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListPolicyTagsResponse response = - policyTagManagerClient.listPolicyTagsCallable().call(request); - for (PolicyTag element : response.getPolicyTagsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTags.java deleted file mode 100644 index 989bf5c5cb21..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTags.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_sync] -import com.google.cloud.datacatalog.v1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class SyncListPolicyTags { - - public static void main(String[] args) throws Exception { - syncListPolicyTags(); - } - - public static void syncListPolicyTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListPolicyTagsRequest request = - ListPolicyTagsRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (PolicyTag element : policyTagManagerClient.listPolicyTags(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java deleted file mode 100644 index 49e6efefb77c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_String_sync] -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class SyncListPolicyTagsString { - - public static void main(String[] args) throws Exception { - syncListPolicyTagsString(); - } - - public static void syncListPolicyTagsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); - for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java deleted file mode 100644 index 8b01e878bae8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_Taxonomyname_sync] -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class SyncListPolicyTagsTaxonomyname { - - public static void main(String[] args) throws Exception { - syncListPolicyTagsTaxonomyname(); - } - - public static void syncListPolicyTagsTaxonomyname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_ListPolicyTags_Taxonomyname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java deleted file mode 100644 index 81288270ee40..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; - -public class AsyncListTaxonomies { - - public static void main(String[] args) throws Exception { - asyncListTaxonomies(); - } - - public static void asyncListTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListTaxonomiesRequest request = - ListTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - ApiFuture future = - policyTagManagerClient.listTaxonomiesPagedCallable().futureCall(request); - // Do something. - for (Taxonomy element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java deleted file mode 100644 index 00f828b7f5df..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_Paged_async] -import com.google.cloud.datacatalog.v1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ListTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.common.base.Strings; - -public class AsyncListTaxonomiesPaged { - - public static void main(String[] args) throws Exception { - asyncListTaxonomiesPaged(); - } - - public static void asyncListTaxonomiesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListTaxonomiesRequest request = - ListTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - while (true) { - ListTaxonomiesResponse response = - policyTagManagerClient.listTaxonomiesCallable().call(request); - for (Taxonomy element : response.getTaxonomiesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomies.java deleted file mode 100644 index 7e2ab835e921..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomies.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_sync] -import com.google.cloud.datacatalog.v1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; - -public class SyncListTaxonomies { - - public static void main(String[] args) throws Exception { - syncListTaxonomies(); - } - - public static void syncListTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListTaxonomiesRequest request = - ListTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - for (Taxonomy element : policyTagManagerClient.listTaxonomies(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java deleted file mode 100644 index 5302c082def5..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_Locationname_sync] -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; - -public class SyncListTaxonomiesLocationname { - - public static void main(String[] args) throws Exception { - syncListTaxonomiesLocationname(); - } - - public static void syncListTaxonomiesLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Taxonomy element : policyTagManagerClient.listTaxonomies(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_Locationname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java deleted file mode 100644 index 6cf7a0b234bb..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_String_sync] -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; - -public class SyncListTaxonomiesString { - - public static void main(String[] args) throws Exception { - syncListTaxonomiesString(); - } - - public static void syncListTaxonomiesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Taxonomy element : policyTagManagerClient.listTaxonomies(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_ListTaxonomies_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java deleted file mode 100644 index b19983e93518..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_SetIamPolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = policyTagManagerClient.setIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_SetIamPolicy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/SyncSetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/SyncSetIamPolicy.java deleted file mode 100644 index 1939ba008a61..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/setiampolicy/SyncSetIamPolicy.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_SetIamPolicy_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Policy response = policyTagManagerClient.setIamPolicy(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_SetIamPolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java deleted file mode 100644 index 12a18f436ec8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_TestIamPermissions_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - ApiFuture future = - policyTagManagerClient.testIamPermissionsCallable().futureCall(request); - // Do something. - TestIamPermissionsResponse response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_TestIamPermissions_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/SyncTestIamPermissions.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/SyncTestIamPermissions.java deleted file mode 100644 index db1572f15324..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/testiampermissions/SyncTestIamPermissions.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_TestIamPermissions_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - TestIamPermissionsResponse response = policyTagManagerClient.testIamPermissions(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_TestIamPermissions_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java deleted file mode 100644 index a2e990f1c7e3..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdatePolicyTag { - - public static void main(String[] args) throws Exception { - asyncUpdatePolicyTag(); - } - - public static void asyncUpdatePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - UpdatePolicyTagRequest request = - UpdatePolicyTagRequest.newBuilder() - .setPolicyTag(PolicyTag.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - policyTagManagerClient.updatePolicyTagCallable().futureCall(request); - // Do something. - PolicyTag response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java deleted file mode 100644 index 4244336f9de8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_sync] -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.UpdatePolicyTagRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdatePolicyTag { - - public static void main(String[] args) throws Exception { - syncUpdatePolicyTag(); - } - - public static void syncUpdatePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - UpdatePolicyTagRequest request = - UpdatePolicyTagRequest.newBuilder() - .setPolicyTag(PolicyTag.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - PolicyTag response = policyTagManagerClient.updatePolicyTag(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java deleted file mode 100644 index f302fc03529e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_Policytag_sync] -import com.google.cloud.datacatalog.v1.PolicyTag; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; - -public class SyncUpdatePolicyTagPolicytag { - - public static void main(String[] args) throws Exception { - syncUpdatePolicyTagPolicytag(); - } - - public static void syncUpdatePolicyTagPolicytag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - PolicyTag policyTag = PolicyTag.newBuilder().build(); - PolicyTag response = policyTagManagerClient.updatePolicyTag(policyTag); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_UpdatePolicyTag_Policytag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java deleted file mode 100644 index e956e0d9e2e4..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_UpdateTaxonomy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateTaxonomy { - - public static void main(String[] args) throws Exception { - asyncUpdateTaxonomy(); - } - - public static void asyncUpdateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - UpdateTaxonomyRequest request = - UpdateTaxonomyRequest.newBuilder() - .setTaxonomy(Taxonomy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - policyTagManagerClient.updateTaxonomyCallable().futureCall(request); - // Do something. - Taxonomy response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_UpdateTaxonomy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java deleted file mode 100644 index 509202825ff2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_UpdateTaxonomy_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.UpdateTaxonomyRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTaxonomy { - - public static void main(String[] args) throws Exception { - syncUpdateTaxonomy(); - } - - public static void syncUpdateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - UpdateTaxonomyRequest request = - UpdateTaxonomyRequest.newBuilder() - .setTaxonomy(Taxonomy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Taxonomy response = policyTagManagerClient.updateTaxonomy(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_UpdateTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java deleted file mode 100644 index ee6d7a4619fa..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManager_UpdateTaxonomy_Taxonomy_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1.Taxonomy; - -public class SyncUpdateTaxonomyTaxonomy { - - public static void main(String[] args) throws Exception { - syncUpdateTaxonomyTaxonomy(); - } - - public static void syncUpdateTaxonomyTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - Taxonomy response = policyTagManagerClient.updateTaxonomy(taxonomy); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManager_UpdateTaxonomy_Taxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 32b5ea0f49cd..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerialization_Create_SetCredentialsProvider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationSettings; -import com.google.cloud.datacatalog.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 - PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = - PolicyTagManagerSerializationSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings); - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerialization_Create_SetCredentialsProvider_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 724769ed5d79..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerialization_Create_SetEndpoint_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationSettings; -import com.google.cloud.datacatalog.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 - PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = - PolicyTagManagerSerializationSettings.newBuilder().setEndpoint(myEndpoint).build(); - PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings); - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerialization_Create_SetEndpoint_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java deleted file mode 100644 index 341384fe2049..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerialization_Create_UseHttpJsonTransport_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationSettings; - -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 - PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = - PolicyTagManagerSerializationSettings.newHttpJsonBuilder().build(); - PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings); - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerialization_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java deleted file mode 100644 index 3fc7f68c8517..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerialization_ExportTaxonomies_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; -import java.util.ArrayList; - -public class AsyncExportTaxonomies { - - public static void main(String[] args) throws Exception { - asyncExportTaxonomies(); - } - - public static void asyncExportTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create()) { - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - ApiFuture future = - policyTagManagerSerializationClient.exportTaxonomiesCallable().futureCall(request); - // Do something. - ExportTaxonomiesResponse response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ExportTaxonomies_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java deleted file mode 100644 index edeee63abc6d..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerialization_ExportTaxonomies_sync] -import com.google.cloud.datacatalog.v1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; -import java.util.ArrayList; - -public class SyncExportTaxonomies { - - public static void main(String[] args) throws Exception { - syncExportTaxonomies(); - } - - public static void syncExportTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create()) { - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - ExportTaxonomiesResponse response = - policyTagManagerSerializationClient.exportTaxonomies(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ExportTaxonomies_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java deleted file mode 100644 index 0a3923007248..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerialization_ImportTaxonomies_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; - -public class AsyncImportTaxonomies { - - public static void main(String[] args) throws Exception { - asyncImportTaxonomies(); - } - - public static void asyncImportTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create()) { - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - policyTagManagerSerializationClient.importTaxonomiesCallable().futureCall(request); - // Do something. - ImportTaxonomiesResponse response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ImportTaxonomies_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java deleted file mode 100644 index 6e9c5c457ca5..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerialization_ImportTaxonomies_sync] -import com.google.cloud.datacatalog.v1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1.ImportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1.LocationName; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; - -public class SyncImportTaxonomies { - - public static void main(String[] args) throws Exception { - syncImportTaxonomies(); - } - - public static void syncImportTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create()) { - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ImportTaxonomiesResponse response = - policyTagManagerSerializationClient.importTaxonomies(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ImportTaxonomies_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/AsyncReplaceTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/AsyncReplaceTaxonomy.java deleted file mode 100644 index 94235ba2af52..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/AsyncReplaceTaxonomy.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerialization_ReplaceTaxonomy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; -import com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest; -import com.google.cloud.datacatalog.v1.SerializedTaxonomy; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class AsyncReplaceTaxonomy { - - public static void main(String[] args) throws Exception { - asyncReplaceTaxonomy(); - } - - public static void asyncReplaceTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create()) { - ReplaceTaxonomyRequest request = - ReplaceTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build()) - .build(); - ApiFuture future = - policyTagManagerSerializationClient.replaceTaxonomyCallable().futureCall(request); - // Do something. - Taxonomy response = future.get(); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ReplaceTaxonomy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/SyncReplaceTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/SyncReplaceTaxonomy.java deleted file mode 100644 index d246d25e5ec2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserialization/replacetaxonomy/SyncReplaceTaxonomy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerialization_ReplaceTaxonomy_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationClient; -import com.google.cloud.datacatalog.v1.ReplaceTaxonomyRequest; -import com.google.cloud.datacatalog.v1.SerializedTaxonomy; -import com.google.cloud.datacatalog.v1.Taxonomy; -import com.google.cloud.datacatalog.v1.TaxonomyName; - -public class SyncReplaceTaxonomy { - - public static void main(String[] args) throws Exception { - syncReplaceTaxonomy(); - } - - public static void syncReplaceTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create()) { - ReplaceTaxonomyRequest request = - ReplaceTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setSerializedTaxonomy(SerializedTaxonomy.newBuilder().build()) - .build(); - Taxonomy response = policyTagManagerSerializationClient.replaceTaxonomy(request); - } - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerialization_ReplaceTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserializationsettings/replacetaxonomy/SyncReplaceTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserializationsettings/replacetaxonomy/SyncReplaceTaxonomy.java deleted file mode 100644 index 49e73489e4b4..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagerserializationsettings/replacetaxonomy/SyncReplaceTaxonomy.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerializationSettings_ReplaceTaxonomy_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerSerializationSettings; -import java.time.Duration; - -public class SyncReplaceTaxonomy { - - public static void main(String[] args) throws Exception { - syncReplaceTaxonomy(); - } - - public static void syncReplaceTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerSerializationSettings.Builder policyTagManagerSerializationSettingsBuilder = - PolicyTagManagerSerializationSettings.newBuilder(); - policyTagManagerSerializationSettingsBuilder - .replaceTaxonomySettings() - .setRetrySettings( - policyTagManagerSerializationSettingsBuilder - .replaceTaxonomySettings() - .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()); - PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = - policyTagManagerSerializationSettingsBuilder.build(); - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerializationSettings_ReplaceTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java deleted file mode 100644 index 17cddd4c9bb4..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSettings_CreateTaxonomy_sync] -import com.google.cloud.datacatalog.v1.PolicyTagManagerSettings; -import java.time.Duration; - -public class SyncCreateTaxonomy { - - public static void main(String[] args) throws Exception { - syncCreateTaxonomy(); - } - - public static void syncCreateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerSettings.Builder policyTagManagerSettingsBuilder = - PolicyTagManagerSettings.newBuilder(); - policyTagManagerSettingsBuilder - .createTaxonomySettings() - .setRetrySettings( - policyTagManagerSettingsBuilder - .createTaxonomySettings() - .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()); - PolicyTagManagerSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build(); - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSettings_CreateTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java deleted file mode 100644 index 396b4f2d5dbb..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub.samples; - -// [START datacatalog_v1_generated_DataCatalogStubSettings_CreateEntryGroup_sync] -import com.google.cloud.datacatalog.v1.stub.DataCatalogStubSettings; -import java.time.Duration; - -public class SyncCreateEntryGroup { - - public static void main(String[] args) throws Exception { - syncCreateEntryGroup(); - } - - public static void syncCreateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataCatalogStubSettings.Builder dataCatalogSettingsBuilder = - DataCatalogStubSettings.newBuilder(); - dataCatalogSettingsBuilder - .createEntryGroupSettings() - .setRetrySettings( - dataCatalogSettingsBuilder - .createEntryGroupSettings() - .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()); - DataCatalogStubSettings dataCatalogSettings = dataCatalogSettingsBuilder.build(); - } -} -// [END datacatalog_v1_generated_DataCatalogStubSettings_CreateEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/datacatalogstubsettings/reconciletags/SyncReconcileTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/datacatalogstubsettings/reconciletags/SyncReconcileTags.java deleted file mode 100644 index 0a85c4ab824a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/datacatalogstubsettings/reconciletags/SyncReconcileTags.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub.samples; - -// [START datacatalog_v1_generated_DataCatalogStubSettings_ReconcileTags_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.datacatalog.v1.stub.DataCatalogStubSettings; -import java.time.Duration; - -public class SyncReconcileTags { - - public static void main(String[] args) throws Exception { - syncReconcileTags(); - } - - public static void syncReconcileTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataCatalogStubSettings.Builder dataCatalogSettingsBuilder = - DataCatalogStubSettings.newBuilder(); - TimedRetryAlgorithm timedRetryAlgorithm = - OperationalTimedPollAlgorithm.create( - RetrySettings.newBuilder() - .setInitialRetryDelayDuration(Duration.ofMillis(500)) - .setRetryDelayMultiplier(1.5) - .setMaxRetryDelayDuration(Duration.ofMillis(5000)) - .setTotalTimeoutDuration(Duration.ofHours(24)) - .build()); - dataCatalogSettingsBuilder - .createClusterOperationSettings() - .setPollingAlgorithm(timedRetryAlgorithm) - .build(); - } -} -// [END datacatalog_v1_generated_DataCatalogStubSettings_ReconcileTags_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerserializationstubsettings/replacetaxonomy/SyncReplaceTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerserializationstubsettings/replacetaxonomy/SyncReplaceTaxonomy.java deleted file mode 100644 index b0fcdf793c3a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerserializationstubsettings/replacetaxonomy/SyncReplaceTaxonomy.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerSerializationStubSettings_ReplaceTaxonomy_sync] -import com.google.cloud.datacatalog.v1.stub.PolicyTagManagerSerializationStubSettings; -import java.time.Duration; - -public class SyncReplaceTaxonomy { - - public static void main(String[] args) throws Exception { - syncReplaceTaxonomy(); - } - - public static void syncReplaceTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerSerializationStubSettings.Builder policyTagManagerSerializationSettingsBuilder = - PolicyTagManagerSerializationStubSettings.newBuilder(); - policyTagManagerSerializationSettingsBuilder - .replaceTaxonomySettings() - .setRetrySettings( - policyTagManagerSerializationSettingsBuilder - .replaceTaxonomySettings() - .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()); - PolicyTagManagerSerializationStubSettings policyTagManagerSerializationSettings = - policyTagManagerSerializationSettingsBuilder.build(); - } -} -// [END datacatalog_v1_generated_PolicyTagManagerSerializationStubSettings_ReplaceTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java deleted file mode 100644 index 644e14571e68..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1.stub.samples; - -// [START datacatalog_v1_generated_PolicyTagManagerStubSettings_CreateTaxonomy_sync] -import com.google.cloud.datacatalog.v1.stub.PolicyTagManagerStubSettings; -import java.time.Duration; - -public class SyncCreateTaxonomy { - - public static void main(String[] args) throws Exception { - syncCreateTaxonomy(); - } - - public static void syncCreateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerStubSettings.Builder policyTagManagerSettingsBuilder = - PolicyTagManagerStubSettings.newBuilder(); - policyTagManagerSettingsBuilder - .createTaxonomySettings() - .setRetrySettings( - policyTagManagerSettingsBuilder - .createTaxonomySettings() - .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()); - PolicyTagManagerStubSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build(); - } -} -// [END datacatalog_v1_generated_PolicyTagManagerStubSettings_CreateTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 8f444277cec2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_Create_SetCredentialsProvider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DataCatalogSettings; -import com.google.cloud.datacatalog.v1beta1.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 - DataCatalogSettings dataCatalogSettings = - DataCatalogSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings); - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_Create_SetCredentialsProvider_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetEndpoint.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetEndpoint.java deleted file mode 100644 index a2ae4c5eafb2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_Create_SetEndpoint_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DataCatalogSettings; -import com.google.cloud.datacatalog.v1beta1.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 - DataCatalogSettings dataCatalogSettings = - DataCatalogSettings.newBuilder().setEndpoint(myEndpoint).build(); - DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings); - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_Create_SetEndpoint_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateUseHttpJsonTransport.java deleted file mode 100644 index c0e19ed8b4f8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/create/SyncCreateUseHttpJsonTransport.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_Create_UseHttpJsonTransport_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DataCatalogSettings; - -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 - DataCatalogSettings dataCatalogSettings = DataCatalogSettings.newHttpJsonBuilder().build(); - DataCatalogClient dataCatalogClient = DataCatalogClient.create(dataCatalogSettings); - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/AsyncCreateEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/AsyncCreateEntry.java deleted file mode 100644 index b02eb2f75a8b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/AsyncCreateEntry.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; - -public class AsyncCreateEntry { - - public static void main(String[] args) throws Exception { - asyncCreateEntry(); - } - - public static void asyncCreateEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateEntryRequest request = - CreateEntryRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setEntryId("entryId-1591558867") - .setEntry(Entry.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.createEntryCallable().futureCall(request); - // Do something. - Entry response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntry.java deleted file mode 100644 index 8a4cf87b2458..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntry.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateEntry_sync] -import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; - -public class SyncCreateEntry { - - public static void main(String[] args) throws Exception { - syncCreateEntry(); - } - - public static void syncCreateEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateEntryRequest request = - CreateEntryRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setEntryId("entryId-1591558867") - .setEntry(Entry.newBuilder().build()) - .build(); - Entry response = dataCatalogClient.createEntry(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java deleted file mode 100644 index 54d790cd354a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryEntrygroupnameStringEntry.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateEntry_EntrygroupnameStringEntry_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; - -public class SyncCreateEntryEntrygroupnameStringEntry { - - public static void main(String[] args) throws Exception { - syncCreateEntryEntrygroupnameStringEntry(); - } - - public static void syncCreateEntryEntrygroupnameStringEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - Entry response = dataCatalogClient.createEntry(parent, entryId, entry); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateEntry_EntrygroupnameStringEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java deleted file mode 100644 index 77a1091e0836..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentry/SyncCreateEntryStringStringEntry.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateEntry_StringStringEntry_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; - -public class SyncCreateEntryStringStringEntry { - - public static void main(String[] args) throws Exception { - syncCreateEntryStringStringEntry(); - } - - public static void syncCreateEntryStringStringEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); - String entryId = "entryId-1591558867"; - Entry entry = Entry.newBuilder().build(); - Entry response = dataCatalogClient.createEntry(parent, entryId, entry); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateEntry_StringStringEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java deleted file mode 100644 index 149cfc73aad2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/AsyncCreateEntryGroup.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.LocationName; - -public class AsyncCreateEntryGroup { - - public static void main(String[] args) throws Exception { - asyncCreateEntryGroup(); - } - - public static void asyncCreateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateEntryGroupRequest request = - CreateEntryGroupRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setEntryGroupId("entryGroupId1228924712") - .setEntryGroup(EntryGroup.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.createEntryGroupCallable().futureCall(request); - // Do something. - EntryGroup response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroup.java deleted file mode 100644 index 5d05ea360a15..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroup.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_sync] -import com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.LocationName; - -public class SyncCreateEntryGroup { - - public static void main(String[] args) throws Exception { - syncCreateEntryGroup(); - } - - public static void syncCreateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateEntryGroupRequest request = - CreateEntryGroupRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setEntryGroupId("entryGroupId1228924712") - .setEntryGroup(EntryGroup.newBuilder().build()) - .build(); - EntryGroup response = dataCatalogClient.createEntryGroup(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java deleted file mode 100644 index c77edc053ff3..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupLocationnameStringEntrygroup.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_LocationnameStringEntrygroup_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.LocationName; - -public class SyncCreateEntryGroupLocationnameStringEntrygroup { - - public static void main(String[] args) throws Exception { - syncCreateEntryGroupLocationnameStringEntrygroup(); - } - - public static void syncCreateEntryGroupLocationnameStringEntrygroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_LocationnameStringEntrygroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java deleted file mode 100644 index ba56a51d05bc..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createentrygroup/SyncCreateEntryGroupStringStringEntrygroup.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_StringStringEntrygroup_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.LocationName; - -public class SyncCreateEntryGroupStringStringEntrygroup { - - public static void main(String[] args) throws Exception { - syncCreateEntryGroupStringStringEntrygroup(); - } - - public static void syncCreateEntryGroupStringStringEntrygroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String entryGroupId = "entryGroupId1228924712"; - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - EntryGroup response = dataCatalogClient.createEntryGroup(parent, entryGroupId, entryGroup); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateEntryGroup_StringStringEntrygroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/AsyncCreateTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/AsyncCreateTag.java deleted file mode 100644 index 940cd0138b0e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/AsyncCreateTag.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.CreateTagRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.Tag; - -public class AsyncCreateTag { - - public static void main(String[] args) throws Exception { - asyncCreateTag(); - } - - public static void asyncCreateTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagRequest request = - CreateTagRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTag(Tag.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.createTagCallable().futureCall(request); - // Do something. - Tag response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTag.java deleted file mode 100644 index 1525aa2fb172..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTag.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTag_sync] -import com.google.cloud.datacatalog.v1beta1.CreateTagRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.Tag; - -public class SyncCreateTag { - - public static void main(String[] args) throws Exception { - syncCreateTag(); - } - - public static void syncCreateTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagRequest request = - CreateTagRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setTag(Tag.newBuilder().build()) - .build(); - Tag response = dataCatalogClient.createTag(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagEntrynameTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagEntrynameTag.java deleted file mode 100644 index 74459c04166f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagEntrynameTag.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTag_EntrynameTag_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.Tag; - -public class SyncCreateTagEntrynameTag { - - public static void main(String[] args) throws Exception { - syncCreateTagEntrynameTag(); - } - - public static void syncCreateTagEntrynameTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Tag tag = Tag.newBuilder().build(); - Tag response = dataCatalogClient.createTag(parent, tag); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTag_EntrynameTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagStringTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagStringTag.java deleted file mode 100644 index 065934684b5c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtag/SyncCreateTagStringTag.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTag_StringTag_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.Tag; - -public class SyncCreateTagStringTag { - - public static void main(String[] args) throws Exception { - syncCreateTagStringTag(); - } - - public static void syncCreateTagStringTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - Tag tag = Tag.newBuilder().build(); - Tag response = dataCatalogClient.createTag(parent, tag); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTag_StringTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java deleted file mode 100644 index 7c84a0c6e8fe..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/AsyncCreateTagTemplate.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; - -public class AsyncCreateTagTemplate { - - public static void main(String[] args) throws Exception { - asyncCreateTagTemplate(); - } - - public static void asyncCreateTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagTemplateRequest request = - CreateTagTemplateRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTagTemplateId("tagTemplateId-1438776721") - .setTagTemplate(TagTemplate.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.createTagTemplateCallable().futureCall(request); - // Do something. - TagTemplate response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java deleted file mode 100644 index 29f9fc26959b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplate.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_sync] -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; - -public class SyncCreateTagTemplate { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplate(); - } - - public static void syncCreateTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagTemplateRequest request = - CreateTagTemplateRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTagTemplateId("tagTemplateId-1438776721") - .setTagTemplate(TagTemplate.newBuilder().build()) - .build(); - TagTemplate response = dataCatalogClient.createTagTemplate(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java deleted file mode 100644 index 635f81900725..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateLocationnameStringTagtemplate.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_LocationnameStringTagtemplate_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; - -public class SyncCreateTagTemplateLocationnameStringTagtemplate { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplateLocationnameStringTagtemplate(); - } - - public static void syncCreateTagTemplateLocationnameStringTagtemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - TagTemplate response = - dataCatalogClient.createTagTemplate(parent, tagTemplateId, tagTemplate); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_LocationnameStringTagtemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java deleted file mode 100644 index 15ab8a3e0157..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplate/SyncCreateTagTemplateStringStringTagtemplate.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_StringStringTagtemplate_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; - -public class SyncCreateTagTemplateStringStringTagtemplate { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplateStringStringTagtemplate(); - } - - public static void syncCreateTagTemplateStringStringTagtemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - String tagTemplateId = "tagTemplateId-1438776721"; - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - TagTemplate response = - dataCatalogClient.createTagTemplate(parent, tagTemplateId, tagTemplate); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplate_StringStringTagtemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java deleted file mode 100644 index 466b89cc5945..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/AsyncCreateTagTemplateField.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; - -public class AsyncCreateTagTemplateField { - - public static void main(String[] args) throws Exception { - asyncCreateTagTemplateField(); - } - - public static void asyncCreateTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagTemplateFieldRequest request = - CreateTagTemplateFieldRequest.newBuilder() - .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setTagTemplateFieldId("tagTemplateFieldId-1556835615") - .setTagTemplateField(TagTemplateField.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.createTagTemplateFieldCallable().futureCall(request); - // Do something. - TagTemplateField response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java deleted file mode 100644 index 3c1abc86fd26..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateField.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_sync] -import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; - -public class SyncCreateTagTemplateField { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplateField(); - } - - public static void syncCreateTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - CreateTagTemplateFieldRequest request = - CreateTagTemplateFieldRequest.newBuilder() - .setParent(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setTagTemplateFieldId("tagTemplateFieldId-1556835615") - .setTagTemplateField(TagTemplateField.newBuilder().build()) - .build(); - TagTemplateField response = dataCatalogClient.createTagTemplateField(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java deleted file mode 100644 index c429260cbb94..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldStringStringTagtemplatefield.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_StringStringTagtemplatefield_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; - -public class SyncCreateTagTemplateFieldStringStringTagtemplatefield { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplateFieldStringStringTagtemplatefield(); - } - - public static void syncCreateTagTemplateFieldStringStringTagtemplatefield() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString(); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - TagTemplateField response = - dataCatalogClient.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_StringStringTagtemplatefield_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java deleted file mode 100644 index 614ad269198e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/createtagtemplatefield/SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_TagtemplatenameStringTagtemplatefield_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; - -public class SyncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield { - - public static void main(String[] args) throws Exception { - syncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield(); - } - - public static void syncCreateTagTemplateFieldTagtemplatenameStringTagtemplatefield() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateName parent = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - String tagTemplateFieldId = "tagTemplateFieldId-1556835615"; - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - TagTemplateField response = - dataCatalogClient.createTagTemplateField(parent, tagTemplateFieldId, tagTemplateField); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_CreateTagTemplateField_TagtemplatenameStringTagtemplatefield_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/AsyncDeleteEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/AsyncDeleteEntry.java deleted file mode 100644 index 7ac1123bf04a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/AsyncDeleteEntry.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.protobuf.Empty; - -public class AsyncDeleteEntry { - - public static void main(String[] args) throws Exception { - asyncDeleteEntry(); - } - - public static void asyncDeleteEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteEntryRequest request = - DeleteEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - ApiFuture future = dataCatalogClient.deleteEntryCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntry.java deleted file mode 100644 index 20b534e90752..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntry.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntry { - - public static void main(String[] args) throws Exception { - syncDeleteEntry(); - } - - public static void syncDeleteEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteEntryRequest request = - DeleteEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - dataCatalogClient.deleteEntry(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java deleted file mode 100644 index 97a43bd16e6e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryEntryname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_Entryname_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntryEntryname { - - public static void main(String[] args) throws Exception { - syncDeleteEntryEntryname(); - } - - public static void syncDeleteEntryEntryname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - dataCatalogClient.deleteEntry(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_Entryname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryString.java deleted file mode 100644 index 779838ec5b8e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentry/SyncDeleteEntryString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_String_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntryString { - - public static void main(String[] args) throws Exception { - syncDeleteEntryString(); - } - - public static void syncDeleteEntryString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - dataCatalogClient.deleteEntry(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteEntry_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java deleted file mode 100644 index 1304b517e70f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/AsyncDeleteEntryGroup.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.protobuf.Empty; - -public class AsyncDeleteEntryGroup { - - public static void main(String[] args) throws Exception { - asyncDeleteEntryGroup(); - } - - public static void asyncDeleteEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteEntryGroupRequest request = - DeleteEntryGroupRequest.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setForce(true) - .build(); - ApiFuture future = dataCatalogClient.deleteEntryGroupCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java deleted file mode 100644 index cb40b50c92db..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroup.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntryGroup { - - public static void main(String[] args) throws Exception { - syncDeleteEntryGroup(); - } - - public static void syncDeleteEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteEntryGroupRequest request = - DeleteEntryGroupRequest.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setForce(true) - .build(); - dataCatalogClient.deleteEntryGroup(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java deleted file mode 100644 index 4c2ff792bf40..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupEntrygroupname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_Entrygroupname_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntryGroupEntrygroupname { - - public static void main(String[] args) throws Exception { - syncDeleteEntryGroupEntrygroupname(); - } - - public static void syncDeleteEntryGroupEntrygroupname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - dataCatalogClient.deleteEntryGroup(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_Entrygroupname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java deleted file mode 100644 index 31ea2c326e3f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deleteentrygroup/SyncDeleteEntryGroupString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_String_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.protobuf.Empty; - -public class SyncDeleteEntryGroupString { - - public static void main(String[] args) throws Exception { - syncDeleteEntryGroupString(); - } - - public static void syncDeleteEntryGroupString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); - dataCatalogClient.deleteEntryGroup(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteEntryGroup_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/AsyncDeleteTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/AsyncDeleteTag.java deleted file mode 100644 index 12114bfeadfc..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/AsyncDeleteTag.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTag { - - public static void main(String[] args) throws Exception { - asyncDeleteTag(); - } - - public static void asyncDeleteTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagRequest request = - DeleteTagRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - ApiFuture future = dataCatalogClient.deleteTagCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTag.java deleted file mode 100644 index 13299935b5e9..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTag.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTag_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DeleteTagRequest; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteTag { - - public static void main(String[] args) throws Exception { - syncDeleteTag(); - } - - public static void syncDeleteTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagRequest request = - DeleteTagRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - dataCatalogClient.deleteTag(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagEntryname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagEntryname.java deleted file mode 100644 index 1b850c13b287..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagEntryname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTag_Entryname_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagEntryname { - - public static void main(String[] args) throws Exception { - syncDeleteTagEntryname(); - } - - public static void syncDeleteTagEntryname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - dataCatalogClient.deleteTag(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTag_Entryname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagString.java deleted file mode 100644 index 2cb1b44bd7f1..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetag/SyncDeleteTagString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTag_String_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagString { - - public static void main(String[] args) throws Exception { - syncDeleteTagString(); - } - - public static void syncDeleteTagString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - dataCatalogClient.deleteTag(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTag_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java deleted file mode 100644 index 4adee8eba52c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/AsyncDeleteTagTemplate.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTagTemplate { - - public static void main(String[] args) throws Exception { - asyncDeleteTagTemplate(); - } - - public static void asyncDeleteTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagTemplateRequest request = - DeleteTagTemplateRequest.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForce(true) - .build(); - ApiFuture future = dataCatalogClient.deleteTagTemplateCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java deleted file mode 100644 index 3415dd335986..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplate.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplate { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplate(); - } - - public static void syncDeleteTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagTemplateRequest request = - DeleteTagTemplateRequest.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .setForce(true) - .build(); - dataCatalogClient.deleteTagTemplate(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java deleted file mode 100644 index 55cb42088f59..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateStringBoolean.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_StringBoolean_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplateStringBoolean { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplateStringBoolean(); - } - - public static void syncDeleteTagTemplateStringBoolean() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString(); - boolean force = true; - dataCatalogClient.deleteTagTemplate(name, force); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_StringBoolean_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java deleted file mode 100644 index 825e612ce13e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplate/SyncDeleteTagTemplateTagtemplatenameBoolean.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_TagtemplatenameBoolean_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplateTagtemplatenameBoolean { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplateTagtemplatenameBoolean(); - } - - public static void syncDeleteTagTemplateTagtemplatenameBoolean() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - boolean force = true; - dataCatalogClient.deleteTagTemplate(name, force); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplate_TagtemplatenameBoolean_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java deleted file mode 100644 index e9719e05cd62..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/AsyncDeleteTagTemplateField.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTagTemplateField { - - public static void main(String[] args) throws Exception { - asyncDeleteTagTemplateField(); - } - - public static void asyncDeleteTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagTemplateFieldRequest request = - DeleteTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setForce(true) - .build(); - ApiFuture future = - dataCatalogClient.deleteTagTemplateFieldCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java deleted file mode 100644 index 3106b8338b5a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateField.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplateField { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplateField(); - } - - public static void syncDeleteTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - DeleteTagTemplateFieldRequest request = - DeleteTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setForce(true) - .build(); - dataCatalogClient.deleteTagTemplateField(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java deleted file mode 100644 index 72bf5267a2e0..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldStringBoolean.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_StringBoolean_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplateFieldStringBoolean { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplateFieldStringBoolean(); - } - - public static void syncDeleteTagTemplateFieldStringBoolean() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString(); - boolean force = true; - dataCatalogClient.deleteTagTemplateField(name, force); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_StringBoolean_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java deleted file mode 100644 index bff7d261caa3..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/deletetagtemplatefield/SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_TagtemplatefieldnameBoolean_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; -import com.google.protobuf.Empty; - -public class SyncDeleteTagTemplateFieldTagtemplatefieldnameBoolean { - - public static void main(String[] args) throws Exception { - syncDeleteTagTemplateFieldTagtemplatefieldnameBoolean(); - } - - public static void syncDeleteTagTemplateFieldTagtemplatefieldnameBoolean() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - boolean force = true; - dataCatalogClient.deleteTagTemplateField(name, force); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_DeleteTagTemplateField_TagtemplatefieldnameBoolean_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/AsyncGetEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/AsyncGetEntry.java deleted file mode 100644 index 172f7f0223ed..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/AsyncGetEntry.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.GetEntryRequest; - -public class AsyncGetEntry { - - public static void main(String[] args) throws Exception { - asyncGetEntry(); - } - - public static void asyncGetEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetEntryRequest request = - GetEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - ApiFuture future = dataCatalogClient.getEntryCallable().futureCall(request); - // Do something. - Entry response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntry.java deleted file mode 100644 index 4a1b8e7476df..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntry.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetEntry_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.GetEntryRequest; - -public class SyncGetEntry { - - public static void main(String[] args) throws Exception { - syncGetEntry(); - } - - public static void syncGetEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetEntryRequest request = - GetEntryRequest.newBuilder() - .setName( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .build(); - Entry response = dataCatalogClient.getEntry(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryEntryname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryEntryname.java deleted file mode 100644 index 34a35273433a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryEntryname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetEntry_Entryname_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryName; - -public class SyncGetEntryEntryname { - - public static void main(String[] args) throws Exception { - syncGetEntryEntryname(); - } - - public static void syncGetEntryEntryname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Entry response = dataCatalogClient.getEntry(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetEntry_Entryname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryString.java deleted file mode 100644 index 9d7618e921b8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentry/SyncGetEntryString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetEntry_String_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryName; - -public class SyncGetEntryString { - - public static void main(String[] args) throws Exception { - syncGetEntryString(); - } - - public static void syncGetEntryString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - Entry response = dataCatalogClient.getEntry(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetEntry_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/AsyncGetEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/AsyncGetEntryGroup.java deleted file mode 100644 index 87a8d7f16a54..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/AsyncGetEntryGroup.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest; -import com.google.protobuf.FieldMask; - -public class AsyncGetEntryGroup { - - public static void main(String[] args) throws Exception { - asyncGetEntryGroup(); - } - - public static void asyncGetEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetEntryGroupRequest request = - GetEntryGroupRequest.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setReadMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.getEntryGroupCallable().futureCall(request); - // Do something. - EntryGroup response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroup.java deleted file mode 100644 index 9faffa36f491..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroup.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest; -import com.google.protobuf.FieldMask; - -public class SyncGetEntryGroup { - - public static void main(String[] args) throws Exception { - syncGetEntryGroup(); - } - - public static void syncGetEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetEntryGroupRequest request = - GetEntryGroupRequest.newBuilder() - .setName(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setReadMask(FieldMask.newBuilder().build()) - .build(); - EntryGroup response = dataCatalogClient.getEntryGroup(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java deleted file mode 100644 index 6ce7a064ae45..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_Entrygroupname_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; - -public class SyncGetEntryGroupEntrygroupname { - - public static void main(String[] args) throws Exception { - syncGetEntryGroupEntrygroupname(); - } - - public static void syncGetEntryGroupEntrygroupname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - EntryGroup response = dataCatalogClient.getEntryGroup(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_Entrygroupname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java deleted file mode 100644 index 484de4567767..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupEntrygroupnameFieldmask.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_EntrygroupnameFieldmask_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.protobuf.FieldMask; - -public class SyncGetEntryGroupEntrygroupnameFieldmask { - - public static void main(String[] args) throws Exception { - syncGetEntryGroupEntrygroupnameFieldmask(); - } - - public static void syncGetEntryGroupEntrygroupnameFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroupName name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - FieldMask readMask = FieldMask.newBuilder().build(); - EntryGroup response = dataCatalogClient.getEntryGroup(name, readMask); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_EntrygroupnameFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupString.java deleted file mode 100644 index 8ac4fce3d76a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_String_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; - -public class SyncGetEntryGroupString { - - public static void main(String[] args) throws Exception { - syncGetEntryGroupString(); - } - - public static void syncGetEntryGroupString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); - EntryGroup response = dataCatalogClient.getEntryGroup(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java deleted file mode 100644 index 0e27432bac79..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getentrygroup/SyncGetEntryGroupStringFieldmask.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_StringFieldmask_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.protobuf.FieldMask; - -public class SyncGetEntryGroupStringFieldmask { - - public static void main(String[] args) throws Exception { - syncGetEntryGroupStringFieldmask(); - } - - public static void syncGetEntryGroupStringFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); - FieldMask readMask = FieldMask.newBuilder().build(); - EntryGroup response = dataCatalogClient.getEntryGroup(name, readMask); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetEntryGroup_StringFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/AsyncGetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/AsyncGetIamPolicy.java deleted file mode 100644 index c87040c0def1..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/AsyncGetIamPolicy.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.getIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicy.java deleted file mode 100644 index 093e48118019..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - Policy response = dataCatalogClient.getIamPolicy(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java deleted file mode 100644 index 80f08aef4993..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyResourcename.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_Resourcename_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyResourcename { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyResourcename(); - } - - public static void syncGetIamPolicyResourcename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ResourceName resource = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - Policy response = dataCatalogClient.getIamPolicy(resource); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_Resourcename_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyString.java deleted file mode 100644 index 561faf87f97f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/getiampolicy/SyncGetIamPolicyString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_String_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.iam.v1.Policy; - -public class SyncGetIamPolicyString { - - public static void main(String[] args) throws Exception { - syncGetIamPolicyString(); - } - - public static void syncGetIamPolicyString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String resource = - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - Policy response = dataCatalogClient.getIamPolicy(resource); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetIamPolicy_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java deleted file mode 100644 index 6d22d44d4c81..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/AsyncGetTagTemplate.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; - -public class AsyncGetTagTemplate { - - public static void main(String[] args) throws Exception { - asyncGetTagTemplate(); - } - - public static void asyncGetTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetTagTemplateRequest request = - GetTagTemplateRequest.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .build(); - ApiFuture future = - dataCatalogClient.getTagTemplateCallable().futureCall(request); - // Do something. - TagTemplate response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplate.java deleted file mode 100644 index 943cd11a940a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplate.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; - -public class SyncGetTagTemplate { - - public static void main(String[] args) throws Exception { - syncGetTagTemplate(); - } - - public static void syncGetTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - GetTagTemplateRequest request = - GetTagTemplateRequest.newBuilder() - .setName(TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString()) - .build(); - TagTemplate response = dataCatalogClient.getTagTemplate(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java deleted file mode 100644 index f526715ca87a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_String_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; - -public class SyncGetTagTemplateString { - - public static void main(String[] args) throws Exception { - syncGetTagTemplateString(); - } - - public static void syncGetTagTemplateString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]").toString(); - TagTemplate response = dataCatalogClient.getTagTemplate(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java deleted file mode 100644 index 4c39edb58c8a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/gettagtemplate/SyncGetTagTemplateTagtemplatename.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_Tagtemplatename_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.TagTemplateName; - -public class SyncGetTagTemplateTagtemplatename { - - public static void main(String[] args) throws Exception { - syncGetTagTemplateTagtemplatename(); - } - - public static void syncGetTagTemplateTagtemplatename() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateName name = TagTemplateName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]"); - TagTemplate response = dataCatalogClient.getTagTemplate(name); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_GetTagTemplate_Tagtemplatename_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntries.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntries.java deleted file mode 100644 index 3eff9fb79919..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntries.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListEntries_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.cloud.datacatalog.v1beta1.ListEntriesRequest; -import com.google.protobuf.FieldMask; - -public class AsyncListEntries { - - public static void main(String[] args) throws Exception { - asyncListEntries(); - } - - public static void asyncListEntries() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntriesRequest request = - ListEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.listEntriesPagedCallable().futureCall(request); - // Do something. - for (Entry element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListEntries_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntriesPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntriesPaged.java deleted file mode 100644 index dae03a7620af..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/AsyncListEntriesPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListEntries_Paged_async] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.cloud.datacatalog.v1beta1.ListEntriesRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntriesResponse; -import com.google.common.base.Strings; -import com.google.protobuf.FieldMask; - -public class AsyncListEntriesPaged { - - public static void main(String[] args) throws Exception { - asyncListEntriesPaged(); - } - - public static void asyncListEntriesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntriesRequest request = - ListEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - while (true) { - ListEntriesResponse response = dataCatalogClient.listEntriesCallable().call(request); - for (Entry element : response.getEntriesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListEntries_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntries.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntries.java deleted file mode 100644 index c983e821d3a9..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntries.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListEntries_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.cloud.datacatalog.v1beta1.ListEntriesRequest; -import com.google.protobuf.FieldMask; - -public class SyncListEntries { - - public static void main(String[] args) throws Exception { - syncListEntries(); - } - - public static void syncListEntries() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntriesRequest request = - ListEntriesRequest.newBuilder() - .setParent(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setReadMask(FieldMask.newBuilder().build()) - .build(); - for (Entry element : dataCatalogClient.listEntries(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListEntries_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesEntrygroupname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesEntrygroupname.java deleted file mode 100644 index 821f21c43758..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesEntrygroupname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListEntries_Entrygroupname_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; - -public class SyncListEntriesEntrygroupname { - - public static void main(String[] args) throws Exception { - syncListEntriesEntrygroupname(); - } - - public static void syncListEntriesEntrygroupname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroupName parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - for (Entry element : dataCatalogClient.listEntries(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListEntries_Entrygroupname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesString.java deleted file mode 100644 index c0c07783217b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentries/SyncListEntriesString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListEntries_String_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; - -public class SyncListEntriesString { - - public static void main(String[] args) throws Exception { - syncListEntriesString(); - } - - public static void syncListEntriesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString(); - for (Entry element : dataCatalogClient.listEntries(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListEntries_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroups.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroups.java deleted file mode 100644 index 585a4250e98e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroups.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1beta1.LocationName; - -public class AsyncListEntryGroups { - - public static void main(String[] args) throws Exception { - asyncListEntryGroups(); - } - - public static void asyncListEntryGroups() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntryGroupsRequest request = - ListEntryGroupsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - dataCatalogClient.listEntryGroupsPagedCallable().futureCall(request); - // Do something. - for (EntryGroup element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java deleted file mode 100644 index 6581595b6f38..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/AsyncListEntryGroupsPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_Paged_async] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.common.base.Strings; - -public class AsyncListEntryGroupsPaged { - - public static void main(String[] args) throws Exception { - asyncListEntryGroupsPaged(); - } - - public static void asyncListEntryGroupsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntryGroupsRequest request = - ListEntryGroupsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListEntryGroupsResponse response = - dataCatalogClient.listEntryGroupsCallable().call(request); - for (EntryGroup element : response.getEntryGroupsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroups.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroups.java deleted file mode 100644 index 773abed9d746..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroups.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest; -import com.google.cloud.datacatalog.v1beta1.LocationName; - -public class SyncListEntryGroups { - - public static void main(String[] args) throws Exception { - syncListEntryGroups(); - } - - public static void syncListEntryGroups() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListEntryGroupsRequest request = - ListEntryGroupsRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (EntryGroup element : dataCatalogClient.listEntryGroups(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java deleted file mode 100644 index 382595e31b2c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_Locationname_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.LocationName; - -public class SyncListEntryGroupsLocationname { - - public static void main(String[] args) throws Exception { - syncListEntryGroupsLocationname(); - } - - public static void syncListEntryGroupsLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (EntryGroup element : dataCatalogClient.listEntryGroups(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_Locationname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsString.java deleted file mode 100644 index 28a343f39843..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listentrygroups/SyncListEntryGroupsString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_String_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.LocationName; - -public class SyncListEntryGroupsString { - - public static void main(String[] args) throws Exception { - syncListEntryGroupsString(); - } - - public static void syncListEntryGroupsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (EntryGroup element : dataCatalogClient.listEntryGroups(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListEntryGroups_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTags.java deleted file mode 100644 index 4671d0aaa7f1..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTags.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListTags_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.ListTagsRequest; -import com.google.cloud.datacatalog.v1beta1.Tag; - -public class AsyncListTags { - - public static void main(String[] args) throws Exception { - asyncListTags(); - } - - public static void asyncListTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListTagsRequest request = - ListTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = dataCatalogClient.listTagsPagedCallable().futureCall(request); - // Do something. - for (Tag element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListTags_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTagsPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTagsPaged.java deleted file mode 100644 index dab859ab763d..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/AsyncListTagsPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListTags_Paged_async] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.ListTagsRequest; -import com.google.cloud.datacatalog.v1beta1.ListTagsResponse; -import com.google.cloud.datacatalog.v1beta1.Tag; -import com.google.common.base.Strings; - -public class AsyncListTagsPaged { - - public static void main(String[] args) throws Exception { - asyncListTagsPaged(); - } - - public static void asyncListTagsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListTagsRequest request = - ListTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListTagsResponse response = dataCatalogClient.listTagsCallable().call(request); - for (Tag element : response.getTagsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListTags_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTags.java deleted file mode 100644 index 2b35913494dc..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTags.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListTags_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.ListTagsRequest; -import com.google.cloud.datacatalog.v1beta1.Tag; - -public class SyncListTags { - - public static void main(String[] args) throws Exception { - syncListTags(); - } - - public static void syncListTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ListTagsRequest request = - ListTagsRequest.newBuilder() - .setParent( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (Tag element : dataCatalogClient.listTags(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListTags_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsEntryname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsEntryname.java deleted file mode 100644 index 32327dbc463a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsEntryname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListTags_Entryname_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.Tag; - -public class SyncListTagsEntryname { - - public static void main(String[] args) throws Exception { - syncListTagsEntryname(); - } - - public static void syncListTagsEntryname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryName parent = EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]"); - for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListTags_Entryname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsString.java deleted file mode 100644 index 4fd15cfa0de1..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/listtags/SyncListTagsString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_ListTags_String_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.cloud.datacatalog.v1beta1.Tag; - -public class SyncListTagsString { - - public static void main(String[] args) throws Exception { - syncListTagsString(); - } - - public static void syncListTagsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String parent = - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - for (Tag element : dataCatalogClient.listTags(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_ListTags_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/AsyncLookupEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/AsyncLookupEntry.java deleted file mode 100644 index c1d11f5e7462..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/AsyncLookupEntry.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_LookupEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; - -public class AsyncLookupEntry { - - public static void main(String[] args) throws Exception { - asyncLookupEntry(); - } - - public static void asyncLookupEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LookupEntryRequest request = LookupEntryRequest.newBuilder().build(); - ApiFuture future = dataCatalogClient.lookupEntryCallable().futureCall(request); - // Do something. - Entry response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_LookupEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/SyncLookupEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/SyncLookupEntry.java deleted file mode 100644 index 1503cecd03d4..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/lookupentry/SyncLookupEntry.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_LookupEntry_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest; - -public class SyncLookupEntry { - - public static void main(String[] args) throws Exception { - syncLookupEntry(); - } - - public static void syncLookupEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - LookupEntryRequest request = LookupEntryRequest.newBuilder().build(); - Entry response = dataCatalogClient.lookupEntry(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_LookupEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java deleted file mode 100644 index 8ad0f6fbc478..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/AsyncRenameTagTemplateField.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; - -public class AsyncRenameTagTemplateField { - - public static void main(String[] args) throws Exception { - asyncRenameTagTemplateField(); - } - - public static void asyncRenameTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RenameTagTemplateFieldRequest request = - RenameTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setNewTagTemplateFieldId("newTagTemplateFieldId2008993953") - .build(); - ApiFuture future = - dataCatalogClient.renameTagTemplateFieldCallable().futureCall(request); - // Do something. - TagTemplateField response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java deleted file mode 100644 index 2b92e00de06e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateField.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; - -public class SyncRenameTagTemplateField { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateField(); - } - - public static void syncRenameTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RenameTagTemplateFieldRequest request = - RenameTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setNewTagTemplateFieldId("newTagTemplateFieldId2008993953") - .build(); - TagTemplateField response = dataCatalogClient.renameTagTemplateField(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java deleted file mode 100644 index 1ada5d8f2bbb..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldStringString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_StringString_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; - -public class SyncRenameTagTemplateFieldStringString { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateFieldStringString(); - } - - public static void syncRenameTagTemplateFieldStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString(); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - TagTemplateField response = - dataCatalogClient.renameTagTemplateField(name, newTagTemplateFieldId); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_StringString_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java deleted file mode 100644 index 9251245d4ad5..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefield/SyncRenameTagTemplateFieldTagtemplatefieldnameString.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_TagtemplatefieldnameString_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; - -public class SyncRenameTagTemplateFieldTagtemplatefieldnameString { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateFieldTagtemplatefieldnameString(); - } - - public static void syncRenameTagTemplateFieldTagtemplatefieldnameString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - String newTagTemplateFieldId = "newTagTemplateFieldId2008993953"; - TagTemplateField response = - dataCatalogClient.renameTagTemplateField(name, newTagTemplateFieldId); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateField_TagtemplatefieldnameString_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java deleted file mode 100644 index ccd9c01e5d45..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/AsyncRenameTagTemplateFieldEnumValue.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldEnumValueName; - -public class AsyncRenameTagTemplateFieldEnumValue { - - public static void main(String[] args) throws Exception { - asyncRenameTagTemplateFieldEnumValue(); - } - - public static void asyncRenameTagTemplateFieldEnumValue() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RenameTagTemplateFieldEnumValueRequest request = - RenameTagTemplateFieldEnumValueRequest.newBuilder() - .setName( - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]") - .toString()) - .setNewEnumValueDisplayName("newEnumValueDisplayName-1119629027") - .build(); - ApiFuture future = - dataCatalogClient.renameTagTemplateFieldEnumValueCallable().futureCall(request); - // Do something. - TagTemplateField response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java deleted file mode 100644 index ab36c76dccdb..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValue.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldEnumValueRequest; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldEnumValueName; - -public class SyncRenameTagTemplateFieldEnumValue { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateFieldEnumValue(); - } - - public static void syncRenameTagTemplateFieldEnumValue() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - RenameTagTemplateFieldEnumValueRequest request = - RenameTagTemplateFieldEnumValueRequest.newBuilder() - .setName( - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]") - .toString()) - .setNewEnumValueDisplayName("newEnumValueDisplayName-1119629027") - .build(); - TagTemplateField response = dataCatalogClient.renameTagTemplateFieldEnumValue(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java deleted file mode 100644 index 9e7047104585..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueStringString.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_StringString_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldEnumValueName; - -public class SyncRenameTagTemplateFieldEnumValueStringString { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateFieldEnumValueStringString(); - } - - public static void syncRenameTagTemplateFieldEnumValueStringString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]") - .toString(); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - TagTemplateField response = - dataCatalogClient.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_StringString_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java deleted file mode 100644 index 522f9cf9a96b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/renametagtemplatefieldenumvalue/SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_TagtemplatefieldenumvaluenameString_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldEnumValueName; - -public class SyncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString { - - public static void main(String[] args) throws Exception { - syncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString(); - } - - public static void syncRenameTagTemplateFieldEnumValueTagtemplatefieldenumvaluenameString() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateFieldEnumValueName name = - TagTemplateFieldEnumValueName.of( - "[PROJECT]", - "[LOCATION]", - "[TAG_TEMPLATE]", - "[TAG_TEMPLATE_FIELD_ID]", - "[ENUM_VALUE_DISPLAY_NAME]"); - String newEnumValueDisplayName = "newEnumValueDisplayName-1119629027"; - TagTemplateField response = - dataCatalogClient.renameTagTemplateFieldEnumValue(name, newEnumValueDisplayName); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_RenameTagTemplateFieldEnumValue_TagtemplatefieldenumvaluenameString_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalog.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalog.java deleted file mode 100644 index 1935d58cad4e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalog.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult; - -public class AsyncSearchCatalog { - - public static void main(String[] args) throws Exception { - asyncSearchCatalog(); - } - - public static void asyncSearchCatalog() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SearchCatalogRequest request = - SearchCatalogRequest.newBuilder() - .setScope(SearchCatalogRequest.Scope.newBuilder().build()) - .setQuery("query107944136") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setOrderBy("orderBy-1207110587") - .build(); - ApiFuture future = - dataCatalogClient.searchCatalogPagedCallable().futureCall(request); - // Do something. - for (SearchCatalogResult element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java deleted file mode 100644 index d884a3f5a5d1..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/AsyncSearchCatalogPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_Paged_async] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult; -import com.google.common.base.Strings; - -public class AsyncSearchCatalogPaged { - - public static void main(String[] args) throws Exception { - asyncSearchCatalogPaged(); - } - - public static void asyncSearchCatalogPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SearchCatalogRequest request = - SearchCatalogRequest.newBuilder() - .setScope(SearchCatalogRequest.Scope.newBuilder().build()) - .setQuery("query107944136") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setOrderBy("orderBy-1207110587") - .build(); - while (true) { - SearchCatalogResponse response = dataCatalogClient.searchCatalogCallable().call(request); - for (SearchCatalogResult element : response.getResultsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalog.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalog.java deleted file mode 100644 index 118a63df327e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalog.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult; - -public class SyncSearchCatalog { - - public static void main(String[] args) throws Exception { - syncSearchCatalog(); - } - - public static void syncSearchCatalog() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SearchCatalogRequest request = - SearchCatalogRequest.newBuilder() - .setScope(SearchCatalogRequest.Scope.newBuilder().build()) - .setQuery("query107944136") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setOrderBy("orderBy-1207110587") - .build(); - for (SearchCatalogResult element : dataCatalogClient.searchCatalog(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java deleted file mode 100644 index bfe28e0d1be1..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/searchcatalog/SyncSearchCatalogSearchcatalogrequestscopeString.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_SearchcatalogrequestscopeString_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest; -import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult; - -public class SyncSearchCatalogSearchcatalogrequestscopeString { - - public static void main(String[] args) throws Exception { - syncSearchCatalogSearchcatalogrequestscopeString(); - } - - public static void syncSearchCatalogSearchcatalogrequestscopeString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SearchCatalogRequest.Scope scope = SearchCatalogRequest.Scope.newBuilder().build(); - String query = "query107944136"; - for (SearchCatalogResult element : - dataCatalogClient.searchCatalog(scope, query).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_SearchCatalog_SearchcatalogrequestscopeString_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/AsyncSetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/AsyncSetIamPolicy.java deleted file mode 100644 index 054561f4d6f4..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/AsyncSetIamPolicy.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.setIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicy.java deleted file mode 100644 index 293c52e7c68b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]").toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Policy response = dataCatalogClient.setIamPolicy(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java deleted file mode 100644 index 3cc03426ec57..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyResourcenamePolicy.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_ResourcenamePolicy_sync] -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroupName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyResourcenamePolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyResourcenamePolicy(); - } - - public static void syncSetIamPolicyResourcenamePolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - ResourceName resource = EntryGroupName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]"); - Policy policy = Policy.newBuilder().build(); - Policy response = dataCatalogClient.setIamPolicy(resource, policy); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_ResourcenamePolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java deleted file mode 100644 index b6fcc9dfc3b7..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/setiampolicy/SyncSetIamPolicyStringPolicy.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_StringPolicy_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -import com.google.iam.v1.Policy; - -public class SyncSetIamPolicyStringPolicy { - - public static void main(String[] args) throws Exception { - syncSetIamPolicyStringPolicy(); - } - - public static void syncSetIamPolicyStringPolicy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String resource = - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString(); - Policy policy = Policy.newBuilder().build(); - Policy response = dataCatalogClient.setIamPolicy(resource, policy); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_SetIamPolicy_StringPolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/AsyncTestIamPermissions.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/AsyncTestIamPermissions.java deleted file mode 100644 index 98c4e62e59b6..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/AsyncTestIamPermissions.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_TestIamPermissions_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - ApiFuture future = - dataCatalogClient.testIamPermissionsCallable().futureCall(request); - // Do something. - TestIamPermissionsResponse response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_TestIamPermissions_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/SyncTestIamPermissions.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/SyncTestIamPermissions.java deleted file mode 100644 index 380b092e46a9..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/testiampermissions/SyncTestIamPermissions.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_TestIamPermissions_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryName; -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 (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - EntryName.of("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]", "[ENTRY]").toString()) - .addAllPermissions(new ArrayList()) - .build(); - TestIamPermissionsResponse response = dataCatalogClient.testIamPermissions(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_TestIamPermissions_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/AsyncUpdateEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/AsyncUpdateEntry.java deleted file mode 100644 index 3c6aa3feaed6..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/AsyncUpdateEntry.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateEntry { - - public static void main(String[] args) throws Exception { - asyncUpdateEntry(); - } - - public static void asyncUpdateEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateEntryRequest request = - UpdateEntryRequest.newBuilder() - .setEntry(Entry.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.updateEntryCallable().futureCall(request); - // Do something. - Entry response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntry.java deleted file mode 100644 index 06ae66837889..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntry.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateEntry { - - public static void main(String[] args) throws Exception { - syncUpdateEntry(); - } - - public static void syncUpdateEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateEntryRequest request = - UpdateEntryRequest.newBuilder() - .setEntry(Entry.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Entry response = dataCatalogClient.updateEntry(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntry.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntry.java deleted file mode 100644 index b84526d735fe..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntry.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_Entry_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; - -public class SyncUpdateEntryEntry { - - public static void main(String[] args) throws Exception { - syncUpdateEntryEntry(); - } - - public static void syncUpdateEntryEntry() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - Entry entry = Entry.newBuilder().build(); - Entry response = dataCatalogClient.updateEntry(entry); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_Entry_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java deleted file mode 100644 index 598d9f775334..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentry/SyncUpdateEntryEntryFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_EntryFieldmask_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Entry; -import com.google.protobuf.FieldMask; - -public class SyncUpdateEntryEntryFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateEntryEntryFieldmask(); - } - - public static void syncUpdateEntryEntryFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - Entry entry = Entry.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Entry response = dataCatalogClient.updateEntry(entry, updateMask); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateEntry_EntryFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java deleted file mode 100644 index 7deb31f66ebc..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/AsyncUpdateEntryGroup.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateEntryGroup { - - public static void main(String[] args) throws Exception { - asyncUpdateEntryGroup(); - } - - public static void asyncUpdateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateEntryGroupRequest request = - UpdateEntryGroupRequest.newBuilder() - .setEntryGroup(EntryGroup.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.updateEntryGroupCallable().futureCall(request); - // Do something. - EntryGroup response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java deleted file mode 100644 index 3d64644d7a38..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroup.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateEntryGroup { - - public static void main(String[] args) throws Exception { - syncUpdateEntryGroup(); - } - - public static void syncUpdateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateEntryGroupRequest request = - UpdateEntryGroupRequest.newBuilder() - .setEntryGroup(EntryGroup.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - EntryGroup response = dataCatalogClient.updateEntryGroup(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java deleted file mode 100644 index a6e41d5abb8b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroup.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_Entrygroup_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; - -public class SyncUpdateEntryGroupEntrygroup { - - public static void main(String[] args) throws Exception { - syncUpdateEntryGroupEntrygroup(); - } - - public static void syncUpdateEntryGroupEntrygroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - EntryGroup response = dataCatalogClient.updateEntryGroup(entryGroup); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_Entrygroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java deleted file mode 100644 index 343bd8f174aa..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updateentrygroup/SyncUpdateEntryGroupEntrygroupFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_EntrygroupFieldmask_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.EntryGroup; -import com.google.protobuf.FieldMask; - -public class SyncUpdateEntryGroupEntrygroupFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateEntryGroupEntrygroupFieldmask(); - } - - public static void syncUpdateEntryGroupEntrygroupFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - EntryGroup entryGroup = EntryGroup.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - EntryGroup response = dataCatalogClient.updateEntryGroup(entryGroup, updateMask); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateEntryGroup_EntrygroupFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/AsyncUpdateTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/AsyncUpdateTag.java deleted file mode 100644 index afce2975a1ed..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/AsyncUpdateTag.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Tag; -import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateTag { - - public static void main(String[] args) throws Exception { - asyncUpdateTag(); - } - - public static void asyncUpdateTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagRequest request = - UpdateTagRequest.newBuilder() - .setTag(Tag.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = dataCatalogClient.updateTagCallable().futureCall(request); - // Do something. - Tag response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTag.java deleted file mode 100644 index 45a6ff4f64e8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTag.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTag_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Tag; -import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTag { - - public static void main(String[] args) throws Exception { - syncUpdateTag(); - } - - public static void syncUpdateTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagRequest request = - UpdateTagRequest.newBuilder() - .setTag(Tag.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Tag response = dataCatalogClient.updateTag(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTag.java deleted file mode 100644 index cad36fce2d2b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTag.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTag_Tag_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Tag; - -public class SyncUpdateTagTag { - - public static void main(String[] args) throws Exception { - syncUpdateTagTag(); - } - - public static void syncUpdateTagTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - Tag tag = Tag.newBuilder().build(); - Tag response = dataCatalogClient.updateTag(tag); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTag_Tag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java deleted file mode 100644 index de20ba47ad23..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetag/SyncUpdateTagTagFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTag_TagFieldmask_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.Tag; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTagFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateTagTagFieldmask(); - } - - public static void syncUpdateTagTagFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - Tag tag = Tag.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - Tag response = dataCatalogClient.updateTag(tag, updateMask); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTag_TagFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java deleted file mode 100644 index fca34878c5cb..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/AsyncUpdateTagTemplate.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateTagTemplate { - - public static void main(String[] args) throws Exception { - asyncUpdateTagTemplate(); - } - - public static void asyncUpdateTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagTemplateRequest request = - UpdateTagTemplateRequest.newBuilder() - .setTagTemplate(TagTemplate.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.updateTagTemplateCallable().futureCall(request); - // Do something. - TagTemplate response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java deleted file mode 100644 index e301fb549729..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplate.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTemplate { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplate(); - } - - public static void syncUpdateTagTemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagTemplateRequest request = - UpdateTagTemplateRequest.newBuilder() - .setTagTemplate(TagTemplate.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - TagTemplate response = dataCatalogClient.updateTagTemplate(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java deleted file mode 100644 index a22d4bf93a00..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplate.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_Tagtemplate_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; - -public class SyncUpdateTagTemplateTagtemplate { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateTagtemplate(); - } - - public static void syncUpdateTagTemplateTagtemplate() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - TagTemplate response = dataCatalogClient.updateTagTemplate(tagTemplate); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_Tagtemplate_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java deleted file mode 100644 index 2a49974277ee..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplate/SyncUpdateTagTemplateTagtemplateFieldmask.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_TagtemplateFieldmask_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplate; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTemplateTagtemplateFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateTagtemplateFieldmask(); - } - - public static void syncUpdateTagTemplateTagtemplateFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplate tagTemplate = TagTemplate.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - TagTemplate response = dataCatalogClient.updateTagTemplate(tagTemplate, updateMask); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplate_TagtemplateFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java deleted file mode 100644 index a4aff301c089..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/AsyncUpdateTagTemplateField.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateTagTemplateField { - - public static void main(String[] args) throws Exception { - asyncUpdateTagTemplateField(); - } - - public static void asyncUpdateTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setTagTemplateField(TagTemplateField.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - dataCatalogClient.updateTagTemplateFieldCallable().futureCall(request); - // Do something. - TagTemplateField response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java deleted file mode 100644 index 1064b95fe340..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateField.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; -import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTemplateField { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateField(); - } - - public static void syncUpdateTagTemplateField() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - UpdateTagTemplateFieldRequest request = - UpdateTagTemplateFieldRequest.newBuilder() - .setName( - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString()) - .setTagTemplateField(TagTemplateField.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - TagTemplateField response = dataCatalogClient.updateTagTemplateField(request); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java deleted file mode 100644 index f0b153a94c65..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefield.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_StringTagtemplatefield_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; - -public class SyncUpdateTagTemplateFieldStringTagtemplatefield { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateFieldStringTagtemplatefield(); - } - - public static void syncUpdateTagTemplateFieldStringTagtemplatefield() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString(); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - TagTemplateField response = dataCatalogClient.updateTagTemplateField(name, tagTemplateField); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_StringTagtemplatefield_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java deleted file mode 100644 index 5adedbf852af..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_StringTagtemplatefieldFieldmask_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask(); - } - - public static void syncUpdateTagTemplateFieldStringTagtemplatefieldFieldmask() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - String name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]") - .toString(); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - TagTemplateField response = - dataCatalogClient.updateTagTemplateField(name, tagTemplateField, updateMask); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_StringTagtemplatefieldFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java deleted file mode 100644 index 60f5f04aca20..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_TagtemplatefieldnameTagtemplatefield_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; - -public class SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield(); - } - - public static void syncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefield() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - TagTemplateField response = dataCatalogClient.updateTagTemplateField(name, tagTemplateField); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_TagtemplatefieldnameTagtemplatefield_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java deleted file mode 100644 index cf1755e16773..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalog/updatetagtemplatefield/SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_TagtemplatefieldnameTagtemplatefieldFieldmask_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogClient; -import com.google.cloud.datacatalog.v1beta1.TagTemplateField; -import com.google.cloud.datacatalog.v1beta1.TagTemplateFieldName; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask { - - public static void main(String[] args) throws Exception { - syncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask(); - } - - public static void syncUpdateTagTemplateFieldTagtemplatefieldnameTagtemplatefieldFieldmask() - throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (DataCatalogClient dataCatalogClient = DataCatalogClient.create()) { - TagTemplateFieldName name = - TagTemplateFieldName.of("[PROJECT]", "[LOCATION]", "[TAG_TEMPLATE]", "[FIELD]"); - TagTemplateField tagTemplateField = TagTemplateField.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - TagTemplateField response = - dataCatalogClient.updateTagTemplateField(name, tagTemplateField, updateMask); - } - } -} -// [END datacatalog_v1beta1_generated_DataCatalog_UpdateTagTemplateField_TagtemplatefieldnameTagtemplatefieldFieldmask_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java deleted file mode 100644 index 6b17ecc336ad..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/datacatalogsettings/createentrygroup/SyncCreateEntryGroup.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_DataCatalogSettings_CreateEntryGroup_sync] -import com.google.cloud.datacatalog.v1beta1.DataCatalogSettings; -import java.time.Duration; - -public class SyncCreateEntryGroup { - - public static void main(String[] args) throws Exception { - syncCreateEntryGroup(); - } - - public static void syncCreateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataCatalogSettings.Builder dataCatalogSettingsBuilder = DataCatalogSettings.newBuilder(); - dataCatalogSettingsBuilder - .createEntryGroupSettings() - .setRetrySettings( - dataCatalogSettingsBuilder - .createEntryGroupSettings() - .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()); - DataCatalogSettings dataCatalogSettings = dataCatalogSettingsBuilder.build(); - } -} -// [END datacatalog_v1beta1_generated_DataCatalogSettings_CreateEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 25ca02e7ca36..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_Create_SetCredentialsProvider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSettings; -import com.google.cloud.datacatalog.v1beta1.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 - PolicyTagManagerSettings policyTagManagerSettings = - PolicyTagManagerSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - PolicyTagManagerClient policyTagManagerClient = - PolicyTagManagerClient.create(policyTagManagerSettings); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_Create_SetCredentialsProvider_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetEndpoint.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetEndpoint.java deleted file mode 100644 index 109467ba4d99..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_Create_SetEndpoint_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSettings; -import com.google.cloud.datacatalog.v1beta1.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 - PolicyTagManagerSettings policyTagManagerSettings = - PolicyTagManagerSettings.newBuilder().setEndpoint(myEndpoint).build(); - PolicyTagManagerClient policyTagManagerClient = - PolicyTagManagerClient.create(policyTagManagerSettings); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_Create_SetEndpoint_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java deleted file mode 100644 index 12abfdbf0302..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/create/SyncCreateUseHttpJsonTransport.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_Create_UseHttpJsonTransport_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSettings; - -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 - PolicyTagManagerSettings policyTagManagerSettings = - PolicyTagManagerSettings.newHttpJsonBuilder().build(); - PolicyTagManagerClient policyTagManagerClient = - PolicyTagManagerClient.create(policyTagManagerSettings); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java deleted file mode 100644 index 1eca9284164e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/AsyncCreatePolicyTag.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class AsyncCreatePolicyTag { - - public static void main(String[] args) throws Exception { - asyncCreatePolicyTag(); - } - - public static void asyncCreatePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - CreatePolicyTagRequest request = - CreatePolicyTagRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setPolicyTag(PolicyTag.newBuilder().build()) - .build(); - ApiFuture future = - policyTagManagerClient.createPolicyTagCallable().futureCall(request); - // Do something. - PolicyTag response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java deleted file mode 100644 index 782576389525..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTag.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_sync] -import com.google.cloud.datacatalog.v1beta1.CreatePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class SyncCreatePolicyTag { - - public static void main(String[] args) throws Exception { - syncCreatePolicyTag(); - } - - public static void syncCreatePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - CreatePolicyTagRequest request = - CreatePolicyTagRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setPolicyTag(PolicyTag.newBuilder().build()) - .build(); - PolicyTag response = policyTagManagerClient.createPolicyTag(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java deleted file mode 100644 index 8396d407cb02..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagStringPolicytag.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_StringPolicytag_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class SyncCreatePolicyTagStringPolicytag { - - public static void main(String[] args) throws Exception { - syncCreatePolicyTagStringPolicytag(); - } - - public static void syncCreatePolicyTagStringPolicytag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_StringPolicytag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java deleted file mode 100644 index 38c437d4f531..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createpolicytag/SyncCreatePolicyTagTaxonomynamePolicytag.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_TaxonomynamePolicytag_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class SyncCreatePolicyTagTaxonomynamePolicytag { - - public static void main(String[] args) throws Exception { - syncCreatePolicyTagTaxonomynamePolicytag(); - } - - public static void syncCreatePolicyTagTaxonomynamePolicytag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - PolicyTag policyTag = PolicyTag.newBuilder().build(); - PolicyTag response = policyTagManagerClient.createPolicyTag(parent, policyTag); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_CreatePolicyTag_TaxonomynamePolicytag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java deleted file mode 100644 index d78ad3559f35..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/AsyncCreateTaxonomy.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; - -public class AsyncCreateTaxonomy { - - public static void main(String[] args) throws Exception { - asyncCreateTaxonomy(); - } - - public static void asyncCreateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - CreateTaxonomyRequest request = - CreateTaxonomyRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTaxonomy(Taxonomy.newBuilder().build()) - .build(); - ApiFuture future = - policyTagManagerClient.createTaxonomyCallable().futureCall(request); - // Do something. - Taxonomy response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java deleted file mode 100644 index 64a0f4060796..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomy.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_sync] -import com.google.cloud.datacatalog.v1beta1.CreateTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; - -public class SyncCreateTaxonomy { - - public static void main(String[] args) throws Exception { - syncCreateTaxonomy(); - } - - public static void syncCreateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - CreateTaxonomyRequest request = - CreateTaxonomyRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setTaxonomy(Taxonomy.newBuilder().build()) - .build(); - Taxonomy response = policyTagManagerClient.createTaxonomy(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java deleted file mode 100644 index d3ca618644d8..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyLocationnameTaxonomy.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_LocationnameTaxonomy_sync] -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; - -public class SyncCreateTaxonomyLocationnameTaxonomy { - - public static void main(String[] args) throws Exception { - syncCreateTaxonomyLocationnameTaxonomy(); - } - - public static void syncCreateTaxonomyLocationnameTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_LocationnameTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java deleted file mode 100644 index b08dffd20e6a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/createtaxonomy/SyncCreateTaxonomyStringTaxonomy.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_StringTaxonomy_sync] -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; - -public class SyncCreateTaxonomyStringTaxonomy { - - public static void main(String[] args) throws Exception { - syncCreateTaxonomyStringTaxonomy(); - } - - public static void syncCreateTaxonomyStringTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - Taxonomy response = policyTagManagerClient.createTaxonomy(parent, taxonomy); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_CreateTaxonomy_StringTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java deleted file mode 100644 index e590ae3b636f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/AsyncDeletePolicyTag.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; -import com.google.protobuf.Empty; - -public class AsyncDeletePolicyTag { - - public static void main(String[] args) throws Exception { - asyncDeletePolicyTag(); - } - - public static void asyncDeletePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - DeletePolicyTagRequest request = - DeletePolicyTagRequest.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .build(); - ApiFuture future = - policyTagManagerClient.deletePolicyTagCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java deleted file mode 100644 index af736b44962d..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTag.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_sync] -import com.google.cloud.datacatalog.v1beta1.DeletePolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyTag { - - public static void main(String[] args) throws Exception { - syncDeletePolicyTag(); - } - - public static void syncDeletePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - DeletePolicyTagRequest request = - DeletePolicyTagRequest.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .build(); - policyTagManagerClient.deletePolicyTag(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java deleted file mode 100644 index 805c8d0c0977..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagPolicytagname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_Policytagname_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyTagPolicytagname { - - public static void main(String[] args) throws Exception { - syncDeletePolicyTagPolicytagname(); - } - - public static void syncDeletePolicyTagPolicytagname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - policyTagManagerClient.deletePolicyTag(name); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_Policytagname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java deleted file mode 100644 index b67f30ecb58c..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletepolicytag/SyncDeletePolicyTagString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_String_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; -import com.google.protobuf.Empty; - -public class SyncDeletePolicyTagString { - - public static void main(String[] args) throws Exception { - syncDeletePolicyTagString(); - } - - public static void syncDeletePolicyTagString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString(); - policyTagManagerClient.deletePolicyTag(name); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_DeletePolicyTag_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java deleted file mode 100644 index 4dc071442aee..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/AsyncDeleteTaxonomy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; -import com.google.protobuf.Empty; - -public class AsyncDeleteTaxonomy { - - public static void main(String[] args) throws Exception { - asyncDeleteTaxonomy(); - } - - public static void asyncDeleteTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - DeleteTaxonomyRequest request = - DeleteTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .build(); - ApiFuture future = policyTagManagerClient.deleteTaxonomyCallable().futureCall(request); - // Do something. - future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java deleted file mode 100644 index 05a7a887626b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomy.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_sync] -import com.google.cloud.datacatalog.v1beta1.DeleteTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaxonomy { - - public static void main(String[] args) throws Exception { - syncDeleteTaxonomy(); - } - - public static void syncDeleteTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - DeleteTaxonomyRequest request = - DeleteTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .build(); - policyTagManagerClient.deleteTaxonomy(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java deleted file mode 100644 index ac4ce8b44865..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_String_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaxonomyString { - - public static void main(String[] args) throws Exception { - syncDeleteTaxonomyString(); - } - - public static void syncDeleteTaxonomyString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); - policyTagManagerClient.deleteTaxonomy(name); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java deleted file mode 100644 index ff6060b7915a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/deletetaxonomy/SyncDeleteTaxonomyTaxonomyname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_Taxonomyname_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; -import com.google.protobuf.Empty; - -public class SyncDeleteTaxonomyTaxonomyname { - - public static void main(String[] args) throws Exception { - syncDeleteTaxonomyTaxonomyname(); - } - - public static void syncDeleteTaxonomyTaxonomyname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - policyTagManagerClient.deleteTaxonomy(name); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_DeleteTaxonomy_Taxonomyname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java deleted file mode 100644 index e904b19fd83f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/AsyncGetIamPolicy.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_GetIamPolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - ApiFuture future = policyTagManagerClient.getIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_GetIamPolicy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/SyncGetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/SyncGetIamPolicy.java deleted file mode 100644 index b7fdea3cbcbb..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getiampolicy/SyncGetIamPolicy.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_GetIamPolicy_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setOptions(GetPolicyOptions.newBuilder().build()) - .build(); - Policy response = policyTagManagerClient.getIamPolicy(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_GetIamPolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java deleted file mode 100644 index a0e6e73ce983..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/AsyncGetPolicyTag.java +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; - -public class AsyncGetPolicyTag { - - public static void main(String[] args) throws Exception { - asyncGetPolicyTag(); - } - - public static void asyncGetPolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetPolicyTagRequest request = - GetPolicyTagRequest.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .build(); - ApiFuture future = - policyTagManagerClient.getPolicyTagCallable().futureCall(request); - // Do something. - PolicyTag response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTag.java deleted file mode 100644 index 80ae80b9c727..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTag.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_sync] -import com.google.cloud.datacatalog.v1beta1.GetPolicyTagRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; - -public class SyncGetPolicyTag { - - public static void main(String[] args) throws Exception { - syncGetPolicyTag(); - } - - public static void syncGetPolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetPolicyTagRequest request = - GetPolicyTagRequest.newBuilder() - .setName( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .build(); - PolicyTag response = policyTagManagerClient.getPolicyTag(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java deleted file mode 100644 index 65edee54a030..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagPolicytagname.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_Policytagname_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; - -public class SyncGetPolicyTagPolicytagname { - - public static void main(String[] args) throws Exception { - syncGetPolicyTagPolicytagname(); - } - - public static void syncGetPolicyTagPolicytagname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - PolicyTagName name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]"); - PolicyTag response = policyTagManagerClient.getPolicyTag(name); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_Policytagname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java deleted file mode 100644 index 1f88ecb1c96b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/getpolicytag/SyncGetPolicyTagString.java +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_String_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; - -public class SyncGetPolicyTagString { - - public static void main(String[] args) throws Exception { - syncGetPolicyTagString(); - } - - public static void syncGetPolicyTagString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String name = - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]").toString(); - PolicyTag response = policyTagManagerClient.getPolicyTag(name); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_GetPolicyTag_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java deleted file mode 100644 index b733dcbd35a9..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/AsyncGetTaxonomy.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class AsyncGetTaxonomy { - - public static void main(String[] args) throws Exception { - asyncGetTaxonomy(); - } - - public static void asyncGetTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetTaxonomyRequest request = - GetTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .build(); - ApiFuture future = policyTagManagerClient.getTaxonomyCallable().futureCall(request); - // Do something. - Taxonomy response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java deleted file mode 100644 index 9ecbc9cd6196..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomy.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_sync] -import com.google.cloud.datacatalog.v1beta1.GetTaxonomyRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class SyncGetTaxonomy { - - public static void main(String[] args) throws Exception { - syncGetTaxonomy(); - } - - public static void syncGetTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - GetTaxonomyRequest request = - GetTaxonomyRequest.newBuilder() - .setName(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .build(); - Taxonomy response = policyTagManagerClient.getTaxonomy(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java deleted file mode 100644 index cc7c037e4094..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyString.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_String_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class SyncGetTaxonomyString { - - public static void main(String[] args) throws Exception { - syncGetTaxonomyString(); - } - - public static void syncGetTaxonomyString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); - Taxonomy response = policyTagManagerClient.getTaxonomy(name); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java deleted file mode 100644 index b9c8b22df548..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/gettaxonomy/SyncGetTaxonomyTaxonomyname.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_Taxonomyname_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class SyncGetTaxonomyTaxonomyname { - - public static void main(String[] args) throws Exception { - syncGetTaxonomyTaxonomyname(); - } - - public static void syncGetTaxonomyTaxonomyname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TaxonomyName name = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - Taxonomy response = policyTagManagerClient.getTaxonomy(name); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_GetTaxonomy_Taxonomyname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTags.java deleted file mode 100644 index a09a7ae2f9eb..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTags.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class AsyncListPolicyTags { - - public static void main(String[] args) throws Exception { - asyncListPolicyTags(); - } - - public static void asyncListPolicyTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListPolicyTagsRequest request = - ListPolicyTagsRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - ApiFuture future = - policyTagManagerClient.listPolicyTagsPagedCallable().futureCall(request); - // Do something. - for (PolicyTag element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java deleted file mode 100644 index e8af21115106..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/AsyncListPolicyTagsPaged.java +++ /dev/null @@ -1,62 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_Paged_async] -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsResponse; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; -import com.google.common.base.Strings; - -public class AsyncListPolicyTagsPaged { - - public static void main(String[] args) throws Exception { - asyncListPolicyTagsPaged(); - } - - public static void asyncListPolicyTagsPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListPolicyTagsRequest request = - ListPolicyTagsRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - while (true) { - ListPolicyTagsResponse response = - policyTagManagerClient.listPolicyTagsCallable().call(request); - for (PolicyTag element : response.getPolicyTagsList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTags.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTags.java deleted file mode 100644 index 74e3580661ac..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTags.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_sync] -import com.google.cloud.datacatalog.v1beta1.ListPolicyTagsRequest; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class SyncListPolicyTags { - - public static void main(String[] args) throws Exception { - syncListPolicyTags(); - } - - public static void syncListPolicyTags() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListPolicyTagsRequest request = - ListPolicyTagsRequest.newBuilder() - .setParent(TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - for (PolicyTag element : policyTagManagerClient.listPolicyTags(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java deleted file mode 100644 index 831ccbc5e6e3..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_String_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class SyncListPolicyTagsString { - - public static void main(String[] args) throws Exception { - syncListPolicyTagsString(); - } - - public static void syncListPolicyTagsString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]").toString(); - for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java deleted file mode 100644 index 16f4e67e5e84..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listpolicytags/SyncListPolicyTagsTaxonomyname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_Taxonomyname_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.TaxonomyName; - -public class SyncListPolicyTagsTaxonomyname { - - public static void main(String[] args) throws Exception { - syncListPolicyTagsTaxonomyname(); - } - - public static void syncListPolicyTagsTaxonomyname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TaxonomyName parent = TaxonomyName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]"); - for (PolicyTag element : policyTagManagerClient.listPolicyTags(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_ListPolicyTags_Taxonomyname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java deleted file mode 100644 index 88184a396487..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomies.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; - -public class AsyncListTaxonomies { - - public static void main(String[] args) throws Exception { - asyncListTaxonomies(); - } - - public static void asyncListTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListTaxonomiesRequest request = - ListTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - ApiFuture future = - policyTagManagerClient.listTaxonomiesPagedCallable().futureCall(request); - // Do something. - for (Taxonomy element : future.get().iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java deleted file mode 100644 index d55ae6b38805..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/AsyncListTaxonomiesPaged.java +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_Paged_async] -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.common.base.Strings; - -public class AsyncListTaxonomiesPaged { - - public static void main(String[] args) throws Exception { - asyncListTaxonomiesPaged(); - } - - public static void asyncListTaxonomiesPaged() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListTaxonomiesRequest request = - ListTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - while (true) { - ListTaxonomiesResponse response = - policyTagManagerClient.listTaxonomiesCallable().call(request); - for (Taxonomy element : response.getTaxonomiesList()) { - // doThingsWith(element); - } - String nextPageToken = response.getNextPageToken(); - if (!Strings.isNullOrEmpty(nextPageToken)) { - request = request.toBuilder().setPageToken(nextPageToken).build(); - } else { - break; - } - } - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_Paged_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomies.java deleted file mode 100644 index 2e202e18da9a..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomies.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_sync] -import com.google.cloud.datacatalog.v1beta1.ListTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; - -public class SyncListTaxonomies { - - public static void main(String[] args) throws Exception { - syncListTaxonomies(); - } - - public static void syncListTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - ListTaxonomiesRequest request = - ListTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setFilter("filter-1274492040") - .build(); - for (Taxonomy element : policyTagManagerClient.listTaxonomies(request).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java deleted file mode 100644 index 025dc735e4f1..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesLocationname.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_Locationname_sync] -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; - -public class SyncListTaxonomiesLocationname { - - public static void main(String[] args) throws Exception { - syncListTaxonomiesLocationname(); - } - - public static void syncListTaxonomiesLocationname() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - for (Taxonomy element : policyTagManagerClient.listTaxonomies(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_Locationname_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java deleted file mode 100644 index f90fbfe62c12..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/listtaxonomies/SyncListTaxonomiesString.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_String_sync] -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; - -public class SyncListTaxonomiesString { - - public static void main(String[] args) throws Exception { - syncListTaxonomiesString(); - } - - public static void syncListTaxonomiesString() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - for (Taxonomy element : policyTagManagerClient.listTaxonomies(parent).iterateAll()) { - // doThingsWith(element); - } - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_ListTaxonomies_String_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java deleted file mode 100644 index f35b9cf4c5ff..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/AsyncSetIamPolicy.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_SetIamPolicy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = policyTagManagerClient.setIamPolicyCallable().futureCall(request); - // Do something. - Policy response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_SetIamPolicy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/SyncSetIamPolicy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/SyncSetIamPolicy.java deleted file mode 100644 index f3d927e1e720..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/setiampolicy/SyncSetIamPolicy.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_SetIamPolicy_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .setPolicy(Policy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Policy response = policyTagManagerClient.setIamPolicy(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_SetIamPolicy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java deleted file mode 100644 index 27f7b07a2669..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/AsyncTestIamPermissions.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_TestIamPermissions_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - ApiFuture future = - policyTagManagerClient.testIamPermissionsCallable().futureCall(request); - // Do something. - TestIamPermissionsResponse response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_TestIamPermissions_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/SyncTestIamPermissions.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/SyncTestIamPermissions.java deleted file mode 100644 index f48ace0f2573..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/testiampermissions/SyncTestIamPermissions.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_TestIamPermissions_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagName; -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 (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource( - PolicyTagName.of("[PROJECT]", "[LOCATION]", "[TAXONOMY]", "[POLICY_TAG]") - .toString()) - .addAllPermissions(new ArrayList()) - .build(); - TestIamPermissionsResponse response = policyTagManagerClient.testIamPermissions(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_TestIamPermissions_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java deleted file mode 100644 index 7f2f8833779b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/AsyncUpdatePolicyTag.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_UpdatePolicyTag_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdatePolicyTag { - - public static void main(String[] args) throws Exception { - asyncUpdatePolicyTag(); - } - - public static void asyncUpdatePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - UpdatePolicyTagRequest request = - UpdatePolicyTagRequest.newBuilder() - .setPolicyTag(PolicyTag.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - policyTagManagerClient.updatePolicyTagCallable().futureCall(request); - // Do something. - PolicyTag response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_UpdatePolicyTag_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java deleted file mode 100644 index b67a68005dd6..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTag.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_UpdatePolicyTag_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.UpdatePolicyTagRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdatePolicyTag { - - public static void main(String[] args) throws Exception { - syncUpdatePolicyTag(); - } - - public static void syncUpdatePolicyTag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - UpdatePolicyTagRequest request = - UpdatePolicyTagRequest.newBuilder() - .setPolicyTag(PolicyTag.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - PolicyTag response = policyTagManagerClient.updatePolicyTag(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_UpdatePolicyTag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java deleted file mode 100644 index 6f8cb0cbc4ad..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatepolicytag/SyncUpdatePolicyTagPolicytag.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_UpdatePolicyTag_Policytag_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTag; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; - -public class SyncUpdatePolicyTagPolicytag { - - public static void main(String[] args) throws Exception { - syncUpdatePolicyTagPolicytag(); - } - - public static void syncUpdatePolicyTagPolicytag() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - PolicyTag policyTag = PolicyTag.newBuilder().build(); - PolicyTag response = policyTagManagerClient.updatePolicyTag(policyTag); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_UpdatePolicyTag_Policytag_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java deleted file mode 100644 index d0a664fe3d29..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/AsyncUpdateTaxonomy.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_UpdateTaxonomy_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest; -import com.google.protobuf.FieldMask; - -public class AsyncUpdateTaxonomy { - - public static void main(String[] args) throws Exception { - asyncUpdateTaxonomy(); - } - - public static void asyncUpdateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - UpdateTaxonomyRequest request = - UpdateTaxonomyRequest.newBuilder() - .setTaxonomy(Taxonomy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - ApiFuture future = - policyTagManagerClient.updateTaxonomyCallable().futureCall(request); - // Do something. - Taxonomy response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_UpdateTaxonomy_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java deleted file mode 100644 index 124937fcc975..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomy.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_UpdateTaxonomy_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; -import com.google.cloud.datacatalog.v1beta1.UpdateTaxonomyRequest; -import com.google.protobuf.FieldMask; - -public class SyncUpdateTaxonomy { - - public static void main(String[] args) throws Exception { - syncUpdateTaxonomy(); - } - - public static void syncUpdateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - UpdateTaxonomyRequest request = - UpdateTaxonomyRequest.newBuilder() - .setTaxonomy(Taxonomy.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - Taxonomy response = policyTagManagerClient.updateTaxonomy(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_UpdateTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java deleted file mode 100644 index 0d3493815a6f..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanager/updatetaxonomy/SyncUpdateTaxonomyTaxonomy.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManager_UpdateTaxonomy_Taxonomy_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerClient; -import com.google.cloud.datacatalog.v1beta1.Taxonomy; - -public class SyncUpdateTaxonomyTaxonomy { - - public static void main(String[] args) throws Exception { - syncUpdateTaxonomyTaxonomy(); - } - - public static void syncUpdateTaxonomyTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) { - Taxonomy taxonomy = Taxonomy.newBuilder().build(); - Taxonomy response = policyTagManagerClient.updateTaxonomy(taxonomy); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManager_UpdateTaxonomy_Taxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java deleted file mode 100644 index 439e9e655022..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetCredentialsProvider.java +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_Create_SetCredentialsProvider_sync] -import com.google.api.gax.core.FixedCredentialsProvider; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationSettings; -import com.google.cloud.datacatalog.v1beta1.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 - PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = - PolicyTagManagerSerializationSettings.newBuilder() - .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) - .build(); - PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_Create_SetCredentialsProvider_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java deleted file mode 100644 index c76de67dccb2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateSetEndpoint.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_Create_SetEndpoint_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationSettings; -import com.google.cloud.datacatalog.v1beta1.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 - PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = - PolicyTagManagerSerializationSettings.newBuilder().setEndpoint(myEndpoint).build(); - PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_Create_SetEndpoint_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java deleted file mode 100644 index ec37cb89b17e..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/create/SyncCreateUseHttpJsonTransport.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_Create_UseHttpJsonTransport_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationSettings; - -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 - PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = - PolicyTagManagerSerializationSettings.newHttpJsonBuilder().build(); - PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_Create_UseHttpJsonTransport_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java deleted file mode 100644 index de3d9a40de40..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/AsyncExportTaxonomies.java +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ExportTaxonomies_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient; -import java.util.ArrayList; - -public class AsyncExportTaxonomies { - - public static void main(String[] args) throws Exception { - asyncExportTaxonomies(); - } - - public static void asyncExportTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create()) { - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - ApiFuture future = - policyTagManagerSerializationClient.exportTaxonomiesCallable().futureCall(request); - // Do something. - ExportTaxonomiesResponse response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ExportTaxonomies_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java deleted file mode 100644 index 48fd582ddc39..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/exporttaxonomies/SyncExportTaxonomies.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ExportTaxonomies_sync] -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ExportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient; -import java.util.ArrayList; - -public class SyncExportTaxonomies { - - public static void main(String[] args) throws Exception { - syncExportTaxonomies(); - } - - public static void syncExportTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create()) { - ExportTaxonomiesRequest request = - ExportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .addAllTaxonomies(new ArrayList()) - .build(); - ExportTaxonomiesResponse response = - policyTagManagerSerializationClient.exportTaxonomies(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ExportTaxonomies_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java deleted file mode 100644 index beed751ccbf4..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/AsyncImportTaxonomies.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ImportTaxonomies_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient; - -public class AsyncImportTaxonomies { - - public static void main(String[] args) throws Exception { - asyncImportTaxonomies(); - } - - public static void asyncImportTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create()) { - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ApiFuture future = - policyTagManagerSerializationClient.importTaxonomiesCallable().futureCall(request); - // Do something. - ImportTaxonomiesResponse response = future.get(); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ImportTaxonomies_async] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java deleted file mode 100644 index 77fb6d6588e6..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserialization/importtaxonomies/SyncImportTaxonomies.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ImportTaxonomies_sync] -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesRequest; -import com.google.cloud.datacatalog.v1beta1.ImportTaxonomiesResponse; -import com.google.cloud.datacatalog.v1beta1.LocationName; -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationClient; - -public class SyncImportTaxonomies { - - public static void main(String[] args) throws Exception { - syncImportTaxonomies(); - } - - public static void syncImportTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = - PolicyTagManagerSerializationClient.create()) { - ImportTaxonomiesRequest request = - ImportTaxonomiesRequest.newBuilder() - .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - .build(); - ImportTaxonomiesResponse response = - policyTagManagerSerializationClient.importTaxonomies(request); - } - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSerialization_ImportTaxonomies_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserializationsettings/importtaxonomies/SyncImportTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserializationsettings/importtaxonomies/SyncImportTaxonomies.java deleted file mode 100644 index 4daff39e994b..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagerserializationsettings/importtaxonomies/SyncImportTaxonomies.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSerializationSettings_ImportTaxonomies_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSerializationSettings; -import java.time.Duration; - -public class SyncImportTaxonomies { - - public static void main(String[] args) throws Exception { - syncImportTaxonomies(); - } - - public static void syncImportTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerSerializationSettings.Builder policyTagManagerSerializationSettingsBuilder = - PolicyTagManagerSerializationSettings.newBuilder(); - policyTagManagerSerializationSettingsBuilder - .importTaxonomiesSettings() - .setRetrySettings( - policyTagManagerSerializationSettingsBuilder - .importTaxonomiesSettings() - .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()); - PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = - policyTagManagerSerializationSettingsBuilder.build(); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSerializationSettings_ImportTaxonomies_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java deleted file mode 100644 index be7b358a5cd2..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/policytagmanagersettings/createtaxonomy/SyncCreateTaxonomy.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSettings_CreateTaxonomy_sync] -import com.google.cloud.datacatalog.v1beta1.PolicyTagManagerSettings; -import java.time.Duration; - -public class SyncCreateTaxonomy { - - public static void main(String[] args) throws Exception { - syncCreateTaxonomy(); - } - - public static void syncCreateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerSettings.Builder policyTagManagerSettingsBuilder = - PolicyTagManagerSettings.newBuilder(); - policyTagManagerSettingsBuilder - .createTaxonomySettings() - .setRetrySettings( - policyTagManagerSettingsBuilder - .createTaxonomySettings() - .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()); - PolicyTagManagerSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build(); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSettings_CreateTaxonomy_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java deleted file mode 100644 index 5cb37d180f37..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/datacatalogstubsettings/createentrygroup/SyncCreateEntryGroup.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub.samples; - -// [START datacatalog_v1beta1_generated_DataCatalogStubSettings_CreateEntryGroup_sync] -import com.google.cloud.datacatalog.v1beta1.stub.DataCatalogStubSettings; -import java.time.Duration; - -public class SyncCreateEntryGroup { - - public static void main(String[] args) throws Exception { - syncCreateEntryGroup(); - } - - public static void syncCreateEntryGroup() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - DataCatalogStubSettings.Builder dataCatalogSettingsBuilder = - DataCatalogStubSettings.newBuilder(); - dataCatalogSettingsBuilder - .createEntryGroupSettings() - .setRetrySettings( - dataCatalogSettingsBuilder - .createEntryGroupSettings() - .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()); - DataCatalogStubSettings dataCatalogSettings = dataCatalogSettingsBuilder.build(); - } -} -// [END datacatalog_v1beta1_generated_DataCatalogStubSettings_CreateEntryGroup_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerserializationstubsettings/importtaxonomies/SyncImportTaxonomies.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerserializationstubsettings/importtaxonomies/SyncImportTaxonomies.java deleted file mode 100644 index a6632e9ac1c9..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerserializationstubsettings/importtaxonomies/SyncImportTaxonomies.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerSerializationStubSettings_ImportTaxonomies_sync] -import com.google.cloud.datacatalog.v1beta1.stub.PolicyTagManagerSerializationStubSettings; -import java.time.Duration; - -public class SyncImportTaxonomies { - - public static void main(String[] args) throws Exception { - syncImportTaxonomies(); - } - - public static void syncImportTaxonomies() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerSerializationStubSettings.Builder policyTagManagerSerializationSettingsBuilder = - PolicyTagManagerSerializationStubSettings.newBuilder(); - policyTagManagerSerializationSettingsBuilder - .importTaxonomiesSettings() - .setRetrySettings( - policyTagManagerSerializationSettingsBuilder - .importTaxonomiesSettings() - .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()); - PolicyTagManagerSerializationStubSettings policyTagManagerSerializationSettings = - policyTagManagerSerializationSettingsBuilder.build(); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerSerializationStubSettings_ImportTaxonomies_sync] diff --git a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java b/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java deleted file mode 100644 index 3dd5c37bc83d..000000000000 --- a/java-datacatalog/samples/snippets/generated/com/google/cloud/datacatalog/v1beta1/stub/policytagmanagerstubsettings/createtaxonomy/SyncCreateTaxonomy.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.datacatalog.v1beta1.stub.samples; - -// [START datacatalog_v1beta1_generated_PolicyTagManagerStubSettings_CreateTaxonomy_sync] -import com.google.cloud.datacatalog.v1beta1.stub.PolicyTagManagerStubSettings; -import java.time.Duration; - -public class SyncCreateTaxonomy { - - public static void main(String[] args) throws Exception { - syncCreateTaxonomy(); - } - - public static void syncCreateTaxonomy() throws Exception { - // This snippet has been automatically generated and should be regarded as a code template only. - // It will require modifications to work: - // - It may require correct/in-range values for request initialization. - // - It may require specifying regional endpoints when creating the service client as shown in - // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library - PolicyTagManagerStubSettings.Builder policyTagManagerSettingsBuilder = - PolicyTagManagerStubSettings.newBuilder(); - policyTagManagerSettingsBuilder - .createTaxonomySettings() - .setRetrySettings( - policyTagManagerSettingsBuilder - .createTaxonomySettings() - .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()); - PolicyTagManagerStubSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build(); - } -} -// [END datacatalog_v1beta1_generated_PolicyTagManagerStubSettings_CreateTaxonomy_sync] diff --git a/librarian.yaml b/librarian.yaml index 80a4c61915ac..5c4913c9c0c7 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -1386,26 +1386,7 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview library_type_override: GAPIC_AUTO name_pretty_override: Database Center API - product_documentation_override: https://cloud.google.com/database-center/docs/overview released_version: 0.17.0 - - name: datacatalog - version: 1.102.0 - apis: - - path: google/cloud/datacatalog/v1 - java: - additional_protos: - - path: google/iam/v1/iam_policy.proto - - path: google/cloud/datacatalog/v1beta1 - java: - additional_protos: - - path: google/iam/v1/iam_policy.proto - keep: - - proto-google-cloud-datacatalog-v1beta1/src/main/java/com/google/cloud/datacatalog/v1beta1/FieldName.java - java: - api_description_override: is a fully managed and highly scalable data discovery and metadata management service. - name_pretty_override: Data Catalog - product_documentation_override: https://cloud.google.com/data-catalog - released_version: 1.102.0 - name: dataflow version: 0.100.0 apis: diff --git a/pom.xml b/pom.xml index b5e63fecffdd..b13c27feb79d 100644 --- a/pom.xml +++ b/pom.xml @@ -92,7 +92,6 @@ java-contentwarehouse java-data-fusion java-databasecenter - java-datacatalog java-dataflow java-dataform java-datalabeling diff --git a/versions.txt b/versions.txt index 0d9ce4446a50..fd12ba470724 100644 --- a/versions.txt +++ b/versions.txt @@ -160,11 +160,6 @@ proto-google-cloud-container-v1beta1:2.99.0:2.99.0 google-cloud-contentwarehouse:0.92.0:0.92.0 proto-google-cloud-contentwarehouse-v1:0.92.0:0.92.0 grpc-google-cloud-contentwarehouse-v1:0.92.0:0.92.0 -google-cloud-datacatalog:1.102.0:1.102.0 -grpc-google-cloud-datacatalog-v1:1.102.0:1.102.0 -grpc-google-cloud-datacatalog-v1beta1:1.102.0:1.102.0 -proto-google-cloud-datacatalog-v1:1.102.0:1.102.0 -proto-google-cloud-datacatalog-v1beta1:1.102.0:1.102.0 google-cloud-dataflow:0.100.0:0.100.0 grpc-google-cloud-dataflow-v1beta3:0.100.0:0.100.0 proto-google-cloud-dataflow-v1beta3:0.100.0:0.100.0 From 1f991e2a7f5ad2912bbc4ba2bb868ccf5d30a006 Mon Sep 17 00:00:00 2001 From: Lawrence Qiu Date: Mon, 24 Aug 2026 21:09:15 -0400 Subject: [PATCH 2/2] chore: Fix removed line --- librarian.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/librarian.yaml b/librarian.yaml index 5c4913c9c0c7..5e3e92642628 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -1386,6 +1386,7 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview library_type_override: GAPIC_AUTO name_pretty_override: Database Center API + product_documentation_override: https://cloud.google.com/database-center/docs/overview released_version: 0.17.0 - name: dataflow version: 0.100.0